Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us