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

define what a data queue is along with a brief example of what it may be used for?

1 Answers   IBM,


what is the purpose of data structure?

1 Answers   IBM,


what is the use of CPYFRMQRYF?

4 Answers  


what is a logical file?

1 Answers   IBM,


why is as/400 called object oriented machine?

1 Answers   IBM,






If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

0 Answers  


what are the different commands used in rlu ?

1 Answers   IBM,


what are various techniques to pass parameters from one program to another?

1 Answers   IBM,


what is the difference between packed decimal and zoned decimal?

1 Answers   IBM,


What is SFLSIZ ?

1 Answers  


how does the runqry show the output?

0 Answers   IBM,


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

0 Answers   IBM,


Categories