1. If my rpg program has a date field, What extra care I
have to take while compiling that RPG program?
2. If the file is keyed and I have declared the file as well
as Key list properly in my program. Still am getting an
error message like "Chain/reade operation is not allowed"
What may be the case?

Answers were Sorted based on User's Feedback



1. If my rpg program has a date field, What extra care I have to take while compiling that RPG prog..

Answer / praveen ravuri

we have mention to the 'k' field in the f spec

Is This Answer Correct ?    10 Yes 1 No

1. If my rpg program has a date field, What extra care I have to take while compiling that RPG prog..

Answer / murali

Compile the pgm with CVTOPT *DATETIME. This will allow dates lesser than 01/01/1940.
Record address type shud be K to tell the compiler to access the file in keyed sequence.

Is This Answer Correct ?    2 Yes 0 No

1. If my rpg program has a date field, What extra care I have to take while compiling that RPG prog..

Answer / arvind

format of variable, length of variable should be date and sep(-/).should be define

extra key "A"

Is This Answer Correct ?    1 Yes 0 No

1. If my rpg program has a date field, What extra care I have to take while compiling that RPG prog..

Answer / venki

2A:May be you have define you file as output mode

Is This Answer Correct ?    1 Yes 0 No

1. If my rpg program has a date field, What extra care I have to take while compiling that RPG prog..

Answer / shishir

in f specification may b you forget to define "record address type" = 'k' bcoz in chain searching of data can only b possible through key field ( key is madatory in chain operation )

Is This Answer Correct ?    2 Yes 1 No

1. If my rpg program has a date field, What extra care I have to take while compiling that RPG prog..

Answer / vivek

Program actually works when we not use K IN F SPEC. have tested then posted

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

difference betwen keywords and opcodes

3 Answers  


there is any limit to display the members in rpg400?

3 Answers  


How can i keyed a flat file in RPGLE

5 Answers   IBM, Wipro,


difference between CHAIN and READE?

8 Answers   HCL,


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  






1.Can any body share me about thease opcodes with example please.Im new for AS/400.Could u please tell me in real senario? 1.TESTN, 2.EVAL 3.EVALR, TIME, 4.MONITOR 5. ENDMON 6.ON-ERROR 7.COMMIT ROLLBACK?

1 Answers   CSC,


How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?

3 Answers   HCL,


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


RPG/400 faqs?

1 Answers   HSBC,


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


purpose of pannel group??/

2 Answers   CTS,


Categories