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

Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

0 Answers  


Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?

1 Answers  


what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on dspf and subfile.

2 Answers  


are there any useful c runtime apis that I can call from rpg iv?

0 Answers   IBM,


Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,


how do I play {insert rpg system here}?

0 Answers   IBM,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


What is difference between bind by copy and bind by reference?

0 Answers  


Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?

1 Answers  


What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


how can an indexed file be used as arrival sequence in RPG?

3 Answers   IBM,


how to change the length of the field in a physicalfile?

12 Answers  


Categories