• How do I retrieve the JOB/USER/NBR for a spool file generated by a GUI program?

    I have a GUI program which HAS to run interactively that generates a spool file. The HTTP job (Which is what I correctly retrieved using RTVJOBA & QUSRJOBI) is: Job: VOI User: QTMHHTTP Number: 303484 But the job that my spool file has is: Job: QPRTJOB User: <My user ID> Number: 303384...

    Orelalaith0 pointsBadges:
  • Free Format RPGIV

    Hello everybody, I am looking for complete reference for free format RPGIV, as I am new to free format. Please provide me a link/PDF for the same. Thanks, Samul

    Samule400160 pointsBadges:
  • How to fetch data from physical file using RRN value of a record?

    I want to fetch / read a record with given RRN value in RPG. How to read a record for which only RRN value is given, in RPG?

    Aum15 pointsBadges:
  • How can a factor 2 on a CALL be changed?

    I have the following code: C CALL 'UTWIPT' C PARM P0Part P1PART 20 C PARM P0Seq# P1SEQ# 3 0 C PARM P0Lot# P1LOT# 15 Before it executes the value of P0SEQ# is 035. After the call I am getting different value. That is later causing a data dec error (such as hex F0F1). I didn't think a call could...

    JamesR90 pointsBadges:
  • How to monitor job activity on AS/400

    How is it possible to tell on AS/400 that the program (RPG) is just "idling" on the screen and the user is not really using it ? I need the way to monitor it to end the job if the program is not being used.

    BelauB10 pointsBadges:
  • How to validate data in RPG

    How to validate data (if it is numeric or character or both) in RPG? I have customer file(cus1) and field length of CID is 05. I want to display numeric data only. I don't know how to use indicators, please correct the below code. .............. CID  .  CNAME .............. 1201    chow...

    chowas400615 pointsBadges:
  • AS/400 RPG: How to use FRF in programs

    How to use FRF (field reference file) in programs? Please example in real time scenario . I know the below information only: It is also physical file, which does not have any data. It has only field description and other physical files can refer these definitions by using REF or REFFLD keywords.

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

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

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

    as400dev535 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

    AnonymousUser14,970 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,805 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...

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

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

    AnonymousUser14,970 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