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?
Answer Posted / 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 |
Post New Answer View All Answers
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How can we know running job is batch or interactive?
What is ment by record level identifier?
How would display prime numbers using CL program?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
can I touch the array during treatments?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
how can I tell when to replace the array?
what is the procedure and explain about real time scenario.
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
How can we override a file during runtime in rpg?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
What is file identifier where we can use?
Explain mdt?