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
Answer / praveen ravuri
we have mention to the 'k' field in the f spec
| Is This Answer Correct ? | 10 Yes | 1 No |
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 |
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 |
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 |
Can we found a record existance in a file w/o reading the file?
6 Answers Traitsys Technologies,
If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?
i want to retrieve record b/w 2 dates in as400
In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?
A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?
CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?
What is journalling and commitment control?
parameters cannot be passed in which one???
wat is the difference between array and multiple occurence data structure?
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
where we give the MSGSFL in rpg400?
what is a rpg?