PDS or STARTOOL Usage

The PDS package (free from CBT file 182) and Serena's STARTOOL product were 
mentioned earlier.  Here's a note about their syntax.

The TSO command  PDS  pdsname  REPL  :  !stringA!stringB!  WRITE  is all you 
need.  As a TSO command it is easy to put in a batch job.  [Use the STARTOOL 
command instead of PDS if you have the Serena product.]

The  !  character is a delimiter.  It can be any character that is not in 
either of the strings.
People often use  /  as the delimiter, but avoid  /  if using it as a line 
command in ISPF option 3.4 since / of course substitutes to the dataset name in 
the ISPF 3.4 dataset list.

Omit the  WRITE  keyword to get a simulated replacement run without any actual 
updates.

PDS  pdsname  FIND  :  !stringA!   is the command to do a FIND across the PDS 
(useful prior to REPLacement).

Interactively you can use the   "PDS pdsname"   TSO command to get into PDS (or 
STARTOOL) and then use the REPL or FIND subcommands from there.  From within 
ISPF you get nice panels showing the member list.  From true READY mode you get 
the TSO line mode experience.

The colon character  :  specifies ALL members.  You can instead specify a 
subset of members such as  ABC:DEF (all members beginning with ABC through to 
those beginning with DEF) or throw some * wildcards into the mix.


Edit Macro Across All Members

Edit Macros were also mentioned earlier in the thread as an alternative.  
Consider the ISPF sample edit macro ISRMBRS which is both documented and 
shipped with ISPF.  Mainly for interactive use.  If you edit a non-existent 
member in your PDS, for example TEMPXYZ, and then invoke the edit macro as  
ISRMBRS MYMACRO  then your edit macro MYMACRO will be applied to every member 
(except the member you are editing from).  However, make sure your edit macro 
has the ISPF 'END' command in it, or you will be pressing PF3 for every member.

Hope that helps, dap

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to