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: 6967
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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