CL questions

5 pts.
Tags:
CL Program
1. Does CL check for the file declared in the program before compiling the pgm?
or will the cl pgm get compiled if the file declared in the pgm does not exists in the system?
2. Does CL check for the data area declared in the pgm before compiling the pgm
3. If i declare a  physical file in cl and then chage that phyical file( add a new field) do i need to recompile the Cl?

Answer Wiki

Thanks. We'll let you know when a new response is added.

1. CL program will check for the file @ compile time. It needs to get the fields to define the variables.
2. Same as 1
3. Yes, you need to recompile program unless you specify LVLCHK(*NO) on the file. This is not recommended.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • WoodEngineer
    Are you asking because you need to deal with commands which generate file output?
    6,650 pointsBadges:
    report
  • TomLiotta
    1. Does CL check for the file declared in the program before compiling the pgm? No. But the compiler checks during compilation. The declared file must exist for the compile to succeed. However, a file that the CL performs I/O on need not exist at compile-time. (The declared file might not be the same as the one that is opened for I/O.) 2. Does CL check for the data area declared in the pgm before compiling the pgm No. Nor does the compiler check. 3. If i declare a physical file in cl and then chage that phyical file( add a new field) do i need to recompile the Cl? The format level identifier of a declared file must match the format ID of the file when the file is opened at run-time unless the CL executes an override to ignore level checks before opening the file for I/O. If the file is never opened or an override is in effect, a recompile isn't needed. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Homework or interview?
    49,940 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following