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 |
How do you put jobs in batch mode?
what is the purpose of ovrdta (override data) keyword?
What is the default value for the number of increment for the physical file?
Describe about Query/400?
Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO
What is the function of DSPATR (display attributes) keyword?
What is the necessary keyword used in a physical file to refer field definitions from the field reference file?
What is the purpose of the following? A CSRLOC (F1ROW F1COL)
Write a CL program which will run a batch job at 1 am every night
What is an ICF file?
How to see all members of a file?
when are the unique constraints executed?