Page 1 of 1

Need Suggestions on tool creation.

PostPosted: Tue Jul 30, 2013 3:45 am
by Viswanathchandru
Dear all,

I'm trying to write code with the following requirement. After giving the HLQ name in ISPF 3.4 we will get the list of ds in the ISPF screen as below.

 Command - Enter "/" to select action                  Message           Volume
 -------------------------------------------------------------------------------
          SYS3122.ESABLUE.JUNE1.DATA                                     XRA222
 SS       SYS3122.ESDS.CLUSTER.DATA                                      XRA222
          SYS3122.ESDS.CLUSTER.DATA1.DATA                                XRA201
          SYS3122.ESDS.CLUSTER.DATA1.INDEX                               XRA201
          SYS3122.ESDS.CLUSTER.DATA2                                     XRA222
          SYS3122.ESDS.CLUSTER.INDEX                                     XRA222
 SS       SYS3122.ESDS.CLUSTER1                                          XRA211

What i'm trying here is, when I give SS in the command option as specified above it should take the list of all the datasets till the next SS in the command line(Kind of block command functionality. Hope I have made it clear. If not please let me know. Any idea, logic to get this work done.? Any suggestions will be really helpful.

Re: Need Suggestions on tool creation.

PostPosted: Wed Jul 31, 2013 12:11 am
by dick scherrer
Hello,

If you explain what you are actually wanting to do, someone may have a suggestion.What/how should this be "taken"? You may need to design a new screen/panel, populate it with a dslist of your own, and then do whatever process against the list.

I do not understand your goal.

Re: Need Suggestions on tool creation.

PostPosted: Wed Jul 31, 2013 11:59 pm
by Peter_Mann
Viswanathchandru wrote:Dear all,

I'm trying to write code with the following requirement. After giving the HLQ name in ISPF 3.4 we will get the list of ds in the ISPF screen as below.

 Command - Enter "/" to select action                  Message           Volume
 -------------------------------------------------------------------------------
          SYS3122.ESABLUE.JUNE1.DATA                                     XRA222
 SS       SYS3122.ESDS.CLUSTER.DATA                                      XRA222
          SYS3122.ESDS.CLUSTER.DATA1.DATA                                XRA201
          SYS3122.ESDS.CLUSTER.DATA1.INDEX                               XRA201
          SYS3122.ESDS.CLUSTER.DATA2                                     XRA222
          SYS3122.ESDS.CLUSTER.INDEX                                     XRA222
 SS       SYS3122.ESDS.CLUSTER1                                          XRA211

What i'm trying here is, when I give SS in the command option as specified above it should take the list of all the datasets till the next SS in the command line(Kind of block command functionality. Hope I have made it clear. If not please let me know. Any idea, logic to get this work done.? Any suggestions will be really helpful.


there's already a block command funtion for DSLIST, so if 'SS' is a program / clist / or Rexx exec a block command //ss - // should work, if I understand the requirement
 TUTORIAL ----------- DISPLAYED LIST - BLOCK COMMANDS ----------------- TUTORIAL
 OPTION  ===>                                                                   
                                                                    More:     +
   Block Commands are used to repeat a line command for several rows.           
                                                                               
   The block is marked, by typing a // at  the start and another // at         
   the end of a block of rows. The line command has to follow the //           
   immediately on the first or last row of the block. A Block command           
   can not be entered on an excluded line.                                     
                                                                               
   Several blocks of commands can be entered at the same time, but only         
   serially. Block commands can not be nested.                                 
                                                                               
   Single line commands are not allowed within a block command.                 
                                                                               
   All line commands, including TSO commands, Clists and REXX execs can         
   be executed as block commands.                                               
                                                                               
   When the DSLIST settings option Execute Block Commands for excluded         
   data sets is selected, all applicable excluded rows will be unexcluded       
   before the block commands are executed.                                     
                                                                               
 Example:                                                                       
 Command - Enter "/" to select action                  Tracks  Used XT  Device 
 ------------------------------------------------------------------------------
 //b      ISPFDEVL.DEF.OBJ                                 50   63   2  3380   
          -  -  -  -  -  -  -  -  -  -  -  -        1 data set(s) not displayed
 //       ISPFDEVL.E11.TEST                                20  100   9  3380   
                                                                               
 Depending on the DSLIST setting, the Browse command is either executed for     
 the two data sets displayed in the list, or the excluded data set will         
 be unexcluded first, before the Browse command is executed for all three       

Re: Need Suggestions on tool creation.

PostPosted: Thu Aug 01, 2013 2:06 am
by Pedro
The block line command should work well if you are processing each data set name, one at a time.

it is not so easy if you want to gather up the names and processes them all at once. Perhaps use SS to gather the names then use a different command to start the processing.

Re: Need Suggestions on tool creation.

PostPosted: Thu Aug 01, 2013 8:02 pm
by Peter_Mann
I would suspect if this is how the OP wants to process the DSLIST, DIcks suggestion would make more sense.
Thanks