(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 find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

1 Answers   iGate,


List the steps/commands necessary to accomplish the following: a. Copy data from the file ORDHDR into file ORDHIST b. The file ORDHIST may or may not exist c. If the file ORDHDR does exist, it may or may not contain data d. The file ORDHIST may or may not contain data, if the file does contain data the old data should be erased

1 Answers  


Q. Soppose one job is running in a batch mode for long time now i want to kill(end)this batch job.How you will achive this?

4 Answers   IBM,


which are the query selection criteria, which can be given in a query?

0 Answers   IBM,


which type of object is used in db2/400?

0 Answers   IBM,






I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the 2nd member in the RPG pgm (in RPG400),how can I use this.... I know the possible answers i.e. useing API 'QCMDEXE' or Before calling the pgm I can use OVRDBF for that member... but I dont' want to use both the tips in above scenarion. Does any body tell me how can i use this ....?

13 Answers   Mind Tree,


1.what is mean by compilation and runtime error? 2.How to define ALFA numeric value in pf? 3.what command is used to define a data in cl pgm? 4.What type of command is used in page at a time subfile and load all subfile?

2 Answers  


How many libraries can be there in library list ?

1 Answers  


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

0 Answers   TCS,


How are the objects stored on AS/400?

1 Answers  


what are dds required for subfile?

0 Answers   IBM,


What is file access opcodes?

0 Answers   IBM,


Categories