View previous topic :: View next topic
|
Author |
Message |
aravindunlimited
New User
Joined: 08 May 2006 Posts: 16
|
|
|
|
I want to write a job to copy data from one QSAM file to a new file. I can give the DISP=NEW and all that, but I want to make it generic so that while copying the file parameters are picked up from a model file(input file in this case).
Long back a friend had told me about some parameter that does that. If anybody knows how to do that, could you please help?
Thanks
Aravind |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Code: |
I can give the DISP=NEW and all that |
What is all that?
Your question is not at all clear..
Are you trying to look for refer back? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Perhaps you are thinking of referback:
Code: |
//GEN EXEC PGM=ICEGENER
//*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=input.dataset
//SYSUT2 DD DISP=(,CATLG),DSN=output.dataset,
// DCB=*.SYSUT1,SPACE=(CYL,(??,?),RLSE)
//SYSIN DD DUMMY |
This will take the DCB info from the input dataset.
Also, you might look into using SYS1.MODELDCB ?
Garry. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or have you read the JCL manual for the LIKE parameter |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If all you want is a new PS file with the same dcb addtibutes as the original file, simply copy the file using your sort product. The new file will have the same attributes as the original with nothing needed in the jcl. . .
Maybe there is something i've missed . . . |
|
Back to top |
|
|
|