Page 1 of 1

rexx tool to select a particular dataset, against which a va

PostPosted: Sat Jan 12, 2013 12:18 pm
by Jish123
Hi, I am new to rexx.... I'm in need of a tool that would retrieve a particular dataset name from a list of datasets, against which a variable "dsn" was entered... I initially thought of making use of macro to retrieve row information and then parsing it... but i got a msg saying "command invalid".. It would be great if somebody could help me on this tool... thanks in advance....

Re: rexx tool to select a particular dataset, against which

PostPosted: Sat Jan 12, 2013 4:17 pm
by enrico-sorichetti
Somebody might be happy to reply,
unfortunately the description of Your requirement, while clear to You,
is pretty confusing for everybody else

are You perchance looking for something like the ZOOM edit macro

if so You can download it here

FILE 671 of the CBT Tape.

Re: rexx tool to select a particular dataset, against which

PostPosted: Sat Jan 12, 2013 5:58 pm
by Jish123
I'm sorry for confusing... My requirement is, when we go to ISPF option 3.4, out of all those datasets that gets displayed, I need to retrieve the dataset name against which i had entered a command called "dsn" infront of it. (Just like, we enter F1 infront of the dataset, to browse it in file-aid. I'm aware of ZOOMIN tool.. But it was not functioning in 3.4 option.

Re: rexx tool to select a particular dataset, against which

PostPosted: Sat Jan 12, 2013 6:08 pm
by enrico-sorichetti
just adding confusion

You are in ISPF 3.4 with a list of dataset names OK ..

in fornt of a dataset You enter dsn ( an in house utility probably ) OK

after that what is that You expect ?

is this that You are looking for ?
clist-rexx/topic6830.html?hilit=parse

Re: rexx tool to select a particular dataset, against which

PostPosted: Sun Jan 13, 2013 10:02 am
by steve-myers
When you enter

command

in an ISPF 3.4 list, unless the command is an ISPF defined function, ISPF invokes command as though it was entered at the TSO READY prompt. The command can be a TSO line mode command or a CLIST or Rexx EXEC in the SYSPROC or SYSEXEC data sets.

The command is entered as though

command 'data set name'

was entered at the READY prompt. You can enter additional command parameters to the right of the data set name in the 3.4 list, and ISPF will send them, unchanged, to the command.

Finally, you can replace the data set name in the ISPF 3,4 list with a /, and ISPF will replace the / with 'data set name'.

Re: rexx tool to select a particular dataset, against which

PostPosted: Tue Jan 15, 2013 4:49 am
by Pedro
Search ISPF User's Guide Vol II for 'Table 9. TSO command/CLIST/REXX exec variables (output)'. It has a list of variable names that you can get from the SHARED pool. Besides the dataset name (&ZDLDSN), you can also get other information, such as the DSORG, VOLID, etc...

I should add that the first choice is to get the dataset name as a parameter as Steve described. It allows your rexx program work in other environments, such as ISPF option 6.

Re: rexx tool to select a particular dataset, against which

PostPosted: Tue Jan 15, 2013 5:30 pm
by Jish123
Thank u so much :) Its working for me :)

Re: rexx tool to select a particular dataset, against which

PostPosted: Tue Jan 15, 2013 7:13 pm
by enrico-sorichetti
if You are happy... we are happy !

but frankly You did not explain at all what You were trying to do :mrgreen: