IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to change recordlength latest gdg version or datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Mar 11, 2013 2:27 pm
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: 2455
Location: Hampshire, UK

PostPosted: Mon Mar 11, 2013 6:14 pm
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

Superior Member


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

PostPosted: Mon Mar 11, 2013 8:03 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Mar 12, 2013 3:58 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Mar 12, 2013 4:28 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Mar 12, 2013 4:49 pm
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Mar 12, 2013 8:32 pm
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
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

Superior Member


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

PostPosted: Wed Mar 13, 2013 1:05 pm
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
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

Superior Member


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

PostPosted: Wed Mar 13, 2013 3:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top