Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us