(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or
not .If yes, please tell me why these keywords is necessary.
(2)If we will not define these two keywords (PGMand ENDPGM)
then any error will be come or not.
Answers were Sorted based on User's Feedback
Answer / yamuna
PGM and ENDPGM is mandatory only in case of parameter is
used in the CL program.
| Is This Answer Correct ? | 31 Yes | 2 No |
Answer / nups
PGM amd ENDPGM are not mandatory until we dont use
parameters
It will generate a low level error but program would
compile and run
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / yamuna
No error will come if PGM and ENDPGM is not used when there
is no parameter in the CL Program.
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / vinu sharad
1.PGM and ENDPGM are not mandtory until we dont use
Parameters.
2.No error would come if no parameter used
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / kishore reddy gopal
Yes but what if u r not using PGM and END-PGM, do we get any error at run time?
| Is This Answer Correct ? | 0 Yes | 0 No |
How are the objects stored on AS/400?
when this error ocuurs in openqry file 'OPNID(BANKPF) for file BANKPF already exists.'?
What is the purpose of SFLNXTCHG keyword in a subfile?
What is difference between fully procedural file and primary file?
when are the referential constraints executed?
what is the function of cpyf command?
is it possible to do commitment control with out journaling?
how many maximum spaces could be given in o specs?
How to create a data queues?
Difference between NOPASS & OMIT?
how can i convert hexadecimal value to packed value?
how do we know batch job aborted after we submitting it