How to increase 3 days from my current date in RPG Program?
Answers were Sorted based on User's Feedback
opcode 'adddur'
ex:
currentDATE ADDDUR XX:*days DUEDATE
| Is This Answer Correct ? | 9 Yes | 3 No |
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 |
What is Spool file, Why is it required?
What is the purpose of OVRATA keyword ?
what is library?
What is journaling & Commitment Control?
the maximum number of subfiles that can be active for a single file is ____ .
How a field is renamed in rpg IV?..give answer with example?
How to create an Access path in Synon/2E ?
What is the maximum length of a variable name in CL?
4 persons a, b , c , d have to go to concert which will held in 17 minutes. there is a bridge which only 2 persons at a time can cross. its night and they have only one flashlight with them. Flashlight cannot be thrown. one person should return with the flashlight all 4 person have different speed. a = crosses bridge in 1 min. b = crosses bridge in 2 min. c = crosses bridge in 5 min. d = crosses bridge in 10 min how can they all reach in time.?? Ex- suppose a and d crosses bridge which will take 10 mins and then d returns back with a flashlight which will make 20 mins and mission is failed.
can a single screen format occupy a screen area above and below a subfile format ?
records can be read/update/deleted with which file?
what is the necessary keyword for non-join logical file?