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
What is file identifier where we can use?
how can you display specific subfile page on the screen in unequal subfile?
what is an online rpg?
how do I play {insert rpg system here}?
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
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is the difference between copybooks and subprocedures in as400?
What is difference between bind by copy and bind by reference?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what do you mean by an input subfile, what are the keywords required?
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 was the robotech rpg?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
When it is desirable to describe files Internally?
what are the key words you must use when using a subfile?