YouTube Icon

Interview Questions.

Top 100+ Cl400 Interview Questions And Answers - May 28, 2020

fluid

Top 100+ Cl400 Interview Questions And Answers

Question 1. How Do You Read A Specific Record In A Keyed Database File In A Cl Program?

Answer :

OVRDBF FILE (filename) POSITION (*KEYx a b c) and RCVF.

Question 2. What Cl Command Is Used To Read A File?

Answer :

RCVF - Receive File.

IBM - RPG Interview Questions
Question three. How Can You Read A File In Cl?

Answer :

Thro’ RCVF command we can study a report. To study all of the records we should use MONMSG command with MSGID (CPF0864). So if the stop of report reached then the message CPF0864 is sent to this system so the variable will not be changed by the RCVF command.

Question 4. How Can You Set Lower Limit To A File In Cl?

Answer :

By two approaches we can set:

POSDBF with parameter “File Position” set to “*Start”.
OVERDBF which allows to position the report with the aid of Key Value, with the aid of RRN cost, or set to *START.
IBM - RPG Tutorial
Question 5. What Cl Command Is Equivalent To Write A Display File In Rpg?

Answer :

SNDF - Send File.

IBM - AS/four hundred Interview Questions
Question 6. What Cl Command Is Equivalent To Write/study A Display File In Rpg?

Answer :

SNDRCVF - Send/Receive File.

Question 7. What Cl Command Is Used To Determine The Logical Files Associated With A Particular Physical File?

Answer :

DSPDBR - Display Database Relations.

IBM - AS/400 Tutorial SQL Database Interview Questions
Question 8. If The Field Is Defined In Dds, How Is It Referenced In A Cl Program?

Answer :

By asserting the field (DCL) and putting an ampersand in the front of the variable call.

Question nine. What Are The Data Types Available In Cl?

Answer :

CHAR
DEC
LGL
COBOL Interview Questions
Question 10. What Is The Main Use Of Monmsg?

Answer :

Error trapping.

SQL Database Tutorial
Question 11. What Monmsg In Cl?

Answer :

This command monitors the messages ship to the program message queue for the situations certain in the command. There are  stages of MONMSG instructions.
Program stage is detailed right away following the closing proclaims command in your CL software. You can use as many as one hundred application stage MONMSG commands.
Command level right away follows a CL command. You can use as many as a hundred command level MONMSG instructions for a single command.
If you monitor a message with the aid of giving message ID as CPF0000 then any blunders will come to MONMSG habitual.
AS400 Interview Questions
Question 12. How Can A Programmer Send A Message From A Cl Program?

Answer :

Using the SNDPGMMSG command - Send Program Message.

IBM - RPG Interview Questions
Question thirteen. What Is The Purpose Of The Chgvar Command?

Answer :

To change the cost associated with a CL variable.

COBOL Tutorial
Question 14. How Do You Access The Local Data Area In A Cl Program?

Answer :

RTVDTAARA DTAARA (*LDA) RTNVAR (&var).

Question 15. What Are The Various Steps Involve Accessing Data Area In Cl?

Answer :

First we get the records from the statistics place by way of using the command RTVDTAARA. If you need edit the data of the records vicinity use CHGDTAARA command else if you need view the statistics of the records vicinity use DSPDTAARA command.

DB four hundred Interview Questions
Question 16. What Is A Command Label?

Answer :

An place of transfer inside a CL program from which to maintain processing directed with the aid of a GOTO command.

Question 17. Explain Parameter Passing?

Answer :

To pass variables from a CL or RPG program to another CL or RPG application.

Rpgle Interview Questions
Question 18. How Can A Programmer Exit Out Of A Cl Program?

Answer :

By the usage of a RETURN command.

IBM - AS/400 Interview Questions
Question 19. Why Would The Pgm Line Contain A Parm?

Answer :

The CL software is using a cost exceeded from every other processing software.

Question 20. How To Retrieve A Date In Cl?

Answer :

By the use of RTVSYSVAL command we ca retrieve a date in CL. The numerous date formats are *JOB, *SYSVAL, *MDY, *DMY, *YMD, *JUL and so on. [if you want system time, you have to specify *time in the format].

Question 21. What Are The Different Date Types?

Answer :

*ISO – YYYY-MM-DD
*USA – MM/DD/YYYY
*EUR – DD.MM.YYYY
*JUL – YY/DDD
*JOB
*SYSVAL
*MDY
*DMY
*YMD
*JUL
*ISO is the default date type.
Format of device price is MM/DD/YY
Question 22. How Can You Check The Date In Cl?

Answer :

By the command CVTDAT.

Question 23. What Are The Advantages Of Cl?

Answer :

Because commands are compiled and saved in a shape, they may be run straight away and it's far faster than coming into the commands in command line.
Some CL commands cannot be accomplished in command line, so we want CL software for them. Eg. RTVSYSVAL, RTVDTAARA
Cl program may be examined and debugged like other HLL program.
Question 24. How To Find The Field Description Of An Object?

Answer :

DSPFFD, DSPOBJD.

SQL Database Interview Questions




CFG