• 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:
  • 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:
  • CPF5032 member already locked to this job

    I have a program written in RPGLE which calls numerous other programs. These programs all share similar files. In my main program, when trying to read a particular file, I get error CPF5032 even though I unlock the file right before I do the setll reade. As a result, I figured the lock must be...

    GHENDER215 pointsBadges:
  • RECORD LOCK and CDC

    Record locks in USER EXIT program called by CDC. I have been thrown into figuring out why a user exit program cannot delete a record from a file because the record is locked since the employees who worked on it before no long work here. This is happening from a CDC (CHANGE DATA CAPTURE) process...

    UARTJ145 pointsBadges:
  • Synon/Cool:2E – internal/external func performance question

    I have a situation where I have to call a synon function multiple times (for each record in a file one after another) from another synon function. The called function does some calculatons. Will there be any performance improvement if I make the called func an internal function and have an external...

    Rituraj0 pointsBadges:
  • SYNON vs COBOL

    Hi All, This query is related to performance. I am currently in the process of changing an application from COBOL to Synon. The application uses a lot of I/O involving files. Upon converting the application to Synon, I find that the performance has declined - COBOL takes 8 minutes whereas Synon is...

    Rituraj0 pointsBadges:
  • RPGLE date conversion

    Hey again, I have on my RPGLE display screen a date field (Numeric 8,0) which format is DDMMYYYY. But when I want to store it in the physical file. I want it to be in the format (*ISO YYYY-MM-DD). How can I convert from the DDMMYYYY format know the appropriate century? Can anyone help me in this...

    Sureyz2,825 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