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

can anyone say,what is the use of operation extended H/N/P?

2 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


1.Coding in cl to send an message? 2..What is turnover and use? What are the different levels?

4 Answers   IBM,


How can we know running job is batch or interactive?

0 Answers  


How can we receive values from a called procedure in RPG?

1 Answers  






Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

0 Answers   TCS,


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,


list down and describe the sub systems vailable

5 Answers   IBM,


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


What is the difference between copybooks and subprocedures in as400?

0 Answers  


Errors in Sql query will be in which state?

1 Answers  


Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


Categories