View previous topic :: View next topic
|
Author |
Message |
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
And why CLIST/REXX? There are utilities in existence to do such things. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Line no. 15 in your JCL is in error. Moved to JCL part of the Forum. |
|
Back to top |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
I wonder why so many organization set requirements without checking if the proper skills are available |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
enrico-sorichetti wrote: |
I wonder why so many organization set requirements without checking if the proper skills are available |
Because the forums are available |
|
Back to top |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
so you guys are making fun on me ...when ask somehelp..
so nice... |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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
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 |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
rajrohith
New User
Joined: 15 Apr 2005 Posts: 54 Location: chennai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|