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

Like parameter in JCL


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

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Tue Sep 22, 2009 6:57 pm
Reply with quote

Can we use like syntax for using the attributes of a VSAM file?

my code
//JS0020 EXEC PGM=IDCAMS
//INFILE DD DUMMY
//OUTFILE DD DSN=ECSA30T.CFAS.&USERID..DETLMAST,
// DISP=(NEW,CATLG,DELETE),
// LIKE=ECSA30T.CFAS.ECF901T.DETLMAS1
//SYSPRINT DD SYSOUT=*
//SYSIN DD DSN=ECFAPST.PROD.CNTLLIB(REPRO),DISP=SHR
//**

where ECSA30T.CFAS.ECF901T.DETLMAS1 is a VSAM file.I am using this way as to handle the symbolic parameters in the job or else i would have directly defined in sysin card.

Thanks,
Prashant
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Sep 22, 2009 6:58 pm
Reply with quote

What happened when you tried ?
Back to top
View user's profile Send private message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Tue Sep 22, 2009 7:00 pm
Reply with quote

The output file is creating but as sequential file not as a VSAM file.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Sep 22, 2009 7:06 pm
Reply with quote

And I assume that you modelled the new file on a VSAM file, because I just tried it with a KSDS and it worked OK.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Sep 22, 2009 7:15 pm
Reply with quote

ch.prashant wrote:
I am using this way as to handle the symbolic parameters in the job or else i would have directly defined in sysin card.


I always thought that any VSAM dataset can also be fully defined just using the proper DD statement parameters.
Back to top
View user's profile Send private message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Tue Sep 22, 2009 11:00 pm
Reply with quote

Expat: Could be clear I couldn't get u or else can u share ur code
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Sep 22, 2009 11:52 pm
Reply with quote

Quote:
...I couldn't get u or else can u share ur code
Please refrain from using "chat speak".
Back to top
View user's profile Send private message
ch.prashant

New User


Joined: 16 Sep 2006
Posts: 27
Location: Hyderabad

PostPosted: Wed Sep 23, 2009 11:19 am
Reply with quote

Sorry I tried in Microfocus environment it is not working there ya it is working in mainframe environment.

Thanks for your help.

Prashant
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Sep 23, 2009 11:44 am
Reply with quote

Yes, most of us are zOS users so our solutions are biased usually.
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top