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.

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain