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: 6966
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


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