./ ADD NAME=$COMPAR1 This utility is used to identify which dataset in an ensuing dataset compare is the "OLD" dataset (as opposed to the "NEW" dataset). It is specifically designed to be used with ISPF option 3.4 (DATA SET LIST UTILITY). Just type $COMPAR1 next to the OLD dataset name and press ENTER. To execute the compare, then type $COMPAR2 next to the "NEW" dataset on the "3.4" listing and press ENTER. ./ ADD NAME=$COMPAR2 This utility works in conjunction with the $COMPAR1 utility (which specifies) the "OLD" dataset to compare 2 datasets that are listed on the ISPF option 3.4 screen (DATA SET LIST UTILITY). Just type $COMPAR2 on the line of the dataset that is the "NEW" dataset to be compared and press ENTER. You will be taken to the SUPERC compare utility screen. The "OLD" dataset will be the dataset set by the $COMPAR1 utility, and the "NEW" dataset will be the data set that $COMPAR2 was typed next to. ./ ADD NAME=$F $F can be placed in front of a dataset name on the ISPF 3.4 screen (a.k.a. DSLIST) and when you press , you will be taken into File-Aid with that dataset having been "pre-populated" in the various "Dataset Name ===>" fields throughout File-Aid. ./ ADD NAME=$FB When you place $FB in front of a dataset name on the ISPF DSLIST screen (a.k.a. ISPF option 3.4) and press , you will be taken directly into File-Aid Browse and the dataset name will already be "pre-populated" in the "Dataset Name ===>" field. See "$F" for more information. ./ ADD NAME=$FE When you place $FE in front of a dataset name on the ISPF DSLIST screen (a.k.a. ISPF option 3.4) and press , you will be taken directly into File-Aid Edit and the dataset name will already be "pre-populated" in the "Dataset Name ===>" field. See "$F" for more information. ./ ADD NAME=$LC $LC is an alias of $LISTCAT ./ ADD NAME=$LIBCLN1 $LIBCLN1 is a utility designed for the ISPF "3.4" list screen. Typing $libcln1 next to a dataset on this screen will "preset" the "OLD" dataset name for the LIBCLEAN utility. See the documentation on the LIBCLEAN utility for further information. ./ ADD NAME=$LIBCLN2 $LIBCLN2 is a utility designed for the ISPF "3.4" list screen. Typing $libcln2 next to a dataset on this screen will "preset" the "NEW" dataset name for the LIBCLEAN utility. It then invokes the LIBCLEAN utility. See the documentation on the LIBCLEAN utility for further information. ./ ADD NAME=$LISTCAT The $LISTCAT utility takes input of a dataset name, issues a LISTCAT against it, places the results in an ouput file, and takes the user into an edit on that output file. $LISTCAT is designed specifically for the ISPF/PDF DSLIST screen (option 3.4). You type "$LISTCAT" next to a dataset name on the 3.4 screen and press . $LISTCAT then performs the LISTCAT on the dataset and takes you into the results file. ./ ADD NAME=$NOARC *** DUMMY RECORD *** KEEP FOR "NOARC" PROCESSING *** ./ ADD NAME=$P $P is an ALIAS for the "$PRINTIT" utility. See "$PRINTIT" for more information. ./ ADD NAME=$PRINTIT $PRINTIT simply calls the PRINTIT utility and passes a dataset name with it. $PRINTIT requires a dataset name as a positional parameter when you invoke it. $PRINTIT (like all the other utilities which begin "$") has been designed to work particularly well in an ISPF DSLIST screen such as ispf option 3.4. You can type $PRINTIT next to one of the dataset names in the list and that dataset name is passed to the PRINTIT utility and you are taken into the PRINTIT utility selection screen. When you exit the PRINTIT utility, you will be back on the dslist screen. You can place $PRINTIT next to more than one dataset on the list and each will be processed without interruption. "$P" exists as an alias of $PRINTIT and can be used in anyway $PRINTIT can. For more information, see the PRINTIT utility information. ./ ADD NAME=$PVBROWS $PVBROWS takes a PANVALET library as a positional parameter and invokes PANVALET's ISPF BROWSE interface with the passed PANVALET library name. It is specially designed to work with an ISPF DSLIST screen such as ISPF option 3.4. In this manner, you could be scanning a list of your project's libraries and be able to view the contents of all of the libraries without having to leave the "3.4" screen. If one of the libraries was a PANVALET library, you could type $PVBROWS next to the PANVALET library name and press ENTER. You would then be taken into the PANVALET browse library specification screen where your dataset name has been "pre-populated" on the screen. Pressing ENTER takes you into the Member Selection List Criteria screen. Pressing ENTER again brings up the member list. If you specify a member name when invoking $PVBROWS, you will bypass the Member Selection List Criteria screen. On a DSLIST screen this can be done by typing "$PVBROWS /(membername)" and pressing ENTER. $PVBROWS is aliased by "$PVB", so you can use $PVB instead of $PVBROWS if you wish. ./ ADD NAME=$PVEDIT $PVEDIT takes a PANVALET library as a positional parameter and invokes PANVALET's ISPF EDIT interface with the passed PANVALET library name. It is specially designed to work with an ISPF DSLIST screen such as ISPF option 3.4. In this manner, you could be scanning a list of your project's libraries and be able to view the contents of all of the libraries without having to leave the "3.4" screen. If one of the libraries was a PANVALET library, you could type $PVEDIT next to the PANVALET library name and press ENTER. You would then be taken into the PANVALET EDIT library specification screen where your dataset name has been "pre-populated" on the screen. Pressing ENTER takes you into the Member Selection List Criteria screen. Pressing ENTER again brings up the member list. If you specify a member name when invoking $PVEDIT, you will bypass the Member Selection List Criteria screen. On a DSLIST screen this can be done by typing "$PVEDIT /(membername)" and pressing ENTER. $PVEDIT is aliased by "$PVE", so you can use $PVE instead of $PVEDIT if you wish. ./ ADD NAME=$RELGEN $RELGEN and its alias $RG take an argument of a GDG dataset including the g0000v00 number at the end. It then calls GDGGEN to determine what are all the existing generations. It returns the relative GDG generation number by vputting it into the ZDLMSG pool variable. If called from a 3.4 list screen, this will place the value in the short message area. Alternatively one could call $RELGEN from another process and retrieve the value (vget ZDLMSG) and do with it whatever they needed. ./ ADD NAME=$S $SCAN is designed to work with the ISPF 3.4 dataset list screen. You type $SCAN (or $S) next to a dataset name on the 3.4 dataset list screen and press ENTER. $SCAN then invokes the ISPF string search facility (ISPF option 3.14) and prepopulates the dataset name field(s) with the dataset found on the 3.4 screen. When you "END" (PF3/PF15) out of the string search facility, you will be returned to where you were on the 3.4 screen. ./ ADD NAME=$SCAN $SCAN is designed to work with the ISPF 3.4 dataset list screen. You type $SCAN (or $S) next to a dataset name on the 3.4 dataset list screen and press ENTER. $SCAN then invokes the ISPF string search facility (ISPF option 3.14) and prepopulates the dataset name field(s) with the dataset found on the 3.4 screen. When you "END" (PF3/PF15) out of the string search facility, you will be returned to where you were on the 3.4 screen. ./ ADD NAME=$TD $TD is an alias of $TDATE. ./ ADD NAME=$TDATE $TDATE is designed to be used specifically in the ISPF option 3.4 screen. By placing $TDATE (or the alias $TD) next to a tape dataset name on the dataset list screen and pressing enter, the create date and time of the tape dataset will be displayed. This is not an instantaneous process, as TMS must be queried to get this information, but it is fairly quick. The create date and time will placed next to the dataset name in the format of "D=yyddd T=hhmm" (24 hour clock). ./ ADD NAME=$TI $TI is an alias of $TINFO ./ ADD NAME=$TINFO The $TINFO utility is designed to work with the ISPF DSLIST (a.k.a "=3.4") screen in that you can place $tinfo next to a dataset name on the 3.4 screen, press , and it will process. $TINFO's function is to query the TMS (Tape Management Software) system and return information such as create date, create job, offsite status, etc. for a tape dataset. For instance, if you are going to submit a job to process against one of the "DAILY" tapes, you can use $TINFO to determine if the tape is onsite or offsite before you submit a job. You might also want to know the create date of one of these tapes to make sure you process against the correct one. ./ ADD NAME=$XMIT This utility transmits a dataset using the TSO TRANSMIT facility. It is specifically designed to be used on the ISPF option 3.4 screen (DATA SET LIST) UTILITY. Just type $xmit next to the dataset to be counted and press ENTER. You will be prompted for an IPC name (e.g. PLIPC3D), a TSO user id who is to receive the dataset, and whether you want to send an accompanying message with the dataset. This utility can be used outside of the ISPF 3.4 screen by typing tso $xmit 'xxx' (where xxx is the dataset to be transmitted WITHIN SINGLE QUOTES), and press ENTER. ./ ADD NAME=A This is an edit macro which allows the user to insert a line containing a given string (e.g. "XXX") after every line in which another (or the same) given string (e.g. "ZZZ") already exists. An example follows : COMMAND ===> a %%% @@ File Before : File After : 000100 abcdefg% 000100 abcdefg% 000200 %%% 000200 %%% 000300 rrr%%% 000300 @@ """""" 000400 rrr%%% """""" 000500 @@ In this example, a line with string "@@" was inserted after each line containing "%%%". If either string contains special characters (space, etc.) it should be enclosed in quotes. It is possible to add additional ISPF edit parameters that you might find using a FIND or CHANGE command. These parameters serve to limit the scope of lines which the edit macro operates against to find lines which match the "string1" criteria. These can include any valid combination of : "X/NX", column ranges, and edit labels (system or user defined, e.g. ".abc", ".zcsr", etc.) These additional parameters must be specified after "string2" and are "space delimited". "String2" may also be specified as a line or block of lines already in the file; i.e. after every line with an occurance of "string1", you may insert a line or block of lines in the file. To accomplish this, you must mark the lines with a line command of "Z" or a block line command pair of "ZZ" and "ZZ" on the first and last lines of the block of lines. You then specify the reserved string "ZLINE" instead of a "string2". The "A" edit macro also can make use of a special "counter" variable in "string2" or a marked "zline". This variable is called "XCOUNT". If the string XCOUNT is found anywhere in "string2" or a marked "zline", it will be replaced with the current incremental count of "string1" lines which have been found. Let's look at some examples of these additional features: COMMAND ===> a %%% @@ nx (processing only non-excluded lines) File Before : File After : 000100 abcdefg% 000100 abcdefg% 000200 %%% 000200 %%% - - - - - - 000300 @@ """""" 000400 rrr%%% """""" COMMAND ===> a %%% @xcount@ (using XCOUNT in "string2") File Before : File After : 000100 abcdefg% 000100 abcdefg% 000200 %%% 000200 %%% 000300 rrr%%% 000300 @1@ """""" 000400 rrr%%% """""" 000500 @2@ COMMAND ===> a %%% zline .a .b (using XCOUNT, blocked zlines, File Before : File After : edit labels) zz0100 1xcount 000100 1xcount 000200 22 000200 22 zz0300 333 000300 333 .a0400 wwwds 000400 wwwds 000500 %%% xxx 000500 %%% xxx 000600 abcdefg% 000100 11 000700 %%% 000200 22 .b0800 rrr%%% 000300 333 """""" 000400 abcdefg% """""" 000500 %%% 000100 12 000200 22 000300 333 000500 rrr%%% 000100 13 000200 22 000300 333 ./ ADD NAME=ABENDLOG This utility allows the programmer to enter information re: a batch cycle abend, and then be able to display/modify that information at a later date. It also allows for searching for specific abend codes, cycle dates, programs, jobs, programmer's, etc. For instance, you could easily find all the information on every S013 abend that has been logged. You could type "TSO ABENDLOG" from SDSF while researching an obscure abend in the middle of the night to see if it had happened before. Invocation syntax from any ISPF command line is : TSO ABENDLOG ./ ADD NAME=ADDCOL This is an edit macro which will add up a column of numbers in a file you're editing. You must exclude the lines you wish to tally, and specify which columns are to be included in the operation. In the columns selected, spaces will be converted to zeros, but any other non-numeric character will cause the line to be identified as non-numeric and not counted. Example follows : COMMAND ===> addcol 58 61 <== This example would add up the excluded numeric lines between columns 58 and 61 inclusive. Notes : trailing spaces will be made zeros as well as leading spaces, so your numbers should be right justified. If the numbers contain decimal points,specifiy the column of the decimal point as a 3rd parameter. ./ ADD NAME=ADSOBGEN This utility takes a dialog name as input and then submits a batch job to do an ADSOBGEN on the dialog and then "vary it new copy immediate". Type ADSOBGEN on an ISPF COMMAND line and press ENTER. You will be shown a panel in which to enter your dialog name. The ADSOBGEN and UCFBATCH messages will go into a temporary dataset under your TSO ID. You may also choose to have the utility create the JCL and then take you into an edit session of the JCL. From here you may do any thing you want to the JCL and submit or not submit it. You will be sent messages re: the outcome of the ADSOBGEN. Note : ADSOBGEN is also called conditionally by the PUTMOD utility. ./ ADD NAME=ADW2WORD ADW2WORD is an edit macro which takes input of an ADW attribute list and converts it into the format necessary for the documentation specialists to maintain the field documentation and then load it into UNISTAR using Jeff Wokenfuss's program. First an attribute object summary report must be generated in ADW and uploaded to process in TSO/ISPF. Once uploaded, the uploaded file should be edited and ADW2WORD invoked. To invoke type adw2word on the command line while editing the file and press . You will see processing messages while the execution occurs. Currently, other than the "definition" this macro can can handle the presence of "property" and "comments" in the input file. "Comments" are folded into the definition. "Properties" are deleted. The output includes a line which indicates which entity this particular attribute definition is for. It should be determined whether the documentation specialists need this information. If not, all occurances of it should be deleted before giving them the file. If an attribute is listed for more than one entity, then this entity marker line is what delimits the definition for one entity from the definition for another entity. It is up to the documentation specialists to reconcile the differences in the definition to come up with a common definition. This would be an instance in which you would NOT want to delete these entity marker lines. ./ ADD NAME=APPLCMPR APPLCMPR is designed to compare a CSP application which is currently in the DEVL environment in ENDEVOR with the same application (element-for-element) as it exists in its next-most-recent form in the ENDEVOR promotion map. APPLCMPR operates in ISPF and is invoked as follows: COMMAND ===> TSO APPLCMPR xxxxx {edit} {class(l)} Where: "xxxxx" = The CSP application name EDIT is a keyword parameter which indicates that the JCL which is created is to be edited instead of automatically submitted. class(l) is a parameter which indicates that instead of using job class 5, (the default), job class L should be used. Note: The job which is created will not run in class 1 due to the amount of processing necessary. The output from the compare job consists of five sequential files named: userid.APPLCMPR.applicationname.APPL userid.APPLCMPR.applicationname.MAPG userid.APPLCMPR.applicationname.PROC userid.APPLCMPR.applicationname.RECD userid.APPLCMPR.applicationname.SGRP These files hold SUPERCE compare output for the application element, any map group elements, any process elements, any record elements, and any statement group elements. An explanation of how APPLCMPR works may aid in the understanding of its value and its outputs. First, when you invoke APPLCMPR with an application name, it invokes ENDEVOR in "foreground batch" to get the LISTAD element associated with that application. This brings up a good point, an application needs to have been generated in ENDEVOR at least once prior to running APPLCMPR so that a valid LISTAD element exists. APPLCMPR then uses the contents of the LISTAD to build JCL which will do the following: 1. Retrieve (NOSIGNOUT) each element from ENDEVOR twice; first beginning the search for the element from the DEVL stage, and then beginning the search for the element from the QUAL stage. This results in a pair of each element in the application; one which is the most recent and one which is the next most recent copy. Note: if a given element has not changed, this retrieval will get the same copy for each one of the pair. Since the elements are CSP elements, they must be retrieved directly into an MSL (temporary MSLs are created by APPLCMPR for this purpose). Note: since this portion accesses ENDEVOR directly while you're in TSO, you CANNOT be in ENDEVOR in either of your split screens and execute APPLCMPR. It WILL abend if you are in ENDEVOR. 2. Export the elements from the MSL in ESF format into a set of paired PDSs to contain the old/new APPL/MAPG/PROC/RECD/SGRPs. 3. Compare the paired PDSs with SUPERCE and store the compare output in the five sequential datasets listed previously. Note: these datasets are stored on PERMANENT DASD. It is the programmer's responsibility to discard these datasets when no longer needed. ./ ADD NAME=ATEND This utility allows the user to place a given string at the end of each line which satisfies a specified edit criteria. The "END" of a line is defined as the last non-blank character within the current editing "bounds". For example, if you wanted to place a period (".") at the end of each "non-excluded" line, you would type => atend '.' nx <= on the command line, and a period would be placed in the first blank space following the last non-blank character in each non-excluded line. You may specify edit criteria such as explicit line numbers; excluded status; label ranges; a combination of label ranges and excluded status; etc. ./ ADD NAME=B This is an edit macro which allows the user to insert a line containing a given string (e.g. "XXX") before every line in which another (or the same) given string (e.g. "ZZZ") already exists. An example follows : COMMAND ===> b %%% @@ File Before : File After : 000100 abcdefg% 000100 abcdefg% 000200 %%% 000200 @@ 000300 rrr%%% 000300 %%% """""" 000400 @@ """""" 000500 rrr%%% In this example, a line with string "@@" was inserted before each line containing "%%%". If either string contains special characters (space, etc.) it should be enclosed in quotes. It is possible to add additional ISPF edit parameters that you might find using a FIND or CHANGE command. These parameters serve to limit the scope of lines which the edit macro operates against to find lines which match the "string1" criteria. These can include any valid combination of : "X/NX", column ranges, and edit labels (system or user defined, e.g. ".abc", ".zcsr", etc.) These additional parameters must be specified after "string2" and are "space delimited". "String2" may also be specified as a line or block of lines already in the file; i.e. before every line with an occurance of "string1", you may insert a line or block of lines in the file. To accomplish this, you must mark the lines with a line command of "Z" or a block line command pair of "ZZ" and "ZZ" on the first and last lines of the block of lines. You then specify the reserved string "ZLINE" instead of a "string2". The "B" edit macro also can make use of a special "counter" variable in "string2" or a marked "zline". This variable is called "XCOUNT". If the string XCOUNT is found anywhere in "string2" or a marked "zline", it will be replaced with the current incremental count of "string1" lines which have been found. Let's look at some examples of these additional features: COMMAND ===> b %%% @@ nx (processing only non-excluded lines) File Before : File After : 000100 abcdefg% 000100 abcdefg% 000200 %%% 000200 @@ - - - - - - 000300 %%% """""" - - - - - - """""" COMMAND ===> b %%% @xcount@ (using XCOUNT in "string2") File Before : File After : 000100 abcdefg% 000100 abcdefg% 000200 %%% 000200 @1@ 000300 rrr%%% 000300 %%% """""" 000400 @2@ """""" 000500 rrr%%% COMMAND ===> b %%% zline .a .b (using XCOUNT, blocked zlines, File Before : File After : edit labels) zz0100 1xcount 000100 1xcount 000200 22 000200 22 zz0300 333 000300 333 .a0400 wwwds 000400 wwwds 000500 %%% xxx 000500 11 000600 abcdefg% 000100 22 000700 %%% 000200 333 .b0800 rrr%%% 000300 %%% xxx """""" 000400 abcdefg% """""" 000500 12 000100 22 000200 333 000300 %%% 000500 13 000100 22 000200 333 000300 rrr%%% ./ ADD NAME=BC The BC utility determines the name of the program being edited (based on member name) and looks for a dataset called youruserid.COMPILE.LISTING.programmembername and attempts to take you into an ISPF/PDF "browse" of that dataset. To invoke BC, simply type BC on the command line of a program you are editing and press . Obviously, you will need to set up your compile JCL to point the SYSPRINT of the compile step to a sequential file of the above format. ./ ADD NAME=BINDCARD BINDCARD creates batch DB2 "bind plan" cards. It "wraps" the cards in JCL for loading into ENDEVOR (it also generates the necessary ENDEVOR SCL to accomplish this). The JCL is then submitted for backround processing with ENDEVOR. It can take existing bind plan cards from ENDEVOR and update them with changes, or add a completely new set of bind plan cards into ENDEVOR. Syntax: COMMAND ===> tso bindcard When you invoke BINDCARD, you are presented with a screen. On this screen, you may enter the name of the main program which "drives" this batch process. You must enter this field. The name of this application will be the name used to store the DB2 bind cards in ENDEVOR. You need to then indicate whether the main driving application uses DB2 or not. If so, it will be included in the package list associated with this plan, if not, the main application name will simply be used as the name of the plan. If this main application calls any other "non-common"/"client-specific" applications AND they use DB2, they should be listed (in any order) in one of the "Called" fields on the screen (currently there is room for 15 called applications). Additionally, if a called module (DB2 or not) calls a program that does DB2, the DB2 module should be included in one of the "Called" fields. So, anywhere in the "calling hierarchy" that DB2 is used, that program name needs to be specified. If an application is a called application for this driver program, but it does NOT use DB2, it should not be listed on this screen. Consequently, if the driver application does not use DB2 and none of its called applications use DB2, there is no need to request a DB2 batch plan bind for this application. It is strictly for applications which use DB2 in SOME fashion. When you have finished entering the applications, you may choose to override the default DB2 plan parameter values. In 99% of the cases, these defaults should NOT be overridden. Any override needs should probably be discussed with the DBA team. Finally, you will need to enter an ENDEVOR CCID (Change Control Identifier) and an ENDEVOR comment. These pieces of information are required in order to successfully load the bind cards into ENDEVOR. They are not required on this panel until you actually change the GENERATE JCL flag from "N" to "Y". Check with the ENDEVOR administrator to determine what CCID to use (typically this will be your PR number). Use meaningful text to describe the nature of the change in the comment field. The limit of the length of the comment field is a function of ENDEVOR limits If you are updating existing bind plan cards which are stored in ENDEVOR and you wish to start with the parameters of the existing bind plan cards, BINDCARD will extract the information from ENDEVOR and populate the screen for you. BINDCARD is triggered to perform this operation if it finds a "N" in the GENERATE JCL field. If you press when this field is set this way, BINDCARD will get the information for the BIND card element named the same as your "main" application. It then parses this information and populates the screen with it. You are then free to modify it in any way you wish. 1 Alternatively, you may just replace whatever exists for an existing set of bind plan cards by setting the GENERATE JCL flag to "Y", entering your data and pressing . In this case, BINDCARD will not attempt to extract the values of the bind plan cards to populate the screen. It will just create the JCL from what you entered on the screen. BINDCARD will generate a step in the JCL to RETREIVE the element from ENDEVOR. This retreived version is thrown away, however, and what was on the screen is used to do the UPDATE back into ENDEVOR. The RETRIEVE is only used to obtain SIGNOUT on the element. After you've generated, the GENERATE field returns the the value of "N", and you are ready to enter more data if necessary and generate another plan. Your CCID and ENDEVOR comment are remembered during your ISPF session, so you can generate several plans under the same CCID if necessary. ./ ADD NAME=BLDG This utility will allow you to build, delete, or list generation data group indexes interactively. This is done via a panel where you enter the dataset index base name and other parameters. Additionally, this utility can be invoked from another CLIST with passed parameters that will allow an SE to incorporate the bldg utility in other operations without having to go to the panel at each execution. The keyword parameters available are FUNC (valid) values of B, D, and L for function, ENT for the number of entries when building a GDG, DSN to specify the GDG base name, and SYSPRINT to specify that the IDCAMS SYSPRINT is to be displayed on the terminal. There are no positional parameters. TOP SECRET controls what indexes you are able to build. An example of calling BLDG from a CLIST would be as follows: %BLDG DSN(dataset.name.with.no.quotes) FUNC(B) ENT(3) ./ ADD NAME=BRANCH This edit macro will allow you to branch to a subroutine by placing your cursor on a line with a PERFORM statement and typeing BRANCH on the command line (you would probably put the command on an unused pf key). Then by using the BRANCHBK edit macro (probably on another PF key), you could branch back to where you were in the edit session. This combination of edit macros can be useful for finding your way through code in a COBOL program without losing your place. It is especially helpful if you don't have a hard copy version to reference. ./ ADD NAME=BRANCHBK This edit macro works in conjunction with edit macro BRANCH. The BRANCH macro will allow you to branch to a subroutine by placing your cursor on a line with a PERFORM statement and typeing BRANCH on the command line (you) would probably put the command on an unused PF key. Then by using BRANCHBK (probably assigned to another PF key), you could branch back to where you were in the edit session. This combination of edit macros can be useful for finding your way through code in a COBOL program without losing your place. It is especially helpful if you don't have a hard copy version to reference. ./ ADD NAME=BROWSEME This utility allows you to type BROWSEME on the command line of a file being edited and be taken into an ISPF BROWSE of that same dataset. When you quit the BROWSE, you will return to the EDIT. This may be useful for an 80 byte text file where readable text extends past column 72. To see the full 80 bytes in this situation, you would type BROWSEME and press ENTER. Note : BROWSEME does a "save" of the dataset prior to "browsing", so that the version to be "browsed" is identical to the version being "edited". To NOT perform the save, type BROWSEME NOSAVE on the command line, and the most recent version from DASD will be "browsed". ./ ADD NAME=CALCULAT The CALCULAT CLIST allows you to pass an arithmatic expression and then CALCULAT returns a message with the evaluation of the arithmatic expression. To use it, you type TSO CALCULAT xxxxxx where xxxxxx is some equation. It is important that you do not have any spaces in your equation. Consequently, TSO CALCULAT 1 + 1 would be incorrect, but TSO CALCULAT 1+1 would be correct and would return a message like "1+1 = 2". Obviously, CALCULAT can handle a little equations a bit more complex than that. You may use parentheses and the standard add, subtract, mulitply, and divide symbols (+, - , *, /). ./ ADD NAME=CA11TABL CA11TABL allows the user to "capture" the contents of the CA11 ISPF interface output. When you use the CA11 ISPF interface, the results of each command are placed in a temporary ISPF table named CA11ITBL. When you are viewing the results in the CA11 ISPF interface, you type TSO CA11TABL on the command line and press . The contents of CA11ITBL are dumped into an FB 80 sequential file with the name format of userid.TEMP.CA11TABL.date.time. where "date.time" is a current time/date stamp. Once the table is dumped into the file, you are taken into an ISPF edit session on the file. From here, you may use this file like any other file. Note: the file is placed on "work" DASD, so it will be scratched at night. It would be up to you to save any contents for longer rentention. ./ ADD NAME=CA7CMD The CA7CMD utility allows you to invoke CA7 commands from anywhere within ISPF without having to go in and out of the CA7 environment. It uses the CA7 batch terminal feature so its performance is not the best, but its primary benefit is convenience. It is implemented as both a standard REXX that can be executed via the "TSO xxxx" style of invocation as well as as an ISPF edit macro. The advantage of using it as an edit macro is that when you are editing JCL whose member name matches the member name of the JCL in CA7, you have the ability to just type "CA7" on the command line and you'll automatically have an LJCL,JOB=themembername command issued to CA7 and the results returned as message lines in your edited JCL. Alternatively, you could issue the command "CA7CMD LJOB" and it would issue the LJOB,JOB=themembername command and once again, your data is returned to the member. You also have the capability of putting other parameters on the command if you so desire. For instance, you might want to issue the LJOB command with a "LIST=TRIG" paramter. You would just type CA7CMD LJOB,LIST=TRIG and CA7CMD would put the job name in there for you and return the results. If you're executing it as you would a typical Rexx or Clist (i.e. not an edit macro), you need to supply the full command. For example, you could type CA7CMD LJOB,JOB=yourfavoritejob,LIST=RQJOB on any ISPF command line and press ENTER. The results are written to a dataset and you are taken into an edit session on that dataset. This is also a good way to capture CA7 command that you need in a dataset for whatever reason. ./ ADD NAME=CENTER This utility allows you to center the text on the line in a file you are editing. Simply type CENTER on the command line, place your cursor anywhere on the line to be "centered" and press ENTER. The utility finds the first non-blank character and the last non-blank character on the line; calculates the length of the string, subtracts it from the LRECL of the file; divides the result by 2 and positions the string on the resulting column. ./ ADD NAME=CNVTPANL At UNIPAC there exist "custom" ISPF extended edit and browse dataset selection panels. These have gone through an "evolutionary" process. In so doing, there are some "incompatibilities" between various versions. CNVTPANL is a REXX exec which facilitates the conversion from using one of these evolutionary steps to "current" (i.e. most used) version so that none of your painstakingly typed in dataset names will have to be re-typed! These custom edit panels use ISPF "profile" variables to permanently store the dataset name selections that are seen on these panels. One of the previous versions used the variable names "BRN1" - "BRN39" and "QRN1" - "QRN39". CNVTPANL simply stores the values in these "previous version" variables into variables named "QBRN1" - "QBRN39" and "QERN1" - "QERN39". To determine whether or not this is needed for you, you would look at your CURRENT extended edit/browse panel (if you don't have one currently, this will not be an issue), and see if you have variables in the ")BODY" portion of the panel definition in member ISRBRO01 named BRN1 - BRN39. This member can most often be found in some library named 'yourid.ISPF.PANELS' or 'yourid.ISPF.ISPPLIB'. At the ISPF primary menu, type: OPTION ===> tso cnvtpanl and press . This will execute CNVTPANL and your variable definitions will be copied. Since this will go into your "primary" profile. You may want to "replicate" these new values to ALL your ISPF profiles so that your extended edit/browse panels have the same list no matter where you are in ISPF. To do this, please see the documentation on the SYNCEXT utility in the Programmer's Toolbox. ./ ADD NAME=CNVTUPCS This utility allows you to convert 1, some, or all of the fields in a given ISPF table from lower or mixed case to upper case. ./ ADD NAME=COLS COLS is an edit macro which approximates the function of the "COLS" ISPF edit command. The only difference in the result is that the "columns" line is an actual "data" line when you use the COLS edit macro and it is a "message" line when you use the COLS line command. When we go to ISPF 3.0 or higher, the COLS edit macro will be superfluous. The reason is that in the newer releases of ISPF, a new line command, "MD" is introduced. "MD" stands for "Make Data". When you put "MD" on any non-data line which ISPF displays in the body of your data (like "=COLS>" or "=BNDS>", or "==MSG>", etc.), that line will actually be converted to a "data" line and be saved with your file. Until that time, however, to painlessly create a columns line (for whatever purpose), the COLS edit macro may be your best bet. COLS is invoked as follows: COMMAND ===> cols The "columns" line is then created specific to the LRECL of the file being edited. Its placement within the file is based on these rules: If you use an "A" or "B" line command (like you would for a normal copy or move), the columns line will be placed accordingly in the file. If you do not specify an "A" or "B", the columns line will be inserted after the line your cursor is currently on. ./ ADD NAME=COMBOX This utility allows you to specify specify an "a" or "b" line command and then COMBOX languagetype on the command line, and a comment "flower box" of the appropriate type will be inserted in the code at the place of the "a" or "b" line command. The valid language types are: CLIST, JCL, ALC, COBOL, SKELETON (ISPF skeletons). Syntax : combox jcl This example would draw a box after a "a" line command like: //*********************************************************************** //* * //*********************************************************************** ./ ADD NAME=COMPARE This utility calls the utility which is invoked under ISPF option 3.13. The only difference is that it returns to where you were when it was called. Therefore, you could be in another application and execute this compare and then get back to your application without having to leave it. ./ ADD NAME=COMPILE COMPILE is an ISPF dialog which creates appropriate compile or assemble JCL for source code of varying types and automatically submits it. COMPILE may be invoked as a CLIST or as an edit macro. The JCL is created automatically and can be edited or submitted automatically as well. A complete ISPF help/tutorial exists for COMPILE. More information can be found there. ./ ADD NAME=COMPMARK This utility reads a COBOL compiled listing dataset while editing the program source, and marks the program source with the error messages before the line on which they occured. COMPMARK brings up a panel to define the location of the output dataset and the COBOL type (COBOL or COBOL 2). You are told how many messages are warnings and how many are errors if warnings exist. Then you can specify whether to mark the warnings. To locate the error message lines type "l special". If you invoke COMPMARK and specify a PF key (e.g. "compmark pf19") you can use the PF key to locate the error message lines. ./ ADD NAME=COMPONEN The COMPONEN edit macro is a utility which parses a CLIST to determine all of it's "called" components (e.g. PANELS, MESSAGES, TABLES, PROGRAMS, CLISTS, SKELETONS, etc.). The results are then placed in a file and you are taken into an edit on that file. Simply type COMPONEN on the command line of a CLIST you are editing and press ENTER and "off you go". ./ ADD NAME=COMPRSME This utility allows the user to type COMPRSME on the command line of an edit session of a PDS member and compress the PDS. This can be quite useful when you go to store a new member and find out that the PDS has run out of space. Your IEBCOPY compress messages are then placed in a dataset under your TSO user id. ./ ADD NAME=CONTENTS The CONTENTS edit macro works similarly to the VIEW edit macro. Type the command CONTENTS on the command line in an edit session, place the cursor on the beginning of a dataset name, and press . CONTENTS then parses the line and extracts the dataset name, reads the dataset sequentially, and places the data from the dataset into the datasey being edited. The datalines from the target dataset are, by default, inserted as edit "message lines" (not real data). In ISPF 3.0 and higher, these lines can be made into data lines with the MD line command. You can, however, specify the parameter WRITE when invoking CONTENTS to insert the contents of the file as actual data lines. The obvious application for CONTENTS comes in creating some test JCL. For instance, if you are editing some JCL which you've copied from production, and it invokes IDCAMS, there will be some SYSIN cards associated with it. If the SYSIN cards are in another dataset and do a DELETE/DEFINE on a production VSAM dataset, you may want to do the same DELETE/DEFINE on a test dataset instead. What you would do is type CONTENTS WRITE on the command line, place your cursor on the first position of the SYSIN dataset name, and press . The contents of that file are then inserted into your JCL. You can make your changes and invoke the SYSIN cards in-stream instead of in a dataset name. ./ ADD NAME=COPYCOL The COPYCOL utility allow you to copy one column of data/text in a file which you are editing to another column next to it. You simply specify the beginning and ending column numbers to be copied, the column number where you want to copy the data to and any limiting qualifiers such as "X", "NX", and edit labels (any valid combination of these). Here's an example: Let's assume that we have a column of data, and some of the rows of data contain the value 'xyz' in them. In these rows, we need the column of data repeated next to itself. We can do this with two commands. First we exclude the lines containing 'xyz' as follows: EDIT ---- JP6409A.PDS.WORKFILE(TESTTEST) - 01.00 -------------- COLUMNS 001 072 COMMAND ===> x all 'xyz' SCROLL ===> CSR =COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7-- 000001 qwertyuiop 000002 asdfghjkl; 000003 copycol 1 5 20 x SCROLL ===> CSR =COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7-- 000001 qwertyuiop 000002 asdfghjkl; 000003 SCROLL ===> CSR *** 3 LINE(S) PROCESSED *** 000001 qwertyuiop 000002 asdfghjkl; 000003 tso cspdb2xr Optional Parameters: DOCLIB('doclib.name.goes.here') The default is DUSC1.STR.DOCLIB. This must be a PDS name of an existing PDS with no member name. MEMBER('mbrname') The default is CSPDB2XR. The member will be created if it does not exist, and overwritten if it does. ROMSL('mslname1 mslname2 .....') The default MSL concatenation used consists of DD names defined in the JCL skeleton for the Endevor-controlled MSLs for the UNISTAR project. Those DDs are: TEDVDEVL TEDVQUAL MEDVMODO and PEDVPROD in that order. EDIT This parameter indicates that the JCL which CSPDB2XR creates is NOT to be submitted automatically, but that the user is to be taken into an edit on the JCL. The user is then free to make or not make any changes. The user must then submit the JCL themselves. Without the EDIT parameter, the job will be submitted automatically. ./ ADD NAME=CUT The CUT and PASTE edit macros provide a handy method to move data from one edit session to another. The CUT macro saves lines from an edit session. The PASTE macro places these lines into another edit session (or the same session). The CUT macro can combine lines with previously saved lines. The PASTE macro places these lines into one or more edit session. The edit sessions can be on different screens and/or edit sessions started at a later time provided the user does not exit ISPF. The CUT and PASTE macros have several optional operands. The operands P (or PROMPT) and D (or DEFAULTS) provide menu panels for entering the optional operands as shown in the screen layouts below. The operand H (or HELP) can be used to provide tutorial panels. The lines from the CUT macro are saved in an ISPF table. A two-character operand is used to name the table for saved lines. A numeric operand sets the limit for the size of the table. A two-character operand on the PASTE macro names the table to obtain the lines. A numeric operand is not used with PASTE. The table name will default if not given. This default can be changed. OPERAND FUNCTION action This is the action to be performed by this CUT operation. Valid choices are ADD to lines already cut or REPLACE the lines already cut with the new lines. HELP is used to enter the tutorial for CUT and PASTE. DEF is used to display the defaults panel for CUT. If no operands are entered on the command, the defaults are used. table This specifies a two-character suffix for the ISPF table generated. The table name prefix is CUTPST. This operand can be used to create several different groups of lines for later use by PASTE. limit The maximum number of lines to be cut by this operation. This number can be from 100 to 99999. Identify the lines to be cut by using the C, CC, M, or MM line commands in the edit session. OPERAND FUNCTION action This is the action to be performed by this PASTE operation. Valid choices are KEEP the lines cut in the ISPF table or ZERO the lines cut so future CUT actions will start with an empty table. HELP is used to enter the tutorial for CUT and PASTE. DEF is used to display the defaults panel for PASTE. If no operands are entered on the command, the defaults are used. table This operand specifies the suffix of the ISPF table that has the lines to be pasted. This name, if different from the default name, must have been created by a prior CUT command. Identify where the lines are to be placed using the A or B edit line commands. Notes: 1. All operands on both commands are optional. The defaults values are used for any item not entered. 2. The data lines cut are kept in an ISPF table. ISPF tables are associated with a logical screen. If the screen where the lines were CUT is ended, the table is deleted and the lines are not available for use by PASTE. A logical screen is created by the SPLIT or HOLD commands. The lines are also deleted when the ISPF session is terminated. They are not saved across ISPF sessions. ------------------------- CUT prompt and set defaults ------------------------ COMMAND ===> Action ====> ADD, REPLACE, or blank for default Enter END key for no action CUT table name===> any two character name for this one time blank for default CUT size limit===> 5000 any number 100 to 99999 for this one time Set default actions for CUT and PASTE CUT default ===> ADD ADD or REPLACE PASTE default ===> KEEP KEEP or ZERO CUT table name===> DF any two character name for default CUT size limit===> 5000 any number 100 to 99999 for default ADD adds CUT lines to the end of previously CUT lines, if any REPLACE clears any previously CUT lines and replaces them with newly CUT lines ZERO deletes previously CUT lines after the PASTE operation KEEP keeps previously CUT lines after the PASTE operation to be used by a later PASTE or added to by later CUT operations ------------------------ PASTE prompt and set defaults ----------------------- COMMAND ===> Action ====> ZERO, KEEP, or blank for default Enter END key for no action CUT table name===> any two character name for this one time blank for default Set default actions for CUT and PASTE CUT default ===> ADD ADD or REPLACE PASTE default ===> KEEP KEEP or ZERO CUT table name===> DF any two character name for default CUT size limit===> 5000 any number 100 to 99999 for default ADD adds CUT lines to the end of previously CUT lines, if any REPLACE clears any previously CUT lines and replaces them with newly CUT lines ZERO deletes previously CUT lines after the PASTE operation KEEP keeps previously CUT lines after the PASTE operation to be used by a later PASTE or added to by later CUT operations ./ ADD NAME=DBSETUP Last updated: 04/28/97 ********************************************************************* * DBSETUP * ********************************************************************* OVERVIEW: DBSETUP is an ISPF dialog which creates JCL to facilitate the creation of all the necessary DB2 objects in a target testing database necessary to test a specific program, group of programs, specific job, group of jobs, or entire client UNISTAR database. EXECUTION: As an ISPF dialog, DBSETUP is invoked by typing "tso dbsetup" at any ISPF command line and pressing the ENTER key. The resulting screen looks like: ----------------- UNISTAR DB2 Personal Testing Database Setup ---------------- COMMAND ==> Target DB2 Database ==> D@UDALDB Target DB2 CREATOR Id ==> D@UDAL__ Resize Percentage ==> __1 (1-100 Percent Of Production Database Size) Drop Conflicting Objects In Target Database? N (Y/N) Review JCL Prior To Submitting? N (Y/N) Create JCL Now? N (Y/N) ------------------------------ Selection Criteria ---------------------------- Batch Job Name ==> USC1021_ (You may enter a prefix as well. e.g. UFBL) *** OR *** USSTRP00.ADM40T_GRPPROF GRP_ID ==> ______ *** AND (Optionally) *** Program Name ==> ________ (You may enter a prefix as well. e.g. BLB) END To Cancel PANEL OPTIONS TARGET DB2 DATABASE: This field contains the name of database where the new objects will be created. This will, usually, be the programmer's own personal test database. This is the programmer's user id with a "DB" concatenated onto the end. This is the value that the utility defaults to. Another option could be one of the "team databases" which begin "T1A". Special caution should be exercised when specifying one of the team databases as the target database since this usually will affect multiple programmers. All affected by the change should be notified if such a change is going to take place. TARGET DB2 CREATOR ID: This field contains the character string to be used as the DB2 creator id of the new objects. If this is the programmer's personal database, this will be their user id. If this is one of the team databases this will be "T1A*" where "*" is 1-9. RESIZE PERCENTAGE: This is a number from 1 to 100. It will be applied as a percentage to the current primary and secondary allocation quantities of the production tablespaces and indexes to size the new target objects. The specific client production objects that have the percentage applied to them are the ones associated with the job name or group id specified in the lower portion of the panel. For instance, if the primary quantity of the PRT01T_PARTICIPANT table's tablespace for the full service database ("DENVER" group id) is "2000", when the RESIZE PERCENTAGE value of 1 is applied to it, the new target object would have a primary quantity of "20" . While the primary and secondary quantity values are 1K increments and do not specifically relate to number of rows, programmers may use percentage of rows as a good percentage figure for sizing. For instance, if the client database they are extracting production data from for testing has 100,000 PRT01T_PARTICIPANT rows and they will test with 1,000 rows, they could use the RESIZE PERCENTAGE value of "1" safely. DROP CONFLICTING OBJECTS IN TARGET DATABASE: This field is a "Y/N" flag field. If "Y" is specified (usually recommended), then DBSETUP will execute "DROP" statements against any objects in the target database which would conflict with the new TABLESPACES, TABLES, INDEXES, and VIEWS that it intends to build. This allows the programmer to "start clean" for the testing situation that they are trying to set up for. If there is a situation that requires keeping a given object or set of objects (with their associated data), then this value can be left as "N". When DBSETUP tries to create an object that already exists, it will get an error, but it will go on and try to create the next object. Results of the process should be reviewed in this situation to see just what the errors were that occurred. There may have been unexpected failures because of interrelationships between various DB2 objects. REVIEW JCL PRIOR TO SUBMITTING: This field is a "Y/N" flag field. A value of "Y" in this field will bring you into an edit session of the JCL that is created by DBSETUP. You may make modifications to the JCL at this point (or not). You must, however, submit the JCL yourself if you specify "Y". If "N" is the value in this field, when the JCL is created by DBSETUP, DBSETUP will automatically submit it for you. In either case, the JCL will saved in a dataset named userid.TEMP.DBSETUP.JCL. This will be stored on a work pack and will, consequently, be scratched the evening of the day it's created. CREATE JCL NOW: This field is "Y/N" flag field. When you put "Y" in this field and press ENTER, you are signifying that you are ready to have DBSETUP create the JCL. OBJECT SELECTION CRITERIA This bottom portion of the screen will determine, in part, what objects are created in the target environment. In UNISTAR, there are a number of tables/views which are shared among all production clients and those which are physically separate between the client databases. In a testing environment, many of those shared objects can continue to be shared and a few should be specific to each project. The creation of tables/views on these shared objects is a "boilerplate" activity in DBSETUP, i.e. it will create these objects regardless of what is entered on this panel. The "Selection Criteria" refer only to the "client-specific" database objects. Please refer to the section of this document which details the processing steps of DBSETUP for more information on how the shared objects are created in the target environment. The Selection Criteria give you three ways of specifying how you want to build your target environment. 1. You can select an entire client's set of database objects by just specifying a value in the USSTRP00.ADM40T_GRPPROF GRP_ID field. Valid values for this field are the values found in the GRP_ID column of the USSTRP00.ADM40T_GRPPROF table in the DSNP (Production) DB2 subsystem, for which the GRP_TYPE column is SVCR. Another way of stating this is with the following SQL statement: SELECT GRP_ID FROM USSTRP00.ADM40T_GRPPROF WHERE GRP_TYPE = .SVCR'; This will take a snapshot of all the object definitions of all the dependant objects for all the TABLESPACEs in that client's UNISTAR "Master" DB2 database. If you're running "full cycles" and testing some on-line transactions, this will probably be the option you select. 2. You can enter a value in both the USSTRP00.ADM40T_GRPPROF GRP_ID and Program Name fields. This will capture all the object definitions for a specific client database which that program (or set of programs beginning with that prefix) uses. For instance, you may only want to test all the TLAD transaction programs (independant of their batch associations). You'd specify the Group Id and then put SLSTLA in the Program Name field. 3. You can enter a value in the Batch Job Name field. This value may be a complete job name or a job name prefix. Since job names in UNISTAR are prefixed (in both the old and new naming conventions) with the client that they belong to, the job name implies not only the content of that job, but also the client for whom it runs. With the new naming convention, when you specify a job name prefix, you can approximate the concept of establishing the object definitions that are pertinant to a single subsystem (Note that data definitions typically cross sub-system boundries). For instance, if you wanted to test the batch run for EPD, you could specify a Batch Job name of UFED and DBSETUP would find all the object definitions used by all the programs in all the jobs which begin "UFED".....the full service, EPD jobs. DBSETUP PROCESSING STEPS The DBSETUP batch job goes through the following "high-level" steps (in some cases multiple actual job steps are required to accomplish one of the high-level steps. 1. Based on the "Selection Criteria", query the DB2 catalog (joining to UNISTAR ADM40T and/or UTL61T tables where necessary) to return a list of DB2 TABLESPACEs that are used by the programs/jobs/group specified in the Selection Criteria. 2. Use Platinum's RC/Migrator Recovery Snapshot facility to create a DDL file of all the object definitions and dependant object definitions (TABLEs, VIEWs, INDEXs) for the TABLESPACEs listed in step #1. 3. Edit the DDL created in step #2 and apply the name changes appropriate for the target database and target creator id. Also apply the space percentage calculations against the primary and secondary space allocations to size down for the testing environment. 4. Use Platinum's RC/Migrator Recovery Snapshot facility to create a DDL file of all the object definitions and dependant object definitions (other dependant VIEWs) for a list of "stage-level", "base" views. These are views that point to a set of shared table in the testing environment that should not, generally, be recreated for each project. The list of views at this time is: ADM01V_USERPROF UTL80V_BASERATE UTL70V_OUTPTDEFN UTL61V_JOBSTEPPARM UTL30V_TIMEZONE UTL21V_DTEEXPAND UTL20V_CALENDAR UTL16V_APPLRUNHST UTL15V_CHKPNT UTL03V_FLDCDEXREF UTL02V_CODE UTL01V_CODEDEFN SVC03V_SVCRCNTCT SVC02V_SVCRADDR SVC01V_SERVICER MSG01V_MESSAGE LTR01V_LETTERPROF EPD15V_ODFICAL EPD14V_ODFI EPD13V_SVCRODFI EPD12V_SVCREPD DOC50V_DOCPRNTQUE DOC04V_DOCUTOC DOC02V_DOCUTXT DOC01V_DOCULINK CST14V_DISCPGMNAME CST13V_DISCPGMQUAL CST12V_DISCPGMGNTR CST11V_DISCPGLNTYP CST10V_DISCPGMPROF CST01V_CUSTOMER BAT01V_EXCPMESSAGE ADM63V_BULLTN ADM60V_DBCOLLDEFN ADM50V_ACCVIOLTN ADM47V_AREADEFN ADM46V_GRPSUBSYS ADM45V_JOBDEFN ADM44V_DEPTDEFN ADM40V_GRPPROF ADM24V_MENUITEM ADM23V_MNESUBSYS ADM22V_MNEMONIC ADM21V_SECURITY ADM05V_TERMID ADM04V_USERJOBGRP ADM03V_USERJOBCRD ADM02V_USERLANG 5. Edit the DDL created in step #4 and apply the name changes appropriate for the target creator id. 6. Use Platinum's RC/Migrator Recovery Snapshot facility to create a DDL file of all the object definitions and dependant object definitions (TABLEs, INDEXs, VIEWs) for a specific list of "stage-level" TABLESPACEs. These are tablespaces for tables that are shared in production but which cause problems when shared by development projects. Consequently, they are created as separate physical objects in the target database instead of as base views pointing to a shared set of physical objects. The list of tablespaces at this time is: USUTLS07 USUTLS75 USWRKS50 7. Edit the DDL created in step #6 and apply the name changes appropriate for the target database and target creator id. Also apply the space percentage calculations against the primary and secondary space allocations to size down for the testing environment. 8. If Drop Conflicting Objects In Target Database is "Y", then create DROP DDL statements for all the new objects to be created in the target environment. 9. If Drop Conflicting Objects In Target Database is "Y", then run the DDL created in step #8. 10. Run the DDL created in step #6. 11. Run the DDL created in step #4. 12. Run the DDL created in step #2. ./ ADD NAME=DB2LOAD This utility allows the user to load data from sequential files and PDS members into DB2 tables. It enables the user to define what table columns come from what file columns (or specify defaults) interactively by both viewing the load dataset and the table definition at the same time. A batch job is then created and submitted to perform the processing. Additionally, you are able to specify a sort cards dataset to strip/sort the input data prior to processing. A COBOL II program then reads the input data and the table definition and creates SQL INSERT statements. These are then passed to DB2 sample program DSNTEP2 for updating the database. Full help is being written for this utility. ./ ADD NAME=DB2UNLD This utility allows the user to easily unload DB2 tables to sequential files (cannot be a PDS member). The resulting sequential file may then be used in the DB2LOAD utility for loading back into DB2. Syntax : tso db2unld You must fill in the DB2 table or view name, DB2 subsystem name and DB2 database name. The output file will default to userid.LOAD.viewname or may be specified. You may also review the JCL prior to submission if you wish. ./ ADD NAME=DB2UTIL Use the DB2UTIL utililty to view utility jobs that are running, or utility jobs that have stopped and need to be restarted or terminated. Examples of utility jobs are loads, unloads, reorgs and image copies. Type "TSO DB2UTIL DSNT" on any command line to view a list of utilities running in the DSNT subsystem. Type "TSO DB2UTIL DSNP" on any command line to view a list of utilities running in the DSNP subsystem. Following is an example: COMMAND ===> tso db2util dsnt This utility takes you directly into Platinum's RC/Query facility. Alternatively, you can enter Platinum manually and get to the same place as follows: From the Platinum main menu, select option "1" for RC/Query. On the RC/Q Main Menu, enter "SY" for the "DB2 OBJECT ===>" Press ENTER. RQM R03.03 ---------------- RC/Q Main Menu --------------- 02-16-96 14:01:18 COMMAND ===> DB2 Object ===> sy Option ===> Item Name ===> * Creator ===> * Where => N Qualifier ===> * Grantor ===> * ----------------------------------------------------------------- D@UJEF Location ===> LOCAL DB2 SSID ===> DSNT DB2 Version => V2R3M0 DB2 OBJECTS: T - Table SG - Storage Group P - Plan V - View DB - Data Base CL - Collection I - Index TS - Table Space PK - Package C - Column BP - Buffer Pool DR - DBRM S - Synonym A - Alias U - User RI - Referential SY - System Integrity VC - VSAM Catalog Enter ? in COMMAND field to display commands, like PROFILE and TUTORIAL. --- Copyright 1987,1994 PLATINUM technology inc. All Rights Reserved --- 1 On the next screen, type in "UT" for the "OPTION ===>" Press ENTER. RQSYM R03.03 ------------ RC/Q System Main Menu ------------ 02-16-96 13:42:15 COMMAND ===> _ DB2 Object ===> SY Option ===> Item Name ===> * Creator ===> * Where => N Qualifier ===> * Grantor ===> * Loc: LOCAL ------------------------------ SSID: DSNT ------------ P@UXXX System Options: IC = Image Copy Detail CD = Communication Database (V2.2) L = List DB2 Utilities CS = Character Set Translation (V2.3) Z = DSNZPARMS RL = DB2 Resource Limit Table UT = Utility Display Q = QMF Resource Limit View --- Copyright 1987,1994 PLATINUM technology inc. All Rights Reserved --- Regardless of how you got to this screen in Platinum (via "DB2UTIL" or manual menu navigation), to terminate a utility, find the jobname for your utility job under the UTILITY-ID column. Type "TERM" in the CMD column to the left of your job name. NOTE: Once a utility has been terminated, it cannot be restarted. See the DB2 "COMMAND AND UTILITY REFERENCE" manual for more information on utilities, terminating them or restarting them. RQSYUT R03.03 --------- RC/Q System Utility Display --------- 02-16-96 13:39:57 COMMAND ===> SCROLL ===> CSR _ DB2 Object ===> SY Option ===> UT UTILITY-ID ===> * Creator ===> * Where => N Qualifier ===> * Grantor ===> * Loc: LOCAL ------------------------------ SSID: DSNT ------------ D@UJEF CMD UTILITY-ID USERID STMT UTILITY PHASE COUNT STATUS term____ P@UXXXUT P@UXXX 1 LOAD RELOAD 0 STOPPED ******************************** BOTTOM OF DATA ******************************* Options: IC=Image Copy, L=List DB2 Utility, Z=DSNZPARM, UT=Utility Display, CD=Communication Database (V2.2), CS=Character Sets (V2.3), RL=DB2 Resource Limit, Q=QMF Resource Limit ./ ADD NAME=DDCONCAT DDCONCAT is a CLIST which allows the user to dynamically change the concatenation sequence of any of the following DDs during logon or while out of ISPF (i.e. they must be done at the "READY" prompt of native TSO). SYSHELP SYSEXEC SYSPROC ISPPLIB ISPMLIB ISPSLIB ISPTLIB ISPLLIB It allows you to put one or more libraries before and/or after each one of these standard dd's. Note: you are responsible for whether any specific library can, in fact, be successfully concatenated to a given dd based on MVS restrictions on dataset concatenations and installation-specific restrictions. For example, Fidelity CLIST files are all defined VB 255. An FB 80 library ahead of this concatenation will cause any CLISTs executed in concatenation after the FB 80 library to ABEND. Also, some installation-specific ISPF commands can only be implemented by placing them in the first ISPTLIB library. If you place a different ISPTLIB library first, you may, in fact, nullify your ability to use these commands. DDCONCAT has 2 keyword parameters for each ISPF ddname and for SYSPROC. The names of these keywords are the ddname prefixed by an "A" or a "B". For example, the CLIST dd "SYSPROC" has the keywords "ASYSPROC" and "BSYSPROC" associated with it; the panel dd "ISPPLIB" has "AISPPLIB" and "BISPPLIB", etc. The "A" means "after" and the "B" means "before". Consequently, you put the library names which you want to place before the current xxxxxxx concatenation in the Bxxxxxxx keyword. To place CLIST library "ABC.DEF.CLIST" ahead of the concatenation in SYSPROC, you would invoke DDCONCAT as follows: %DDCONCAT BSYSPROC('''ABC.DEF.CLIST''') You may specify any or all of the keywords which DDCONCAT has in a single call to DDCONCAT (indeed, you SHOULD do this for efficiency's sake). DDCONCAT uses standard TSO dataset name qualification. This means that if you specify a dataset name in single quotes, it will be used as specified. If you do not specify the single quotes, your user id will be prefixed in front of the dataset name. In the above example, if you had specified BSYSPROC(ABC.DEF.CLIST), the actual dataset to be used would have been &SYSUID..ABC.DEF.CLIST. If you want to specify more than one dataset in a given keyword parameter, the entire keyword value must be in single quotes as well. Note that the use of single quotes in CLIST processing of a KEYWORD parameter (such as BSYSPROC, or AISPPLIB in this example) is not intuitively obvious. CLISTs interpret single quotes a little strangely when passed as part of parameters. In the above example, to maintain the single quotes around ABC.DEF.CLIST, three single quotes on each side were needed. The outer-most single quote encompasses the entire parameter, and the next two are then interpreted as one single quote. Note how they are used in the next example. For instance, if you wanted to place &SYSUID..GHI.JKL.ISPPLIB and MNO.PQR.ISPPLIB after the ISPPLIB concatenation, you would specify the command as follows: %DDCONCAT AISPPLIB('GHI.JKL.ISPPLIB ''MNO.PQR.ISPPLIB''') So, if you wanted to place all of your personal CLIST and ISPF libraries in the proper concatenations while logging on, you could call DDCONCAT in the following manner: %DDCONCAT BSYSPROC(PDS.CLIST) BISPPLIB(PDS.ISPPLIB) &STR(&PLUS) BISPTLIB(PDS.ISPTLIB) BISPMLIB(PDS.ISPMLIB) &STR(&PLUS) BISPSLIB(PDS.ISPSLIB) BISPLLIB(PDS.ISPLLIB) ./ ADD NAME=DELDUPS This utility will delete records in a file that are duplicates with respect to up to six different columns (a column may be one physical "card column" or) the entire lrecl or anywhere in between. For instance, you could specify "deldups 1 80" for an 80 byte file, and the entire file would be sorted on columns 1 through 80 and duplicate records would be deleted. You could also specify that records that are duplicate for colums 1-8 be deleted (i.e. the) file is sorted on colums 1 through 8, and only these colums are compared to see if the record is a duplicate of the previous one. You may specify up to six pairs of columns. The second column in the pair must be >= the first. ./ ADD NAME=DELETEME This utility allows you to delete the PDS member that you are currently editing without having to go to ISPF option 3.1. To delete the member with a confirmation prompt type DELETEME on the command line and press ENTER. You will be prompted with "ARE YOU SURE YOU WANT TO DELETE membername ?". You may answer "Y" or anything else. If your answer is not "Y" it will not be deleted. If you want to delete the member immediately, you may type in DELETEME NOW and press ENTER. This will delete the member immediately. ./ ADD NAME=DIAGTEST This utility takes you in to ISPF's dialog testing utility, without having to leave where you currently are within ISPF. It basically invokes the program which is invoked by typing "=7" from any ISPF command line. You may pass to the dialog testing facility, specific suboptions when invoking it by typing "TSO DIAGTEST;4" (for example), which would take you into the TABLES suboption. ./ ADD NAME=DISVAR This utility does an "ISPEXEC VGET (xxxxxxxx) ASIS" where 'xxxxxxxx' is the variable named passed at invocation time, and returns the value of that variable in an ISPF message display. Example : Command ===> TSO DISVAR ZTIME <=== this would display the following line ZTIME = 19:36 ./ ADD NAME=DMS THIS UTILITY TABLE ENTRY INVOKES THE DMS ISPF ENVIRONMENT. DMS IS FULLY DOCUMENTED IN DMS.R81.DOCLIB. ./ ADD NAME=DRAWBOX This utility allows the user to specify 2 edit labels and 2 data colums as limits and it will create a box like the following example : EDIT ---- XXXX.XXXX.XXXX - COMMAND ==> drawbox .a .b 2 10 <=== command example =>COLS ----+----1----+----2 .a +-------+ 000200 | | <=== result example 000300 | | .b +-------+ ./ ADD NAME=DS DS is a TSO COMMAND PROCESSOR (not a CLIST). It displays a short report on the screen about how much space a given DASD pack has available to it. By default, it shows the space available on the WRK packs. You can specify a pack prefix (e.g. LIB, SYS, etc.) as a parameter when invoking it and you will see the information on that particular pool of DASD. If you specify "*" as a parameter, ALL the PACks in the system will be displayed. If you type TSO DS the following report will appear: VOLUME DEV VOLUME USE ------ FREE ------ LARGEST NAME ADR USAGE CNT CYL TRK NUM DSCB CYL / TRK WRK003 180 STORAGE 0 72 215 40 1587 12 0 WRK004 288 STORAGE 0 9 137 24 1587 3 0 WRK001 28F STORAGE 0 289 164 22 1561 226 0 WRK002 38F STORAGE 0 45 172 26 1587 9 1 If you type TSO DS LIB the following report will appear: VOLUME DEV VOLUME USE ------ FREE ------ LARGEST NAME ADR USAGE CNT CYL TRK NUM DSCB CYL / TRK LIB001 780 PRIVATE 0 54 2474 507 1393 3 14 LIB002 781 PRIVATE 0 144 2929 529 1369 13 8 ./ ADD NAME=DSNSPF This utility allows the user to enter a dataset name on a data entry panel and be shown the current enqueue status on it. The enqueue status indicates the job names which currently have that dataset allocated and what the disposition of that allocation is (e.g. SHR, MOD, OLD, etc.). DSNSPF executes "DSN" and passes the name of the dataset. You can invoke "DSN" directly by typing : tso dsn 'datasetname' at any ISPF command line. ./ ADD NAME=DSNSTAMP DSNSTAMP is an edit macro which allows the user to "stamp" the name of the dataset being edited over any existing text. To execute DSNSTAMP, type "dsnstamp" on the command line, place your cursor where you want the dataset name to begin and press ENTER. ./ ADD NAME=DUMPTABL DUMPTABL allows you to specify an ISPF table name which is currently in the ISPTLIB concatenation and it will automatically create a flat file containing all of the records in the table in a consistant record layout. It also creates a CLIST which, when run will re-load the table. The flatfile could also subsequently be used as input to the ISPFTABL utility to load a table. ./ ADD NAME=EC The EC utility determines the name of the program being edited (based on member name) and looks for a dataset called youruserid.COMPILE.LISTING.programmembername and attempts to take you into an ISPF/PDF "edit" of that dataset. To invoke BC, simply type EC on the command line of a program you are editing and press . Obviously, you will need to set up your compile JCL to point the SYSPRINT of the compile step to a sequential file of the above format. ./ ADD NAME=ECHANGE ECHANGE is an edit macro which allows you to issue change commands which would not ordinarily fit on the edit command line or even on a PF key definition. Additionally, and perhaps even more important is that when ECHANGE is assigned to a PF key, and your cursor is in the body of your edit text, ECHANGE will automatically determine the space-delimited string that your cursor is on, and prepopulate the "change from" and "change to" strings on the ECHANGE data entry panel. When you invoke ECHANGE, you are presented with a screen which you can enter your change command in three basic components: 1. The "FROM" string (i.e. the string you are changing from). 2. The "TO" string (i.e. the string you are changing to). 3. Additional edit change command parameters (e.g. "X/NX", column numbers, a label range, etc.) These values are stored in your ISPF "shared" pool, so that the next time you invoke ECHANGE, those same values are there. If you invoked ECHANGE as mentioned above, with your cursor "in" the data you are editing (as opposed to the COMMAND line), the "FROM" and "TO" string values will be the text string your cursor is placed on. Any parameter values you had entered previously would still be there, however. To invoke ECHANGE, simply type echange on the command line of an edit session and press . You can, of course, set this to a PF key as well (which can be very powerful). An additional feature to mix with cursor-specific operation of ECHANGE is the PREFIX (or SUFFIX) keyword. The best way to explain this is with an example. Suppose that you were re-organizing the working storage of an existing ugly production program. You had identified all the data names that were "accumulators", and you wanted to put them in the same area and prefix each one with an "A-" to better identify them in the code. Instead of typing a change command for each one, you would do the following. 1. Set a PF key to ==> echange prefix a- 2. Place your cursor on one of the data names 3. Press the PF key ECHANGE now parses for the data name your cursor is on (for the sake of argument, let's say it's called MASTER-RECORDS-READ). It would set the change "from" string to 'MASTER-RECORDS-READ' and the change "to" string to 'A-MASTER-RECORDS-READ'. In the "PARMS" field you would type "ALL" (this would remain until you changed it or until you got out of ISPF). When you press , you will be issuing the equivilent of the change command: c master-records-read a-master-records-read all With just ONE keystroke! To process all these data names, you just position your cursor, press the PF key, and press . ./ ADD NAME=ECSR ECSR - This edit macro command will transfer the edit session to ISPF EDIT the dataset listed in the DSN parameter of the DD statement of JCL. The cursor must be on the line of the DSN parameter of the JCL. To return to the edit session of the JCL, hit the PF3 key. ./ ADD NAME=EOL EOL - This edit macro command will take the current cursor position and move the cursor one position past the last character on the line. It works the same as the "End" key on a PC. To make this command effective, set up one of the PF keys to execute this command. To do this, go into option "0" (as in zero) from the ISPF Main Menu. Select "3" for PF Key setup. Change one of the PF key assignments to "EOL", then exit. This way if you want to add data to the end of the line without spacing, tabing, or arrowing to the end, just hit the pfkey assigned to the eol command. To use the command, place the cursor on a line and hit the PF key assigned to EOL. ./ ADD NAME=ESFRECD ESFRECD is a utility design to streamline the process of reflecting changes in DB2 data structures in the CSP records which point to those data structures. It's initial premise or raison detre is that DBA's typically only deal with CSP and ENDEVOR in the area of CSP records. The process of logging into CSP in CICS and ENDEVOR in TSO if one is not usually in these environments and will only be there briefly can be tedious. Additionally, the issue of MSL maintenance is unnecessarily added to the equation. Since the DB2 catalog contained everything needed to update the CSP record and DB2, CSP and ENDEVOR all can be updated in batch, this utility was created to automate those steps into a batch job. ESFRECD performs this CSP record update process in the following steps: 1. Create a temporary MSL and EZEWORK dataset. This insures that no conflict will arise with the user's own MSL and EZEWORK dataset. It also insures that "stray" CSP ITEMs will not mess things up unexpectedly. 2. Initialize the temporary MSL with batch CSP so that ENDEVOR can write to it. 3. Retrieve the record element from ENDEVOR into the temporary MSL. 4. Export the record from the temporary MSL into a sequential file in ESF format. 5. Extract the column information from DB2 which is necessary to refresh (actually rebuild) the CSP record. 6. Sort this information in column sequence order and remove some special HEX characters which will give subsequent batch TSO steps some problems. 7. Invoke batch TSO/ISPF to create an ISPF table of the DB2 table information and an ISPF table of the prologue information for the record from either: A. The prologue "override" dataset created by using a "Y", "E", or "R" in the "CSP Prologue Override" field. B. The ESF CSP record prologue from step #4 above. C. If not present, from the DB2 REMARKS column for that table/view. Once these ISPF tables are built, they are used in ISPF file tailoring services to create the new CSP record in ESF format. 8. Delete/Define the temporary MSL again to insure you are starting with a clean MSL. 9. Import the newly created ESF CSP record into the temporary MSL. 10. Invoke ENDEVOR to ADD/UPDATE the CSP record back into ENDEVOR. When you invoke ESFRECD, you are presented with a screen on which you can type in the necessary information. The data needed is as follows: 1. A DB2 table or view name. This name (unqualified) will the CSP record will point to. 2. A DB2 CREATOR. Even though the record will be unqualified in CSP, the qualification is needed to access the appropriate information in the DB2 catalog table SYSCOLUMNS. 1 3. A CSP record name. 4. An ENDEVOR CCID. Required for the ENDEVOR steps. 5. An ENDEVOR comment. Required for the ENDEVOR steps. 7. A value in the "CSP Prologue Override" field. This value must be one of the following: "N" - This indicates that the prologue from ENDEVOR or from DB2 should not be overridden in favor of a user-developed prologue. This is the default value. "Y" - This indicates that the prologue from ENDEVOR or from DB2 should be overridden in favor of a user-developed prologue. When this option is selected, ESFRECD determines if a prologue override dataset with the name userid.TEMP.ESFRECD.PROVRDSN exists. If it does exist, nothing is done and the flag is just set to "Y". If it does not exist, it is created (always on work packs) , and the prologue for the record is extracted from the CSP to DB2 cross reference file and placed in the file just created. "R" - This value indicates that the prologue override dataset is to be deleted and recreated using the same processing as an initial "Y" value described above. After the refresh has taken place, the value of the flag becomes "Y". "E" - This indicates that the user wants to edit the override dataset to either view its contents and/or to change the contents. If the prologue override dataset does not exist, it will be created and populated like the Refresh or initial "Y" instance described above, and then edited. If it does exist, it will just be edited immediately. When the edit session ends, the flag value becomes "Y". 8. A Y/N flag to trigger ESFRECD to generate the batch job. 9. A Y/N flag to indicate whether the generated job should be edited, or not edited and submitted automatically. Two special features are supported from the panel to present a list of DB2 tables/views to choose from and to access a CSP/DB2 cross reference file to populate the CSP record field if this is an existing record. If you can't remember how to spell a given table/view or just which one you want to choose, specify the table name (and/or the CREATOR) with a '%' at the end of the string you DO know, and ESFRECD will query the DB2 catalog using a "LIKE" WHERE predicate and bring up a panel with a list of tables/views to choose from. On this panel, type an "S" next to the table/view name you wish to choose and press ENTER. You are returned to the main ESFRECD panel and the TABLE and CREATOR fields are populated with your choice. 1 If this is an existing CSP record, you now need to know which record name is associated with this DB2 object. On UNISTAR, we have been maintaining a cross-reference file of CSP record names and DB2 table/view names. It is in 'DUSC1.STR.DOCLIB(CSPDB2XR)' and is recreated each time the CSPDB2XR utility is executed. Since its format is consistant, ESFRECD can reference it and extract the information it needs. To use the cross reference to determine the CSP record name, you must have the DB2 table/view name field populated with a full name and a "?" in the CSP record name. When you press with these fields set in this manner ESFRECD will access the cross-reference file and return the name of the CSP record into the CSP record field on the panel. Now you're ready to generate a job to actually do the work! To do this, just change the "N" to a "Y" in the "Generate JCL Now?" field and press . If the "Review JCL Prior To Submit ?" field value is "N", the generated job will be submitted automatically. If the value is "Y", however, you will be taken into an edit session on the JCL. You must submit the JCL yourself if you choose this route. ./ ADD NAME=EVFCMP EVFCMP is a facility to compare an evf table to another evf file table. To use the utility type TSO EVFCMP enter. The service request is the normal letter and 5 numbers. The user id is the tso user id. The new evf file is the file that contains the changed version of the table and the old evf file name is the file that contains the old version of the table. The database name is the highlevel qualifier that is associated with the table. Examples include: (USC10, LIN51, etc including DFLT) The table name is the table that you want to compare. To review the JCL before submitting you put a Y in the review jcl field. The printout will be in a dataset named P@xxxEVF where xxx is your user id in the held queue. ./ ADD NAME=EVFINFO EVFINFO is a TSO/ISPF based interface to the Edit Verification File (EVF) system. EVFINFO provides a way to display, print, and/or search the contents and profile information of tables on the EVF files. Updating of test or production EVF tables is still accomplished in CICS. EVFINFO is strictly a "read only" interface. There are some commands that can be typed on the command lines of the panels in EVFINFO. There are also one letter commands that can be typed next to displayed rows on EVFINFO panels in some instances. When EVFINFO provides commands, you can view a list of the valid commands by typing a "?" in the field. If you type an invalid command, this same list of valid commands will appear. You may view profile information and contents on EVF tables in test or production. You can do this by overtyping the name of the current EVF VSAM file on the first EVFINFO screen. When this VSAM file name changes, EVFINFO reloads the ISPF tables with new EVF table profile information. EVFINFO will continue to be enhanced. ./ ADD NAME=EXECME The EXECME EDIT MACRO determines the name of the dataset being edited and then invokes it as a CLIST with an "explicit" call. For instance, if you are editing a file named XYZ.ABC.FLAT.FILE, EXECME will invoke it like this: EXEC 'XYZ.ABC.FLAT.FILE' No attempt is made to determine what keyword or positional parameters are necessary for the CLIST. It is also important to note two things: 1. The most recently saved version is the one which is executed. 2. If the file you are editing has a RECFM with carriage control in column 1, the TSO CLIST processor will ignore column 1 data during execution. ./ ADD NAME=EXPERT The EXPERT utility scans SLSS.WORK.LIST(EXPERT) and displays all the lines in which the argument string passed at invocation time is found. SLSS.WORK.LIST(EXPERT) contains a list of who is an "expert" or considers themselves knowledgeable about a specific technical dicipline or specific type of hardware/software. What the EXPERT utility allows you to do is to type in the name of a given technical dicipline or software (e.g. CICS, JCL, COBOL, TSO, etc.), and a list of those people who consider themselves at least knowledgeable about that subject area will be displayed to you. You could also use EXPERT in a "converse" way and type in a name (e.g. Nuechterlein) and find out what that person is an expert in. You may also maintain your own personal expert list in addition to the common one if you wish. If you have a sequential 80 byte dataset named yourtsouserid.EXPERT, the EXPERT utility will scan it as well as the one in SLSS.WORK.LIST(EXPERT). It should also be noted that EXPERT will ignore lines with a "*" in column one in both the common and personal expert lists. This allows for "commenting" or "annotateing" of these lists as you desire. To invoke EXPERT, you can type TSO EXPERT xxxxxx (where "xxxxxx" is the subject matter you're interested in) at any ISPF command line and press ENTER. That's it. ./ ADD NAME=EXPLAIN SELECT main.loan_no, char(main.anti_grad_dt), anti_grad_dt, main.borr_status, main.orig_princ_bal, school.instit_name1, school.instit_name2, lender.lend_name_1, lender.lend_name_2, note.note_int_rate, note.note_int_type, char(note.note_dt), note_dt, note.note_seq_no, main.data_base_no, note.sub_nonsub_cd FROM ( SELECT data_base_no, ssn, loan_no, lender_id, char(anti_grad_dt), anti_grad_dt, borr_status, orig_princ_bal, school_id, branch_id FROM USSLSP00.SLS14V_ACCT_MAIN WHERE ssn = '216642835' ) as main INNER JOIN ( SELECT data_base_no, ssn, borr_birth_dt FROM USSLSP00.SLS15V_ACCT_DEMO WHERE borr_birth_dt = '04/29/1955' AND ssn = '216642835' ) as demo ON main.data_base_no = demo.data_base_no AND main.ssn = demo.ssn INNER JOIN ( SELECT data_base_no, ssn, loan_no, note_int_rate, note_int_type, char(note_dt), note_dt, note_seq_no, sub_nonsub_cd FROM USSLSP00.SLS02V_NOTE WHERE ssn = '216642835' AND note_seq_no = '01' ) as note ON main.data_base_no = note.data_base_no AND main.ssn = note.ssn AND main.loan_no = note.loan_no INNER JOIN USSLSP00.SLS05V_LENDER lender ON main.lender_id = lender.lender_id LEFT OUTER JOIN USSLSP00.SLS04V_SCHOOL school ON main.school_id = school.school_id AND main.branch_id = school.school_branch_id ./ ADD NAME=FINDALL This utility allows you to place your cursor on any non-blank string in an edit session. The utility will then determine the beginning and ending of the string (as delimited by ' ', '=', ',', or '.'). Once it has the string, it will do a "find all" of the string. ./ ADD NAME=FLOW The FLOW edit macro allows you to place your cursor on a particular column on a piece of text and it will "text-flow" from the line where your cursor is and then indent the results to column where your cursor is. It assumes that the right most boundry of the the text will be the LRECL of the file being edited. As an example, this paragraph begins in column 2 and goes to column 80 if you are browsing it. If you are printing it with carriage control, it will be 1 an 79 respectively. Anyway, if I type flow on the command line and then place my cursor on the word "this" (on the "t" of "this") and press , the paragraph is processed and looks like the following: As an example, this paragraph begins in column 2 and goes to column 80 if you are browsing it. If you are printing it with carriage control, it will be 1 an 79 respectively. Anyway, if I type flow on the command line and then place my cursor on the word "this" (on the "t" of "this") and press , the paragraph is processed and looks like the following: As an alternative to typing "FLOW" on the command line each time, you could set a PF key to "FLOW" instead. This could be quite helpful if you are currently editing a doucument file and you will be doing this often. If FLOW is on a PF key, you would just place your cursor where you want the flow to start and the indentation to start, and press the assigened PF key. ./ ADD NAME=FNDSSNSH This utility can be used several ways. The first is to just enter TSO FNDSSNSH on the command line. This will display a panel that accepts a ssn number and returns the servhst file that the ssn would be located on. To exit enter "END" on the command line or enter the pf key setup for exit (Usually PF3 or PF15). Another way to use this is to enter TSO FNDSSNSH SSN(#########) and the SERVHST file location will be returned in the upper right hand corner. This is only for the USC10 database. ./ ADD NAME=GDASWTCH GDASWTCH is a CLIST which permits you to toggle back and forth between the system default GDA control file and your personal GDA control file if you have one. It does this by renaming your GDA control file so that the system does not find it to execute, and renaming it back so that the system does find it to execute. It's a "toggle" type of execution so that it takes the current situation and just reverses it. So, if you have a GDA control file and you are at the READY prompt (where GDASWTCH must be executed), you simply type GDASWTCH and press (don't type "tso" in front of it). GDASWTCH renames your control file from userid.GDA.DATA to userid.GDA.DATA.RENAMED, sends you a message to let you know that the "system default" GDA control file ('SYS2.GDA.CNTL(GDATA)') is now being used. If you then get back out to the READY prompt and type GDASWTCH again, it renames the file back from userid.GDA.DATA.RENAMED to userid.GDA.DATA, sends you a message to let you know that your personal GDA is now in effect and invokes GDA. If you just want to do the rename, but you don't want to re-invoke GDA processing, you type GDASWTCH NOEXEC. GDASWTCH does the naming and sends you the message and just exits. If GDASWTCH cannot find a dataset named userid.GDA.DATA or userid.GDA.DATA.RENAMED, it sends a message to that effect and just quits. ./ ADD NAME=GDGGEN This utility can be called from a CLIST to evaluate relative GDG generation numbers for a dataset, and convert them into "GOOVOO's" to enable the CLIST to process the dataset. When you invoke GDGGEN you pass the keyword parm "DSN". GDGGEN will then VPUT the following variables into the SHARED pool. LIMIT - The number of generations allowed for this GDG index. NEXTGEN - The GOOVOO for the "+1" version of the dataset. MINUS0 thru MINUS999 (where 999 = the LIMIT of this index) - The GOOVOO for each relative generation number on the index. ./ ADD NAME=GENSYNS GENSYNS is a utility which will create DB2 synonyms for UNISTAR programmers on the UNISTAR development tables (USSTRD00 creator) where one does not exist and that table does not exist in the programmer's personal database. SYNTAX: COMMAND ===> gensyns {edit} Optional parameter "edit" indicates that you wish to edit the JCL which is created for you by the GENSYNS utility. If this parameter is specified, you must submit the JCL yourself. If this parameter is not specified, GENSYNS will create and submit the JCL necessary to perform the synonym creation. GENSYNS is a two-phase process. First, GENSYNS queries the DB2 catalog and finds table and view names listed in the PLATINUM security table for which there is not a synonym created for you. If such a situation exists, it also checks to see if that table has been "cloned" into your own personal database (and consequently, a synonym is not required). If the table has not been cloned and the synonym does not exist, it writes the necessary DDL to create the synonym to an output file. The second phase invokes the PLATINUM batch processor to actually execute the DDL on your behalf and create the synonym(s). You only need to invoke GENSYNS when, after you've finished using a table(s) in your personal database, you delete that table(s) and want to resume using the UNISTAR development table(s) instead. In the instance where a new person joins the UNISTAR team or a new table/view is created for which people need synonyms, the DBA team will execute GENSYNS in a global fashion to build all necessary synonyms at once. ./ ADD NAME=GETDBREC This utility takes the name of the database record passed to it, calls IDMSDMLC and returns the record layout in a format directly ready for a COBOL program. The record layout is returned directly into the file being edited. It will be placed after the 1st "excluded" line in the file if there is one, or after the 1st line in the file. This utility only works in a PDS. Syntax Example : (Note : you must be on the same system as the IDMS CV) Command ===> getdbrec ca-case dict02 This example will put the layout of the CA-CASE record into the PDS member being edited. It will get the data from the IDD in DICT02. ./ ADD NAME=GETHELP This utility allows you to enter TSO GETHELP commandname and press ENTER, and the help associated with "commandname" will be placed in a dataset and you will be taken into an edit of that dataset. If the the help does not exist for that command, you will be given a message stating that. ./ ADD NAME=GETMAP This utility allows you to type GETMAP mapname on the command line, and the map in the IDD will be decompiled, and the results stored in the file you are editing. You must specify an "a" or "b" on the line where the map is to be inserted "after" or "before". ./ ADD NAME=GETME The GETME CLIST allows the user to get datasets from another JES location on the network without having to logon to other locations and transmit the datasets. GETME submits a job to run AT THE OTHER LOCATION which then performs a TSO TRANSMIT back to your userid here. You can then perform a TSO RECEIVE to load the transmitted data to a dataset here. You must know a valid logonid/password combination, job access code, and job class on the other location's data center to use GETME. When you type TSO GETME, you are presented with a screen in which to type the necessary information. When you press with the proper information entered, the job is submitted. You will receive system messages when you receive the data back here. ./ ADD NAME=GETMOD This utility takes an ADS/O module name as input, and calls IDMSDDDL in foreground, and gets VERSION 1 of the named module from the IDD and copies it into the file that you are editing. The utility requires that you be logged on to the same system as the CV is running. ./ ADD NAME=GETOUTPT GETOUTPT loads batch job output from the SDSF held queue into a dataset. The command syntax is as follows: COMMAND ===> tso getoutput jobname {permanent} Example: COMMAND ===> tso getoutput p@dalxxx "jobname" - The name of the job you want extracted from SDSF. Due to the restrictions of the TSO "OUTPUT" command which is used to perform this task, you can only use GETOUTPT on your own jobs. Use the SDSF PRINT ODSN command for other situations. "permanent" - This is an optional keyword which, if specified, indicates that the dataset should be allocated on permanent DASD instead of a work pack. Work pack allocation is the default. Each job with the same name will be extracted, but each job will be in a separate dataset. The datasets will have the name format of: userid.JES.SYSOUT.jobname.jobnumber Each dataset is defined as LRECL=255, RECFM=FBA. ./ ADD NAME=GETPR The GETPR utility reads the maintenance log VSAM file and extracts the information for the PR number you specify. That information is then formatted and put into and 80 byte temporary file. You are then taken into and edit of the file. Have you ever wanted to look up the information on a given PR and wished you did not have to search through some paper files or wished you had access to the T990 transaction in production. Well, now you can just type TSO GETPR xxxxxx (where "xxxxxx" is the PR number) and press , and you will get the information you need about that PR. ./ ADD NAME=HEXADD This CLIST takes 2 hexadecimal numbers as input, adds them together and displays the result in hexadecimal and decimal format. An example is as follows : COMMAND ===> HEXADD 34FE 557834 The resulting message would be : HEX (34FF) + HEX (557834) = DECIMAL (5614899) HEX (55AD33) Neither input number can be greater than 8 digits in length. ./ ADD NAME=HEXSUB This CLIST takes 2 hexadecimal numbers as input, subtracts the 2nd from the 1st and displays the result in hexadecimal and decimal format. An example is as follows : COMMAND ===> HEXSUB 789EF AAA The resulting message would be : HEX (789EF) - HEX (AAA) = DECIMAL (491333) HEX (77F45) Neither input number can be greated than 8 digits in length. ./ ADD NAME=HEX2DEC This CLIST will convert an input number in hexadecimal format to decimal format and display it on the screen. The syntax is simple and as follows : COMMAND ===> TSO HEX2DEC 345FF The output message from this example would be HEXADECIMAL NUMBER 345FF = DECIMAL NUMBER 214527 Due to the limitations in TSO, the input number cannot be greater than 8 digits. ./ ADD NAME=INDEXCOL INDEXCOL accesses the DB2 catalog to determine all the columns in all the indexes for a given creator id. It then adds up the bytes in each index and loads the results into an ISPF table and displays them in a scrolling panel. At the time of this writing no tool gives this information though it can be useful when doing catalog statistics updates for EXPLAIN "what-iffing" with Candle's !DB-Explain product. Syntax: COMMAND ===> tso indexcol {creator(creatorid)} The default creator id is "USSTRD00" (UNISTAR development). When the list is presented on your screen you have a few primary commands and one line command to choose from. Line command: "X" - This command on any line will exclude that line from the current display. This may be useful if you are wanting to keep a display of multiple index lengths on one screen but there are many screens worth of lines which you do not want to see. Primary Commands: "DEBUG ON³OFF" - This dynamically turns on or off debugging messages while INDEXCOL is executing. "EDIT" - This command will bring you into an edit session on the work file which INDEXCOL created while preparing the scrollable list screen. It contains all the individual columns, their length, and sequence, and total length in one big file. This may be useful to see the details for a given index. "FIND xxx" - This command will position your display to the first line where a given string is found. It is a good tool to position you to a particular set of indexes for a particular table since the index names all begin with the subject area prefix. "RESET" - This command will reset all the excluded lines (if there are any) so that all lines are displayed again. ./ ADD NAME=INFODSN This utility presents a panel of information about a dataset (similar in format to ISPF option 3.2.) You invoke the utility by typing "tso infodsn" at any ISPF command line. You then enter the desired dataset name in the proper field and press ENTER. The information is then displayed. You may overtype the 1st dataset name with a 2nd dataset name (3rd, 4th, 5th, etc.) and see information on it. You may use any sequential file, sequential files with relative GDG numbers, and PDS library names with or with out member names. This utility can also be invoked as an edit macro to bring up dataset information about a dataset being edited. ./ ADD NAME=INFRONT INFRONT is an edit macro which places a string in column 1 of every selected line and shifts the data (allowing truncation on the right if necessary) to the right by the amount of the length of the specified string. Lines are selected for processing by specifying such things as "X" or "NX" to indicate an excluded status of lines and/or edit labels to indicate a range of lines. Specifying nothing will cause ALL lines in the file to be processed. If no parameter is specified, you will be prompted to make sure you really want to process all lines in the file. EXAMPLES: Place string "abc" in front of all excluded lines. "before" processing: x00017 11111111 000018 22222222 0x0019 33333333 000020 44444444 00x021 55555555 COMMAND ===> infront 'abc' x "after" processing: 000017 abc11111111 000018 22222222 000019 abc33333333 000020 44444444 000021 abc55555555 Place string "abc" in front of all excluded lines in label range .a .b "before" processing: x00017 11111111 .a0018 22222222 0x0019 33333333 .b0020 44444444 00x021 55555555 COMMAND ===> infront 'abc' x "after" processing: 000017 11111111 .A 22222222 000019 abc33333333 .B 44444444 000021 55555555 ./ ADD NAME=INSCOPY The INSCOPY edit macro will insert the lines from all of the copy book members in a COBOL program into the program as edit "message" lines. So, you're editing your program and you would like to see all of your copy book lines. Just type INSCOPY on the command line and it will parse your program for all the uncommented "COPY" verbs and their associated member names. It then reads those members and inserts the lines in your code as edit "message" lines. When we upgrade to the next level of ISPF, you will be able to actually make those message lines into normal data lines and store them with your code using the new MD ("make data") line command. ./ ADD NAME=ISPFTABL This utility allows you to load or append an ISPF table from a sequential file or PDS member. If the ISPF table exists, its table definition will be displayed, and the user can then specify which dataset columns go into which fields, or what default value will go into a field. If the ISPF table does not exist, the user can define the fields that will go into the table and in addition to loading the table, it will be created as well. The dataset from which the data will be loaded is also displayed with a column scale and can be scrolled 4 ways and strings can be found. Finally, the load dataset can be sorted/stripped prior to load via SyncSort by specifying a sort cards dataset (this may be edited from the ISPFTABL panel also). ./ ADD NAME=JCLBLKSZ The JCLBLKSZ edit macro will automatically interrogate your JCL, find all the LRECL DCB parameters, calculate an efficient BLKSIZE parameter and insert it in the JCL. Simply type JCLBLKSZ on the command line and press and it does the processing. By default, JCLBLKSZ will insert an edit "message line" into the JCL before the line it would replace and show you what the BLKSIZE would be. In ISPF 3.0 and higher, you could then use the MD (make data) line command and make the message into a data line. Alternatively, you can specify the WRITE parameter when you invoke JCLBLKSZ and it will go ahead and delete the old line and replace it with the new line with the correct BLKSIZE parameter. You can have a BLKSIZE parameter in your DCB parameter, or you may leave it out. Either way, JCLBLKSZ will create a correct new line and insert it into the JCL. ./ ADD NAME=JCLCHECK The ISPF dialog JCLCHECK will automatically create JCL which invokes Conrad Brehm's JCLCHECK facility to QA JCL going into production. It uses the PDS utility's member grouping facility to allow for processing many members at one time. You can invoke JCLCHEK as an EDIT MACRO by typing JCLCHECK and pressing ENTER when you are editing a JCL member. You can also invoke JCLCHECK as a normal CLIST by typing TSO JCLCHECK on any ISPF command line. In both situations you are presented with a panel where you can enter the appropriate information. The created JCL can be submitted automatically, or you can opt to edit the JCL after it's created and you can submit it manually yourself. ./ ADD NAME=JCLCLIST This edit macro converts JCL code into equivilent (or close) TSO CLIST code. To execute it, you edit the JCL to be converted; "exclude" the lines which comprise 1 job step (the first excluded line MUST be the EXEC card); type JCLCLIST on the command line and press ENTER. The JCL statements will then be REPLACED by the CLIST statements (i.e. don't do this to JCL you want to save... make a copy 1st !.) If a dataset name has a relative GDG number, it will not be converted, but must be dealt with prior to running the CLIST as relative GDG #'s don't work in CLIST's yet. Steps with STEPLIB will convert to the TSO TASKLIB facility. Steps without a STEPLIB will convert to the TSO CALL command and assume the module is in SYS2A.LINKLIB. ./ ADD NAME=JCLSCAN JCLSCAN is an edit macro which operates interactively on the JCL you're editing. It submits a scan of the JCL and then reads the output of the scan. JES2 and JCL error messages are inserted at the proper point in your JCL. PROC expansion lines are also inserted at the proper point in your JCL. These insertions are in the form of edit "message" lines. At the end of the processing, a message is displayed which indicates how many message lines were inserted and how many of those lines are error messages as well. To execute JCLSCAN, just type JCLSCAN on the command line while editing the JCL and press ENTER. Messages will be displayed during the process to keep you appraised of its progress. Practically, JCLSCAN serves both as an error checker, and a PROC expander. When ISPF 3.2 or higher are in place, the MD line command can be used to make these inserted message lines into data lines. This also adds the ability to create test versions of JCL from production PROCs, by making the expanded proc message lines into data lines and using them in the JCL. There are a few positional (optional) keyword parameters which may be specified with JCLSCAN. The reserved keywords EDIT or (mutually exclusive options) PRINT indicate that the user wishes to edit or print (using the PRINTIT utility) the actual results of the JCL scan. They are always kept in a dataset named youruserid.TEMP.JCLSCAN.JOB. The results are placed as message lines in the JCL you are editing, but they still remain as results of the scan in and of themselves. One of the nice features of using the JCL scan listing dataset later is that the error message lines (if any) are positioned within the scan output where they occur. There is an "eyeball" string of "!!ERROR!!ERROR>>" prefixing the line which helps to locate these errors in a printout. The scan output listing dataset is written to temporary DASD and is always named the same, so that it will go away nightly, and be replaced every time you execute JCLSCAN. The other positional parameter which may be used is PROCnn where "nn" is any number from "00" through "99". This is, of course, a proclib name. If you specify a proclib name, the proclib name you specify will be used in the scan regardless of what is actually coded in the JCL. If a proclib name is explicity coded in the JCL or explicitly specified when invoking JCLSCAN warning message lines will be inserted in the JCL to let you know that "default" proclib processing is not occurring (even if you specify or code "PROC00"). Examples: COMMAND ===> jclscan COMMAND ===> jclscan edit COMMAND ===> jclscan proc01 COMMAND ===> jclscan print proc02 COMMAND ===> jclscan proc02 edit COMMAND ===> jclscan proc02 print ./ ADD NAME=JCLSPLIT This utility will read all the JCL lines that are excluded in a file of JCL and attempt to split lines that contain more than one parameter per line into 2 or more lines, and line up the parameters in the proper columns. ./ ADD NAME=KEYCOUNT This utility allows you to count the occurances of each unique string within two column boundries in a file that you are editing. To do so, you type "keycount c1 c2" where "c1" = the beginning column of the "key", and "c2" is the ending column of the "key". This information is passed to the COUNTKEY utility along with the dataset name. The results are passed back to you by taking you into an edit of a dataset where the report of the results has been stored. ./ ADD NAME=LA The LA utility is a one-line CLIST which invokes the PDS utility to access its formatted LISTALC table display. As you may or may not know, the TSO LISTALC (or LISTA) command will show you what datasets are currently allocated to which DDNAMEs in your TSO session. It is helpful information, but not in a very useful format. The PDS utility has a builtin function which displays these allocations in a scrollable table and permits you to process against the datasets in a variety of ways. The PDS utility can only be invoked with a dataset name to process against, so the LA utility uses your ISPF profile dataset as the "seed dataset" if you will. The help provided with this function in PDS is fairly good so you can use it to further familiarize yourself with the LISTA screen functions. Note: since you are in PDS, you will have to "END" twice to exit this utility table display....just the nature of the beast. ./ ADD NAME=LABLPROF This utility allows the user to set a series of labels in an edit session (via typing ".xxxxx" where xxxxx is a label name on an edit line number and pressing ENTER) and save them in a "label profile" specific to that member. When they return to that member, they are able to reset all of their labels to the values in the "label profile". To set a label profile, set the labels in the edit session and then type LABLPROF SET on the command line and press ENTER. To label lines in a file from the saved "label profile" type LABLPROF and press ENTER (while in an edit session of the specific file). To see what lines are currently associated with which labels in the edit profile, type LABLPROF SHOW and press ENTER. Message lines will be inserted which show you the name of the label (e.g. ".A") and the text on that line. When you rename a member, the label profile for that member is not automatically renamed. You can rename the label profile by executing the LABLPROF edit macro and specifying the keyword RENAME and the OLD NAME that you're renaming from. So, if you renamed member "A" to "B", while editing "B", you would type LABLPROF RENAME A and press enter, and the "A" label profile would be renamed to "B". Similar to the RENAME function is the COPY function. In the previous example, if you had created member "B" as a COPY of member "A", you could copy the label profile by typing LABLPROF COPY A while editing member "B". ./ ADD NAME=LAYOUT LAYOUT is an edit macro which returns position and length information about a COBOL data element description, or converts a COBOL data element description into SYNCSORT SYSIN. The best way to describe the value of LAYOUT is to describe the common problems it solves. Have you ever wanted to know how big a print line definition is? Have you ever wanted to know if your RECORD CONTAINS matches your file layout in number of bytes (whether described in the FD or in WORKING-STORAGE)? This has usually meant tediously counting up the picture clauses (including COMP, COMP-3 conversions and numeric edited fields) and hoping you counted right until you abended or the compile did not work! There is an edit macro named ADDCOL which has provided some help up until now, but it requires all the picture clauses to be of the same digit precision, beginning in the same column, and the data elements must be display or numeric-display format. That's ok for a few things, but reality dictates that you're going to need to know the length of much more complex data element definitions than that. Let's use the following example of a data element layout and the results that the LAYOUT edit macro would return: ***************************************************************** * COPYBOOK: DATEFD * ***************************************************************** FD IN-DATE-CARD-FILE RECORDING MODE IS F RECORD CONTAINS 80 CHARACTERS BLOCK CONTAINS 0 RECORDS LABEL RECORDS ARE STANDARD DATA RECORD IS IN-DATE-CARD-RECORD. 01 IN-DATE-CARD-RECORD. 05 IN-RUN-DATE. 10 IN-DATE-YY PIC X(02). 10 IN-DATE-MM PIC X(02). 10 IN-DATE-DD PIC X(02). 05 FILLER PIC X(01). 05 IN-DSNQUAL PIC X(05). 05 FILLER PIC X(68). First we would "exclude" the lines we want to process: ***************************************************************** * COPYBOOK: DATEFD * ***************************************************************** FD IN-DATE-CARD-FILE RECORDING MODE IS F RECORD CONTAINS 80 CHARACTERS BLOCK CONTAINS 0 RECORDS LABEL RECORDS ARE STANDARD DATA RECORD IS IN-DATE-CARD-RECORD. - - - - - - - - - - - - - - - - 8 line(s) not displayed Then we would type the following on the command line: COMMAND ===> layout x 1 This means to execute the LAYOUT edit macro on the "excluded" lines. The results would look like the following: ***************************************************************** * COPYBOOK: DATEFD * ***************************************************************** FD IN-DATE-CARD-FILE RECORDING MODE IS F RECORD CONTAINS 80 CHARACTERS BLOCK CONTAINS 0 RECORDS LABEL RECORDS ARE STANDARD DATA RECORD IS IN-DATE-CARD-RECORD. ==MSG> POSITION=1 LENGTH=80 01 IN-DATE-CARD-RECORD. ==MSG> POSITION=1 LENGTH=6 05 IN-RUN-DATE. ==MSG> POSITION=1 LENGTH=2 10 IN-DATE-YY PIC X(02). ==MSG> POSITION=3 LENGTH=2 10 IN-DATE-MM PIC X(02). ==MSG> POSITION=5 LENGTH=2 10 IN-DATE-DD PIC X(02). ==MSG> POSITION=7 LENGTH=1 05 FILLER PIC X(01). ==MSG> POSITION=8 LENGTH=5 05 IN-DSNQUAL PIC X(05). ==MSG> POSITION=13 LENGTH=68 05 FILLER PIC X(68). The newly inserted lines are called edit "message" lines. They are not "real" data lines and are deleted via the RESET or RESET SPECIAL command. Additionally, if you have your terminal contrast set appropriately or have a color terminal, these lines are "highlighted" so they stand out more. Now would be a good time to discuss the philosopy of LAYOUT. LAYOUT works on the concept that, while I might be able programatically process the data element description myself, the task would be significant, and it's already been done for me.....it's call the compiler! What LAYOUT actually does is COMPILE the data element definition you identify and interrogate the compile listing to extract data element length information. From the length information, it derives "position" information within the data element structure as well. So, anyway, back to the task at hand. You want to know how big a data element definition is. LAYOUT will tell you automatically without the need for you to exercise a single synapse. Because the layout is determined by compiling the data element definition, you need to identify this definition to LAYOUT so that it can compile it. Let's start with some easy examples and move to harder ones. If you are in edit of a copybook and you want to find out the length and positions of each data element in the copybook, just type LAYOUT on the command line and press ENTER. LAYOUT will make a "program" around this copybook (non-destructive to the member you are editing) with the copybook as the WORKING-STORAGE. As in the example shown above, LAYOUT will compile the data element description, interrogate the compile listing and then insert the POSITION/LENGTH message lines. 1 In the example above, the data element description was part of the FD, but since LAYOUT is going to make "WORKING-STORAGE" out of your identified lines, you have to make sure that all you identify is valid working-storage lines (and comment lines are permissable as well). In the above example we did that by "excluding" the lines we wanted to process and then "telling" LAYOUT to process only the excluded lines. To paraphrase, LAYOUT can accept any data lines which would be valid in a COBOL WORKING-STORAGE section, including comment lines. If the file you are editing contains only that, then all you need to do is type "layout" on the command line and press ENTER. Otherwise, you need to isolate those lines which you want to process with LAYOUT and then "tell" LAYOUT which lines to process. In the previous example, we excluded the lines and then specified that only excluded lines were to be processed. Basically, lines to be processed by LAYOUT can be specified by the use of the excluded status of the lines, (which can mean excluded or "x" or non-excluded or "nx") user edit labels, system edit labels, or any combination of the three. For more information on the use of edit labels (a little known but EXTREMELY powerful facility of the ISPF editor), see the ISPF edit tutorial....only a PF-key away! Valid examples of how to invoke LAYOUT include the following (where ".a" and ".b" are "user" edit labels, and the edit labels beginning ".z" are "system" edit labels): COMMAND ===> layout .a .b COMMAND ===> layout .a .zlast COMMAND ===> layout .zcsr .a x COMMAND ===> layout nx COMMAND ===> layout x .a .b COMMAND ===> layout LAYOUT has another basic function and, consequently, a problem that it solves. I mentioned that LAYOUT not only tells you the length of the data element, it also indicates the position that data element begins in within the data structure being processed. Now, where in data processing is position and length of data used most frequently? External sorts of course! Have you ever wanted to use SYNCSORT to extract and/or report data on a file? Of course you have. Have you had to count bytes based on a COBOL layout definition of the file you are processing? Of course you have. have you wanted to deal with data that is hundreds of bytes past the first column and is in the middle of a forest of "flag" fields? Of course you have. Hopefully, LAYOUT can make this process a little easier for you. The other facility which LAYOUT performs is the conversion of a COBOL data element definition into "SORT FIELDS="-compatible format. The first item to emphasize in this discussion is CONVERT....this is a DESTRUCTIVE operation. Your COBOL definition is REPLACED in the file you are editing, with the SYNCSORT SYSIN, and the lines not processed by LAYOUT are deleted! When LAYOUT is operating in this mode, it is a conversion tool, not just an information tool! Ok, now that we have "the fear of God" in you, we can continue. LAYOUT uses the position and length information it knows as well as the data type information it has acquired from the compile listing, and the data name itself to create a documented SYNCSORT SYSIN. The impetus for this entire utility was the need to do some quick and dirty extract/reporting on the UNIPAC SLSS transaction file. So, we'll use it in our example. 1 Let's say, for example, that you needed to create a quick and dirty report from T100, T230, and T335 transactions with SYNCSORT. Here are the steps you would take using the LAYOUT utility: 1. Copy the copybooks TRANHEAD, TRAN100, TRAN230, TRAN335 and TRANAPPD (in that order) into a clean member. The result (without comment lines) would look like this (as of 8-20-92): 044900 01 TRANSACTION-RECORD. TRANHEA 045000 05 T-CODE PIC X(03) VALUE SPACES. TRANHEA 045100 05 T-ISAM-KEY. TRANHEA 045200 10 T-SSN. TRANHEA 045300 15 T-SSN1 PIC X(03) VALUE SPACES. TRANHEA 045400 15 T-SSN2 PIC X(02) VALUE SPACES. TRANHEA 045500 15 T-SSN3 PIC X(04) VALUE SPACES. TRANHEA 045600 10 T-LOAN-NUMBER PIC X(01) VALUE SPACES. TRANHEA 045700 05 T-LAST-NAME PIC X(15) VALUE SPACES. TRANHEA 045800 05 T-TRANS-DATE. TRANHEA 045900 10 T-DATE-YY PIC X(02) VALUE SPACES. TRANHEA 046000 10 T-DATE-MM PIC X(02) VALUE SPACES. TRANHEA 046100 10 T-DATE-DD PIC X(02) VALUE SPACES. TRANHEA 046200 05 T-TIME PIC X(06) VALUE SPACES. TRANHEA 046300 05 T-EFFECTIVE-DATE. TRANHEA 046400 10 T-EFFECTIVE-YY PIC X(02) VALUE SPACES. TRANHEA 046500 10 T-EFFECTIVE-MM PIC X(02) VALUE SPACES. TRANHEA 046600 10 T-EFFECTIVE-DD PIC X(02) VALUE SPACES. TRANHEA 046700 05 T-BATCH-NUMBER PIC X(06) VALUE SPACES. TRANHEA 046800 05 REST-OF-TRAN PIC X(207) VALUE SPACES. TRANHEA 120300 05 TRAN-100 REDEFINES REST-OF-TRAN. TRAN100 120400 10 T-PRIOR-PRINC-BAL-100-X. TRAN100 120500 15 T-PRIOR-PRINC-BAL-100 TRAN100 120600 PIC S9(05)V9(02). TRAN100 120700 10 T-CHECK-SUBNO PIC 9(01). TRAN100 120800 10 FILLER PIC X(06). TRAN100 120900 10 T-CHECK-AMT-X. TRAN100 121000 15 T-CHECK-AMT PIC S9(05)V9(02). TRAN100 121100 10 T-CHECK-MANIFEST-DATE. TRAN100 121200 15 T-CHECK-MAN-YY PIC X(02). TRAN100 121300 15 T-CHECK-MAN-MM PIC X(02). TRAN100 121400 15 T-CHECK-MAN-DD PIC X(02). TRAN100 121500 10 T-LOAN-PERIOD-BEGIN-DATE-100. TRAN100 121600 15 T-LOAN-BEGIN-100-YY TRAN100 121700 PIC X(02). TRAN100 121800 15 T-LOAN-BEGIN-100-MM TRAN100 121900 PIC X(02). TRAN100 122000 15 T-LOAN-BEGIN-100-DD TRAN100 122100 PIC X(02). TRAN100 122200 10 T-CHECK-INS-FEE-X. TRAN100 122300 15 T-CHECK-INS-FEE PIC S9(05)V9(02). TRAN100 122400 10 T-PRIOR-PRINC-NONSUB-100-X. TRAN100 122500 15 T-PRIOR-PRINC-NONSUB-100 TRAN100 122600 PIC S9(05)V9(02). TRAN100 122700 10 T-ORIG-FEE-DED-100 PIC S9(05)V9(02). TRAN100 122800 10 T-FIRST-NAME-100 PIC X(12). TRAN100 122900 10 T-MIDDLE-INITIAL-100 TRAN100 123000 PIC X(01). TRAN100 123100 10 T-CHECK-FLAG-100 PIC X(01). TRAN100 123200 10 T-END-DATE-FLAG-100 PIC X(01). TRAN100 123300 10 T-NOTE-ID-NO-100-X. TRAN100 123400 15 T-NOTE-ID-NO-100 TRAN100 123500 PIC S9(02). TRAN100 1 123600 10 T-GUARANTOR-ID-100 PIC X(04). TRAN100 123700 10 T-GRAM-RUDMAN-FLAG-100 TRAN100 123800 PIC X(01). TRAN100 123900 10 T-INTEREST-RATE-100-X. TRAN100 124000 15 T-INTEREST-RATE-100 TRAN100 124100 PIC SV9(05). TRAN100 124200 10 T-WINDFALL-FLAG-100 PIC X(01). TRAN100 124300 10 T-ACH-CODE PIC X(03). WWA1115 124400 10 T-LATE-DISB-FLAG-100 JGA1115 124401 PIC X(01). JGA1115 124402 10 FILLER PIC X(121). WWA1115 002700 05 TRAN-230 REDEFINES REST-OF-TRAN. TRAN230 002800 10 T-SECURITY-CODE PIC X(04). TRAN230 002900 10 T-PRIOR-PRINC-BAL-230-X. TRAN230 003000 15 T-PRIOR-PRINC-BAL-230 TRAN230 003100 PIC S9(05)V9(02). TRAN230 003200 10 T-PRIOR-PRINC-NONSUB-230-X. TRAN230 003300 15 T-PRIOR-PRINC-NONSUB-230 TRAN230 003400 PIC S9(05)V9(02). TRAN230 003500 10 T-PRINCIPAL-ADJ-AMT-X. TRAN230 003600 15 T-PRINCIPAL-ADJ-AMT TRAN230 003700 PIC S9(05)V9(02). TRAN230 003800 10 T-INTERIM-INT-ACCRUAL-AMT-X. TRAN230 003900 15 T-INTERIM-INT-ACCRUAL-AMT TRAN230 004000 PIC S9(05)V9(02). TRAN230 004100 10 FILLER PIC X(01). G1A0979 004200 10 T-NET-TOTAL-FLAG-230 G1A0979 004300 PIC X(01). G1A0979 004400 10 FILLER PIC X(05). G1A0979 004500 10 T-INTERIM-INT-RECIEVED-TD-X. TRAN230 004600 15 T-INTERIM-INT-RECIEVED-TD TRAN230 004700 PIC S9(05)V9(02). TRAN230 004800 10 T-GOVT-INT-ACCRUAL-AMT-X. TRAN230 004900 15 T-GOVT-INT-ACCRUAL-AMT TRAN230 005000 PIC S9(05)V9(02). TRAN230 005100 10 FILLER PIC X(07). TRAN230 005200 10 T-REPAYMENT-INT-ACCRUAL-AMT-X. TRAN230 005300 15 T-REPAYMENT-INT-ACCRUAL-AMT TRAN230 005400 PIC S9(05)V9(02). TRAN230 005500 10 FILLER PIC X(07). TRAN230 005600 10 T-REPAYMENT-INT-RECIEVED-TD-X. TRAN230 005700 15 T-REPAYMENT-INT-RECIEVED-TD TRAN230 005800 PIC S9(05)V9(02). TRAN230 005900 10 T-INTERIM-DATE-230. TRAN230 006000 15 T-INTERIM-YY PIC X(02). TRAN230 006100 15 T-INTERIM-MM PIC X(02). TRAN230 006200 15 T-INTERIM-DD PIC X(02). TRAN230 006300 10 T-REPAY-DATE-230. TRAN230 006400 15 T-REPAY-YY PIC X(02). TRAN230 006500 15 T-REPAY-MM PIC X(02). TRAN230 006600 15 T-REPAY-DD PIC X(02). TRAN230 006700 10 T-GOVT-DATE-230. TRAN230 006800 15 T-GOVT-YY PIC X(02). TRAN230 006900 15 T-GOVT-MM PIC X(02). TRAN230 007000 15 T-GOVT-DD PIC X(02). TRAN230 007100 10 T-ACTIVITY-CODE-230 PIC X(01). TRAN230 007200 10 T-NOTE-ID-NO-230-X. TRAN230 007300 15 T-NOTE-ID-NO-230 TRAN230 007400 PIC S9(02). TRAN230 007500 10 T-REASON-FOR-230 PIC X(03). TRAN230 1 007600 10 T-AMOUNT-OF-REASON-230-X. TRAN230 007700 15 T-AMOUNT-OF-REASON-230 TRAN230 007800 PIC S9(05)V9(02). TRAN230 007900 10 T-INTEREST-RATE-230-X. TRAN230 008000 15 T-INTEREST-RATE-230 TRAN230 008100 PIC SV9(05). TRAN230 008200 10 T-NON-CASH-230 PIC X(01). WWA0979 008300 10 T-ACCOUNT-NUM-230 PIC X(06). GMA0979 008400 10 T-PRINC-ADJ-AMT-MULTI-230-X. G1A0979 008500 15 T-PRINC-ADJ-AMT-MULTI-230 G1A0979 008600 PIC S9(05)V9(02). G1A0979 008700 10 T-REPAY-INT-ACCR-MULTI-230-X. G1A0979 008800 15 T-REPAY-INT-ACCR-MULTI-230 G1A0979 008900 PIC S9(05)V9(02). G1A0979 009000 10 T-REPAY-INT-RCVD-MULTI-230-X. G1A0979 009100 15 T-REPAY-INT-RCVD-MULTI-230 G1A0979 009200 PIC S9(05)V9(02). G1A0979 009300 10 T-INTRM-INT-ACCR-MULTI-230-X. G1A0979 009400 15 T-INTRM-INT-ACCR-MULTI-230 G1A0979 009500 PIC S9(05)V9(02). G1A0979 009600 10 T-INTRM-INT-RCVD-MULTI-230-X. G1A0979 009700 15 T-INTRM-INT-RCVD-MULTI-230 G1A0979 009800 PIC S9(05)V9(02). G1A0979 009900 10 T-GOVT-INT-ACCR-MULTI-230-X. G1A0979 010000 15 T-GOVT-INT-ACCR-MULTI-230 G1A0979 010100 PIC S9(05)V9(02). G1A0979 010200 10 FILLER PIC X(41). G1A0979 222300 05 TRAN-335 REDEFINES REST-OF-TRAN. TRAN335 222400 10 T-PRIOR-PRINC-BAL-335-X. TRAN335 222500 15 T-PRIOR-PRINC-BAL-335 TRAN335 222600 PIC S9(05)V9(02). TRAN335 222700 10 T-ACCRUAL-TYPE-335 PIC X(01). TRAN335 222800 10 T-AMT-INTEREST-ACCR-335-X. TRAN335 222900 15 T-AMT-INTEREST-ACCR-335 TRAN335 223000 PIC S9(05)V9(02). TRAN335 223100 10 T-AMT-PRINC-ADJ-335-X. TRAN335 223200 15 T-AMT-PRINC-ADJ-335 TRAN335 223300 PIC S9(05)V9(02). TRAN335 223400 10 T-AMT-INCOME-INT-335-X. TRAN335 223500 15 T-AMT-INCOME-INT-335 TRAN335 223600 PIC S9(05)V9(02). TRAN335 223700 10 T-PRIOR-PRINC-NONSUB-335-X. TRAN335 223800 15 T-PRIOR-PRINC-NONSUB-335 TRAN335 223900 PIC S9(05)V9(02). TRAN335 224000 10 T-SPECIAL-ALLW-PR-100180-335-X. TRAN335 224100 15 T-SPECIAL-ALLW-PR-100180-335 TRAN335 224200 PIC S9(07)V9(02). TRAN335 224300 10 T-SPECIAL-ALLW-100180-335-X. TRAN335 224400 15 T-SPECIAL-ALLW-100180-335 TRAN335 224500 PIC S9(07)V9(02). TRAN335 224600 10 T-SPECIAL-ALLW-100181-335-X. TRAN335 224700 15 T-SPECIAL-ALLW-100181-335 TRAN335 224800 PIC S9(07)V9(02). TRAN335 224900 10 T-SPECIAL-ALLW-030186-335-X. TRAN335 225000 15 T-SPECIAL-ALLW-030186-335 TRAN335 225100 PIC S9(07)V9(02). TRAN335 225200 10 T-SPECIAL-ALLW-111686-335-X. TRAN335 225300 15 T-SPECIAL-ALLW-111686-335 TRAN335 225400 PIC S9(07)V9(02). TRAN335 225500 10 T-INTEREST-RATE-335-X. TRAN335 225600 15 T-INTEREST-RATE-335 TRAN335 225700 PIC SV9(05). TRAN335 1 225800 10 T-REASON-335 PIC X(01). TRAN335 225900 10 FILLER PIC X(120). TRAN335 272300 05 INFO-APPENDED. TRANAPP 272400 10 SCHOOL-ID-APPEND PIC X(06) VALUE SPACES. TRANAPP 272500 10 CUSTOMER-APPEND PIC X(04) VALUE SPACES. TRANAPP 272600 10 LENDER-APPEND PIC X(06) VALUE SPACES. TRANAPP 272700 10 BORROWER-STATUS-APPEND TRANAPP 272800 PIC X(02) VALUE SPACES. TRANAPP 272900 10 AMT-APPLY-PRINC-APPEND TRANAPP 273000 PIC S9(05)V9(02) VALUE +0. TRANAPP 273100 10 CURRENT-PRINC-TOTAL-APPEND TRANAPP 273200 PIC S9(05)V9(02) VALUE +0. TRANAPP 273300 10 AMT-APPLY-REPAY-INT-APPEND TRANAPP 273400 PIC S9(05)V9(02) VALUE +0. TRANAPP 273500 10 REPAYMENT-INT-RCVD-TD-APPEND TRANAPP 273600 PIC S9(05)V9(02) VALUE +0. TRANAPP 273700 10 AMT-APPLY-INTERIM-INT-APPEND TRANAPP 273800 PIC S9(05)V9(02) VALUE +0. TRANAPP 273900 10 INTERIM-INT-RCVD-TD-APPEND TRANAPP 274000 PIC S9(05)V9(02) VALUE +0. TRANAPP 274100 10 INTERNALLY-GENERATED TRANAPP 274200 PIC X(01) VALUE SPACES. TRANAPP 274300 10 NOTE-NUMBER-APPEND PIC 9(02) VALUE 0. TRANAPP 274400 10 LOAN-TYPE-APPEND PIC X(01) VALUE SPACES. TRANAPP 274500 10 INITIALS-APPEND PIC X(03) VALUE SPACES. TRANAPP 274600 10 WRITE-PH-FLAG-APPEND TRANAPP 274700 PIC X(01) VALUE SPACES. TRANAPP 274800 10 TRANS-CODE-APPEND PIC X(03) VALUE SPACES. TRANAPP 274900 10 TERMINAL-ID-APPEND PIC X(04) VALUE SPACES. TRANAPP 275000 10 FILLER PIC X(08) VALUE SPACES. TRANAPP 275100 10 BOND-ID-APPEND PIC X(06) VALUE SPACES. TRANAPP 275200 10 GUARANTOR-ID-APPEND PIC X(04) VALUE SPACES. TRANAPP 275300 10 LOAN-ADD-FLAG-APPEND TRANAPP 275400 PIC X(01) VALUE SPACES. TRANAPP 270700 10 INSURED-FLAG-APPEND PIC X(01) VALUE SPACES. TRANAPP 270800 10 LOAN-INTEREST-TYPE-APPEND TDA0769 270800 PIC X(01) VALUE SPACES. TDA0769 272400 10 BRANCH-ID-APPEND PIC X(02) VALUE SPACES. JKA1112 270800 10 FILLER PIC X(03) VALUE SPACES. JKA1112 Identification of lines to be processed is exactly the same as when executing LAYOUT just to show informational message lines. It is probable, however, due to the "destructive" nature of the SYNCSORT conversion function of LAYOUT, that you'll not need to explicitly identify the lines to be processed because you'll already have placed just the lines you want into a clean file. The way you tell LAYOUT to create sort SYSIN out of your COBOL layout is to specify "sort" when you are invoking layout. Just like you would specify "X" or "NX", you can specify "SORT". So, using our transaction copybook example, you would type the following on the command line: COMMAND ===> layout sort 1 Using the above example, your file would be converted to the following: SORT FIELDS=( 001,360,CH,A, * TRANSACTION-RECORD 001,003,CH,A, * T-CODE 004,010,CH,A, * T-ISAM-KEY 004,009,CH,A, * T-SSN 004,003,CH,A, * T-SSN1 007,002,CH,A, * T-SSN2 009,004,CH,A, * T-SSN3 013,001,CH,A, * T-LOAN-NUMBER 014,015,CH,A, * T-LAST-NAME 029,006,CH,A, * T-TRANS-DATE 029,002,CH,A, * T-DATE-YY 031,002,CH,A, * T-DATE-MM 033,002,CH,A, * T-DATE-DD 035,006,CH,A, * T-TIME 041,006,CH,A, * T-EFFECTIVE-DATE 041,002,CH,A, * T-EFFECTIVE-YY 043,002,CH,A, * T-EFFECTIVE-MM 045,002,CH,A, * T-EFFECTIVE-DD 047,006,CH,A, * T-BATCH-NUMBER 053,207,CH,A, * REST-OF-TRAN 053,207,CH,A, * TRAN-100 053,007,ZD,A, * T-PRIOR-PRINC-BAL-100 060,001,ZD,A, * T-CHECK-SUBNO 061,006,CH,A, * FILLER 067,007,ZD,A, * T-CHECK-AMT 074,006,CH,A, * T-CHECK-MANIFEST-DATE 074,002,CH,A, * T-CHECK-MAN-YY 076,002,CH,A, * T-CHECK-MAN-MM 078,002,CH,A, * T-CHECK-MAN-DD 080,006,CH,A, * T-LOAN-PERIOD-BEGIN-DATE-100 080,002,CH,A, * T-LOAN-BEGIN-100-YY 082,002,CH,A, * T-LOAN-BEGIN-100-MM 084,002,CH,A, * T-LOAN-BEGIN-100-DD 086,007,ZD,A, * T-CHECK-INS-FEE 093,007,ZD,A, * T-PRIOR-PRINC-NONSUB-100 100,007,ZD,A, * T-ORIG-FEE-DED-100 107,012,CH,A, * T-FIRST-NAME-100 119,001,CH,A, * T-MIDDLE-INITIAL-100 120,001,CH,A, * T-CHECK-FLAG-100 121,001,CH,A, * T-END-DATE-FLAG-100 122,002,ZD,A, * T-NOTE-ID-NO-100 124,004,CH,A, * T-GUARANTOR-ID-100 128,001,CH,A, * T-GRAM-RUDMAN-FLAG-100 129,005,ZD,A, * T-INTEREST-RATE-100 134,001,CH,A, * T-WINDFALL-FLAG-100 135,003,CH,A, * T-ACH-CODE 138,001,CH,A, * T-LATE-DISB-FLAG-100 139,121,CH,A, * FILLER 053,207,CH,A, * TRAN-230 053,004,CH,A, * T-SECURITY-CODE 057,007,ZD,A, * T-PRIOR-PRINC-BAL-230 064,007,ZD,A, * T-PRIOR-PRINC-NONSUB-230 071,007,ZD,A, * T-PRINCIPAL-ADJ-AMT 078,007,ZD,A, * T-INTERIM-INT-ACCRUAL-AMT 085,001,CH,A, * FILLER 086,001,CH,A, * T-NET-TOTAL-FLAG-230 087,005,CH,A, * FILLER 1 092,007,ZD,A, * T-INTERIM-INT-RECIEVED-TD 099,007,ZD,A, * T-GOVT-INT-ACCRUAL-AMT 106,007,CH,A, * FILLER 113,007,ZD,A, * T-REPAYMENT-INT-ACCRUAL-AMT 120,007,CH,A, * FILLER 127,007,ZD,A, * T-REPAYMENT-INT-RECIEVED-TD 134,006,CH,A, * T-INTERIM-DATE-230 134,002,CH,A, * T-INTERIM-YY 136,002,CH,A, * T-INTERIM-MM 138,002,CH,A, * T-INTERIM-DD 140,006,CH,A, * T-REPAY-DATE-230 140,002,CH,A, * T-REPAY-YY 142,002,CH,A, * T-REPAY-MM 144,002,CH,A, * T-REPAY-DD 146,006,CH,A, * T-GOVT-DATE-230 146,002,CH,A, * T-GOVT-YY 148,002,CH,A, * T-GOVT-MM 150,002,CH,A, * T-GOVT-DD 152,001,CH,A, * T-ACTIVITY-CODE-230 153,002,ZD,A, * T-NOTE-ID-NO-230 155,003,CH,A, * T-REASON-FOR-230 158,007,ZD,A, * T-AMOUNT-OF-REASON-230 165,005,ZD,A, * T-INTEREST-RATE-230 170,001,CH,A, * T-NON-CASH-230 171,006,CH,A, * T-ACCOUNT-NUM-230 177,007,ZD,A, * T-PRINC-ADJ-AMT-MULTI-230 184,007,ZD,A, * T-REPAY-INT-ACCR-MULTI-230 191,007,ZD,A, * T-REPAY-INT-RCVD-MULTI-230 198,007,ZD,A, * T-INTRM-INT-ACCR-MULTI-230 205,007,ZD,A, * T-INTRM-INT-RCVD-MULTI-230 212,007,ZD,A, * T-GOVT-INT-ACCR-MULTI-230 219,041,CH,A, * FILLER 053,207,CH,A, * TRAN-335 053,007,ZD,A, * T-PRIOR-PRINC-BAL-335 060,001,CH,A, * T-ACCRUAL-TYPE-335 061,007,ZD,A, * T-AMT-INTEREST-ACCR-335 068,007,ZD,A, * T-AMT-PRINC-ADJ-335 075,007,ZD,A, * T-AMT-INCOME-INT-335 082,007,ZD,A, * T-PRIOR-PRINC-NONSUB-335 089,009,ZD,A, * T-SPECIAL-ALLW-PR-100180-335 098,009,ZD,A, * T-SPECIAL-ALLW-100180-335 107,009,ZD,A, * T-SPECIAL-ALLW-100181-335 116,009,ZD,A, * T-SPECIAL-ALLW-030186-335 125,009,ZD,A, * T-SPECIAL-ALLW-111686-335 134,005,ZD,A, * T-INTEREST-RATE-335 139,001,CH,A, * T-REASON-335 140,120,CH,A, * FILLER 260,101,CH,A, * INFO-APPENDED 260,006,CH,A, * SCHOOL-ID-APPEND 266,004,CH,A, * CUSTOMER-APPEND 270,006,CH,A, * LENDER-APPEND 276,002,CH,A, * BORROWER-STATUS-APPEND 278,007,ZD,A, * AMT-APPLY-PRINC-APPEND 285,007,ZD,A, * CURRENT-PRINC-TOTAL-APPEND 292,007,ZD,A, * AMT-APPLY-REPAY-INT-APPEND 299,007,ZD,A, * REPAYMENT-INT-RCVD-TD-APPEND 306,007,ZD,A, * AMT-APPLY-INTERIM-INT-APPEND 313,007,ZD,A, * INTERIM-INT-RCVD-TD-APPEND 320,001,CH,A, * INTERNALLY-GENERATED 321,002,ZD,A, * NOTE-NUMBER-APPEND 1 323,001,CH,A, * LOAN-TYPE-APPEND 324,003,CH,A, * INITIALS-APPEND 327,001,CH,A, * WRITE-PH-FLAG-APPEND 328,003,CH,A, * TRANS-CODE-APPEND 331,004,CH,A, * TERMINAL-ID-APPEND 335,008,CH,A, * FILLER 343,006,CH,A, * BOND-ID-APPEND 349,004,CH,A, * GUARANTOR-ID-APPEND 353,001,CH,A, * LOAN-ADD-FLAG-APPEND 354,001,CH,A, * INSURED-FLAG-APPEND 355,001,CH,A, * LOAN-INTEREST-TYPE-APPEND 356,002,CH,A, * BRANCH-ID-APPEND 358,003,CH,A, * FILLER You'll notice that the "SORT FIELDS=(" text is on a line by itself. This allows you to choose which line will be used for the primary sort field. You can then do a "M"ove "O"verlay to position the line where you want it. Each line is documented on the right with the field it defines. Keep in mind that group level fields are defined as well as elementary items. Consequently, you would not want to sort an elementary item as well as the group item it is a part of. SYNCSORT would not allow this. You can tell the hierarchy of group to elementary items by the number of characters the data name is indented. So, what do you do about VARIABLE files (e.g. the SLSS MASTER file) since their position (as far as SYNCSORT is concerned) is really their position + 4 bytes for the RDW. If the data element description has an OCCURS DEPENDING ON clause in it, LAYOUT will automatically take into account the 4 bytes of RDW when processing. You can, if you want, specify that LAYOUT is to create an RDW line for SYNCSORT conversion and bump the position of every item up by 4 bytes. You do this by specifying "RDW" when invoking LAYOUT. For example: COMMAND ===> layout sort rdw The mention of "OCCURS" just now brings up the issue of the current (as of 8-20-92) limitation of LAYOUT. If LAYOUT comes across an OCCURS clause, it will cease trying to determine position. It will still determine the length of both group and elementary items, but the compile listing does not contain the number of occurances in the area of the listing which LAYOUT interrogates. As of 4-21-93 the layout utility was changed to no longer have a problem with the occurs clause. In the sort format a '(1)' will be added to inform you about the occurs and positioning will be calculated for the first item of the table. ./ ADD NAME=LIBCLEAN LIBCLEAN is a "shareware" utility I loaded from the NASCOM BBS. The provided documentation is as follows: LIBCLEAN is a REXX ISPF dialog that compares the directories of two PDS libraries and displays a list of matching or non-matching member names and statistics. Only non-load libraries are supported. Operations such as browse, compare, or delete may then be performed against members in the list. All listed members may be mass deleted from either the OLD or NEW library. Selected members may be excluded from the mass delete. This tool can be useful for deleting duplicate copies of software when the product is in a mixed library. It is a very fast way to clean up messy ISPF files. It can also be used to verify source members exist for a load library. Invoking LIBCLEAN ------------------ Enter TSO %LIBCLEAN Enter library names as directed on the initial panel. LIBCLEAN will then build the matched or unmatched list. Sorry...no help screens yet. Line commands ------------- Any unrecognized line command, e.g. '?' will display a list of valid line commands. The following line commands are provided: - BO / BN - Browse member from the OLD lib (BO) or the NEW lib (BN). - C - Invoke IBM SuperCompare with the members from NEW and OLD libs. - DO / DN - Delete member from the OLD lib (DO) or the NEW lib (DN). - EO / EN - Edit member from the OLD lib (BO) or the NEW lib (BN). - S - Show Load module stats for the member. Requires the FINDMEM CP. - X - EXclude the member from the list. Use this to exclude members from the mass DELETE primary command. Primary commands ---------------- The following primary commands are provided: - DELETE OLD - DELETE NEW Delete all members on list from OLD or NEW lib. This will be followed by a delete confirmation panel. - Locate xxx Position the list to member xxx. ./ ADD NAME=LINEUPTO This utility allows the user to type "lineupto" on the command line while editing their COBOL program and have their "TO"s in COBOL MOVE statements automatically aligned together. The utility will scan the program and process each paragraph/section seperately and attempt to line up each "TO" to the rightmost "TO" in that paragraph/section. Before aligning it moves the "TO"s as far left as possible so as to make the most of available space on a given line. Lines which could not be lined up are marked as edit error lines (==ERR>). Specifying parm "split" will automatically split lines in error (see SPLITTO) ./ ADD NAME=LONGEST The LONGEST edit macro will place message lines around the longest text line in the file being edited. You simply type LONGEST on the command line and press . LONGEST then searches through the file and finds the last non-blank byte on every line. When it has gone through the file, it marks the line in which the last non-blank byte is the farthest out. It marks it with ISPF/PDF editor "message" lines and it indicates which byte contains the last non-blank character on the line. You are positioned to the longest line as well. ./ ADD NAME=MAKEREFL This utility extracts the UNIPAC extended edit and extended browse panel panel definitions from the user's profile pool. It then creates two ISPF reflists named "RL1" and "RL2" which correspond to the extended extended edit and extended browse profile variables respectively. To invoke it you should be on the ISPF primary option panel and not be in split screen. This will ensure MAKEREFL accesses the correct profile pool for its dataset lists. Then type: OPTION ===> makerefl To check your results, issue the ISPF command REFACTD RL1 and press . You should have a list of datasets that matched your extended edit panel. ./ ADD NAME=MAPREDEF 1 MAPREDEF is an edit macro. When editing a BMS COBOL symbolic map layout copybook, you can type MAPREDEF xxxxxxx (where "xxxxxxx" is a standard dataname prefix you wish to use) and press ENTER and the layout will be converted to more readable names. Note: Currently MAPREDEF only works with single map mapsets The best way to explain this is to show an example. Assume you have the following map layout in a copylib member: 01 SLST79RI. 02 FILLER PIC X(12). 02 SELECTL COMP PIC S9(4). 02 SELECTF PICTURE X. 02 FILLER REDEFINES SELECTF. 03 SELECTA PICTURE X. 02 SELECTI PIC X(1). 02 RPTYEARL COMP PIC S9(4). 02 RPTYEARF PICTURE X. 02 FILLER REDEFINES RPTYEARF. 03 RPTYEARA PICTURE X. 02 RPTYEARI PIC X(4). 02 FEEPCT2L COMP PIC S9(4). 02 FEEPCT2F PICTURE X. 02 FILLER REDEFINES FEEPCT2F. 03 FEEPCT2A PICTURE X. 02 FEEPCT2I PIC X(2). 02 FEECDE2L COMP PIC S9(4). 02 FEECDE2F PICTURE X. 02 FILLER REDEFINES FEECDE2F. 03 FEECDE2A PICTURE X. 02 FEECDE2I PIC X(2). 02 INTRAT2L COMP PIC S9(4). 02 INTRAT2F PICTURE X. 02 FILLER REDEFINES INTRAT2F. 03 INTRAT2A PICTURE X. 02 INTRAT2I PIC X(7). 02 RPTQTRL COMP PIC S9(4). 02 RPTQTRF PICTURE X. 02 FILLER REDEFINES RPTQTRF. 03 RPTQTRA PICTURE X. 02 RPTQTRI PIC X(1). 02 LENDRIDL COMP PIC S9(4). 02 LENDRIDF PICTURE X. 02 FILLER REDEFINES LENDRIDF. 03 LENDRIDA PICTURE X. 02 LENDRIDI PIC X(6). 02 INTRAT3L COMP PIC S9(4). 02 INTRAT3F PICTURE X. 02 FILLER REDEFINES INTRAT3F. 03 INTRAT3A PICTURE X. 02 INTRAT3I PIC X(3). 02 BILLCD3L COMP PIC S9(4). 02 BILLCD3F PICTURE X. 02 FILLER REDEFINES BILLCD3F. 03 BILLCD3A PICTURE X. 02 BILLCD3I PIC X(2). 02 FUNDSRCL COMP PIC S9(4). 02 FUNDSRCF PICTURE X. 02 FILLER REDEFINES FUNDSRCF. 03 FUNDSRCA PICTURE X. 02 FUNDSRCI PIC X(6). 1 02 SSN1L COMP PIC S9(4). 02 SSN1F PICTURE X. 02 FILLER REDEFINES SSN1F. 03 SSN1A PICTURE X. 02 SSN1I PIC X(3). 02 SSN2L COMP PIC S9(4). 02 SSN2F PICTURE X. 02 FILLER REDEFINES SSN2F. 03 SSN2A PICTURE X. 02 SSN2I PIC X(2). 02 SSN3L COMP PIC S9(4). 02 SSN3F PICTURE X. 02 FILLER REDEFINES SSN3F. 03 SSN3A PICTURE X. 02 SSN3I PIC X(4). 02 YEAR4L COMP PIC S9(4). 02 YEAR4F PICTURE X. 02 FILLER REDEFINES YEAR4F. 03 YEAR4A PICTURE X. 02 YEAR4I PIC X(2). 02 QTR4L COMP PIC S9(4). 02 QTR4F PICTURE X. 02 FILLER REDEFINES QTR4F. 03 QTR4A PICTURE X. 02 QTR4I PIC X(1). 02 SPALCA4L COMP PIC S9(4). 02 SPALCA4F PICTURE X. 02 FILLER REDEFINES SPALCA4F. 03 SPALCA4A PICTURE X. 02 SPALCA4I PIC X(2). 02 LOANNUML COMP PIC S9(4). 02 LOANNUMF PICTURE X. 02 FILLER REDEFINES LOANNUMF. 03 LOANNUMA PICTURE X. 02 LOANNUMI PIC X(1). 02 LONTYP4L COMP PIC S9(4). 02 LONTYP4F PICTURE X. 02 FILLER REDEFINES LONTYP4F. 03 LONTYP4A PICTURE X. 02 LONTYP4I PIC X(2). 02 INTRAT4L COMP PIC S9(4). 02 INTRAT4F PICTURE X. 02 FILLER REDEFINES INTRAT4F. 03 INTRAT4A PICTURE X. 02 INTRAT4I PIC X(3). 02 BILLCD4L COMP PIC S9(4). 02 BILLCD4F PICTURE X. 02 FILLER REDEFINES BILLCD4F. 03 BILLCD4A PICTURE X. 02 BILLCD4I PIC X(2). 02 SECT1L COMP PIC S9(4). 02 SECT1F PICTURE X. 02 FILLER REDEFINES SECT1F. 03 SECT1A PICTURE X. 02 SECT1I PIC X(1). 02 SECT2L COMP PIC S9(4). 02 SECT2F PICTURE X. 02 FILLER REDEFINES SECT2F. 03 SECT2A PICTURE X. 02 SECT2I PIC X(1). 02 SECT3L COMP PIC S9(4). 02 SECT3F PICTURE X. 02 FILLER REDEFINES SECT3F. 03 SECT3A PICTURE X. 02 SECT3I PIC X(1). 1 02 SECT4L COMP PIC S9(4). 02 SECT4F PICTURE X. 02 FILLER REDEFINES SECT4F. 03 SECT4A PICTURE X. 02 SECT4I PIC X(1). 02 SECT5L COMP PIC S9(4). 02 SECT5F PICTURE X. 02 FILLER REDEFINES SECT5F. 03 SECT5A PICTURE X. 02 SECT5I PIC X(1). 02 LINIT15L COMP PIC S9(4). 02 LINIT15F PICTURE X. 02 FILLER REDEFINES LINIT15F. 03 LINIT15A PICTURE X. 02 LINIT15I PIC X(2). 02 LINIT25L COMP PIC S9(4). 02 LINIT25F PICTURE X. 02 FILLER REDEFINES LINIT25F. 03 LINIT25A PICTURE X. 02 LINIT25I PIC X(2). 02 LINIT35L COMP PIC S9(4). 02 LINIT35F PICTURE X. 02 FILLER REDEFINES LINIT35F. 03 LINIT35A PICTURE X. 02 LINIT35I PIC X(2). 02 LINIT45L COMP PIC S9(4). 02 LINIT45F PICTURE X. 02 FILLER REDEFINES LINIT45F. 03 LINIT45A PICTURE X. 02 LINIT45I PIC X(2). 02 LINIT55L COMP PIC S9(4). 02 LINIT55F PICTURE X. 02 FILLER REDEFINES LINIT55F. 03 LINIT55A PICTURE X. 02 LINIT55I PIC X(2). 02 LINIT65L COMP PIC S9(4). 02 LINIT65F PICTURE X. 02 FILLER REDEFINES LINIT65F. 03 LINIT65A PICTURE X. 02 LINIT65I PIC X(2). 02 LINIT75L COMP PIC S9(4). 02 LINIT75F PICTURE X. 02 FILLER REDEFINES LINIT75F. 03 LINIT75A PICTURE X. 02 LINIT75I PIC X(2). 02 LINIT85L COMP PIC S9(4). 02 LINIT85F PICTURE X. 02 FILLER REDEFINES LINIT85F. 03 LINIT85A PICTURE X. 02 LINIT85I PIC X(2). 02 LINIT95L COMP PIC S9(4). 02 LINIT95F PICTURE X. 02 FILLER REDEFINES LINIT95F. 03 LINIT95A PICTURE X. 02 LINIT95I PIC X(2). 02 LINIT16L COMP PIC S9(4). 02 LINIT16F PICTURE X. 02 FILLER REDEFINES LINIT16F. 03 LINIT16A PICTURE X. 02 LINIT16I PIC X(2). 02 LINIT26L COMP PIC S9(4). 02 LINIT26F PICTURE X. 02 FILLER REDEFINES LINIT26F. 03 LINIT26A PICTURE X. 02 LINIT26I PIC X(2). 1 02 LINIT36L COMP PIC S9(4). 02 LINIT36F PICTURE X. 02 FILLER REDEFINES LINIT36F. 03 LINIT36A PICTURE X. 02 LINIT36I PIC X(2). 02 LINIT46L COMP PIC S9(4). 02 LINIT46F PICTURE X. 02 FILLER REDEFINES LINIT46F. 03 LINIT46A PICTURE X. 02 LINIT46I PIC X(2). 02 LINIT56L COMP PIC S9(4). 02 LINIT56F PICTURE X. 02 FILLER REDEFINES LINIT56F. 03 LINIT56A PICTURE X. 02 LINIT56I PIC X(2). 02 LINIT66L COMP PIC S9(4). 02 LINIT66F PICTURE X. 02 FILLER REDEFINES LINIT66F. 03 LINIT66A PICTURE X. 02 LINIT66I PIC X(2). 02 LINIT76L COMP PIC S9(4). 02 LINIT76F PICTURE X. 02 FILLER REDEFINES LINIT76F. 03 LINIT76A PICTURE X. 02 LINIT76I PIC X(2). 02 LINIT86L COMP PIC S9(4). 02 LINIT86F PICTURE X. 02 FILLER REDEFINES LINIT86F. 03 LINIT86A PICTURE X. 02 LINIT86I PIC X(2). 02 LINIT96L COMP PIC S9(4). 02 LINIT96F PICTURE X. 02 FILLER REDEFINES LINIT96F. 03 LINIT96A PICTURE X. 02 LINIT96I PIC X(2). 02 PFKEYSL COMP PIC S9(4). 02 PFKEYSF PICTURE X. 02 FILLER REDEFINES PFKEYSF. 03 PFKEYSA PICTURE X. 02 PFKEYSI PIC X(70). 02 MAPMSGL COMP PIC S9(4). 02 MAPMSGF PICTURE X. 02 FILLER REDEFINES MAPMSGF. 03 MAPMSGA PICTURE X. 02 MAPMSGI PIC X(4). 01 SLST79RO REDEFINES SLST79RI. 02 FILLER PIC X(12). 02 FILLER PICTURE X(3). 02 SELECTO PIC X(1). 02 FILLER PICTURE X(3). 02 RPTYEARO PIC X(4). 02 FILLER PICTURE X(3). 02 FEEPCT2O PIC X(2). 02 FILLER PICTURE X(3). 02 FEECDE2O PIC X(2). 02 FILLER PICTURE X(3). 02 INTRAT2O PIC X(7). 02 FILLER PICTURE X(3). 02 RPTQTRO PIC X(1). 02 FILLER PICTURE X(3). 02 LENDRIDO PIC X(6). 1 02 FILLER PICTURE X(3). 02 INTRAT3O PIC X(3). 02 FILLER PICTURE X(3). 02 BILLCD3O PIC X(2). 02 FILLER PICTURE X(3). 02 FUNDSRCO PIC X(6). 02 FILLER PICTURE X(3). 02 SSN1O PIC X(3). 02 FILLER PICTURE X(3). 02 SSN2O PIC X(2). 02 FILLER PICTURE X(3). 02 SSN3O PIC X(4). 02 FILLER PICTURE X(3). 02 YEAR4O PIC X(2). 02 FILLER PICTURE X(3). 02 QTR4O PIC X(1). 02 FILLER PICTURE X(3). 02 SPALCA4O PIC X(2). 02 FILLER PICTURE X(3). 02 LOANNUMO PIC X(1). 02 FILLER PICTURE X(3). 02 LONTYP4O PIC X(2). 02 FILLER PICTURE X(3). 02 INTRAT4O PIC X(3). 02 FILLER PICTURE X(3). 02 BILLCD4O PIC X(2). 02 FILLER PICTURE X(3). 02 SECT1O PIC X(1). 02 FILLER PICTURE X(3). 02 SECT2O PIC X(1). 02 FILLER PICTURE X(3). 02 SECT3O PIC X(1). 02 FILLER PICTURE X(3). 02 SECT4O PIC X(1). 02 FILLER PICTURE X(3). 02 SECT5O PIC X(1). 02 FILLER PICTURE X(3). 02 LINIT15O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT25O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT35O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT45O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT55O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT65O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT75O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT85O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT95O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT16O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT26O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT36O PIC X(2). 1 02 FILLER PICTURE X(3). 02 LINIT46O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT56O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT66O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT76O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT86O PIC X(2). 02 FILLER PICTURE X(3). 02 LINIT96O PIC X(2). 02 FILLER PICTURE X(3). 02 PFKEYSO PIC X(70). 02 FILLER PICTURE X(3). 02 MAPMSGO PIC X(4). 1 Now you type the following on the command line: COMMAND ===> mapredef map- Your map layout is converted to the following: /**************************************************************** * * ***************************************************************** 01 MAP-SLST79R-AREA REDEFINES SLST79RI. 05 FILLER PIC X(12). ***************************************************************** 05 MAP-SELECT-LENG PIC S9(04) COMP. 05 MAP-SELECT-FLAG PIC X(01). 05 MAP-SELECT-ATTR REDEFINES MAP-SELECT-FLAG PIC X(01). 05 MAP-SELECT PIC X(01). ***************************************************************** 05 MAP-RPTYEAR-LENG PIC S9(04) COMP. 05 MAP-RPTYEAR-FLAG PIC X(01). 05 MAP-RPTYEAR-ATTR REDEFINES MAP-RPTYEAR-FLAG PIC X(01). 05 MAP-RPTYEAR PIC X(04). ***************************************************************** 05 MAP-FEEPCT2-LENG PIC S9(04) COMP. 05 MAP-FEEPCT2-FLAG PIC X(01). 05 MAP-FEEPCT2-ATTR REDEFINES MAP-FEEPCT2-FLAG PIC X(01). 05 MAP-FEEPCT2 PIC X(02). ***************************************************************** 05 MAP-FEECDE2-LENG PIC S9(04) COMP. 05 MAP-FEECDE2-FLAG PIC X(01). 05 MAP-FEECDE2-ATTR REDEFINES MAP-FEECDE2-FLAG PIC X(01). 05 MAP-FEECDE2 PIC X(02). ***************************************************************** 05 MAP-INTRAT2-LENG PIC S9(04) COMP. 05 MAP-INTRAT2-FLAG PIC X(01). 05 MAP-INTRAT2-ATTR REDEFINES MAP-INTRAT2-FLAG PIC X(01). 05 MAP-INTRAT2 PIC X(07). ***************************************************************** 05 MAP-RPTQTR-LENG PIC S9(04) COMP. 05 MAP-RPTQTR-FLAG PIC X(01). 05 MAP-RPTQTR-ATTR REDEFINES MAP-RPTQTR-FLAG PIC X(01). 05 MAP-RPTQTR PIC X(01). ***************************************************************** 05 MAP-LENDRID-LENG PIC S9(04) COMP. 05 MAP-LENDRID-FLAG PIC X(01). 05 MAP-LENDRID-ATTR REDEFINES MAP-LENDRID-FLAG PIC X(01). 05 MAP-LENDRID PIC X(06). ***************************************************************** 05 MAP-INTRAT3-LENG PIC S9(04) COMP. 05 MAP-INTRAT3-FLAG PIC X(01). 05 MAP-INTRAT3-ATTR REDEFINES MAP-INTRAT3-FLAG PIC X(01). 05 MAP-INTRAT3 PIC X(03). 1 ***************************************************************** 05 MAP-BILLCD3-LENG PIC S9(04) COMP. 05 MAP-BILLCD3-FLAG PIC X(01). 05 MAP-BILLCD3-ATTR REDEFINES MAP-BILLCD3-FLAG PIC X(01). 05 MAP-BILLCD3 PIC X(02). ***************************************************************** 05 MAP-FUNDSRC-LENG PIC S9(04) COMP. 05 MAP-FUNDSRC-FLAG PIC X(01). 05 MAP-FUNDSRC-ATTR REDEFINES MAP-FUNDSRC-FLAG PIC X(01). 05 MAP-FUNDSRC PIC X(06). ***************************************************************** 05 MAP-SSN1-LENG PIC S9(04) COMP. 05 MAP-SSN1-FLAG PIC X(01). 05 MAP-SSN1-ATTR REDEFINES MAP-SSN1-FLAG PIC X(01). 05 MAP-SSN1 PIC X(03). ***************************************************************** 05 MAP-SSN2-LENG PIC S9(04) COMP. 05 MAP-SSN2-FLAG PIC X(01). 05 MAP-SSN2-ATTR REDEFINES MAP-SSN2-FLAG PIC X(01). 05 MAP-SSN2 PIC X(02). ***************************************************************** 05 MAP-SSN3-LENG PIC S9(04) COMP. 05 MAP-SSN3-FLAG PIC X(01). 05 MAP-SSN3-ATTR REDEFINES MAP-SSN3-FLAG PIC X(01). 05 MAP-SSN3 PIC X(04). ***************************************************************** 05 MAP-YEAR4-LENG PIC S9(04) COMP. 05 MAP-YEAR4-FLAG PIC X(01). 05 MAP-YEAR4-ATTR REDEFINES MAP-YEAR4-FLAG PIC X(01). 05 MAP-YEAR4 PIC X(02). ***************************************************************** 05 MAP-QTR4-LENG PIC S9(04) COMP. 05 MAP-QTR4-FLAG PIC X(01). 05 MAP-QTR4-ATTR REDEFINES MAP-QTR4-FLAG PIC X(01). 05 MAP-QTR4 PIC X(01). ***************************************************************** 05 MAP-SPALCA4-LENG PIC S9(04) COMP. 05 MAP-SPALCA4-FLAG PIC X(01). 05 MAP-SPALCA4-ATTR REDEFINES MAP-SPALCA4-FLAG PIC X(01). 05 MAP-SPALCA4 PIC X(02). ***************************************************************** 05 MAP-LOANNUM-LENG PIC S9(04) COMP. 05 MAP-LOANNUM-FLAG PIC X(01). 05 MAP-LOANNUM-ATTR REDEFINES MAP-LOANNUM-FLAG PIC X(01). 05 MAP-LOANNUM PIC X(01). ***************************************************************** 05 MAP-LONTYP4-LENG PIC S9(04) COMP. 05 MAP-LONTYP4-FLAG PIC X(01). 05 MAP-LONTYP4-ATTR REDEFINES MAP-LONTYP4-FLAG PIC X(01). 05 MAP-LONTYP4 PIC X(02). 1 ***************************************************************** 05 MAP-INTRAT4-LENG PIC S9(04) COMP. 05 MAP-INTRAT4-FLAG PIC X(01). 05 MAP-INTRAT4-ATTR REDEFINES MAP-INTRAT4-FLAG PIC X(01). 05 MAP-INTRAT4 PIC X(03). ***************************************************************** 05 MAP-BILLCD4-LENG PIC S9(04) COMP. 05 MAP-BILLCD4-FLAG PIC X(01). 05 MAP-BILLCD4-ATTR REDEFINES MAP-BILLCD4-FLAG PIC X(01). 05 MAP-BILLCD4 PIC X(02). ***************************************************************** 05 MAP-SECT1-LENG PIC S9(04) COMP. 05 MAP-SECT1-FLAG PIC X(01). 05 MAP-SECT1-ATTR REDEFINES MAP-SECT1-FLAG PIC X(01). 05 MAP-SECT1 PIC X(01). ***************************************************************** 05 MAP-SECT2-LENG PIC S9(04) COMP. 05 MAP-SECT2-FLAG PIC X(01). 05 MAP-SECT2-ATTR REDEFINES MAP-SECT2-FLAG PIC X(01). 05 MAP-SECT2 PIC X(01). ***************************************************************** 05 MAP-SECT3-LENG PIC S9(04) COMP. 05 MAP-SECT3-FLAG PIC X(01). 05 MAP-SECT3-ATTR REDEFINES MAP-SECT3-FLAG PIC X(01). 05 MAP-SECT3 PIC X(01). ***************************************************************** 05 MAP-SECT4-LENG PIC S9(04) COMP. 05 MAP-SECT4-FLAG PIC X(01). 05 MAP-SECT4-ATTR REDEFINES MAP-SECT4-FLAG PIC X(01). 05 MAP-SECT4 PIC X(01). ***************************************************************** 05 MAP-SECT5-LENG PIC S9(04) COMP. 05 MAP-SECT5-FLAG PIC X(01). 05 MAP-SECT5-ATTR REDEFINES MAP-SECT5-FLAG PIC X(01). 05 MAP-SECT5 PIC X(01). ***************************************************************** 05 MAP-LINIT15-LENG PIC S9(04) COMP. 05 MAP-LINIT15-FLAG PIC X(01). 05 MAP-LINIT15-ATTR REDEFINES MAP-LINIT15-FLAG PIC X(01). 05 MAP-LINIT15 PIC X(02). ***************************************************************** 05 MAP-LINIT25-LENG PIC S9(04) COMP. 05 MAP-LINIT25-FLAG PIC X(01). 05 MAP-LINIT25-ATTR REDEFINES MAP-LINIT25-FLAG PIC X(01). 05 MAP-LINIT25 PIC X(02). ***************************************************************** 05 MAP-LINIT35-LENG PIC S9(04) COMP. 05 MAP-LINIT35-FLAG PIC X(01). 05 MAP-LINIT35-ATTR REDEFINES MAP-LINIT35-FLAG PIC X(01). 05 MAP-LINIT35 PIC X(02). 1 ***************************************************************** 05 MAP-LINIT45-LENG PIC S9(04) COMP. 05 MAP-LINIT45-FLAG PIC X(01). 05 MAP-LINIT45-ATTR REDEFINES MAP-LINIT45-FLAG PIC X(01). 05 MAP-LINIT45 PIC X(02). ***************************************************************** 05 MAP-LINIT55-LENG PIC S9(04) COMP. 05 MAP-LINIT55-FLAG PIC X(01). 05 MAP-LINIT55-ATTR REDEFINES MAP-LINIT55-FLAG PIC X(01). 05 MAP-LINIT55 PIC X(02). ***************************************************************** 05 MAP-LINIT65-LENG PIC S9(04) COMP. 05 MAP-LINIT65-FLAG PIC X(01). 05 MAP-LINIT65-ATTR REDEFINES MAP-LINIT65-FLAG PIC X(01). 05 MAP-LINIT65 PIC X(02). ***************************************************************** 05 MAP-LINIT75-LENG PIC S9(04) COMP. 05 MAP-LINIT75-FLAG PIC X(01). 05 MAP-LINIT75-ATTR REDEFINES MAP-LINIT75-FLAG PIC X(01). 05 MAP-LINIT75 PIC X(02). ***************************************************************** 05 MAP-LINIT85-LENG PIC S9(04) COMP. 05 MAP-LINIT85-FLAG PIC X(01). 05 MAP-LINIT85-ATTR REDEFINES MAP-LINIT85-FLAG PIC X(01). 05 MAP-LINIT85 PIC X(02). ***************************************************************** 05 MAP-LINIT95-LENG PIC S9(04) COMP. 05 MAP-LINIT95-FLAG PIC X(01). 05 MAP-LINIT95-ATTR REDEFINES MAP-LINIT95-FLAG PIC X(01). 05 MAP-LINIT95 PIC X(02). ***************************************************************** 05 MAP-LINIT16-LENG PIC S9(04) COMP. 05 MAP-LINIT16-FLAG PIC X(01). 05 MAP-LINIT16-ATTR REDEFINES MAP-LINIT16-FLAG PIC X(01). 05 MAP-LINIT16 PIC X(02). ***************************************************************** 05 MAP-LINIT26-LENG PIC S9(04) COMP. 05 MAP-LINIT26-FLAG PIC X(01). 05 MAP-LINIT26-ATTR REDEFINES MAP-LINIT26-FLAG PIC X(01). 05 MAP-LINIT26 PIC X(02). ***************************************************************** 05 MAP-LINIT36-LENG PIC S9(04) COMP. 05 MAP-LINIT36-FLAG PIC X(01). 05 MAP-LINIT36-ATTR REDEFINES MAP-LINIT36-FLAG PIC X(01). 05 MAP-LINIT36 PIC X(02). ***************************************************************** 05 MAP-LINIT46-LENG PIC S9(04) COMP. 05 MAP-LINIT46-FLAG PIC X(01). 05 MAP-LINIT46-ATTR REDEFINES MAP-LINIT46-FLAG PIC X(01). 05 MAP-LINIT46 PIC X(02). 1 ***************************************************************** 05 MAP-LINIT56-LENG PIC S9(04) COMP. 05 MAP-LINIT56-FLAG PIC X(01). 05 MAP-LINIT56-ATTR REDEFINES MAP-LINIT56-FLAG PIC X(01). 05 MAP-LINIT56 PIC X(02). ***************************************************************** 05 MAP-LINIT66-LENG PIC S9(04) COMP. 05 MAP-LINIT66-FLAG PIC X(01). 05 MAP-LINIT66-ATTR REDEFINES MAP-LINIT66-FLAG PIC X(01). 05 MAP-LINIT66 PIC X(02). ***************************************************************** 05 MAP-LINIT76-LENG PIC S9(04) COMP. 05 MAP-LINIT76-FLAG PIC X(01). 05 MAP-LINIT76-ATTR REDEFINES MAP-LINIT76-FLAG PIC X(01). 05 MAP-LINIT76 PIC X(02). ***************************************************************** 05 MAP-LINIT86-LENG PIC S9(04) COMP. 05 MAP-LINIT86-FLAG PIC X(01). 05 MAP-LINIT86-ATTR REDEFINES MAP-LINIT86-FLAG PIC X(01). 05 MAP-LINIT86 PIC X(02). ***************************************************************** 05 MAP-LINIT96-LENG PIC S9(04) COMP. 05 MAP-LINIT96-FLAG PIC X(01). 05 MAP-LINIT96-ATTR REDEFINES MAP-LINIT96-FLAG PIC X(01). 05 MAP-LINIT96 PIC X(02). ***************************************************************** 05 MAP-PFKEYS-LENG PIC S9(04) COMP. 05 MAP-PFKEYS-FLAG PIC X(01). 05 MAP-PFKEYS-ATTR REDEFINES MAP-PFKEYS-FLAG PIC X(01). 05 MAP-PFKEYS PIC X(70). ***************************************************************** 05 MAP-MAPMSG-LENG PIC S9(04) COMP. 05 MAP-MAPMSG-FLAG PIC X(01). 05 MAP-MAPMSG-ATTR REDEFINES MAP-MAPMSG-FLAG PIC X(01). 05 MAP-MAPMSG PIC X(04). Now you can do more changes on the 7 character field name, but much of the change has been done for you. You may want to look at the ECHANGE edit macro, assigned to a PF key, to aid in the remaining conversion. ./ ADD NAME=MARK This utility will mark lines in a file with the string "$MARK$" in columns 1-6 if the lines contain any of the following : string1 AND string2 string1 OR string2 neither string1 NOR string2 string1 and NOT string2 The default is for the line to be right shifted 6 positions (truncating any data in the right 6 columns, but you can specify OVERLAY when invoking and then the data in columns 1-6 will be overlayed with "$MARK$". Syntax is as follows: Command ===> mark abcdef xxx ghijk {overlay} where 'xxx' is AND, OR, NOR or NOT ./ ADD NAME=MISSING# MISSING# is an edit macro which helps you find missing numbers in a column which is supposed to have numbers in sequence. For instance, if you are working on a document of some type where you have numbered bullets. If those numbers are in a consistent column (right or left justified), MISSING# can tell you if you missed any numbers in your sequencing process. If, for example, you numbered one item "23" and the next item "27" accidently, MISSING# would insert ISPF/PDF editor "message lines" before item "27" which told you that sequence numbers "24", "25", and "26" were missing. Syntax is as follows: COMMAND ===> missing# n1 n2 {other operands} "n1" is the beginning column of the number and "n2" is the ending column of the number. "other operands" would be things like "x" or an edit label range to limit the processing. The operands are optional and the whole file is processed if no operands are specified. ./ ADD NAME=MOVEX This utility allows you to EXCLUDE several lines (seperate, contigous, or both) and have those lines moved before or after another line. Simply EXCLUDE whatever lines you want to have moved, place an A or B on the line that you want the exlcuded lines moved AFTER or BEFORE, type MOVEX on the command line and press ENTER. ./ ADD NAME=NETMXTRC NETMXTRC is a utility which scans the NETMAN text stored in the SYSP.WORK.CYCLES PDS for all the NETMAN tickets for a given job name, extracts it from the individual PDS members, puts it into a single dataset and then brings the user into edit on that dataset. At any ISPF command prompt you type: COMMAND ===> tso netmxtrc xxxxxxxx Where "xxxxxxxx" is a job name or a beginning portion of a job name (i.e. a job name prefix). For instance to see the NETMAN text for all the NETMAN tickets that we've created for job LINBALNC, you would type "tso netmxtrc linbalnc" on the command line and press . After NETMXTRC has churned for awhile, you'll be taken into an edit session of the results. If you have a group of jobs which all begin with the same job name prefix, you could enter that as well. For instance, to see all the NETMAN text on any of the jobs in the 53** series for USC, you could enter "tso netmxtrc usc53" and it would extract all the information for jobs such as USC5300 and USC5301 and USC5310, etc. ./ ADD NAME=NOBLANK This utility allows you to delete all the blank lines in a file that you are editing by typing NOBLANK on the command line and pressing ENTER. The utility first RESETs the file then excludes all lines that are completely blank, and deletes the excluded lines. Note : if you invoke NOBLANK after making a change, but before pressing ENTER the lines on which you made the change will look like they previously looked. Therefore, always press ENTER after making a change before you invoke NOBLANK or you can invoke NOBLANK like this ==> ;noblank The ';' before NOBLANK will simulate an ENTER. ./ ADD NAME=ONESPACE The ONESPACE edit macro reduces any multiple contiguous spaces between any two non-blank characters to only a single space. This can be for the entire file, or some portion of it. The basic syntax of ONESPACE is simple.... COMMAND ===> onespace {optional filtering parameters....} The filtering parameters would be the same as those you might specify for a typical edit change command. You can specify specific columns, excluded status, and system or user edit labels. A few notes about better ways to do things with ONESPACE. You can specify "X" or "NX", but specifying "X" probably does not work the way you might think. Since ONESPACE actually uses a CHANGE ALL command (plus any filtering parameters you specify), if a line is changed, it is automatically "un-excluded", and further processing on that line is discontinued (ONESPACE operates iteratively) so it may not be processed correctly. "NX" will work correctly, but, it is better to use edit labels or "NX" than "X". The other caveat involves the specification of colums. When ONESPACE performs the CHANGE ALL, data may shift from outside of the original column specification to inside the specification. This may produce positive or negative results depending upon what you were expecting. If you truly want to isolate some columns of data, you should specify a BNDS line command and pick your bounds before invoking ONESPACE. Finally, it should be noted that you can combine several parameters to come up with some fairly complex filtering options. ./ ADD NAME=PAGECONT The PAGECONT EDIT MACRO counts the number of pages and number of lines in each page in a file which has ANSI control characters in column 1. It then takes the user in to an edit of a "results" file where the number of lines in each page is listed. This can be a good tool to see if your document has any pages which need to be broken up so as to page break properly. See the PAGINATE Edit Macro for more information on re-paginating documents with ANSI control characters. ./ ADD NAME=PAGINATE This utility works much like a word-processing program when it repaginates a document. You tell PAGINATE how many lines per page you want (the default is 60), and what PF key you want to operate with (e.g. PAGINATE 80 PF21). Start- ing at the current location in the document, PAGINATE counts down the number of lines in the desired page size and prompts you as to whether to place an ANSI carriage control character at this location or somewhere else. You then press the PF key you specified and PAGINATE marks the line and starts to count again. This process continues to the end of the document. You can use the PAGECONT edit macro to then count how many pages there are in the document and how many lines each page has. ./ ADD NAME=PANVIEW The PANVIEW utility is designed specifically to allow "read" access to PANVALET libraries without the necessity of "update" access at the system security level. When editing and browsing in a PANVALET/ISPF environment, the PANVALET dataset is opened and an "access" flag/counter is updated each time a specific member is accessed -- even if it is not updated. Because of this, "update" access is required to even see a PANVALET member. Obviously this may cause a security/audit problem. PANVALET uses access codes to circumvent this, but this can be a cumbersome solution. PANVIEW utilizes the PAN#2 program to create a member list of a PANVALET dataset and then utilizes the PAN#1 program to extract a copy of the member to EDIT, BROWSE, PRINT, etc. PAN#1 and PAN#2 offer the ability to open the PANVALET dataset in "input" as opposed to "output" mode. Consequently, security may be maintained at a the system level with a "read" rule, but programmers are not prohibited from EDITing, BROWSing, or PRINTing "copies" of specific members. PANVIEW does execute more slowly than the PANVALET/ISPF interface, but can still be an effective tool. When you invoke PANVIEW (via "TSO PANVIEW" or from the utilities list with the "X" line command) you are presented with a screen where you may "store" the names of the PANVALET libraries you access the most. There is room to store 30 library names. These are saved in your ISPF profile and therefore only need to be typed in once. From then on, you may select each library with a number instead of the full name. Once a library has been selected, a "Member Selection Criteria" screen is presented. From this screen, you may (or may not) specify special criteria by which the resulting PANVALET library member list is "qualified" (reduced). For libraries with a large number of members (say, more than 1000) this can save considerable processing time in creating the member list. You may specify that the member list be displayed in its entirety; show only those members whose name begins with a certain character string; and/or those members between a certain "user code" range; and/or those members of a certain "language type"; and/or those members with certain "status" characteristics. The resulting display is the PANVALET library member list. On this screen, the user may place a "?" in either the command line or next to a member and a display of valid commands (line or primary) is presented. Essentially, the user may EDIT, BROWSE, or PRINT a given member, and the list may be sorted in ascending sequence by any combination of displayed columns, and specific rows may be located by the current primary sort order of the display. If a specific member has an access code associated with it, it will be required to EDIT, BROWSE, or PRINT that specific member. You will be promted if this is the case. ./ ADD NAME=PASTE The CUT and PASTE edit macros provide a handy method to move data from one edit session to another. The CUT macro saves lines from an edit session. The PASTE macro places these lines into another edit session (or the same session). The CUT macro can combine lines with previously saved lines. The PASTE macro places these lines into one or more edit session. The edit sessions can be on different screens and/or edit sessions started at a later time provided the user does not exit ISPF. The CUT and PASTE macros have several optional operands. The operands P (or PROMPT) and D (or DEFAULTS) provide menu panels for entering the optional operands as shown in the screen layouts below. The operand H (or HELP) can be used to provide tutorial panels. The lines from the CUT macro are saved in an ISPF table. A two-character operand is used to name the table for saved lines. A numeric operand sets the limit for the size of the table. A two-character operand on the PASTE macro names the table to obtain the lines. A numeric operand is not used with PASTE. The table name will default if not given. This default can be changed. OPERAND FUNCTION action This is the action to be performed by this CUT operation. Valid choices are ADD to lines already cut or REPLACE the lines already cut with the new lines. HELP is used to enter the tutorial for CUT and PASTE. DEF is used to display the defaults panel for CUT. If no operands are entered on the command, the defaults are used. table This specifies a two-character suffix for the ISPF table generated. The table name prefix is CUTPST. This operand can be used to create several different groups of lines for later use by PASTE. limit The maximum number of lines to be cut by this operation. This number can be from 100 to 99999. Identify the lines to be cut by using the C, CC, M, or MM line commands in the edit session. OPERAND FUNCTION action This is the action to be performed by this PASTE operation. Valid choices are KEEP the lines cut in the ISPF table or ZERO the lines cut so future CUT actions will start with an empty table. HELP is used to enter the tutorial for CUT and PASTE. DEF is used to display the defaults panel for PASTE. If no operands are entered on the command, the defaults are used. table This operand specifies the suffix of the ISPF table that has the lines to be pasted. This name, if different from the default name, must have been created by a prior CUT command. Identify where the lines are to be placed using the A or B edit line commands. Notes: 1. All operands on both commands are optional. The defaults values are used for any item not entered. 2. The data lines cut are kept in an ISPF table. ISPF tables are associated with a logical screen. If the screen where the lines were CUT is ended, the table is deleted and the lines are not available for use by PASTE. A logical screen is created by the SPLIT or HOLD commands. The lines are also deleted when the ISPF session is terminated. They are not saved across ISPF sessions. ------------------------- CUT prompt and set defaults ------------------------ COMMAND ===> Action ====> ADD, REPLACE, or blank for default Enter END key for no action CUT table name===> any two character name for this one time blank for default CUT size limit===> 5000 any number 100 to 99999 for this one time Set default actions for CUT and PASTE CUT default ===> ADD ADD or REPLACE PASTE default ===> KEEP KEEP or ZERO CUT table name===> DF any two character name for default CUT size limit===> 5000 any number 100 to 99999 for default ADD adds CUT lines to the end of previously CUT lines, if any REPLACE clears any previously CUT lines and replaces them with newly CUT lines ZERO deletes previously CUT lines after the PASTE operation KEEP keeps previously CUT lines after the PASTE operation to be used by a later PASTE or added to by later CUT operations ------------------------ PASTE prompt and set defaults ----------------------- COMMAND ===> Action ====> ZERO, KEEP, or blank for default Enter END key for no action CUT table name===> any two character name for this one time blank for default Set default actions for CUT and PASTE CUT default ===> ADD ADD or REPLACE PASTE default ===> KEEP KEEP or ZERO CUT table name===> DF any two character name for default CUT size limit===> 5000 any number 100 to 99999 for default ADD adds CUT lines to the end of previously CUT lines, if any REPLACE clears any previously CUT lines and replaces them with newly CUT lines ZERO deletes previously CUT lines after the PASTE operation KEEP keeps previously CUT lines after the PASTE operation to be used by a later PASTE or added to by later CUT operations ./ ADD NAME=PC PC is an edit macro which works just like EC, and BC (edit compile and browse compile). It captures the member name of the COBOL program you're editing, and creates a dataset name in the format of: youruserid.COMPILE.LISTING.programmemembername. This dataset name is then passed to the PRINTIT print utility for printing. ./ ADD NAME=PCKGCHCK This utility performs a where-used of all components of an Endevor package against the LISTA? members of the target environment. PCKGCHCK executes in ISPF and is invoked as follows: COMMAND ==> TSO PCKGCHCK xxxxx {edit} {class(l)} {stage(q)} Where: xxxxx - The Endevor Package ID edit - Keyword that indicates that the created JCL is to be edited instead of sumitted class(l) - Overides the default job class(5). If class 5 is insufficient, class(l) should be used. stage(q) - Overides the default target stage(q). Valid values are Q for Qual, and M for Modo. The output from this job is on the spool in the OUTDD dataset. This file contains the SUPERC-search for output. This file is the result of searching for every component in a package in the LISTA? members of the target environment. ./ ADD NAME=PDSUTIL This utility allows you to just type PDSUTIL on the ISPF edit session command line, press , and you will be taken into the PDS utility for that dataset that you are editing. While the PDS utility takes a little bit of time to understand completely, it is tremendously powerful in it's ability to manipulate and maintain datasets. The PDS utility is documented rather well in EDS User's Guide Volume 2 (the TSO volume) and would be worth the time to learn. As a hint, when you get into PDS, typing "O" (for Options) will show you all the available commands. "END" will terminate your PDS session. ./ ADD NAME=PFKEYS ZPF01 ZPF02 ZPF03 ZPF04 ZPF06 ZPF07 ZPF08 ZPF09 ZPF10 ZPF11 ZPF12 ZPF13 ZPF14 ZPF15 ZPF16 ZPF17 ZPF18 ZPF19 ZPF20 ZPF21 ZPF22 ZPF23 ZPF24 ./ ADD NAME=PGMFLOW The PGMFLOW utility invokes the "TREE" program which Don Faville wrote for the COBOL program currently being edited. The user is then taken into an edit of the results. For instance, you have just checked out a copy of a COBOL program and you want a quick overview of the logic while you are editing the program. You simply type in PGMFLOW and press . "TREE" is then invoked interactively against the program you are editing. When it is finished, PGMFLOW takes you into an edit of the report file produced by the TREE program. You could then do anything you want with the file like invoke PRINTIT to print the file immediately, etc. ./ ADD NAME=PHONE The PHONE utility allows you to query your own phone list for phone numbers and any "global" list that exists for every one. You simply type TSO PHONE xxxxxxx where "xxxxxxx" is a string on the line in the file which contains the phone number you want. If you have a line with the name JOE SMITH 999-888-9876 and you type in TSO PHONE smi that JOE SMITH line will display. Your personal phone dataset should be youruserid.PHONENUM and should be an FB 80 sequential file. ./ ADD NAME=PIC This utility is particularly helpful in languages such as COBOL where you have to match the length of a literal string delimited by single quotes with an explicit length number. It can be used in any edit session however. Place the cursor on the line w/the string and type PIC on the command line. You may also set a PF key to PIC. An example is as follows : EDIT ---- TCWCA.TWB.QNDPGMS(ALLUSERS) - 01.01 ------------ STRING LENGTH = 52 COMMAND ===> pic SCROLL ===> CSR 023400 01 ws-start pic x(52) value 023500 '*** program allusers working storage begins here ***'. You have verified that this string is 52 chars. long w/o having to count it. ./ ADD NAME=PKK PKK - This edit macro command will process all PICTURE and VALUE clauses within the member being edited from the current cursor position to the end of the member. It processes like COUNTPIC except that in addition it will insert the PICTURE clause 'PIC x(xx)' in front of all VALUE clauses that do not contain a PICTURE clause and replace the length with the computed length of the character string. (i.e. VALUE 'test'. converts to PIC x(4) VALUE 'test'.) This edit macro will only work on character VALUE clauses. ./ ADD NAME=PRINTIT The PRINTIT utility is used to print sequential datasets or PDS members (PANVALET support is not implemented yet). It has been designed to work as a CLIST or as an EDIT MACRO. There is also a CLIST named $PRINTIT (with an alias of $P) which calls PRINTIT. $PRINTIT is designed to work with ISPF DSLIST screens (e.g. like ISPF option 3.4) such that you can type $PRINTIT next to a dataset name on a DSLIST screen and $PRINTIT calls PRINTIT, passing the name of the dataset to be printed. As a CLIST, PRINTIT can be invoked by typing TSO PRINTIT. You are presented with a screen where you can type the name of the dataset to be printed, and select what "print configuration" you wish to use. To print a dataset, simply place an "S" next to the desired print configuration and press . If you wish to see the JCL which is created and submit it yourself (or not submit it), place a "Y" in the "Review JCL ?" field. If you wish to use the JOBPARM ROOM parameter for delivery specification, you may do so on the main panel. You may also override the number of copies associated with a given print configuration by specifying a non-zero number in the COPIES field on the main panel A "print configuration" is simply a name to call a given combination of OUTPUT CARD parameters. They may specify that the printed output is to be printed with two pages on each side in landscape orientation for example. In the Fidelity environment, they may also specify where the printed output is to be delivered by using different MSGCLASS parameters. Some print configurations exist in the table today, and any user may add, change, or delete from this list (though you would want to change and delete items very carefully as someone else may need them). Print configurations can be added by placing an "A" next to one of the existing rows in the table. An existing configuration can be changed by placing a "C" next to the row to be changed. In either case, the user is presented with a screen where the desired print configuration can be created. A 1-8 character name and short description must be specified for each configuration. You should make it meaningful for other users to understand. Placing a "?" in any of the fields on the configuration screen will provide a pop-up help screen to explain it. As mentioned before, PRINTIT can be invoked as an EDIT MACRO as well. To do this, simply type PRINTIT on the command line while editing a file, and the name of the dataset which you are editing will pre-populate the dataset name in the PRINTIT main panel. Then select a print configuration as you would normally and press . It is important to note that if the dataset you are editing is a "physical sequential" dataset as opposed to a PDS member, the batch job which is trying to print the dataset will require you to exit the dataset before it can run. You will get system-generated "enqueue" messages to this effect. It is also important to note, that when editing a PDS member, the version which is most recently saved on DASD is the version which PRINTIT will actually print. Consequently, you may want save the member you are editing before calling PRINTIT. 1 PRINTIT may be invoked as an edit macro in another fashion. If you type PRINTIT on the command line while editing a dataset and then place your cursor on the beginning of a dataset name IN THE BODY OF THE TEXT, PRINTIT will attempt to parse the dataset name out of the text and pre-populate the dataset name field on the PRINTIT main panel. By setting a PF key to PRINTIT, printing both the dataset being edited and datasets referred to in the text can be accomplished quite easily. PRINTIT has another facility which allows you to specify a print configuration as your personal "default". Placing the "L" line command next to a print configuration establishes that print configuration as your default "landscape" orientation configuration. Placing the "P" line command next to a print configuration establishes that print configuration as your default "portrait" orientation configuration. The "P" and "L" may be placed on the same configuration if you wish. When you invoke PRINTIT as an EDIT MACRO or using $PRINTIT with a dataset name, the dataset which pre-populates the dataset name field is interrogated to determine its LRECL. If the LRECL is greater than 80, the landscape default is set, otherwise, the portrait default is set. You will notice that an "S" has been placed next to the appropriate default print setting when the PRINTIT main panel appears. You then need only press to submit the print job. If you do not wish to use the default, you can "blank" it out. If you call PRINTIT as a CLIST, and no dataset name is passed, then no default will be set. Support for custom JCL ISPF file tailoring skeletons has just been added to the PRINTIT utility (1/30/91). The PRINTIT JCL has been broken down into four different individual skeletons: PRINTIT1 (contains the JOB card), PRINTIT2 (contains the JOBPARM card), PRINTIT3 (contains the OUTPUT JCL statement), PRINTPDS (contains the PDS multi-member print support step), and PRINTIT4 (contains the job step to do the actual printing). By default, these skeletons are specified to be "file tailored" in that order. Using the new "Extended JCL Skeleton" screen, you may now specify up to 13 different ISPF skeletons to file tailor for a given print configuration. You may or may not chose to use PRINTIT1-4 or any part of them, or in that contiguous order. For instance several configurations have already been added which use skeletons in the order PRINTIT1, PRINTIT2, PRINTIT3, xxxxxxxx, PRINTPDS, PRINTIT4, zzzzzzzz. In these configurations "xxxxxxxx" is a "printer setup" step for some small XEROX laser printers which accept in-stream font specification. "zzzzzzzz" is the default font "reset" step for that printer. The use of these 13 skeletons is limited only by your imagination (and the MVS operating system). As of 2/1/91 PRINTIT supports multiple member PDS printing. This is accomplished via calling the PDS utility to create a list of members to print based on a "member group" specification, and the PRINTDS utility to "print" the selected members. "Member groups", in "PDS utility" terminology, are a way of specifying a subset of members within a PDS (or all members), using some special "wild card"-type characters. ISPF "help" panels will be added soon which specify the syntax needed. Until that time, the following lists information regarging valid "member group" syntax: Member names may be entered in either character or hexadecimal mode for any subcommand which processes member names. 1 Character member names may be from one to eight bytes long with no imbedded blanks, commas, parentheses, colons or slashes. Hexadecimal member names may contain from one to sixteen hexadecimal digits delimited by x' and '. X'd7c4e2f9' and PDS9 are entirely equivalent; also, x'333' and x'0333' are equivalent. A member name range, member name pattern or member name combination forms what is termed a member group. Note that a member list (that is, a parenthesized list containing member and member group specifications separated by commas) may also be used. Following are examples using the MEMBERS subcommand to define and display a member group: Member Group Members in the Group ------------ -------------------- aa AA (aa,bb) AA and BB (aa,bb/) AA and any member names containing BB : all members -- X'00' through X'FF' aa: members from AA... through X'FF' :bb members from X'00' through BB... aa:bb members between AA... and BB... inclusive (abc,d:) member ABC and those from D... through X'FF' aa/ member names containing AA anywhere /bb member names containing BB anywhere aa/bb member names containing AA and BB (aa/,bb/) member names containing AA or BB aa* members with names AA... *bb member names containing BB anywhere aa*bb member with names AA... and BB elsewhere (aa*,bb/) members with names AA... or with BB anywhere Any of the valid specifications listed above outside of parentheses may be combined inside of parentheses with each specification separated by a comma (","). You may have as many specifications separated by commas between the parentheses as you can fit. Each comma acts as an "OR" in processing the logic. By default, each page of a member being printed using multi-member capabilities will have a "title" at the top of it. If the dataset is printed with ANSI or "machine" control characters (either by your specifying it, or by the RECFM of the PDS) the titles will be suppressed. If you wish to suppress the titles yourself on a non-control character dataset, you must "review" the JCL and add the PRINTDS keyword NOTITLE. To do so, find the string "PRINTDS" and add a line after it containing simply "NOTITLE +". The "+" is important as it acts as a continuation character for the PRINTDS command. ./ ADD NAME=PRINTQ The PRINTQ utility accepts an argument of a 1 character output class and then takes you into the SDSF output ("O") screen for that specific class, with a job prefix of "*". When you "END" out of SDSF, it resets your SDSF job prefix to "youruserid*". ./ ADD NAME=PROFUPDT PROFUPDT is essentially a subroutine type utility (i.e. it is best used as a "called" CLIST from another CLIST). What PROFUPDT allows you to do is change or set the value of a variable in an ISPF profile pool for a profile that you are not currently in. It takes as arguments, 1 positional variable in which you specify the "profile prefix", and 2 keyword variables in which you specify the variable to be updated and the value you want to assign to it. A syntax example would be: %PROFUPDT FAXE VARIABLE(DMPDSN) VALUE(XYZ) In this example, "FAXE" is the profile prefix for the FILE-AID product, "DMPDSN" is the variable we want to update, and "XYZ" is the value we want "DMPDSN" to have. ./ ADD NAME=PRSCREEN 1. Set up a PF key to the following string: PRINTLHI;TSO %PRSCREEN INIT;LIST KEEP;TSO %PRSCREEN Note: Every environment in ISPF which maintains a separate profile pool (e.g. FILE-AID, SDSF, etc.) will need to have this PF key set individually. I'm working on a way to update all of those simultaneously, but have not written it yet. 2. Set up the PRINTIT utility for yourself. The PRINTIT utility is used by PRSCREEN to print your ISPF "list" dataset which contains your screen image. To set this up, type TSO PRINTIT on an ISPF command line and press ENTER. You will be presented with a screen where you need to enter some information. - There is some job card type information (e.g. Job Suffix, Job Type, Job Class, etc.) which you need to fill in. Once filled-in, it will remain in your profile. - Then you need to specify where you want your screen prints to be sent. By placing an "L" next to the destination you desire on the PRINTIT screen and pressing ENTER, that will also be stored in your profile. You'll want to send it to an Landscape-oriented printer or print form since the ISPF list dataset is wider than 80 characters. I suggest the LOCIMPACT print configuration listed on the PRINTIT screen, as this will give you "hilighting" as well. Note: You'll have to do this in every environment as well, just like the PF keys because of the different profile pools maintained by products like SDSF and FILE-AID. Ok, that's it. Now, when you press the PF key you set above in ISPF, your screen will be sent to your ISPF list dataset and your list dataset will be sent to a printer. ./ ADD NAME=RELABEL This edit macro is designed to re-order the label numbers in JCL for multiple datasets stacked on a single tape. It is designed for times when a job abends and you need to start stacking datasets at a new job step beyond the one that originally had the label of "1". To execute this, you pass the number of the label which should now become "1". RELABEL finds that label and renumbers all subsequent labels so that they are incremented properly. It also works with multiple output DD's in a single step which all need to have the same label number. Multiple output DD's in the same step with different label numbers would not work. Syntax Example: COMMAND ===> relabel 5 In this example, RELABEL would find each "LABEL=(" and find the first one where the label is 5 (or 05 or 005, etc.). It would change the 5 to a 1 and label 6 to a 2 and label 7 to a 3 and so on. So if you had a job that looked like the following: //STEP01 EXEC PGM=XXX //DD1 DD LABEL=(1,SL,RETPD=30),etc....... //DD2 DD LABEL=(1,SL,RETPD=30),etc....... //STEP02 EXEC PGM=XXX //DD1 DD LABEL=(2,SL,RETPD=30),etc....... //DD2 DD LABEL=(2,SL,RETPD=30),etc....... //STEP03 EXEC PGM=XXX //DD1 DD LABEL=(3,SL,RETPD=30),etc....... //DD2 DD LABEL=(3,SL,RETPD=30),etc....... //STEP04 EXEC PGM=XXX //DD1 DD LABEL=(4,SL,RETPD=30),etc....... //DD2 DD LABEL=(4,SL,RETPD=30),etc....... //STEP05 EXEC PGM=XXX //DD1 DD LABEL=(5,SL,RETPD=30),etc....... //DD2 DD LABEL=(5,SL,RETPD=30),etc....... //STEP06 EXEC PGM=XXX //DD1 DD LABEL=(6,SL,RETPD=30),etc....... //DD2 DD LABEL=(6,SL,RETPD=30),etc....... //STEP07 EXEC PGM=XXX //DD1 DD LABEL=(7,SL,RETPD=30),etc....... //DD2 DD LABEL=(7,SL,RETPD=30),etc....... //STEP08 EXEC PGM=XXX //DD1 DD LABEL=(8,SL,RETPD=30),etc....... //DD2 DD LABEL=(8,SL,RETPD=30),etc....... //STEP09 EXEC PGM=XXX //DD1 DD LABEL=(9,SL,RETPD=30),etc....... //DD2 DD LABEL=(9,SL,RETPD=30),etc....... //STEP10 EXEC PGM=XXX //DD1 DD LABEL=(10,SL,RETPD=30),etc....... //DD2 DD LABEL=(10,SL,RETPD=30),etc....... 1 After a "relabel 5" it would look like: //STEP01 EXEC PGM=XXX //DD1 DD LABEL=(1,SL,RETPD=30),etc....... //DD2 DD LABEL=(1,SL,RETPD=30),etc....... //STEP02 EXEC PGM=XXX //DD1 DD LABEL=(2,SL,RETPD=30),etc....... //DD2 DD LABEL=(2,SL,RETPD=30),etc....... //STEP03 EXEC PGM=XXX //DD1 DD LABEL=(3,SL,RETPD=30),etc....... //DD2 DD LABEL=(3,SL,RETPD=30),etc....... //STEP04 EXEC PGM=XXX //DD1 DD LABEL=(4,SL,RETPD=30),etc....... //DD2 DD LABEL=(4,SL,RETPD=30),etc....... //STEP05 EXEC PGM=XXX //DD1 DD LABEL=(1,SL,RETPD=30),etc....... //DD2 DD LABEL=(1,SL,RETPD=30),etc....... //STEP06 EXEC PGM=XXX //DD1 DD LABEL=(2,SL,RETPD=30),etc....... //DD2 DD LABEL=(2,SL,RETPD=30),etc....... //STEP07 EXEC PGM=XXX //DD1 DD LABEL=(3,SL,RETPD=30),etc....... //DD2 DD LABEL=(3,SL,RETPD=30),etc....... //STEP08 EXEC PGM=XXX //DD1 DD LABEL=(4,SL,RETPD=30),etc....... //DD2 DD LABEL=(4,SL,RETPD=30),etc....... //STEP09 EXEC PGM=XXX //DD1 DD LABEL=(5,SL,RETPD=30),etc....... //DD2 DD LABEL=(5,SL,RETPD=30),etc....... //STEP10 EXEC PGM=XXX //DD1 DD LABEL=(6,SL,RETPD=30),etc....... //DD2 DD LABEL=(6,SL,RETPD=30),etc....... ./ ADD NAME=RENAMEME This utility allow you to rename the PDS member that you are currently editing without having to go to ISPF option 3.1. Just type RENAMEME newname on the command line and press ENTER. The member will then be copied into the new member and the old member will be deleted. You will be taken into an edit of the new member. This will also do a SAVE of the new member. ./ ADD NAME=RESETPFK The RESETPFK Clist is used in comjunction with the SETPFK Clist. When the SETPFK Clist has assigned a new value to a PF Key, the original value is saved in the user's Profile. The RESETPFK Clist will restore this saved value to the specified PF Key. If SETPFK has never been used for a specified PF Key and RESETPFK is performed on that PF Key, then its value will be set to null. Only one level of PF Key values is maintained. In other words, RESETPFK will restore the command saved from the last use of the SETPFK command. Example: RESETPFK 12 ./ ADD NAME=RUNSYSP RUNSYSP is an edit macro which allows you to invoke "IDCAMS" in the forground and actually RUN the SYSP member you are editing. When you are editing a SYSP member (e.g. a delete/define for some test database) and you want to actually do what that IDCAMS SYSIN does, just type RUNSYSP on the command line and press . You will get the IDCAMS messages normally seen in your job output to let you know the outcome of the operation. ./ ADD NAME=SAVEPROF The SAVEPROF utility performs a TBSAVE on the profile table for the profile variable pool currently open. This can be valuable, in that ISPF never saves the profile pool ISPF table until ISPF is exited. Consequently, if you update a variable in ISPF and then time-out of TSO, you will loose that update. SAVEPROF ensures that the update will "stick" even if you do "time-out". ./ ADD NAME=SCAN This utility invokes the program invoked when you go to ISPF option 3.14. It has the advantage of not needing to "leave" where you are currently to execute it...when you get out of it, you are back to where you where in your ISPF session. ./ ADD NAME=SCRATCH SCRATCH searches the MVS CATALOG for tape volumes for datasets of a given "dsnqual" or high-level qualifier and creates a TMS UPDATE FORM automatically. Note: the above statement means that un-cataloged tape volumes are not found, and sometimes catalog entries can remain even when the underlying volume has been re-used. A $TINFO utility run against that catalog entry in 3.4 can reveal whether or not this has happend. TMS utilities must be used to identify un-cataloged tape volumes which are not yet scratched. In keeping with UNIPAC's tape standards, in addition to looking for tape volumes beginning with a certain "dsnqual", it also looks for datasets beginning T.dsnqual and T.OFF.dsnqual. If you do not specify a "dsnqual" when invoking SCRATCH, it will look for your TSO id as the "dsnqual". Once SCRATCH has created the TMS UPDATE FORM, you are taken into an edit on the file containing the form. Since SCRATCH does not know which tapes you really want to scratch, you must DELETE ANY TAPES ON THE LIST THAT YOU WANT TO KEEP! Once you've pared down the list of tape datasets, you can save the dataset (type SAVE on the command line and press ENTER), and print it off (an easy way to do this is to type PRINTIT on the command line and press ENTER). Per UNIPAC procedures, you must sign the form and your supervisor must sign the form. Since the form already contains distribution routing information, you can just drop your signed form in a distribution bin and that's that! To invoke SCRATCH, simply type: tso scratch on the command line and press ENTER. If you want to specify a specific dsnqual, simply type: +-------------------------------------+ tso scratch dsnqual(?????) ³where "?????" might be something like³ ³"TST2B" or "TST28" ³ +-------------------------------------+ on the command line and press ENTER. ./ ADD NAME=SETDEBUG This utility toggles your ISPF profile variable "DBGSWTCH" between the values "ON" and "OFF". Many of the CLIST-based utilities in this utilities list check the value of the DBGSWTCH variable at the beginning of the processing and either turn "messages" off or on based on the value of the switch. ./ ADD NAME=SETMASK This utility takes a little backround to explain. The ISPF editor has a concept called "MASK" lines. MASK lines can be thought of as templates for new lines in a file. When you use the "I" line command in edit, a new blank line is used by default for each insert. The lines inserted do not have to be blank however. If a MASK line is set up, it will be inserted instead of a blank line. If you type MASK as a line command, ISPF allows you to define the mask interactively. For the rest of that edit session (or until you change it), the MASK line will be inserted. This is all well an good, but what if you want to create a MASK line with special HEX characters that cannot be typed....well....you're sunk. Why, you ask, would you want to do such a thing? Certain special HEX characters cause your cursor to skip over them in an edit session....like a TAB sort of. By inserting these characters in certain columns on each line, you can greatly facilitate entering data which must be in specific columns. Those special characters will prevent you from typing in the wrong columns. The SETMASK utility allows you to specify a line of text in your file as the MASK line. Because you can use a line of text in the file, you can turn HEX ON and place those special characters such as X'00' wherever you wish, mark the line with an "M" in the line number, type SETMASK on the command line and press . Now that line is the MASK line. ./ ADD NAME=SETPFK This CLIST allows the user to change a Program Function Key definition via a one line command as opposed to using the KEYS command and going to IBM's screen utility for PF Key definition. In addition, the "original" PF key definition is saved in the user's Profile, and may be restored using the RESETPFK Clist. Important: If the Command string includes a TSO command delimiter (usually ";") then that delimiter must be replaced by two periods (..) in the TO(command) clause, otherwise TSO will interpret it as the beginning of a new command, rather than part of the definition. Example: SETPFK 12 TO('F p''='' FIRST..:X9999..FIND ALL') redefines PF Key 12 as F p'=' FIRST;:X99999;FIND ALL ./ ADD NAME=SETVAR SETVAR takes input of an ISPF profile variable name, the name of the profile "applid" in which it does/needs to reside, and the value to which it should be set. It then sets that variable to that value in that ISPF profile. To execute it type the following at any ISPF command/option line: COMMAND ===> tso setvar ./ ADD NAME=SHOWMAP SHOWMAP is an ISPF EDIT MACRO which invokes Don Faville's CICS MAPPRINT program for the member you are editing and presents you the results on-line. So, if you're editing some BMS source, and you want to know what the map basically looks like but you don't want to go to CICS to see that, just type SHOWMAP on the command line and press . The MAPPRINT program will then operate against the BMS source member you are editing, and when finished, will bring you into an edit session of the report generated by the program. You can print this fairly easily at this point by typing PRINTIT and pressing . ./ ADD NAME=SIDBYSID ISPF option 3.14 allows you to search for strings in a sequential dataset or a PDS. If the dataset is a PDS, the output is in the format : mbmrname -------------- STRING(S) FOUND --------------------- 000001 data from the line 000002 data from the next line "SIDBYSID" changes the format to : mbmrname data from the line mbmrname data from the next line ./ ADD NAME=SIGN This utility allows you to change un-signed or signed data to positive or negative signed numbers. It can handle packed or zoned decimal numbers. To invoke it, type SIGN 999 -/+ packed/zoned on the command line of a file that you are editing and press ENTER. The '999' is the column number that is to be changed and must be specified. "-" or "+" can be specified to denote the sign that you want to change to ("+" is the default). "Packed" or "zoned" can be specified to indicate the type of data being changed ("zoned" is the default.) ./ ADD NAME=SIGNOUT SIGNOUT is an ISPF dialog which functionally replaces ISPF option E.D. It uses SYNCSORT to allow complex selection of the various values stored on the "checkout board" file and different sort orders. It also allows the output to be displayed at the terminal or written to a file. When you type TSO SIGNOUT on the command line, you are presented with a panel where you can enter your search and sort criteria. You may specify full or partial values for the following fields: MEMBER NAME ELEMENT TYPE PROGRAMMER USER ID PR NUMBER LOG DATE (when it was checked out) RFP DATE (estimated) PRD DATE (estimated) When you enter a search value for a field, SIGNOUT will assume "EQ" for the SYNCSORT INCLUDE COND. You may alternatively specify GT, LT, GE, LE, or NE. If a partial value is entered, only the length of the partial value is scanned. For instance, if you wanted to find all the elements checked out which have a member name beginnning USC52, then you would enter USC52 on the MEMBER NAME line and EQ in the COMPARE OPERATOR column. You may change the default sort order (ELEMENT TYPE, MEMBER NAME) by specifying ordinal numbers 1 through 7 in the SORT ORDER column. You may dump the output to a file by specifying a "Y" (yes) in the SEND REPORT OUTPUT TO FILE? field. ./ ADD NAME=SPLITTO This utility is used in conjuction with the LINEUPTO utility (and, in fact, may be executed conditionally WITH LINEUPTO by specifying "lineupto split") when invoking LINEUPTO. It will find the lines marked "==ERR>" by LINEUPTO and split them just after the " TO ", place the receiving field under the sending field and mark the line as "split" with a message line. EXAMPLE | After the ==ERR> MOVE AAAAAAAAAAAAAAAAAAA TO BBBBBBBBBBBBBBBBBB. | split, BECOMES +-------------------+ you must 000001 MOVE AAAAAAAAAAAAAAAAAAA TO | run LINEUPTO again to line up 000002 BBBBBBBBBBBBBBBBBBB. | previous error lines. ./ ADD NAME=STAMP The STAMP edit macro provides the user with a way to easily place a DATE/TIME, TIME/DATE, DATE, or TIME stamp on one, some, or all the lines in a file in what ever column the user chooses. By default, STAMP will place a DATE/TIME stamp in the format of YY/MM/DDHH:MM:SS where ever the user's cursor is when STAMP is invoked. By using special keyword parameters and standard edit command parameters, you can change the type of stamp and process multiple lines at a time. The special keywords indicate the type of stamp you would like. They are as follows: TIME - HH:MM:SS DATE - YY/MM/DD TIMEDATE - HH:MM:SSYY/MM/DD DATETIME - YY/MM/DDHH:MM:SS (this is the default) You may specify the column number where you want to begin the stamp text string, and/or the excluded status of the lines you want to process, and/or a label range of the lines you want to process. For instance, if hou wanted to place a "TIMEDATE" stamp on all the lines beginning in column 30 which did not contain the string "XYZ" from where you are in the file to the end of it, you could type the following on the command line: COMMAND ===> x all 'xyz';stamp timedate 30 nx .zcsr .zlast ./ ADD NAME=STATTEXT STATTEXT is designed specifically to help an individual incrementally prepare their weekly status report by allowing them to enter a brief reminder of an accomplishment, as it occurs, into a PDS member by typing in a single command. STATTEXT makes an assumption that the individual has a PDS defined with a name in the format of "youruserid.STATUS". When STATTEXT is invoked, the member INPRGRSS ("in progress") is appended with the text line that is passed by the user. The syntax to invoke STATTEXT is as follows: COMMAND ===> tso stattext text('completed analysis on pgm abcxyz99') When the key is pressed, a "processing" message is displayed while STATTEXT appends the line to the INPRGRSS member prefixed by the current date. Presumeably, if used consistantly, by the end of the week, your list of accomplishments has been documented (at least with one-line reminders). The INPRGRSS member can then be used to construct your weekly status report. It is suggested that you rename INPRGRSS to something like WE940603 (for "Week Ending June 3rd, 1994") and then you'll also have a chronilogical record of your accomplishments....quite suitable for performance evaluation preparation time. One may also want to assign "TSO STATTEXT" to a PF key so that all that is needed is to type "text('klkjsdflkhdf')" and press a PF key to docuemnt an activity for your status report. ./ ADD NAME=SWAPCOL The SWAPCOL utility allow you to swap two columns of data/text in a file which you are editing. You simply specify the beginning and ending column numbers of the first column, the beginning column number of the column of data which you want to swap with, and any limiting qualifiers such as "X", "NX", and edit labels (any valid combination of these). Here's an example: Let's assume that we have two columns of data, and some of the rows of data contain the value 'xyz' in them. In these rows, we need to swap the two columns of data. We can do this with two commands. First we exclude the lines containing 'xyz' as follows: EDIT ---- JP6409A.PDS.WORKFILE(TESTTEST) - 01.00 -------------- COLUMNS 001 072 COMMAND ===> x all 'xyz' SCROLL ===> CSR =COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7-- 000001 qwertyuiop xxxxxxxxxx%%%%%%%%%% 000002 asdfghjkl; xxxxxxxxxx%%%%%%%%%% 000003 SWAPCOL 1 10 20 x SCROLL ===> CSR =COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7-- 000001 qwertyuiop xxxxxxxxxx%%%%%%%%%% 000002 asdfghjkl; xxxxxxxxxx%%%%%%%%%% 000003 SCROLL ===> CSR *** 3 LINE(S) PROCESSED *** 000001 qwertyuiop xxxxxxxxxx%%%%%%%%%% 000002 asdfghjkl; xxxxxxxxxx%%%%%%%%%% 000003 tso syncext When you hit ENTER, you will be presented with a little pop-up screen which tells you which profile is being updated as it works its way through your profile library. It takes the names as they have been typed in once and propogates those names through out all your profiles in ISPF. If you ever make changes to your Extended Edit/Browse screens that you want to be permanent, or if you access a new application in ISPF and a new profile gets built which does not have the names, just execute SYNCEXT again and you'll be "in-sync"! ./ ADD NAME=SYNCVARS SYNCVARS is a utility which takes the value of a specific profile variable in ISPF profile currently being used, and propagates its value in all your ISPF profiles for you. SYNCVARS can also take input of a file which contains a list of variable names (one per record in the file) or can be called from another REXX exec which has put a list of variable names into the data stack with the QUEUE or PUSH facility. A common use for such a utility is to syncronize certain PF key settings in every profile. Type the following on the command (or option) line: COMMAND ===> tso syncvars At which point the following screen would come up: +------------------------------------------------------------------+ | ---- Syncronize ISPF Profile Pool Variables Across Profiles ---- | | COMMAND ==> | | | | Variable Name ==> | | | | OR | | | | Dataset Name ==> | | | | END to quit or ENTER to process your request | +------------------------------------------------------------------+ On this screen, type the name of the variable which you want to syncronize across environments and press ENTER. FOR EXAMPLE: If you have PF24 set to some command and you want PF24 to look the same in all your ISPF profiles, you would type the following on the command (or option) line: COMMAND ===> tso syncvars At which point the following screen would come up. Enter the data "ZPF24" as the variable name (the letter "Z" is needed at the beginning of the PFkey). +------------------------------------------------------------------+ | ---- Syncronize ISPF Profile Pool Variables Across Profiles ---- | | COMMAND ==> | | | | Variable Name ==> zpf24 | | | | OR | | | | Dataset Name ==> | | | | END to quit or ENTER to process your request | +------------------------------------------------------------------+ Press ENTER. You will receive messages indicating your various profiles are being synchronized. If you have many variable to syncronize, put them in a dataset with one variable name per line like: PJOBSUFF UTILNAME BINNM CCNTR QBRN1 Then, on the screen, you can use the dataset name field instead and it will use your dataset as input and syncronize all the variables in the dataset. ./ ADD NAME=SYS2JCL This edit macro is invoked while editing a file that contains JES job output (typically extracted using the SDSF PRINT command or the TSO OUTPUT command or the GETOUTPT UNIPAC Utility). It searches through to find only the lines that have a "//" in column 12 and deletes the rest of the lines. It then shifts these lines over to column 1. This gives you the JCL that was executed to create this JES sysout. It does not, however, show you any in-stream data as that can't be reliably re-produced from a JES SYSOUT listing. To invoke SYS2JCL, simply edit the dataset that contains the JES SYSOUT (it's your job to get the sysout into a dataset) and type SYS2JCL on the command line and press . ./ ADD NAME=TBINFO The TBINFO utility uses standard ISPF table service calls and the WHEREIS utility to gather information about an ISPF table. The information is organized and placed into a file. In interactive execution, the user is then taken into an edit session on the results file. The information stored is all the information that can be gathered by the TBQUERY and TBSTATS ISPF service calls. Additionally, WHEREIS finds what library the table resides in within the ISPTLIB concatenation. ./ ADD NAME=TESTGDG TESTGDG is an edit macro which you can invoke while in JCL. It will scan your JCL and look for datasets which are GDG datasets and will construct a temporary CLIST which will, in turn, interactively create GDG indexes for these datasets. This can be helpful if you have just created some test JCL from some production JCL and wish to use GDGs like production does, but with test name. This allows you to quickly create the GDG indexes necessary to run your job. ./ ADD NAME=TOOLBOX The TOOLBOX utility is simply another way of doing the same thing as typeing in "=9.T". The only difference is that when you "END" out of the TOOLBOX screen, you will be returned to where you were when you invoked the TOOLBOX CLIST. This can be handy for looking for a technote, or some documentation, or a utility without having to leave where you are. ./ ADD NAME=TRAPDBUG TRAPDBUG is a CLIST which will call any CLIST you select and capture all the messages returned by that CLIST into a file. You are then taken into an edit of the file. You may pass parameters to the CLIST as well when requesting execution of a given CLIST. Simply type TSO TRAPDBUG on an ISPF command line and press ENTER. An ISPF panel will be presented which will allow you to enter the CLIST name and any parameters to pass. Note : If the CLIST uses the DGBSWTCH ISPF variable for debug processing, it will be automatically set to "ON". Otherwise, you may pass any necessary parameters to turn on CLIST messages. Nested CLISTs will not be trapped if invoked via ISPEXEC SELECT. You must use TSO invocation. ./ ADD NAME=UNARC UNARC does a LISTCAT VOLUME on datasets with your userid as a high level node. It then creates a batch job which will access each one of those datasets (an IDCAMS PRINT with a COUNT(1)). Because they are archived, tape mounts will automatically be issued for each dataset. When the JCL is created, you are taken into an edit session on the JCL. If you do not wish to unarchive a given dataset, just delete that line of IDCAMS SYSIN code before you submit the job (the job is not submitted for you). ./ ADD NAME=UNSTRING This utility scans a file being edited and creates a seperate file with a line for each string delimited by spaces (or beginning or end of line) in the first file. You are then taken into an ISPF EDIT of the output dataset (the input dataset is unchanged), and you are returned to the edit of the input dataset when you "END" or "CANCEL" out of the output dataset. Example : Input file : Output file : 000100 string1 string2 (string3) xx 000100 string1 000200 string2 000300 (string3) 000400 xx ./ ADD NAME=UNUSED UNUSED is an edit macro which, when invoked while editing a COBOL program, will automatically search that program's compile listing dataset for WORKING-STORAGE elements which are only defined but not referenced. UNUSED will then return to the COBOL program being edited and insert ISPF edit "message" lines before the WORKING-STORAGE definition of each of those UNUSED fields. If you're familiar with the COMPMARK utility and how it functions, you'll recognize the same processing steps being executed by UNUSED. Implicit to the function of UNUSED is a COBOL 2 version 3.2 compile listing dataset with a name in the format of userid.COMPILE.LISTING.programname. If the program is compiled with the COMPILE utility, this dataset can be generated automatically. UNUSED also functions like COMPMARK in that you can specify a PF key when invoking UNUSED (e.g. COMMAND ===> unused pf11), and that PF key will be automatically set to the ISPF edit command "LOCATE NEXT SPECIAL". When UNUSED is finished processing and you want to locate which WORKING-STORAGE elements are unused, you can either type in "locate next special" (or L SPE for short) each time you want to find the next instance, or you could set this to a PF key. By specifying a PF key when you invoke UNUSED, you let UNUSED set the PF key to the appropriate command for you. ./ ADD NAME=USAGE This utility scans a COBOL program that you are editing and creates an output file of "USAGE-MODE" information from the PROCEDURE DIVISION of the program. Type "usage" on the command line and press ENTER. The program name, area name, and "usage-mode" are put in the output file. The output file may be specified at execution time by typing "usage dataset.name" or the dataset will default to xxxxxxx.TEMP.USAGE.OUTPUT where 'xxxxxxx' is your TSO logon id. If the dataset exists, it will be appended, if it does not exist it willbe created. You could create a CLIST utility to go into a series of programsand execute USAGE and create an extract of the usage-modes for the selected programs. ./ ADD NAME=VIEW This utility allows you to VIEW (i.e. ISPF EDIT if possible or ISPF BROWSE if EDIT is not possible) a dataset without having to type in the dataset name. For example, you are editing some JCL (since VIEW is an EDIT MACRO, it only works in an edit session), and you need to see the sort cards for a sort step but the cards are in a dataset. You simply place your cursor on the first character of the dataset name and press a PF key that you have assigned the value "VIEW" to. You will be taken into an edit session of that dataset if it is editable (i.e. within a valid LCREL range), or a browse session if it is not editable. When you "END" or "CANCEL" out of the session, you will be returned to the original file that you were editing. ./ ADD NAME=VIEWJCL 000100 VIEWJCL is an edit macro which, when executed from a COBOL program, wil 000200 display a member list of production "execute" JCL for this program. 000300 That JCL may then be edited, browsed, etc. 000400 000500 VIEWJCL extracts bytes 4 through 8 of the COBOL member name and then 000600 prefixes those bytes with a database prefix such as USC (the default if 000700 none is specified) or LIN or WSL. Then VIEWJCL goes to that database's 000800 production JCL library and brings up a member list of all the members 000900 which begin with that character string. 001000 001100 For example, if you are editing program SLS5035, you can type VIEWJCL o 001200 the command line, press ENTER, and you will be displayed a member list 001300 in the USC10.PRD.CNTL library consisting of the members USC5035 and 001400 USC5035N. If you had typed VIEWJCL LIN, you would get a member list in 001500 the LIN51.PRD.CNTL library consisting of the members LIN5035 and 001600 LIN5035N. 001700 001800 When you "END" out of looking at the JCL, you'll be back in your 001900 program. ./ ADD NAME=WHEREIS This utility will search a DDNAME concatenation which you specify for the first occurance of a MEMBER which you specify. The syntax from within ISPF is simply TSO FINDMOD membername ddname. If you are not in ISPF, you may invoke WHEREIS like : FINDMOD membername ddname. FINDMOD can be valuable for finding items like ISPF panels and CLISTs to determine which precise item is being used in execution if more than one library in the concatenation contains a like-named member. ./ ADD NAME=XMITME The XMITME Edit Macro will prompt you for the information necessary to transmit the dataset you are editing to another JES location on the network. You will be asked to specify the name of the JES location, a user id to send to, and whether you want to send a TRANSMIT message along as well. If you specify that you would like a transmit message sent, you will be taken into the TSO TRANSMIT "message" screen where you may type in your message. The TRANSMIT is then performed interactively. ./ ADD NAME=XPEDITER XPEDITER is fully documented in manuals in the library and throughout IS. You may also view the tutorial panels in ISPF for more information.