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
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 |
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 |
suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG
what is the difference between SETON RT & RETURN?
how to display all the members records in a physical file without using ovrdbf?
How Commitment and Roll back control is used in as400, explain with real time senario ???
What is the difference between iter and do?
Why did we give STRSRVJOB while debugging batch program
How do you know if a record exists without doing a READ and CHAIN?
what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
are there any useful c runtime apis that I can call from rpg iv?
I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?
why we do STRSRVJOB in batch debugging in as400
The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?