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 |
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
How to call one program from another program in RPG? please help me with the code
What is a record lock error?
1.How to load Records of a Physical file(PF) in the reverse order, in CL program?
What is the difference between RPG/400 and RPG4
What is the length of Signature?
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program
how to change the length of the field in a physicalfile?
i'm working on progA , in that program i want to see the userids of the users who work on this program?
How do you find whether a record is locked or not?
How do I link an existing logical file to it's Physical File without recompiling?