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

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

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

    chowas400250 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,065 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:

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