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|
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
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.
Can anybody tell me, does CL/400 handle LEVEL check while running the CL program....? plz share your experience...
What is the RPG cycle?
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
What is a record lock error?
suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG
We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
wat is meant by hidden field , why it is used?
1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?
Can AnyOne tell me how to read join logical file in rpg from starting to end?