View previous topic :: View next topic
|
Author |
Message |
nemaji
New User
Joined: 29 May 2007 Posts: 22 Location: Pune
|
|
|
|
I have also triedf all the ways to Pass this Infile to Natural (Using PARM, STACK) but i am unable to do this. So, thought of other options like, can get the Infile name captured within the JCL (In just prior step to my natural) so that i could copy that to an Work File and then i can read the work file from natural in the next step and get this Infile value there. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can invoke LISTALC directly from within Natural (Using the TSO example in the supplied example library).
If you decide to retrieve the dataset name in a separate step (prior to Natural), you can later pass the value using work file.
BTW - from my experience, Natural won't be the first choice for HUGE file processing, simply because it is interpreted. SORT would do a much quicker job.
O. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
How about making the DSN be a symbolic and STEP5 can receive it as a PARM rather than read a file?
Code: |
//MYNAME SET DSNAME3=MY.DATASET.NAME
//STEP03 EXEC PGM=Whatever
//DDNAME DD DSN=&dsname3,DISP=(,CATLG,DELETE),
// ...... etc etc
//STEP05 EXEC PGM=Whatever2,PARM='&dsname3' |
|
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Also, please remember that most IDCAMS opreations can be specified with DDNAME, not just DSNAME.
O. |
|
Back to top |
|
|
nemaji
New User
Joined: 29 May 2007 Posts: 22 Location: Pune
|
|
|
|
Thanks a lot Peter,expat,Dick,MBabu,ofer71,Bill ..
I have got this issue resolved.. Thanks 4 your help.. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Well it would be nice to tell us your solution.
Everybody wants to know of course if his/her input was part of it. |
|
Back to top |
|
|
|