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

Command Line in DSLIST


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 792
Location: Pennsylvania

PostPosted: Mon Mar 14, 2011 5:42 pm
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: 2358
Location: Israel

PostPosted: Mon Mar 14, 2011 5:52 pm
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: 792
Location: Pennsylvania

PostPosted: Mon Mar 14, 2011 5:58 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top