Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File parameters picked up from a model file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: File parameters picked up from a model file
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Jul 26, 2011 6:21 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 26, 2011 6:28 pm    Post subject:
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

Site Director


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

PostPosted: Tue Jul 26, 2011 9:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us