• Printer file

    Hi members, While declaring a printer file in RPG program, we will specify either INFDS(DSPTR) or OFLIND(*IN99). Can any one clarify the purpose and circumstances under which we specify these..Thanks!

    Sai4AS4001,420 pointsBadges:
  • Pass parameter RPG/400

    Hi, is there any solution to pass numeric parameter to the RPG program from the command line?

    I6195 pointsBadges:
  • Read the same file twice in a loop

    I have a scenario like this. FileA has a keyfield MVDT(8A - it has a character field which has date in yyyymmdd). I have an RPG program which accepts start date as parameter. I do a SETLL with the start date and reading the file till eof. Inside the loop, am reading another file which has another...

    RamvishakRamesh2,505 pointsBadges:
  • Read records without declaring file in F-spec

    Is it possible to read records without declaring file in F-spec?

    shyedajmal285 pointsBadges:
  • Moving SQL into RPG programs at DW

    We are using a huge number of SQL on our production machine. We have our back up machine equal to the production machine where its located our data warehouse based on RPG. Can you help me with arguments to defense that all SQL should be moved into RPG programs at our DW?

    userjp5 pointsBadges:
  • Calculate Distance between cities using latitude and longitude

    We currently have a program that returns a locations latitude and longitude. Searching the web I've located an RPG program that calculates the distance between 2 locations however it gives me the miles using a straight line. When I search Google maps it shows me the distance in miles using the...

    filuphaze475 pointsBadges:
  • Calling programs information in RPG

    I have RPG program which consists around 7,000 lines. Is there any way to see the calling programs from the main program. One way is to manually searching the calling program name in main program. But it also taking so much time to know. So is there any way or command to get the all calling program...

    sivakesava285 pointsBadges:
  • Use the filename inside program received as parameter

    I wanted to write a RPG program which will be called from 3 other CL programs. From 3 CLs this RPG has to use 3 different files in the chain. How can I use the filename inside the chain which is received as parameter? I tried to use FInpFile I F E Disk EXTFILE(pFilename) and populated pFilename...

    RamvishakRamesh2,505 pointsBadges:
  • Service program compilation error

    How to resolve message ID CPD5D03: "Definition supplied multiple times for symbol.."

    Allora10 pointsBadges:
  • Need an example code for externally described data structure in RPGIII.

    Dear All! Need an example code for externally described data structure in RPGIII. Wherein I need to get the data into the RPG program from the 'externally described file' linked to the DS. Also need to update the same file through the data structure at the end of processing. I have written a simple...

    svankipu625 pointsBadges:
  • Transferring data from iSeries V5R4 to Windows 7 PC

    We are getting an error message (sys3827) when we try to transfer data from an RPG2 program on an iSeries 800 running V5R4 to a Windows 7 (64bit) PC running iSeries Access V6R1 (data to be used by Filemaker Pro 11). Any suggestions?

    jeffg25 pointsBadges:
  • Two OPNQRYF on same file

    I have a file which has account opened date and account changed date. In my RPG program, I need to extract all those accounts opened today. and do some calculations. Then I need to extract all those accounts that are changed today and status is not 'Cancelled' My file doesn't have either opened...

    RamvishakRamesh2,505 pointsBadges:
  • How to read MS SQL tables using iSeries RPG

    Has anyone found a technique for reading data directly from MS SQL using an iSeries RPG program?

    WoodEngineer8,225 pointsBadges:
  • Adding values to second member of PF

    Suppose I have a PF named 'Member' and I have added a new member 'Mbr1' to this pf. How can I add values to the second member(Mbr1)?

    jainamit380 pointsBadges:
  • Program is expecting a file not used in this call

    I have 2 different environments using 2 different library lists. A user takes an option from a menu and a CL program is called with overrides to a database file and then an interactive RPG program is called. The user then exits this program and then goes to the other environment (different...

    Sofarsogood60 pointsBadges:
  • How does KLIST work?

    Hi, I'm debugging an RPG program and came across a 'KLIST ' with 'KFLDS'. What I know so far is that a KLIST is used as a search argument and KFLDS make up the argument, but what I want to know is how does this actually work? Are the KFLDS concentrated to make up one search argument or does a KLIST...

    jailall101785 pointsBadges:
  • Debugging a RPG program

    Is there any way to store a variable value in file while the program is in debug? what i means is, I have a data structure of size 32766, while debugging the program ,the dippaly variable only display limited size of the data structure, but I want the total data of the variable......

    sivakesava285 pointsBadges:
  • Need to Identify whether a program is using by any user

    I need to create a program which need to verify whether a specific program is using by any other user in the environment, before allowing the user to use the program. Is there any way we can identify in CL or RPG that a program is using by how many users at a specified time?

    Cursorposition195 pointsBadges:
  • Changed external data structure

    I have RPG program P1 which has an external data structure D1 on a file F1. I am reading the file F1 in PGM A and based on a condition I am calling PGM B. In PGM B I am updating a field of the file F1.When the control returns to PGM A, the updated field in the file F1 shows blank in the external...

    Tecchie30 pointsBadges:
  • Error Message Display

    We have written an RPG program that runs on a Hand Held RF Scanner running a 5250 emulation program. We defined the screen to display error messages on line 12 o fhte display. When we run the program on the scanner or a standard display screen, the error message always displays on line 24. Any idea...

    SteveLane662855 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