• AS400-RPG/400,RPGLE

    How to validate data(if it is numaric 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 1a34 siva 145b4 ram...

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

    yvaditya15 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 RPGLE, how to fetch the particular record in 1 lakh record without a key

    Hi, I have some 1 lakh record. I need to fetch from 250th record with no key in it. What is the possible optimed way we can achieve it.

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

    Supriyoas400165 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:
  • 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:
  • How to use API’s?

    I'm trying to use the regular expressions API's REGCOMP(), REGEXEC(), and REGFREE(). My text says handle them like a procedure, article seems missing info. Error examples are Prototyped call can't be used in an expression because it doesn't return a value, Types/Attributes of parm don't match the...

    Sfapa110 pointsBadges:
  • Automatic refresh of display screen

    I need to have a screen refresh the data after being displayed for 30 seconds on the screen. I am displaying a subfile and need the ability to page up and down. I have tried several options, such as building the subfile, writing the control record, waiting for 30 seconds then reading the control...

    Manyquestions65 pointsBadges:
  • Automatically move from AS/400 session to a web search on PC connected to the web

    Is there a way for me to run a script that would toggle from my pc as400 session- open up a window explorer session and go to a particular website with the correct parm passed so that I could then retrieve a web bill for display on the pc. I would like to have a cmd key on the 400 that allows the...

    dab77780 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