I want to add 10 days in current date. how it is possible in
CL program...?
Answer Posted / s kumar
Hi,
Try this one
PGM
DCL VAR(&DATE) TYPE(*Char) Len(6)
ADDDATE DAYS(10) TOVAR(&DATE) TOVARFMT(*SYSVAL) +
DATEFMT(*SYSVAL)
ENDPGM
you will get the flexibility by ADDDATE Command to change
the date format into desired format.
| Is This Answer Correct ? | 2 Yes | 16 No |
Post New Answer View All Answers
are there any useful c runtime apis that I can call from rpg iv?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
what is *place and *auto keyword in prtf ?plz explain
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
How would display prime numbers using CL program?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
How can we override a file during runtime in rpg?
What is the purpose of record level identifier?
what is the use of sflnxtchg?
how do you use commitment control in rpg?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
What is ment by record level identifier?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
what are the key words you must use when using a subfile?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?