1
  • 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following