• Input capable fields in AS/400 database file

    This inquiry is regarding 'Usage' clause for physical and logical files (position 38). IBM manual says options in this position are: Blank, B, I and N. Here is a snippet of what I experimented unsuccessfully R RZ0101R1      F0 5A I      F1 5P 2O notice I and O in pos(38) This gives me an...

    anandx435 pointsBadges:
  • Creating an integer in RPGLE

    Looking for a way to create an integer in RPGLE in a way that is similar to the int command in Java. Is there anything like this?

    ITKE1,052,125 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:
  • Calling RPG program without Parameters

    1) I have an RPG PGM 'A' which call's another RPG PGM 'B'. PGM 'B' accepts 3 parameters. But i need to call PGM 'B' without passing parameters. How to achieve this??? 2) I have an RPG PGM 'A' which call's another RPG PGM 'B'. PGM 'B' doesnot accept parameters. But i need to call PGM 'B' with...

    0 pointsBadges:
  • Difference between EXTPGM and EXTPROC

    Could someone please let me know what is the difference between EXTPGM and EXTPROC? In which scenario EXTPGM is used and in which scenario EXTPROC is used? What are the limitations of EXTPGM over EXTPROC? If possible could you please let me know the difference with a sample program as an example....

    JSDHFKJHA335 pointsBadges:
  • AS/400 Physical file conversion to XML file

    Hi, I need to write an RPGLE program to convert an AS/400 physical file to an XML file. Does anyone have a sample code for it? Thanks in advance.

    Siri55 pointsBadges:
  • What the role of Indicators in RPGLE Programs

    How and why do we use Indicators in RPGLE Programs. Please explain below statement Fxxxxxx O E PRINTER OFLIND(*IN60)

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

    rajeshkmr571220 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,900 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