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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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