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



IBM's Command List programming language & Restructured Extended Executor

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

Postby Jish123 » Sat Jan 12, 2013 12:18 pm

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....
Jish123
 
Posts: 3
Joined: Sat Jan 12, 2013 10:28 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby enrico-sorichetti » Sat Jan 12, 2013 4:17 pm

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.
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

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

Postby Jish123 » Sat Jan 12, 2013 5:58 pm

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.
Jish123
 
Posts: 3
Joined: Sat Jan 12, 2013 10:28 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby enrico-sorichetti » Sat Jan 12, 2013 6:08 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

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

Postby steve-myers » Sun Jan 13, 2013 10:02 am

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'.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

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

Postby Pedro » Tue Jan 15, 2013 4:49 am

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.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

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

Postby Jish123 » Tue Jan 15, 2013 5:30 pm

Thank u so much :) Its working for me :)
Jish123
 
Posts: 3
Joined: Sat Jan 12, 2013 10:28 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby enrico-sorichetti » Tue Jan 15, 2013 7:13 pm

if You are happy... we are happy !

but frankly You did not explain at all what You were trying to do :mrgreen:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post