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 |
What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?
What is a record lock error?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
How can i keyed a flat file in RPGLE
Anybody know the difference of primary file and full procedural file
How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.
can we perform CHAIN operation on Subfile record format....?
how do I preserve and clean the array?
1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF
can anybody help me that what is the procedure of debugging the service program?
1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?
1.I Have a physical file , i want to read the data from the each and every member of the File in the CL Program.How do you achieve this. 2.How do you do the same in RPG?. do think is it possible to read data from all the members in the RPG?