View previous topic :: View next topic
|
Author |
Message |
Shashank Prasanna Modi Currently Banned New User
Joined: 28 Feb 2008 Posts: 7 Location: Mumbai
|
|
|
|
I am using the below parms to repro latest GDG backup to the new flat file
******************* Top of Data ******************************
REPRO INDATASET ('HQTSM.PROD.TS10815D.BUCKET.GDG(0)') -
OUTFILE (FILEOUT)
REPRO INDATASET ('HQTSM.PROD.TSMON15D.PABUCKET.GDG(0)') -
OUTFILE (FILEOUT)
******************* Bottom of Data ******************
It gives me the error saying as
******************* TOP OF DATA **************************
IDCAMS SYSTEM SERVICES TIME: 05:41:45
REPRO INDATASET ('HQTSM.PROD.TS10815D.BUCKET.GDG(0)') -
IDC3203I ITEM 'HQTSM.PROD.TS10815D.' DOES NOT ADHERE TO RESTRICTIONS
OUTFILE (FILEOUT)
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
REPRO INDATASET ('HQTSM.PROD.TSMON15D.PABUCKET.GDG(0)') -
IDC3203I ITEM 'HQTSM.PROD.TSMON15D.' DOES NOT ADHERE TO RESTRICTIONS
OUTFILE (FILEOUT)
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12
********************* BOTTOM OF DATA *******************
Can anyone tell how can we achieve this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Use the relative GDG gen in the JCL rather than SYSIN |
|
Back to top |
|
|
Shashank Prasanna Modi Currently Banned New User
Joined: 28 Feb 2008 Posts: 7 Location: Mumbai
|
|
|
|
Global Moderator,
I want to code such that if in future more INDATASET comes in then I don't need to change the proc again. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Shashank Prasanna Modi wrote: |
Global Moderator,
I want to code such that if in future more INDATASET comes in then I don't need to change the proc again. |
Not sure that I understand your point here ....
If the JCL contains
//ddname DD DSN=dsname(0),DISP=SHR
Then everytime that it runs it will use the latest available generation of that GDG base. |
|
Back to top |
|
|
Shashank Prasanna Modi Currently Banned New User
Joined: 28 Feb 2008 Posts: 7 Location: Mumbai
|
|
|
|
expat wrote: |
Shashank Prasanna Modi wrote: |
Global Moderator,
I want to code such that if in future more INDATASET comes in then I don't need to change the proc again. |
Not sure that I understand your point here ....
If the JCL contains
//ddname DD DSN=dsname(0),DISP=SHR
Then everytime that it runs it will use the latest available generation of that GDG base. |
Yup its work but my requirement is that I want to use REPRO only. So that if in future if more INDATASET comes in then I need to change only parm to include one more step to add INDATASET.
Is there any way through which we can refer latest GDG backup through REPRO INDATASET. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
REPRO INDATASET ('HQTSM.PROD.TSMON15D.PABUCKET.GDG(0)') -
IDC3203I ITEM 'HQTSM.PROD.TSMON15D.' DOES NOT ADHERE TO RESTRICTIONS
OUTFILE (FILEOUT)
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12 |
Is the answer to your question
If you use REXX you can have an input file with the list of DSN's to concatenate, resolve the latest generation of the GDG and copy by invoking IEBGENER or whatever. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
by grace will You tell me how different would be to change a sysin card from changing a dd statement
By the way for the task You described iebgener/icegener would be simpler and more performing
( at least ICEGENER)
Code: |
//s exec pgm=iebgener
//sysin dd dummy
//sysprint dd sysout=*
//sysut1 dd .... input dataset
//sysut2 dd .... output dataset |
simpler |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Enrico - I think the OP wants to only update a parameter list to add more input files to a concatenation.
Had they have searched the forum for the problem they would have found that the answer is a big fat NO using IDCAMS and relative generation numbers.
Hence the REXX suggestion, or yours for using xxxGENER.
Hey - Why change a JCL when you can change something else ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
since the O/P is speaking about gdg' s there is noooo way he can escape from using jcl...
also if he is using a disp=mod just concatenating the inputs would be simpler |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I know that, but that is a JCL change
P.S. I think I will be in Verona 5th & 6th July |
|
Back to top |
|
|
|