How to increase 3 days from my current date in RPG Program?
Answers were Sorted based on User's Feedback
opcode 'adddur'
ex:
currentDATE ADDDUR XX:*days DUEDATE
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / vivek
TRY THIS CODE...
F1 Opcode F2 Result
Z-ADD *DATE A 8
A DSPLY
A retrieve current sysdate then 'subst' and increase day or month or year as per your requirement.
@Viv
| Is This Answer Correct ? | 1 Yes | 3 No |
What is the symbol used for copying & moving new field in SDA?
what is data structure?how many types of data structers?
We have seen no of parameter list but If we mention like this 'CALL PROGNAME PLIST ' how to know No of parameter name of program ?
What is the difference between regular logical file and join logical file?
What is the difference between /copy and /include in RPGLE?
What is the use of Header Specification in RPG/400?
In 'o' Specs What Is The Opcode For Write?
How to read 2 positions at a time in a data area? I have created a data area of length and i have to read the values of the data area like 91-92,93-94 at a time up till 100
Why would you prefer OPNQRYF than logical file?
What controls which printer a report goes to?
How do you check object lock
What is a Library in AS/400?