Mr.Yallamanda Reddy P thanks for your answer sir,can we use
test(D) opcode in RPG/400,if yes please help me by eloborating
on that answer by writing a sample code for that sir

Answers were Sorted based on User's Feedback



Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes pleas..

Answer / gagan

test(D) opcode is used to check for the validity of a date/time/timestamp.
If the date is valid then error code returned is o else error code is 1

Is This Answer Correct ?    0 Yes 0 No

Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes pleas..

Answer / uday bagdi

Testdate field has date data type and 20 is LO level indicator we check this filed is *YMD format or not.Below is the code.

*ymd test (D) Testdate 20

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?

13 Answers   HCL,


Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,






When it is desirable to describe files Internally?

0 Answers  


2. Which of the following statement(s) explains the difference(s) between the /INCLUDE and ICOPY directives? a.) No difference, they function the same b.) ACOPY cannot be used as a conditional directive c.) IINCLUDE files cannot contain embedded SQL d.) Nesting /TNCLUDE directives is not allowed

2 Answers   IBM,


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


How do you do indexing in a physical file?

2 Answers  


When a object will be locked & when a record will be locked? Plz explain.

2 Answers  


where we give the MSGSFL in rpg400?

4 Answers  


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


Categories