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 |
two types of read performed in dataqueue?????
Can a indexed file be accessed in arrival sequence in RPG?
i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?
When will DUMP & DEBUG be ignored?
RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.
I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?
how does the rpg element work?
can you debug ile rpg program using isdb?
How to change the name of physical members Dynamically?
Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?
What is journalling and commitment control?
Why did we give STRSRVJOB while debugging batch program