(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 |
what is the function of cpyf command?
How we can delete all the Logical File of a Physical file in one instance ?
when should I use method get, and when should I use method post in my cgis?
what is command in SFTP which is equivalent to SDUP command in FTP?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?
maximum number of subfiles that can defined in a rpg program for one display file is?
which are the query selection criteria, which can be given in a query?
What is journaling & Commitment Control?
1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?
What is the difference between /copy and /include in RPGLE?
What is the difference between regular logical file and join logical file?
How do I remove a flag or check no. or name when a user opens too many sessions?