• How to exit AS/400 screen

    Actually in screens When F3 is pressed, *IN03 will be turned *ON and exit the screen. My question is how to exit the screen without using *in03 = *off  in the program? DOW       *in03 = *off WRITE     FOOTER EXSR      LOADSR EXSR      DSPLYSR ENDDO...

    chowas400225 pointsBadges:
  • RPG Move command

    DDEC1 S 15p 5 INZ(23.345) DDEC2 S 15p 5 * MAIN ROUTINE C MOVE 46.2 DEC2 Result :- DEC1 = 0000000023.34500 DEC2 = 0000000000.00462 When INZ used to move data it moves the data with correct base and decimal positions the same when done with MOVE OPCODE moves all data in decimal places (right...

    yvaditya15 pointsBadges:
  • Access the API using AS/400

    Hi, I would like to send the few tracking details in to the website and to get back the details from the web. The URL has special character like < > & " . (for passing the values to the web) and more than 200 of length. I would need  to know is there any way like using any...

    as400dev480 pointsBadges:
  • In RPG/400 how can I tell what prgrams are in the call stack so I can avoid “called itself recursively” error?

    In RPG/400 how can I tell what prgrams are in the call stack so I can avoid "called itself recursively" error? Is there an easier way than passing a parm or populating a data area, like is there a system command that could provide this information?

    Drm10 pointsBadges:
  • How to Calculate Lapse Time

    Hi Everyone: Is there an easy way to calculate the lapse time between 2 timestamps? The SUBDUR returns either in HR/MI/or SECONDS. But I want the lapse time in HHMMSS. Can it be done without much coding? Thanks in advance.

    RPG ILE15 pointsBadges:
  • In RPG program

    Hi, In RPG program I declared files. One for reading and another for Updating. Both the files are in different Library lists. How do i achieve this? Thanks in Advance Rama krishna

    AnonymousUser13,030 pointsBadges:
  • Determining Source Files for RPGLE programs.

    How can I retrieve or print non-interactively what source file an RPGLE module was compiled from? I know how to find this information interactively using the DSPPGM command. The DSPOBJD command does not show any value for an RPGLE program.

    Frieseframe0 pointsBadges:
  • Call stack of an RPG program

    Hi all, The program which I am trying to understand has many CPYSRC files included which contains many sub routines, which calls each other, after a particular operation executed in main program; I want to get a call stack list containing sequence of calling route. Thanks,

    hunshabbir72,030 pointsBadges:
  • RPG to RPGLE conversion issues

    I have to convert several RPG programs to RPGLE programs using cvtrpgsrc.compilation time no issues came. But I'm wondering what issues can occur in runtime as one was OPM and modified one is ILE. Can anyone help me with possible scenarios. One I can think of is activation group. But I am not sure...

    Supriyoas400165 pointsBadges:
  • Can I write a program in CL to update a record on a database file?

    Hi, I am not familiar with RPG. Is it possible to write a program in CL to update records in a database file? I have thought about SQL, however I do not have any SQL front end installed on the AS/400.

    Alanyegambaram15 pointsBadges:
  • Help with scan

    Please could you submit a sample RPG program to scan specific letters in a string that contains numbers, letters and special characters. Thank you!

    Patricia7745 pointsBadges:
  • Calling a URL length more than 200 from CLP

    Hi Techies, I would like to call a URL by passing some input values and retrieve some values from the results. The URL lenght is more than 200, with special characters like % " < / > I need to retrieve values from the particular website. Can you please help me out soon, its been getting...

    as400dev480 pointsBadges:
  • Display files in AS/400

    I am getting stated with RPG400.I have this requirement to add a new field in an existing screen and move this value to a new PF. This is when the screen is opened in create mode. the other screen where the new field is to be added is the update screen.In this screen value is to be retrieved from...

    AnonymousUser13,030 pointsBadges:
  • How to pass variable of type date from PF to display file

    I want to pass one variable MYDATE of type(L) date from my PF to Display file through simple RPG program and how can I define result field in display file either as numeric or as alphanumeric. Please help me as early as possible, it will be helpful to me.

    Mohan K695 pointsBadges:
  • How to add one Module to the existing Service Program

    Hi, I want to add or append one new module called 'C' to the already existing service program (SRVPGM) For Example: I have one service program called SRVPGM consits of 2 Modules are A, B. Now I want to add one new Module called 'C' to SRVPGM. How can I do this?

    Mohan K695 pointsBadges:
  • Duplicate object (PF) using SQL with same attributes

    I want to create a duplicate object using SQL. I don't want to use CRTDUPOBJ and also do not want to compile my rpg's pgm because of new file level identifier. Please advice

    Anwer5 pointsBadges:
  • Can I read a Word doc in the IFS in an RPG program?

    I am looking for a way to read the contents of a Word doc in the IFS from an RPG program.  Does anyone know of a way to do this? I have found some articles about using QShell or PASE to read text files, but I am not sure if they will work for Word documents. Any help would be greatly appreciated....

    Joy Stalnecker170 pointsBadges:
  • Front end development in AS/400

    Hi all! We are a local small firm. We have nearly 40 employees in our company. The actual application is running in AS/400 machine with RPG programs. But now the employees are going to work in different places in our city. So I want to develop a web interface for them to access anywhere. I have...

    Sureyz2,475 pointsBadges:
  • How to understand RPG2 Logic

    Hi all, I am suppose to update some RPG2 code written in 80s. I want to know how I can understand program logic quickly. Actually I am use to of coding in free format ILE. Unfortunately it is a very big code which I have to understand for later modifications and also I am not allowed to convert it...

    hunshabbir72,030 pointsBadges:
  • Haversine formula in RPG or SQL

    I need to put the haversine formula in an sql or rpg function on the as400 to calc the distance between to zip codes. I do not have much experience with sql. can anyone give me some help?

    Brenger170 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following