The assign-printer() compiler directive will cause the behavior of "assign to printer" to match RM/COBOL behavior, that is, the access name for the file will be the same as the COBOL file-name. To map this file name with an environment variable, use the environment variable name "dd_file-name", where file-name is your COBOL file name. For example, if pf01 is your COBOL file name, set the environment variable name "dd_pf01" to the value of the printer file access name.
↧