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 can I automate sftp commands(ls & get) in CL program.. If I want to write two scripts one for each command... can u plz tell where the script should be written? & what will be the content of each scripts?
what the purpose of ovrdta, ovrata keywords?
a multiple format logical file is also known as?
how can I control the way a remote browser uses its cache?
(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these keywords is necessary. (2)If we will not define these two keywords (PGMand ENDPGM) then any error will be come or not.
how many printer files can be defined in f specs ?
Why we are not able to perform insert delete and update operation in Join logical file?
how can you execute a command from within an rpg program without calling a clp program?
what is sessional error or divice error in rpg IV?..when will it happens...Give few examples?
In RPG How to read a records from a file without using read opcodes?
How do you grant authority?
what are the necessary keywords for the join logical file?