How to increase 3 days from my current date in RPG Program?
Answer Posted / 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 |
Post New Answer View All Answers
What Is The Object Type Of Pf, Lf, Printer File & Display File?
Service Program : S1 Modules in S1 : M1 M1 having two procedures : ADD, SUB Current Binder Language STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP Doubt: I need to add one new Module to the Service Program M2 having one procedure ‘MULT’ How to add this new module to the service program S1 ? If I need to recreate the service program again, Do I need to mention the Module M1 again while recreating along with new Module M2? There is no Binding Directory. Binder language structure will be like this STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") EXPORT SYMBOL("MULT") ENDPGMEXP STRPGMEXP PGMLVL(*PREVIOUS) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP
when would you use or not use this approach?
define subsystem?
what is the maximum number of fields under a record format of physical file?
How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?
which of the cl command can be used to determine which logical files are dependent on a specific file?
how many maximum spaces could be given in o specs?
How to reverse a string using RPG?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
difference between sflrcdnbr and sflnxtchg?
how can a message from a message file appear as a constant on the screen?
what is message subfile?
what is the syntax for plist?
a multiple format logical file is also known as?