Previous Topic Next topic Print topic


SY*

Specify in a AMB program the location where the generator places source code.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Compatibility:

PC and mainframe operating systems

Syntax:

 SYBT   source
 SYEN   source
 SYDD   source
 SYFD   source
 SYIO   source
 SYLT   source
 SYLK   source
 SYM1   source
 SYM2   source
 SYRP   source
 SYWS   source

Locations in Generated Code:

Location Keyword Explanation
Top of program SYM1 At the beginning of the program, before rule libraries that you include at the beginning of the program
  SYM2 After rule libraries that you include at the beginning of the program
Environment Division SYEN In the Environment Division, after the Special-Names paragraph
  SYIO In the Input-Output Section, after rule libraries that you include at the beginning of the Input-Output Section
Data Division SYDD At the beginning of the Data Division
  SYFD In the File Section, after rule libraries that you include at the beginning of the File Section
  SYWS In the Working-Storage Section, after rule libraries and data structures that you include in Working-Storage
  SYLT In the Linkage Section, after rule libraries and data structures that you include at the beginning of Linkage
  SYLK In the Linkage Section, after source code that you include with the SYLT keyword
  SYRP In the Report Section, after any rule libraries that you include at the beginning of the Report Section
Procedure Division SYBT At the end of the program
  • The effect of a SY* keyword ends with the appearance of another keyword in the KYWD column.
  • The generation process shifts the source to start in column 8.

Examples:

Include a rule at the top of the program.

 SYM1   % INCLUDE USERMACS(MY-RULE)

Place a variable assignment statement at the top of the program.

 SYM1    &TP-USER-LEN = 49

Include a copybook in Working-Storage.

 SYWS   % INCLUDE COPYLIB(MY-COPYBOOK)

Include a copybook in Linkage.

 SYLK   % INCLUDE COPYLIB(MY-COPYBOOK)
Previous Topic Next topic Print topic