I'm not sure you understood that the text between the parentheses in "$set assign-printer()" should be empty. That is what causes RM/COBOL-like behavior. That is, when there's no suggested name, the COBOL file-name is implied as is normal behavior for RM/COBOL without a file-access-name (literal or data-name) after the word PRINTER. The other part of converting to Visual COBOL is knowing that a "dd_" prefix is needs to be added to the file access name to compose the environment variable name used to map the name to a different value.
↧