Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Defining a preprocessor to SCLM z/OS ISPF Software Configuration and Library Manager Guide and Reference SC19-3625-00 |
|||||||||
Suppose that some of your Finnoga 4 users run a preprocessor step on their Finnoga 4 source before compiling it. How do you define that two-step build process to SCLM? Using another fictitious product, the Panda Universal Preprocessor (PUPP), you can specify that some Finnoga 4 source is to be run through PUPP before it gets compiled. Again, you need to list the ddnames used by the translator you want to define. In this case, assume that PUPP uses three ddnames:
In this example, the ddnames are not numbered because you will not use the PUPP ddname substitution list. Instead, you will use the ddname substitution list supported by the Finnoga 4 compiler to link the two build steps together. Your users want SCLM to keep the listing data set produced by PUPP, but they do not want to keep the intermediate copy of the preprocessed source (the output in SYSOUT). The preprocessed source should be passed to the Finnoga 4 compiler and then deleted. Because you want to preprocess some but not all of the Finnoga 4 source, you should define two different build processes to SCLM. You have already defined the latter build process (for language FINNOGA), and you will not change that language definition. For the two-step build process, however, you will create a new language definition with a different language name. The users must assign the correct language name to each Finnoga 4 source member. The new language definition is very much like the first language definition, so you can copy the first definition into a second PROJDEFS.SOURCE member and modify it there. The new language definition (copied from the first definition) has two FLMTRNSL macros: one for the parser, and the other for the Finnoga 4 compiler. You will add a third FLMTRNSL for the preprocessor, using the same macros and keywords as you used in the previous example. Enter this example before the FLMTRNSL for the Finnoga 4 compiler and after the last FLMALLOC for the parser. The order of execution is then parse, preprocess, and compile. Figure 1. Panda Universal Preprocessor
The following list describes the keywords that change so you can
invoke the new language definition:
|
Copyright IBM Corporation 1990, 2014
|