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
 

 

how to change recordlength latest gdg version or datasets

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

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Mon Mar 11, 2013 1:14 pm    Post subject: how to change recordlength latest gdg version or datasets
Reply with quote

Hi,
i have requirement like
i have production dataset have LRECL is 47
but have capture dataset have LRCEL is 38 which is creating wrong length when i load the data
if the LRECL in JCLs are in sync with the production LRECL’s
have to change those dataset with correct record length..

can anybody help to achieve this..

please give sample code

Thanks in advance,
Raj
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Mon Mar 11, 2013 2:27 pm    Post subject: Reply to: how to change recordlength latest gdg version or d
Reply with quote

It's not quite clear what you are saying.

You have an FB 38 which you want to copy into an FB 47 because that is what the GDG is defined as?

Why is it now 38? Will it always be 38 now? Will it sometimes be 38? Will it never be 38 again?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1713
Location: UK

PostPosted: Mon Mar 11, 2013 6:14 pm    Post subject:
Reply with quote

And why CLIST/REXX? There are utilities in existence to do such things.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 11, 2013 8:03 pm    Post subject:
Reply with quote

Line no. 15 in your JCL is in error. Moved to JCL part of the Forum.
Back to top
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Tue Mar 12, 2013 12:51 pm    Post subject:
Reply with quote

i have requirement huge number of datasets(gdg and ps) to change recordlength and blocksize by using rexx before load some data . if i get some sample rexxcode or some sample jcls..
it would be great helpful to me..

thanks in advance.
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: Tue Mar 12, 2013 3:58 pm    Post subject:
Reply with quote

Please show us what you have researched and tried yourself before asking for code.

You are getting paid to do this, WE are not
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Mar 12, 2013 4:28 pm    Post subject: Reply to: how to change recordlength latest gdg version or d
Reply with quote

I wonder why so many organization set requirements without checking if the proper skills are available icon_cool.gif
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: Tue Mar 12, 2013 4:49 pm    Post subject: Re: Reply to: how to change recordlength latest gdg version
Reply with quote

enrico-sorichetti wrote:
I wonder why so many organization set requirements without checking if the proper skills are available icon_cool.gif
Because the forums are available icon_wink.gif
Back to top
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Tue Mar 12, 2013 8:19 pm    Post subject:
Reply with quote

so you guys are making fun on me ...when ask somehelp..


so nice...
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Tue Mar 12, 2013 8:27 pm    Post subject:
Reply with quote

rajrohith wrote:
so you guys are making fun...when ask help..

so nice...
You have not answered to any of the questions asked by the experts ... Please answer them and you will find the "necessary" help...
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Mar 12, 2013 8:32 pm    Post subject: Reply to: how to change recordlength latest gdg version or d
Reply with quote

the description of the requirement is very poor

1) You have an input file with LRECL XX
2) You must write an output file with lrecl YY

if YY > XX find how the extra bytes must be filled
if YY < XX find wich columns must be eliminated

write the appropriate control cards for the utility of Your choice
( for dfsort read the manuals about INREC,OUTREC,BUILD )

repeat for all the files to be converted

after that You might think about a way of producing the JCL for a MASS conversion

and as far REXX is concerned ... what is Your REXX skill,
show what You have done and somebody will be happy to help


until now UNFORTUNATELY You have done very little to be helped

icon_cool.gif

I strongly suggest You to change Your profile info, this is a professional forum,
posting as mainframe skill photography is pretty childish
and prone to solicit for nasty comments
Back to top
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Wed Mar 13, 2013 9:34 am    Post subject:
Reply with quote

thanks for your valuable answer...
as i am very new in REXX.. not able to explain more detaily..
as u said, i will try and let you know

thanks,
raj
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Mar 13, 2013 1:05 pm    Post subject:
Reply with quote

Quote:
how to change recordlength latest gdg version or datasets
Per the subject line, for GDGs - you should not be bothered about changing the LRECL using some "special mechanism", whenever you create the new generation (not version) just code the LRECL of your choice, you'll get it. Said that, you need to make sure that that GDG-base-in-question is not being used in any of the downstream Jobs/application; in case it is being used, hopefully, you already have the amendment in place to deal with different LRECLs.
Back to top
View user's profile Send private message
rajrohith

New User


Joined: 15 Apr 2005
Posts: 54
Location: chennai

PostPosted: Wed Mar 13, 2013 2:22 pm    Post subject:
Reply with quote

thanks for your reply..

my gdg was already created when capturing the production data.. point is, all changed gdg version is getting error after long run due to record length mismatch,while load the data into testing environment.. thatsthe reason, i have posted my question for changing recordlenth in single shot by using rexx..

now i am very clear..
as per Enrico sugguestion , i am trying to compare both production and captured gdg version by using sort utility .. thenwill change record length..

my sincere appoligies for not given more detaily my question..

thanks,
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Mar 13, 2013 3:31 pm    Post subject:
Reply with quote

Okay, unfortunately what you've suggested as a working solution for you does not make much sense at this end - however, if it works for you - all is well. And it's "Generations" not "Versions".

Good Luck!
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 COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
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 Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm
No new posts Syncsort version supporting FINDREP c... juares castro SYNCSORT 9 Tue Aug 09, 2016 6:54 pm


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