(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



(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these ke..

Answer / yamuna

PGM and ENDPGM is mandatory only in case of parameter is
used in the CL program.

Is This Answer Correct ?    30 Yes 2 No

(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these ke..

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 ?    10 Yes 0 No

(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these ke..

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

(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these ke..

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

(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these ke..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

how to see the error messages for each command in cl?

2 Answers   CGI,


which are control break logic indicators?

0 Answers   IBM,


how will you add a field to physical file already containing data?

1 Answers   IBM,


in conjunction with which statements can orxx and andxx conditions be used ?

1 Answers   IBM,


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

0 Answers  






we have 2 PF files with same name, how to copy data's from one file to another through RPG program logic?

3 Answers  


what is the difference between sflclr and sflinz?

1 Answers   IBM,


HOW CAN WE ENTIRE OBJECTS& IT'S TYPE IN PGM?

1 Answers  


Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers  


What is difference between rename and prefix?

0 Answers  


What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error

5 Answers  


what is subfile?

1 Answers   IBM,


Categories