View previous topic :: View next topic
|
Author |
Message |
purusothaman
New User
Joined: 17 Feb 2007 Posts: 39 Location: Chennai
|
|
|
|
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 |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
purusothaman
New User
Joined: 17 Feb 2007 Posts: 39 Location: Chennai
|
|
|
|
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 |
|
|
|