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 message subfile?
how can I control the way a remote browser uses its cache?
what is scan and xlate?
What is the use of Header Specification in RPG/400?
I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the 2nd member in the RPG pgm (in RPG400),how can I use this.... I know the possible answers i.e. useing API 'QCMDEXE' or Before calling the pgm I can use OVRDBF for that member... but I dont' want to use both the tips in above scenarion. Does any body tell me how can i use this ....?
what is the command to know how many lf are related to a pf?
What is Group Job?
how to declare a constant variable in the freeformat?
What is the difference between non-join logical files and join logical files?
when would you use or not use this approach?
What is the purpose of the following? A CSRLOC (F1ROW F1COL)
Q. 1.What are the in build functions in CL program and what are uses of thes in build functions? 2.How we can create own command in CL program? 3.What is use of STRSRVJOB?