Is it possible to execute a REXX code as a DSLIST command?
I need to map a REXX code to some character and use it like a DSLIST command. Similar to command 'I' for information or 'M' to see member list, I need to execute my REXX code when some character Y or T is provided against the DSN.
How can this be done? Please suggest.
Invoking REXX code from DSLIST
-
- Posts: 19
- Joined: Thu Sep 21, 2017 11:58 am
- Skillset: COBOL, REXX, CICS
- Referer: found myself
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Invoking REXX code from DSLIST
Is it possible to execute a REXX code as a DSLIST command?
Sure, a string in the line command area which is not a recognized DSLIST command is assumed to be a pgm name, which is then called.
So either name your REXX pgm Y or T, or write two REXX pgms Y and T who will call your 'real' programs, passing parameters.
-
- Posts: 19
- Joined: Thu Sep 21, 2017 11:58 am
- Skillset: COBOL, REXX, CICS
- Referer: found myself
Re: Invoking REXX code from DSLIST
Thank you so much Willy. It worked. I could also get the DSN as input to my REXX code using 'ARG PARM1' statement.
It was such a simple solution. Thanks a lot.
It was such a simple solution. Thanks a lot.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 3
- 2697
-
by enrico-sorichetti
View the latest post
Thu Aug 27, 2020 6:20 pm
-
-
REXX Code to find if PDS JCL member has how many DD
by abhilashanaik » Tue Sep 14, 2021 11:17 am » in CLIST & REXX - 5
- 2300
-
by sergeyken
View the latest post
Wed Sep 15, 2021 6:02 am
-
-
-
Code conversion issue while reading JCL using REXX
by vsgurunath » Fri Jun 19, 2020 10:19 pm » in CLIST & REXX - 11
- 4352
-
by vsgurunath
View the latest post
Thu Jun 25, 2020 4:08 pm
-
-
-
Error invoking java method (array) IGZ0045S
by JgbCobol » Mon Nov 07, 2022 3:54 pm » in Mainframe Java - 2
- 5562
-
by JgbCobol
View the latest post
Tue Nov 08, 2022 12:32 pm
-
-
- 0
- 3157
-
by enrico-sorichetti
View the latest post
Fri Apr 01, 2022 6:00 pm