READE Questions

1

SETLL
Hi, I want to read a physical file sequentially. The physical file has no key. I use SETLL and READ. *LOVAL is not allowed when I use SETLL (because no key in the pf?) so I set a 1 in factor 1. 1 SETLL READ 90 *IN90 IFEQ *ON … Is this ok? When I [...]

Answer Question   |  June 18, 2013  12:28 PM
AS/400, Physical File, READE, SETLL
asked by:
5 pts.

CPF511D error message in second ReadE while passing parameter
I have an external DS defined on my program. I am doing a READE operation on this file and am passing it as parameter to another program. After returning from the called program, my program again does a READE where it is failing with CPF511D error. Joblog says Parameter integrity error occurred with reason code [...]

Answer Question   |  May 10, 2013  12:51 PM
AS/400, AS/400 programming, READE
asked by:
2,030 pts.

RPGLE SETLL / READE for update getting record lock on different key
We are encountering sporadic unexpected record locks with update files using: setll (Key1) MasterFile; // Partial key. dou %eof(MasterFile); reade (Key1) MasterFile; if not %eof(MasterFile); // [Stuff] update MasterFmt; endif; enddo; Looking at the problem record by RRN, its key does not match Key1. It’s not even the next sequential key value in the file. [...]

Answer Question   |  February 22, 2013  8:59 PM
READE, Record lock, RPGLE
asked by:
70 pts.

READE in free format
I am using rpgfree format program.  Begsr M;                                                                       Setll (TRN) file1;   Reade (TRN)file1;           Dow  Not %Eof(file1);   existing functinality running..                    Reade (Trn) file1;     Enddo;                                                                      Endsr;         after dow loop i am inserting one chain condition if record found then contro to go reade(trn) file1; and read next record (not toucch the [...]

Answer Question   |  April 25, 2012  11:14 AM
AS/400, AS400/RPG, READE
asked by:
140 pts.

READE – RPGLE
When doing a.. SETLL (parm1:parm2:parm3) READE (parm1:parm2:parm3) IF %FOUND OCCASIONALLY IT COMES BACK AS FOUND WHEN THE RECORD IS CLEARLY NOT IN THE FILE. ANY IDEAS? THIS IS THE STRANGEST THING.

Answer Question   |  May 20, 2011  8:59 PM
READE, RPGLE, SETLL
asked by:
Bix
20 pts.

OPNQRYF
Is it possible to access a file created by opnqryf in an RPG/400 program using keys? I have defined the KEYFLD parameter but the RPG doesn’t find the records when using READE or CHAIN

Answer Question   |  May 18, 2009  3:37 PM
CHAIN, KEYFLD, OPNQRYF, READE, RPG, RPG/400
asked by:
5 pts.

ReadE opcode
Hi can u pl tell me how to use READE opcode without having factor1 field..thanks

Answer Question   |  April 8, 2009  2:53 PM
READE, RPG, RPG READE Opcode
asked by:
1,150 pts.

How to access all records in RPGILE
hi all, suppose i have a report with input criteria ‘machine code’ and requirement it that if i input a perticular ‘machine code’ then it should COME only that , otherwise all records of all ‘machine codes’ should come , in clp i use %WLDCRD for that. but i need to do it in rpgile [...]

Answer Question   |  December 10, 2008  5:21 AM
AS/400 development, LOVAL SETLL, READE, RPG, RPG ILE, SETLL
asked by:
310 pts.

READE,*LOVAL SETLL
In what condition we have to use ,READE,READ,REAC and *LOVAL SETLL?

Answer Question   |  August 27, 2008  1:17 AM
LOVAL SETLL, READC, READE, RPG, RPGLE
asked by:
Cev
105 pts.

Reade in ile
DEmpnoo S 2 0 Inz(12) C *Loval Setll Emplf C Empnoo Reade Emplf C Dow Not %Eof(Emplf) C Empno Dsply C Empnoo Reade Emplf C Enddo Here emplf is logical file keyed with emp no Data in emplf EMPNO EMPNAME 11 test11 12 test12 13 test14 14 test14 15 test15 setll *loval points first record [...]

Answer Question   |  August 21, 2008  6:57 AM
Read Equal Key, READE, RPG, RPG ILE
asked by:
1,040 pts.

1