Multiple choice technology mainframe

“SELECT FILE-1 ASSIGN TO INFILE”, in this statement what is the logical and physical file name?

  1. Logical- FILE-1, Physical- INFILE

  2. Logical- INFILE, Physical- FILE-1

  3. Logical- None, Physical-ASSIGN

  4. None of them

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In COBOL's SELECT statement, the first name (FILE-1) is the logical filename - the name used within your COBOL program to reference the file. The second name (INFILE) after ASSIGN TO is the physical filename - the actual name of the file in the external system or device. This logical-to-physical mapping allows portability across different systems.