1
  • READE & SETLL

    File: exam .................. No . name .................. 2 chow 2 siva 3 mical 4 swami 4 radha 2 lord .................. I need only equal records: 2-chow,2-siva,2-lord but I got the wrong output:2-chow, 2-siva,2-lord, 2-lord. it's reading the last rec 2 times. Please correct the below code. And...

    chowas400620 pointsBadges:
  • How to set pointer in READE

    Hi all, I have a problem in retrieving data. I am using READE opcode with a key on a table and within DOW loop I have a condition where I have to Chain the similar table with a different key. Problem is pointer of the file gets disturbed for outer READE loop and I couldn't get all the data. How do...

    hunshabbir72,820 pointsBadges:
  • Access a OPNQRYF file using keys

    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.

    Marg5 pointsBadges:
  • 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 have a key in the file could I then use the...

    withcareandsoon5 pointsBadges:
  • 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...

    RamvishakRamesh2,505 pointsBadges:
  • 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...

    SemiTechieGeo70 pointsBadges:
  • READE in free format

    I am using rpgfree format program.  Begsr M;                                                                       Setll (TRN) file1;   Reade (TRN)file1;           Dow  Not %Eof(file1);   existing functinality...

    Askt1140 pointsBadges:
  • 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.

    Bix25 pointsBadges:
  • ReadE opcode

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

    ten20081,150 pointsBadges:
  • 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 , is there any...

    Ambrish 82310 pointsBadges:
  • READE,*LOVAL SETLL

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

    Cev105 pointsBadges:
  • 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 of the file...

    rajeshece1,215 pointsBadges:
1

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following