• How to write flat file data into pf?

    Hi,,  M25 is one of my flat file which is 34 char length. I want to write data from flat file to normal pf. Pf contains 3 char field which is equally devide. Now generaly to read file we have to requre key field but flat file doesn't have any key field then how i will write this pf?     

    Sms121185 pointsBadges:
  • Declare variables in RPGLE program

    How will we declare variables in an RPGLE program which have the same field names of a file that is declared in the PF?

    vasanthisrini10 pointsBadges:
  • Operation sequence for member AAA is not valid

    I have a following scenario: Operation1: Chain operation on file A1 with lock operation Operation2: Chain operation on file A2 with lock operation Operation3: I updated record in A2 file with some updates Operation4: Now I committed the changes using COMMIT operation Until now I don't have any...

    sivakesava285 pointsBadges:
  • *DTAARA DEFINE LDA in RPGLE

    What is the meaning of this statement "*DTAARA DEFINE LDA" in RPGLE?

    Sidd30 pointsBadges:
  • AS400 – RPGLE, convert character to numeric.

    Hi all...!         Here i give you the code. DNum_tmp           c              '18745678' I declared Num_tmp like this and i did some operations then i got  Res_tmp = '18745678' . Now the question is i want to convert this char value to decimal that is addtionable. is...

    Sureyz2,475 pointsBadges:
  • API to send email messages from RPGLE

    I need to send an email message to a couple of mail ids with CC mail ID also. Is there any API (which is not in Java) which will enable me to send the mail?

    Koolsani085 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:
  • Any AS/400 RPGLE Program To automatically convert PRTF file to PDF?

    I want the RPGLE code to convert this PRFT to PDF. Is there any functionality?

    Sms121185 pointsBadges:
  • Best way to do the DASD history capture…(Disk usage)

    Dear team, I need to enhance our current system that captures the disk space usage. I need to maintain the history over it. Currently we do it by using DSPOBJD and DSPFD commands and write the details of all objects and files used in the whole system to the outfile. Hardly it takes more than 4...

    Ezhilkumaran0 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:
  • Determine Java Version from RPG

    I have multiple solutions dependent upon the version of java or the lack of Java on an iSeries, all controlled from RPG. From RPG, how can I determine if java is installed on the machine and if installed, what version? Any ideas?

    DaddyCOZ0 pointsBadges:
  • How to use RPGLE function/program as a function in STRSQL

    Hi All, I have an RPGLE program which takes as a input value and update it and return the updated value. I want to use this RPGLE program through SQL while executing SQL scripts.  I did not remember the procedure to use it, but I have used in the past.  Any of you have idea that, how to use RPGLE...

    Iamsubbarao60 pointsBadges:
  • How to sort Alternate Array?

    Arr1       s        10 A Dim(4)   Perrcd(2)  Fromfile(abc) Arr2       s         2  0  Dim(4) Alt(arr1) Now, I have load records From file to that array then I want to show these record in reverse Order. How I can do this?

    Sms121185 pointsBadges:
  • Communicate with a RS232 device in my RPG program

    I need to retrieve the weight from a scale hooked to my PC with via RS232. I need to send the device a character(P) and which will trigger the scale to send back the weight. Thanks.

    10155 pointsBadges:
  • Converting from RPGLE to DB2/400 SQL

    My shop just announced that it intends to convert from RPGLE on the ISeries 400 platform, to SQL, such that the procedures will be portable to other hardware platforms. What documentation to I need to acquire to train on writing SQL procedures; initially within DB2/400?

    SeaRancher5 pointsBadges:
  • How to identify caller program.

    PGM A is calling PGM C and PGM B is calling PGM C. In PGM C how can I know which PGM called it without passing any parameter as PGM name or using data area etc. Suppose all these PGMs are RPGLE programs.

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

    Supriyoas400180 pointsBadges:
  • Emailing spool files from AS/400

    How do you email spool files from AS/400 using RPG4?

    Keo55 pointsBadges:
  • Character set and code page values for printing from iSeries

    I want to print my PRTF (*AFPDS) in Courier New font (size 11). I think I can do this by giving keyword FNTCHRSET values in DDS of my PRTF. I'm not able to find what values can be given for character set and code page for Courier New. Please suggest.

    22917515 pointsBadges:
  • EVAL Math Problem

    Bruce, can you figure out this piece of code? I don't understand the result I get. Before code is executed: XXAVAL = 0, LTSTHQ = 30, LTCUSQ = 30, LTPICQ = 0, XPQTY = 30, OLOLQT = 30 EVAL XXAVAL= LTSTHQ-(LTCUSQ+LTPICQ+XPQTY)+OLOLQT After code is executed: XXAVAL = 0. I figured XXAVAL should be 60?

    kevleemor605 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