In a COBOL program for processing employee data, you need to store the employee's unique identification number. Which type of COBOL variable would you use for this purpose?
- PIC 9(5) DISPLAY
- PIC 9(6) USAGE COMP-3
- PIC S9(9)
- PIC X(10)
For storing unique identification numbers in COBOL, PIC S9(9) is appropriate. It allows for numeric values with sign, suitable for representing employee IDs.
Loading...
Related Quiz
- When a file operation fails in COBOL, which special register contains the status code that can be checked for specific error conditions?
- What is the purpose of the GLOBAL clause in COBOL for variable declarations?
- In a COBOL "IF" statement, what happens if the condition is not met?
- When working with indexed files in COBOL, the _______ clause is used to specify the maximum number of alternate indexes.
- A table in COBOL can be defined with the OCCURS _____ ON clause to allow dynamic sizing.