AS400 Interview Questions and Answers part 25

AS400 Interview Questions and Answers part 25
AS400 Interview Questions and Answers part 25, /copy, RENAME, ITER LEAVE, DOW vs DOU, *BCAT, *CAT, %SST, RCVF, STRDBG, STRISDB, debugging commands
AS400 Interview Questions and Answers part 25

Q1:Name the debugging commands?

Answer: STRDBG and STRISDB.

Q2:What is RCVF command in CL?

Answer: RCVF command used in CL program to receive the records from the database file/device file to the program.

Q3:What is %SST function in CL?

Answer: Extract some part of data from a string.

Q4:What is *CAT function in CL?

Answer: Concat two string into one string.

Q5:What is *BCAT function in CL?

Answer: The *BCAT operator truncates all trailing blanks in the first character string then one blank is inserted and then the two character strings are concatenated. Leading blanks on the second character strings are not truncated.

Q6:What is the difference between DOW and DOU loop?

Answer: In DOW loop, if the condition is true then only the group of instructions within the loop will be executed. However in DOU loop, irrespective of the condition it will execute atleast once.

Q7:What is LEAVE operation?

Answer: LEAVE statement is used inside the loop and is used to control the transfer from within the loop to the statement exist below the ENDDO.

Q8:What is ITER operation?

Answer: ITER statement allows the group of statements to execute repeatedly.

Q9:What is the purpose of RENAME?

Answer: RENAME is used to rename the record format of a database file in a program. If the record format name is same in 2 files and if both are used in the same program, then the program will not compile until we rename the record format of one of the file.

Q10:What is the purpose of /COPY?

Answer: During compilation of the program the source code of the copybook is copied into the existing program using the compiler directive statement /COPY.

You may like these posts

  • AS400 Interview questions and answers part21 Q1: Difference between SETON LR and RETURN? Answer 1: SETON LR is used to release the memory of whatever is taken by the variables an…
  • AS400 Interview Questions and Answers part 24 Q1:What is shared access path? Answer: An access path describes how records in a database file are retrieved. When a logical file w…
  • AS400 Interview Questions and Answers part 25 Q1:Name the debugging commands? Answer: STRDBG and STRISDB. Q2:What is RCVF command in CL? Answer: RCVF command used in CL progra…
  • AS400 Interview questions and answers part20 Q1: CL command to find Dependent file? Answer 1: The Display Database Relations (DSPDBR) command identifies dependent files on a spec…
  • AS400 Interview questions and answers part19 Q1: What is the maximum size of the data area? Answer 1: The maximum size of the data area is 9999 for the characters. Q2: How to e…
  • AS400 Interview questions and answers part22 Q1: When program1 calls program2 for the first time and program2 executes INZSR and uses only the RETURN statement. When returning to p…

Post a Comment