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 do you put jobs in batch mode?

1 Answers  


what is the purpose of ovrdta (override data) keyword?

1 Answers   IBM,


What is the default value for the number of increment for the physical file?

1 Answers  


Describe about Query/400?

1 Answers  


Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO

1 Answers  






What is the function of DSPATR (display attributes) keyword?

1 Answers  


What is the necessary keyword used in a physical file to refer field definitions from the field reference file?

1 Answers  


What is the purpose of the following? A CSRLOC (F1ROW F1COL)

1 Answers  


Write a CL program which will run a batch job at 1 am every night

0 Answers  


What is an ICF file?

1 Answers  


How to see all members of a file?

1 Answers  


when are the unique constraints executed?

0 Answers   IBM,


Categories