Previous Topic

Next Topic

Book Contents

Book Index

Name Generation by Concatenation

It is possible to generate a report name by concatenating strings which appear in different places in the report page and predefined strings.

The report name can be generated by using multiple DO NAME statements. Consider the following examples:

Example 1

DO NAME=*         LINE 00001 COL 00051 - 00061

DO NAME=*+*P      LINE 00004 COL 00026 - 00029

The report name is composed from the contents of line 4 column 26-29 followed by the contents of line 1 column 51-61. The string +*P translates into the name identified by the previous DO NAME statement.

Example 2

DO NAME=*-TWO-    LINE 00001 COL 00051 - 00061

DO NAME=*P+*      LINE 00004 COL 00026 - 00029

The report name is composed from the contents of line 1 columns 51-61 followed by the string –TWO– followed by the contents of line 4 columns 26-29. The string *P+ translates into the name identified by the previous DO NAME statement.

Only one + can appear in each DO NAME statement. The combination DO NAME=*+*P+ ... is not valid.

Example 3

DO NAME=*P+ABC

The report name consists of the name identified by the previous DO NAME statement concatenated with the string ABC.

Example 4

The report name is EMPLOYEES REPORT.

Figure 254 DO NAME Parameter, Name Generation by Concatenation – Example 4

----- CONTROL-D/V CATEGORY DAILY                JOB  PLRPT010 ----------- (R.S)

COMMAND ===>                                                    SCROLL===> CRSR

+-----------------------------------------------------------------------------+

   ===========================================================================

   DEF COPIES 00 LVL 90 USER UNIDENT              DEST          MAX COPIES 05  

   ===========================================================================

   ON CLASS      = D         EXTWTR               DEST          FORM           

   PRT COPIES 01 LVL 20 USER MGT                  DEST          MAX COPIES     

       PRINT/CDAM PARMS =                                                      

   WHEN LINE 00001 - 00001 COL 00014 - 000461 PRINT   REF NXT   CT     AND/OR

        STRING = E M P L O Y E E S     R E P O R T                             

   DO NAME    = EMPLOYEES REPORT                               

   DO USER    = MANAGEMENT                 LVL    LINE        COL       -      

                           S A T          SYNONYM =       CONCAT =              

   DO USER    = *                          LVL    LINE        COL 00064 - 00074  

                           S A T          SYNONYM =       CONCAT =              

   DO PRINT   = STD                                   MUST   =                 

   DO BACKUP  = BKP0031D                                                       

   DO                                                                          

   WHEN LINE 00001 - 00001 COL 00001 - 00001 PRINT   REF NXT     CT    AND/OR

        STRING =                                                               

   DO                                                                          

   ===========================================================================

FILL IN REPORT DEFINITION. CMDS: EDIT, SCHED, SHPF, PATH               14.00.06

Example 5

The report name is extracted from columns 10 to 25 in line 5 of the report.

Figure 255 DO NAME Parameter, Name Generation by Concatenation – Example 5

----- CONTROL-D/V CATEGORY DAILY                JOB  PLRPT010 ----------- (R.S)

COMMAND ===>                                                    SCROLL===> CRSR

+-----------------------------------------------------------------------------+

   ===========================================================================

   DEF COPIES 00 LVL 90 USER UNIDENT              DEST          MAX COPIES 05  

   ===========================================================================

   ON CLASS      = D         EXTWTR               DEST          FORM           

   PRT COPIES 01 LVL 20 USER MGT                  DEST          MAX COPIES     

       PRINT/CDAM PARMS =                                                      

   WHEN LINE 00001 - 00001 COL 00014 - 00046  PRINT   REF NXT   CT     AND/OR

        STRING = E M P L O Y E E S     R E P O R T                             

   DO NAME    = *                                 LINE 00005  COL 00010 - 00070  

   DO USER    = MANAGEMENT                 LVL    LINE        COL       -      

                           S A T          SYNONYM =       CONCAT =              

   DO USER    = *                          LVL    LINE        COL 00064 - 00074  

                           S A T          SYNONYM =       CONCAT =              

   DO PRINT   = STD                                   MUST   =                 

   DO BACKUP  = BKP0031D                                                       

   DO                                                                          

   WHEN LINE 00001 - 00001 COL 00001 - 00001  PRINT   REF NXT   CT     AND/OR

        STRING =                                                               

   DO                                                                          

   ===========================================================================

FILL IN REPORT DEFINITION. CMDS: EDIT, SCHED, SHPF, PATH               14.00.06

Parent Topic

DO NAME: Decollating Parameter (decollating mission)