I want to add 10 days in current date. how it is possible in
CL program...?

Answers were Sorted based on User's Feedback



I want to add 10 days in current date. how it is possible in CL program...?..

Answer / 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

More RPG400 Interview Questions

How do I link an existing logical file to it's Physical File without recompiling?

2 Answers  


I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic

2 Answers  


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


i would like to know under what circumstance the object will get locked on AS400.

5 Answers   IBM,






I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?

1 Answers   IBM,


Can more than one subfile record be displayed on one line?

7 Answers   IBM,


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


What is the significance of UDATE?

5 Answers   IBM,


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


Need a sql query: retrieve all duplicate records in table?

1 Answers  


Categories