• Program not crashing – MCH0603 error

    I am calling a RPGLE from CL program. RPGLE program tries to add records to a 100 element array. When the count reaches 101, I expect the program to crash with error MCH0603 (Range or subscript error). However, the program ends and I don't get an error message on screen. I have to check logs to...

    sri8707105 pointsBadges:
  • Performance issue with reading of AS/400 primary file

    My program reads primary file (which is join file basically) and generates report. This program runs in batch mode. Program was doing pretty well all these day. But from few month report generation takes more time. Note that no changes has been done in the program from past few years.

    AnjaliR70 pointsBadges:
  • Update and write sample RPGLE program

    Hi all, I have two physical files pf1 and pf2 with three field student_id,name,marks. I want to Move the records from PF1 to PF2. If the Student_ID already exists in PF2 just update the record else write a new record in PF2.where student_id is key field in both physical file. Could anyone provide a...

    nabamita90 pointsBadges:
  • RPG /Free Local Data Area definitions

    I am trying to define the LDA with an external definition in RPG /free. Any help?

    Rstinsonindy15 pointsBadges:
  • How to disable hyperlinks/email addresses in a subfile on AS/400

    I created a RPGLE maintenance program on AS/400 with a subfile. In that subfile there is a field which contains email addresses, Even when the field is in output in the subfile, I can click on it and then I get a screen to create a new email for that email address. How can I prevent this? I only...

    MarjanMelsen15 pointsBadges:
  • Write the value of a variable in RPGLE

    I have a variable which its value is the name of other variable. I need to write a log with the value of that instead its name. Is there a way to do that with RPGLE? Example: Var name1: Field1 Value Field = 'XXXXXX' Var name2: Field2 Value Field2 = 'Field1' I need write the value XXXXXX of field2...

    Luissimon50 pointsBadges:
  • Get user ID within RPGLE

    How do I get the user ID within /Free and send command to clear a workfile? Thanks!

    ibBusy4sure50 pointsBadges:
  • Physical File Without Key

    Hi guys, Currently i'm using RPGLE language. If i have a Physical File that without key, How am i going to set my pointer. I can't CHAIN,SETLL and SETGT as well. In order to use them, u need have a key. Am i rite? Is there any idea to solve this matter? Thanks!!!!

    SoulReaper20 pointsBadges:
  • QSORT issue in RPGLE program

    I added QSORT logic to my RPGLE program. This is the first time I've tried using this. I have the BNDDIR('QC2LE') in the H specs, along with DFTACTGRP(*NO). The program compiles without error. But when I run the program, it errors CPF4131 on my 'open' file statement. I followed similar logic to:...

    Decouser5 pointsBadges:
  • H Spec

    Dear All !! Q1. Can we define the compile option - debugging view (DBGVIEW) = *all in H spec ??? If yes, please let me know the syntax. Q2. How do we retrieve system date in RPG or RPG IV ? [Note : *date or Udate retrieves the job date] Thanks and regards, Kalpesh

    Uppikal5 pointsBadges:
  • AS/400 User Profiles

    We have an application running in AS/400 system with RPGLE and CLLE programs. Now we have developed a web portal with PHP for some specific tasks and connected to AS/400's DB2/400. The question is user profiles permissions and special authorities in AS/400 will work same, in anyway of accessing the...

    Sureyz2,825 pointsBadges:
  • RPGLE free format

    There are 3 files, one is primary and the second has enlarged data on it. Suppose there is one PF called EMPMAS which stores only employee numbers and other file stores multiple employee numbers with multiple project names and in the third file, I want to print the total number of project of each...

    PREETYKAUSHIK15 pointsBadges:
  • RPGLE: How to use klist without compilation error

    This is an interview question for Open query but a bit tricky thing also. We are using OVRDBFand OPNQRY to change the key field in LF(TESTLF) FROM A,B,C TO C,B,A,. And going to call RPGLE program, in RPGLE program same LF is declared with C,B,A key list (but according to LF it should be A,B,C)....

    rajeshkmr571205 pointsBadges:
  • How to get cursor position on screen in RPGLE

    Hi all I want to get cursor position from whole screen when pressing enter. CSRLOC keyword with row and column sets the cursor at specified row and column. I want to get position of cursor which comes at middle of the bottom row. Thanks

    hunshabbir72,820 pointsBadges:
  • RPGLE program is not picking up record

    I have SQL Table and Index. I am processing it in my RPGLE Program when Status = *blanks. In another session, I am updating record with Status = Blanks. My RPGLE Program is not picking this record. But my RPGLE picks newly inserted records. Please let me know the reason and how to read updated...

    rajeshece1,230 pointsBadges:
  • RPGLE DATE CALCULATIONS

    I need to subtract 1 day from the system date and output it into a file in the format mmddyyyy. No separators. I cannot figure out how to use date functions like subdur w/o the field containing separaters on output. And I can't figure out how to use a DS to redefine it so I can exclude the...

    KatanaBeach115 pointsBadges:
  • QSOSRV1 service program hangs on recv() procedure

    My program hangs on IBM's service program QSOSRV1 when it runs the 'recv' procedure. It's hung at statement 9. This only happens occasionally. Most of the time the 'recv' procedure works fine. I'm new to sockets programming and would appreciate any help or suggestions. The 'recv' statement...

    fhartman15 pointsBadges:
  • RPQSQL / SQLRPG

    Any body please help Wanted to know the advantage and disadvantage using RPGSQL / SQLRPG I've heard that this is the new one its not only RPG but become one with SQL. Thanks in advance

    TG50 pointsBadges:
  • How to remove comma for individual fields before inserting into comma seperated csv file in RPGLE

    I'm trying to convert flat file to CSV file using RPGLE. As it is a comma separated file for certain fields like description as and when comma is encountered data is written to next column. I need to place each field value in respective columns even if comma is present in a field value. Can some...

    ganeshpavi75 pointsBadges:
  • Program Described File in RPGIV

    Can any one send me an Example, How a Program Described File is used in RPGIV?

    Cganeshh0 pointsBadges:

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