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
 

 

getting the dataset name through Parse source

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
smoningi

New User


Joined: 14 Jul 2011
Posts: 8
Location: Hyderabad, INDIA

PostPosted: Tue Aug 02, 2011 12:20 pm    Post subject: getting the dataset name through Parse source
Reply with quote

Hi,
I want to get the dataset name from which the my rexx program is being executed. I have used Parse Source command.
Code:
PARSE SOURCE A B C D E F

When I am executing my rexx program directly from the dataset, I am getting the dataset name into E variable.
Quote:
TSO COMMAND EXAMPLE1 SYS00105 DEVSXM2.CLIST.TEST ? TSO ISPF ?

But When I am executing my rexx program as a TSO command like "TSO program name", I am getting the E variable as ?.
Quote:
TSO COMMAND EXAMPLE1 SYSEXEC ? ? TSO ISPF ?


So, is there any other way to get the dataset name in the second case?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Aug 02, 2011 1:28 pm    Post subject:
Reply with quote

Learn to use the search facilities:
PARSE SOURCE and identifying the EXEC dataset.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts XML Parse for large file muralikrishnan_new COBOL Programming 3 Mon Jun 12, 2017 12:50 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm


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