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

How to Get the PS File name


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

New User


Joined: 29 May 2007
Posts: 22
Location: Pune

PostPosted: Tue Jan 12, 2010 7:25 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 12, 2010 8:57 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Jan 13, 2010 1:18 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 13, 2010 2:43 am
Reply with quote

Also, please remember that most IDCAMS opreations can be specified with DDNAME, not just DSNAME.

O.
Back to top
View user's profile Send private message
nemaji

New User


Joined: 29 May 2007
Posts: 22
Location: Pune

PostPosted: Wed Jan 13, 2010 7:07 pm
Reply with quote

Thanks a lot Peter,expat,Dick,MBabu,ofer71,Bill ..

I have got this issue resolved.. Thanks 4 your help..
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 13, 2010 7:30 pm
Reply with quote

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
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts how to eliminate null indicator value... DB2 7
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
Search our Forums:

Back to Top