What is the compilation option that has to he specified
while compiling an RPC program which uses a file having
date data type field?
Answers were Sorted based on User's Feedback
Answer / onlysumitg
use
1. "CVTOPT(*DATETIME) in header specification.
or
2. "Type conversion options . . . . CVTOPT" = *DATETIME in
coppilation option.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / david lex
NONE.
One is not REQUIRED to use the DATFMT H spec to compile any
program accessing date data types.
That being said, DATFMT will keep date data types
consistent when read from files, but individual stand alone
variables are not affected.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / zhang
RPC or RPG?
In rpg program, use Datefmt(Any valid date format) at H
specification
| Is This Answer Correct ? | 0 Yes | 0 No |
I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic
Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?
How I can reread the physical file in CL program once the end of file reached in same CL program.
I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.
How can we change element of compile time array?Can we do so
1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?
How to declare the pull button in AS/400..
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.....?
I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?