How to increase 3 days from my current date in RPG Program?

Answers were Sorted based on User's Feedback



How to increase 3 days from my current date in RPG Program?..

Answer / omer ozen

threedays = %date() + %days(3);

Is This Answer Correct ?    12 Yes 1 No

How to increase 3 days from my current date in RPG Program?..

Answer / sivaprasad

opcode 'adddur'
ex:

currentDATE ADDDUR XX:*days DUEDATE

Is This Answer Correct ?    9 Yes 3 No

How to increase 3 days from my current date in RPG Program?..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

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?

1 Answers  


what the purpose of ovrdta, ovrata keywords?

1 Answers   IBM,


a multiple format logical file is also known as?

0 Answers   IBM,


how can I control the way a remote browser uses its cache?

0 Answers   IBM,


(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.

5 Answers   FIS, IBM, Virtusa,






how many printer files can be defined in f specs ?

1 Answers   IBM,


Why we are not able to perform insert delete and update operation in Join logical file?

0 Answers   IBM,


how can you execute a command from within an rpg program without calling a clp program?

1 Answers   IBM,


what is sessional error or divice error in rpg IV?..when will it happens...Give few examples?

3 Answers   CTS,


In RPG How to read a records from a file without using read opcodes?

0 Answers  


How do you grant authority?

1 Answers  


what are the necessary keywords for the join logical file?

2 Answers   IBM,


Categories