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 to pick up the changed records every time in a subfile after the first change made ?
How to declare the length of emp no in the physilcal file and the mandatory length is 6 i.e. Emp No should be numeric, mandatory and fill all the 6 places
How do I remove a flag or check no. or name when a user opens too many sessions?
what is the maximum number of parameters allowed in rpg?
Can anybody please tell me what is difference between SQL (STRSQL ) and WRKQRY .....?
1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?
What is the purpose of the following? FORDHDR1 IF E K DISK ORDHDRF KRENAMEORDHDRF1
what is qcmdexc?
how do you know that records are locked?
Why we are not able to perform insert delete and update operation in Join logical file?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
what are the different methods to access seu?