• How to easily perform date conversions in RPGLE (Including Substringing!)

    Over the years I have had to modify my fair share of outdated code, especially when it comes to Date Conversions. Not every system uses an 8 position numeric date field. The place I'm currently at still has a number of files with a 6 position numeric date field. I was wondering if anyone else had...

    Eric Witham690 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:
  • Can I override the record format name in a CLLE to be used in an RPGLE or can I qualify the record format name with a field value?

    Hello All, I ran into a roadblock writing a new purge process for my company. Here's the situation: I have 3 files that hold EDI Data that I need to purge: FILEA - Record Format FILEAR FILEB - Record Format FILEBR FILEC - Record Format FILECR All of the above files have the same record length,...

    Eric Witham690 pointsBadges:
  • Parameter Passing: RPGLE to CMD to RPGLE

    Hello, I have an RPGLE program that I am using to call a command with 1 parameter. The parameter is a container number, 11 positions alphanumeric. I want to be able to run my RPGLE program, execute the command via QCMDEXC and receive/process that parameter within the same RPGLE. Is this possible?...

    Eric Witham690 pointsBadges:
  • RPGLE trigger tables AS/400

    Hi, Does RPGLE triggers can be added to the tables? I created a Table and RPGLE Trigger. But I am getting error saying 'Receiver too small to hold the result'. But the same code is accepting the physical files. Do I need to set any attributes while creating the RPGLE triggers or tables? Please...

    As400pgmmer310 pointsBadges:
  • Remove blank space and dash

    Hi, I wanted to know how can write code in RPGLE for input as 123-456-7 8 9  and output as 123456789? Please help.

    kirti26915 pointsBadges:
  • Need to know who have modified the object (RPGLE object in AS/400)

    RPGLE object was changed and we can see it is DSPOBJD. We want to know who had changed the object? Thanks in advance.

    ravula755 pointsBadges:
  • RPGLE

    I need to change primary and secondary file into full procedure file. Can anybody help me?

    eductn70 pointsBadges:
  • Data area in RPGLE

    I want to create an id that is auto incrementing in RPGLE using data area.

    rpgledataarea12345678910 pointsBadges:
  • How to pass parameter from Equation Option(ex:CUE) to RPGLE!

    How to pass parameter from Equation Option(ex:CUE) to RPGLE progam??

    tarabatato10 pointsBadges:
  • Record lock on physical file

    When a logical file is open in update mode to read and update the record, while performing read operation on logical file, lock applies on which file(logical or physical)? I have a scenario where one logical holds a lock and when another logical tries to read it shows 'Record is already lock to...

    sivakesava285 pointsBadges:
  • Function keys.

    Hi, I am trying to use function keys in rpgle fixformat (f2=save etc.) but i don't know how to use and how write down the coding, if anyone knows this coding please tell me. Thanks.

    programerrpgle35 pointsBadges:
  • Trigger program to validate data and notify interactive program of errors before insert or update action

    I have an interactive program that writes (Inventory Management) transactions to a file. I do not have the source for this program. I need to ensure that field content which is not currently validated by the program can be validated and corrected BEFORE the transaction being INSERTed or UPDATEd is...

    AlanMcK5120 pointsBadges:
  • Operation not allowed in a job running multiple threads from SQL RPGLE

    Hi, I am running SQLRPGLE on V7R1. The program takes entries from file and emails. The program on high level does following steps..........: 1. Fetch Record from File, ............ 2. Convert Spool file to PDF and puts into IFS, into Root/Folder1, ......... 3. Copies PDF file from Root/Folder1 to...

    sim400380 pointsBadges:
  • Problems with Expat in RPGLE

    Posted on behalf of MelissaG: I have an RPGLE program that receives an XML character string generated using CGIDEV2, and it is supposed to parse this XML in order to print those values in a spool file. My problem is that the RPGLE program that parses the XML sends an error message like 'Parse error...

    Margaret Rouse46,345 pointsBadges:
  • Subfile positioning while adding records

    Hi, I am having problem in repositioning subfile when I add a record. Scenario is like my subfile is self extending and page size is 4 .Data is like a,b,d. Suppose i add e then it gets positioned to e and page up don't work . It shows end of file found. Now if i add c it again position file to c...

    munduuu435 pointsBadges:
  • List of objects

    Hi.. I got to create a pf which will have list of objects present in all the user libraries availabe. When i use DSPOBJD, the server gets struck. DSPOBJD works fine when a specified library is specified. But in order to get all the objects, is there anyother options?

    Archnav01270 pointsBadges:
  • OPNQRYF & CPYFRMQRYF error

    The log is: output file file1 created file1 added to library mmember of file1 is opened in library. data option was not allowed with open option error reading member file1 in file1 0 records copied to file2

    Archnav01270 pointsBadges:
  • Outfile printing

    In CL, I've created a outfile out of dspobjd cmd. To this file, i've filtered a column using opnqryf. I've copied the output (cpyqryf) to a new file. While doing this, i'm getting the error data option was not allowed with open option' The log shows :The first file is created-> added to library....

    Archnav01270 pointsBadges:
  • Converting amount in character field to numeric in rpgle

    Hi, How to convert the amount value in character field(Eg: ' 5,000- ') to numeric in rpgle. I used %DEC built in function, it shows decimal data error. Is there any bulit in function or opcode to convert ' 5,000- ' to numeric field in rpgle ?

    LakNar270 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