what is the command to rtrieve system date?
options:1.rtvsysval 2.rtvjoba 3.rtvjobd 4.both a and b
Answers were Sorted based on User's Feedback
Answer / syam
RTVSYSVAL SYSVAL(QDATE) RTNVAL( A CL Variable name)
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / srinath vasudevan
RTVSYSVAL is correct.
We can retrieve the date from RTVJOBA but,imagine a job got submitted in the system at 11.59pm ,the execution of program which retrieves the system date from submitted job is if at 12.00 am the date retrieved will be the previous days.
So always safe to use RTVSYSVAL.. hope this helps
- Srinath
| Is This Answer Correct ? | 1 Yes | 0 No |
what is the use of sflend keyword?
what is the difference between udate and the system date?
What are the different types of keywords in display files?
What are the different definition levels in Data Description Specifications?
define a shared access path?
what is maximum number of arrays allowed in rpg?
what does defn do?
What is the use purpose of CRTCMD?
How can we arrange duplicate records in a file?
How can a data area be locked after being updated?
write a pgm to read p.f using cl pgm?
what would be the effect on the field where reverse image, underline and highlight display attributes were active?