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

getting the dataset name through Parse source


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 6966
Location: porcelain throne

PostPosted: Tue Aug 02, 2011 1:28 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top