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 difference between physical file and logical file?
how to write code for singlepage in sqlrpgle with update ?
How to avoid using indicators in ile ?
CAN WE INSERT FIELD IN PHYSICAL FILE BY USING OPNQRYF?
In Which Specs Arrays, Tables & Constants Are Defined?
Write a logic program for knowing the repeated number of a vowels in a given program?
we have 2 PF files with same name, how to copy data's from one file to another through RPG program logic?
What is the difference between externally described file and program described file?
what is a primary file?
What is the difference between crtdupobj and copyf?
What does the keyword UNIQUE mean ?
What does SDA stands for ?