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



What is the compilation option that has to he specified while compiling an RPC program which uses ..

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

What is the compilation option that has to he specified while compiling an RPC program which uses ..

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

What is the compilation option that has to he specified while compiling an RPC program which uses ..

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

Post New Answer

More RPG400 Interview Questions

two types of read performed in dataqueue?????

4 Answers   CTS,


Can a indexed file be accessed in arrival sequence in RPG?

1 Answers  


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...?

1 Answers   IBM,


When will DUMP & DEBUG be ignored?

3 Answers   IBM,


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.

1 Answers   IBM,






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?

4 Answers  


how does the rpg element work?

0 Answers   IBM,


can you debug ile rpg program using isdb?

0 Answers   IBM,


How to change the name of physical members Dynamically?

1 Answers  


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?

1 Answers  


What is journalling and commitment control?

3 Answers   IBM,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Categories