View previous topic :: View next topic
|
Author |
Message |
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What happened when you tried ? |
|
Back to top |
|
|
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
The output file is creating but as sequential file not as a VSAM file. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
Expat: Could be clear I couldn't get u or else can u share ur code |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Quote: |
...I couldn't get u or else can u share ur code |
Please refrain from using "chat speak". |
|
Back to top |
|
|
ch.prashant
New User
Joined: 16 Sep 2006 Posts: 27 Location: Hyderabad
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yes, most of us are zOS users so our solutions are biased usually. |
|
Back to top |
|
|
|