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

Q.1.What is differences in STRDBG and STRISDB debugging commands? 2.Where we should use STRDBG and STRISDB Debugging commands?

6 Answers   CTS,


what are the limitations of cl (compare to rpg) ?

1 Answers   IBM,


What is the difference between access path and Dynamic select?

1 Answers  


define the purpose of the *cat function?

1 Answers   IBM,


Difference Between Skip Before & Space Before?

0 Answers   IBM,






What is FCFO, FIFO, LIFO in Database environment ?

1 Answers  


what is the maximum number of parameters allowed in clp?

2 Answers   IBM,


pf named karthik 3members jan feb mar cmd must executed create mbr ar ap

0 Answers  


What is diff between EVAL & MOVE?

0 Answers  


what are indicators?

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 do you read a subfile record which is in output mode?

3 Answers  


Categories