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
 

 

Like parameter in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Like parameter in JCL
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 22, 2009 6:58 pm    Post subject:
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    Post subject: Reply to: Like parameter in JCL
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 22, 2009 7:06 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Sep 22, 2009 7:15 pm    Post subject: Re: Like parameter in JCL
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    Post subject: Reply to: Like parameter in JCL
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: 1239
Location: Richfield, MN, USA

PostPosted: Tue Sep 22, 2009 11:52 pm    Post subject:
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    Post subject: Reply to: Like parameter in JCL
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

Senior Member


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

PostPosted: Wed Sep 23, 2009 11:44 am    Post subject:
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    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 DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


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