Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is to possible to change the LRECL in model gdg?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Wed Nov 21, 2007 8:43 pm    Post subject: Is to possible to change the LRECL in model gdg?
Reply with quote

Hi All,

I have encountered a problem?

In the production there is a GDG with LRECL= 003353. for a request they changed it to 4259. the file is in tape. in testing we tested by creating a flat file. Now we have to change in production GDG.

now i have to overwrite the production GDG with 4259.

can you please help in resolving the isssue.

Thanks,
Kiran.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Nov 22, 2007 6:04 am    Post subject:
Reply with quote

Kiran,

Quote:
now i have to overwrite the production GDG with 4259.

You wanted to recreate the existing generations with 'new lrecl' icon_question.gif

Any specific reason?
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Nov 22, 2007 9:14 am    Post subject:
Reply with quote

hey, kiran
Quote:
now i have to overwrite the production GDG with 4259.
You need to delete define the base GDG
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Nov 22, 2007 9:16 am    Post subject:
Reply with quote

KirsPrems,

Quote:
You need to delete define the base GDG

Not required.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Nov 22, 2007 1:00 pm    Post subject: Reply to: Is to possible to change the LRECL in model gdg?
Reply with quote

If You have SMS active the model GDG is not needed any more...
Speak with the storage group in order to have a proper STORAGE CLASS
defined and assigne to the dataset
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Nov 22, 2007 6:21 pm    Post subject:
Reply with quote

murmohk1 is right, why go back and change the older versions' lrecl and a GDG base defines nothing about LRECL. We have bases in production where the actual generations have different LRECLs after implementations.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Nov 22, 2007 7:20 pm    Post subject:
Reply with quote

Quote:
We have bases in production where the actual generations have different LRECLs after implementations.
In case we need to concatenate the GDG, can we concatenate the versions with different LRECL icon_question.gif

In case i need to give
Code:
//INFILE   DD  DSN=HLQ.GDG.BASE,DISP=...
write in to a o/p file
//OUTFILE   DD  DSN=O/P FILE
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Nov 22, 2007 7:27 pm    Post subject: Reply to: Is to possible to change the LRECL in model gdg?
Reply with quote

Quote:
In case we need to concatenate the GDG, can we concatenate the versions with different LRECL


as a general "GOOD PRACTICE" point it's illogic to concatenate FB datasets
with a different record lengths
for VB dataset the processing program must be aware of the data it works with
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 22, 2007 11:21 pm    Post subject:
Reply with quote

If the dataset is SMS managed or not, tape or DASD, just so long as a valid DATACLAS is assigned to the dataset there is no need for a model or dummy DSCB anymore, not since about 1995.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Nov 23, 2007 3:15 am    Post subject: Reply to: Is to possible to change the LRECL in model gdg?
Reply with quote

Hi Kiran,

you mention the LRECL has changed from 3353 to 4259 but there is no mention whether the record layout has changed in the first 3353 bytes.


If this is the case, you are going to have problems with your programs if you try to concatenate data.


Gerry
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Nov 23, 2007 7:54 am    Post subject:
Reply with quote

expat, but even without a model, there is still a GDG base concept
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Nov 24, 2007 3:02 am    Post subject:
Reply with quote

Stodolas,

Yeah, silly me, fancy paying attention to the title of the thread and making rash assumptions. Now where did I put those birch twigs ??? icon_rolleyes.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sat Nov 24, 2007 4:44 am    Post subject:
Reply with quote

Crap it does say model, not base, whoops, I never had to deal with the model, our storage people deleted them all.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Nov 24, 2007 2:28 pm    Post subject:
Reply with quote

In the dark ages before SMS all GDG's had to have a referemce to a dummy or model GDG, depending on the method used at any particular site.

The dummy or model was just that a reference, and each individual sub parameter could be over written like this

DCB=(modeldscb,RECFM=??,LRECL=????,BLKSIZE=?????)


but now it is so much easier

RECFM=??,LRECL=????
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts Change Data Capture Ron Klop DFSORT/ICETOOL 14 Fri Apr 15, 2016 2:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us