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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1324


what is the procedure and explain about real time scenario.

1491


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

630


What is the difference between iter and do?

685


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2287






how do I declare a table or array in rpg iv?

747


How to declare the pull button in AS/400..

1889


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

557


How can we know running job is batch or interactive?

666


what is file information data structure?

1392


How can we override a file during runtime in rpg?

699


How Chain operation copies the record's data to the input buffer for the program?

1094


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

729


what are the key words you must use when using a subfile?

698


explain sflclr, sflend, sfldlt, and sflcsrrrn?

898