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 Commitment and Roll back control is used in as400, explain with real time senario ???
difference betwen keywords and opcodes
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
As400 Command to find the Name of the Program to which a Particular Module is Bound..? Ex: IC210AMR (*MODULE) is bound with Other Modules which Forms Program Object as IC210ABP(*PGM) . As400 Command to find the IC210ABP Using IC210AMR..? Thanks
what is the necessary command needed before OPNQRYF and why?
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 is the difference between RPG/400 and RPG4
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?
Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?
What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???