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
 
Command Line in DSLIST

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Mon Mar 14, 2011 5:12 pm    Post subject: Command Line in DSLIST
Reply with quote

Hi all,

I am trying to execute a piece of REXX code in a DSLIST. For example let us assume the REXX module name is MYT. When I run it against a member name as mentioned below, I wish to get the DSN name against which I run it (MYPROJ.DEV.SOURCE2 in this case).

I tried to get the Dataset Name as done in Edit Macro. But without any success. I assume that this should not be executed as a Edit Macro.

How can I get the Data Set Name? Thanks in advance.

Code:
  Menu  Options  View  Utilities  Compilers  Help
  ------------------------------------------------------------------------------
  DSLIST - Data Sets Matching MYPROJ                                 Row 1 of 12

  Command - Enter "/" to select action                  Message           Volume
  -------------------------------------------------------------------------------
           MYPROJ                                                         *ALIAS
           MYPROJ.DEV.LOAD                                                MVS8WF
           MYPROJ.DEV.PANELS                                              MVS8WJ
           MYPROJ.DEV.SOURCE                                              MVS8WF
  MYT      MYPROJ.DEV.SOURCE2                                             MVS8WH+
           MYPROJ.DEV.SOURCE3                                             MVS8WP
           MYPROJ.PROD.LOAD                                               MVS8WG
           MYPROJ.PROD.PANELS                                             MVS8WI
           MYPROJ.PROD.SOURCE                                             MVS8WG
           MYPROJ.TEST.LOAD                                               MVS8WD
           MYPROJ.TEST.PANELS                                             MVS8WK
           MYPROJ.TEST.SOURCE                                             MV8W07
  ***************************** End of Data Set list ****************************

  Command ===>                                                  Scroll ===> PAGE
   F1=Help    F2=Split   F3=Exit    F5=Rfind   F7=Up      F8=Down    F9=Swap
Back to top
View user's profile Send private message

daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 684
Location: Pennsylvania

PostPosted: Mon Mar 14, 2011 5:42 pm    Post subject:
Reply with quote

If I am not mistaken, when you invoke a Rexx Exec or Edit Macro against as DSLIST as shown above, the dataset name is passed as in input argument.

So add the line of code: ARG PARM1

The dataset name will be found in variable PARM1
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Mar 14, 2011 5:52 pm    Post subject:
Reply with quote

daveporcelan,

You are not mistaken. I think, however, that the o/p is asking about running an exec against a member, not dataset ...

O.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 684
Location: Pennsylvania

PostPosted: Mon Mar 14, 2011 5:58 pm    Post subject:
Reply with quote

Ofer71,

I was a little confused by him showing a dataset list, but talking about a member.

I chalked that up to the typical lack of attention to detail.

In either event, the dataset or member is passed in as an input argument either way.
Back to top
View user's profile Send private message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Mon Mar 14, 2011 7:17 pm    Post subject:
Reply with quote

Hi all,

Thanks for all your quick help.

I just added an argument as you have suggested and is working like a charm.

Thanks a lot again.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am

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