Need Suggestions on tool creation.



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Need Suggestions on tool creation.

Postby Viswanathchandru » Tue Jul 30, 2013 3:45 am

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.
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time

Re: Need Suggestions on tool creation.

Postby dick scherrer » Wed Jul 31, 2013 12:11 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Need Suggestions on tool creation.

Postby Peter_Mann » Wed Jul 31, 2013 11:59 pm

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       
Peter
Peter_Mann
 
Posts: 145
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 15 times
Been thanked: 3 times

Re: Need Suggestions on tool creation.

Postby Pedro » Thu Aug 01, 2013 2:06 am

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.
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: Need Suggestions on tool creation.

Postby Peter_Mann » Thu Aug 01, 2013 8:02 pm

I would suspect if this is how the OP wants to process the DSLIST, DIcks suggestion would make more sense.
Thanks
Peter
Peter_Mann
 
Posts: 145
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 15 times
Been thanked: 3 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post