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
 

 

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: 662
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: 662
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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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