z/OS ISPF Software Configuration and Library Manager Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example of processing conditionally saved components

z/OS ISPF Software Configuration and Library Manager Guide and Reference
SC19-3625-00

Suppose a translator can determine if a developer changed only comments in the source code, and signals that by a return code of 2. The translator creates a listing output to match the current source. However, creating object code for the source is unnecessary because comment changes to source do not alter object code. In this case, the object code is a static output because it did not change. Specifying a NOSAVRC=2 on the FLMALLOC macro corresponding to the object output instructs SCLM not to copy object modules back to the hierarchy when the translator returns a 2. SCLM copies the generated listing back to the hierarchy when the translator returns a 2, if the object modules already exist in the hierarchy.

Components that depend on the object do not need to be rebuilt when only the listing is regenerated. If you specify DEPPRCS=N on the FLMLANGL macro, SCLM rebuilds components dependent on a member only if all its outputs were saved.

Figure 1. Sample Language Definition for Conditionally Saved Components
          FLMLANGL    LANG=XYZ,VERSION=V1,DEPPRCS=N
* BUILD TRANSLATOR(S)
*
          FLMTRNSL   CALLNAM='TRANSLATOR XYZ',                         C
               FUNCTN=BUILD,                                           C
               COMPILE=XYZ,                                            C
               GOODRC=4
*
*         (* SYSIN *)
          FLMALLOC  IOTYPE=S,KEYREF=SINC,RECFM=FB,LRECL=80,            C
             RECNUM=1000,DDNAME=SYSIN
*         (* SYSPRINT *)
          FLMALLOC  IOTYPE=O,KEYREF=LIST,RECFM=VBA,LRECL=133,          C
             RECNUM=30000,PRINT=Y,DDNAME=SYSPRINT,DFLTTYP=LISTING
*         (* SYSLIN *)
          FLMALLOC  IOTYPE=O,KEYREF=OBJ,RECFM=FB,LRECL=80,             C
             RECNUM=5000,DDNAME=SYSLIN,DFLTTYP=OBJ,NOSAVRC=2
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014