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

File parameters picked up from a model file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aravindunlimited

New User


Joined: 08 May 2006
Posts: 16

PostPosted: Tue Jul 26, 2011 5:47 pm
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Jul 26, 2011 6:17 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Jul 26, 2011 6:21 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 26, 2011 6:28 pm
Reply with quote

Or have you read the JCL manual for the LIKE parameter
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 26, 2011 9:06 pm
Reply with quote

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
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top