• Character counting in a string in RPGLE

    How does one automatically read the number of characters in a string in RPGLE? I want to do this so that spaces are not counted, but punctuation and other actual characters are. For example "test" would come back as 4 characters, while "test underway" would read as 12 and "test underway!" would...

    ITKE56,495 pointsBadges:
  • How should I use String.format in RPGLE?

    I'm looking to interface RPGLE with String.format which would take variable length arguments or an array. If it's possible, I would also like to pass numbers as well as strings, so I'm thinking the format is like this:"hello %s, you are %d years old"How should I prototype this in RPGLE?

    ITKE56,495 pointsBadges:
  • RPGLE programs: Memory leaks

    I've been putting into production some RPGLE code, which uses "%alloc" and "dealloc" to allocate memory. I know programmers shouldn't worry about resulting memory leaks but I'm worried about if it actually does happen.So here's my question: If a programmer messes up and there actually is a memory...

    ITKE56,495 pointsBadges:
  • Source size limit in SQLRPGLE

    I've been having some problems compiling a 25,000 line program and I'm figuring that a line limit is causing all of my errors. Is there a limit to what the SQL pre-complier can handle for a SQLRPGLE source object?

    ITKE56,495 pointsBadges:
  • Call by value/Reference

    Hi,Please explain with the example of call by value and call by reference in RPGLE.Thanks

    as400dev475 pointsBadges:
  • Using RPGLE to create data structure definitions

    I'm looking to build a data structure. Let's use the following for an example d Cat           DS                  qualified d   name                        20 d   breed                       20 d  ...

    ITKE56,495 pointsBadges:
  • Replace ” with ” in AS/400 string

    Hi i have a string and want to replace all occurance of " with ".Please let me know how can i accomplish this .

    munduuu420 pointsBadges:
  • Service Program, Activation Group

    Hi Everybody, Could anyone from this group help in understanding the Importance of....Service Program, Binding Directory and Activation Group's with ssome practical Example. Thanks, Rama Krishna

    mvrkrishna525 pointsBadges:
  • INLR, RPGLE

    Why do we specify *inlr at the end of program only. What difference would it make if we specify it in beginning?

    Durgesh813370 pointsBadges:
  • RPGLE, PROCEDURES

    I want to learn about procedures in RPGLE. I asked some senior of mine about procedures, he answered that for understanding I need to learn modules and all in ILE...kindly guide me what all I need to know before going for procedures, main procedures and sub-procedures. Thanks Durgesh Singh

    Durgesh813370 pointsBadges:
  • Query on Subfile

    Have Display File - Subfile with Few Numeric Fields. SUBSIZ = 45, SUBPAG = 10. In RPGLE, Getting to Value from another Data Queue, Writing in to the Subfile if Record if there and incrementing the RRN and Line Number. Writing in to Subfile even there is no record in Data Queue. Here incrementing...

    rajeshece1,215 pointsBadges:
  • How to use column values in a array

    Hi, I have a file has some column as abc1,abc2,abc3,abc4.....abc40 Now I want to use this column values in a 2 length array with 40 element. Is it possible to achieve this? Thanks

    97834441841,355 pointsBadges:
  • Run time array

    fzscl01    if   e           k disk d gvk             s              2    DIM(40) d wsname1         S             10 D SDS            SDS D  USER                 254    263 /FREE wsname1= USER; DSPLY...

    421380 pointsBadges:
  • Getting I/O error CPF5004

    Hi, I am trying to write 10000 records from pf to printer file but after writing 200 or 300 records into the printer file, I'm getting the I/O error CPF5004. I know I'm getting this error because the page overflow indicator is not set it. But I'm doing programming in RPGLE. I don't know how to...

    Mohan K695 pointsBadges:
  • Date validation RPGLE

    Hi, I try to validate the date field but the Indicator sets on for both valid and invalid. Please advice. D datevalid S 8A inz('20131225') D dateINVAlid S 8A inz('99999999') * /free test(DE) *ymd0 datevalid; if %error() ; dsply 'Error!' ; endif ; /end-free * C *YMD TEST(D) datevalid 44 C N44'valid'...

    as400dev475 pointsBadges:
  • Calling RPGLE Procedure returning 10 length char value from Java

    Hi, I need to call a RPGLE procedure which is in a NOMAIN module and returning a 10 char. Example of the procedure I need to call is as follows: PRtvChgDesc       B                   Export dRtvChgDesc       PI            10 d  P_Name         ...

    ROYB95 pointsBadges:
  • Update Data SQL Server From AS400

    Hi, some help me. I want to write data to SQL Server from AS400 in RPGLE. Some have code for make this. Thanks for advance.

    JLH5 pointsBadges:
  • SQL Syntax issue via Free-Form RPGLE

    I'm having difficulty with a select statement.  As below, it works .  If I remove the '//' comment-out tags, it doesn't, so obviously there's an issue with those statements.  I'm trying to populate an output 3-char field with either Yes, No, or N/A.  The Y/N comes from the contents of a field...

    Eric Witham690 pointsBadges:
  • Delete duplicate members from a physical file using RPGLE

    Hi, could someone please help me with the code to delete duplicate records from a physical file. Please post with the full code.

    AS400dot5 pointsBadges:
  • AS/400 RPGLE

    0001.00 DBXLATER1 pr 50 0002.00 Dinpstr 50a 0003.00 PBXLATER1 b 0004.00 DBXLATER1 pi 50 0005.00 Dinpstr 50a 0006.00 Doutstr s 50a 0007.00 Dwork s 1a 0008.00 Dpos s 3s 0 inz(0) 0009.00 Di s 3s 0 inz(0) 0010.00 Dlower c 'abcdefghijklmnopqrstuvwxyz' 0011.00 Dupper c 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'...

    JSDHFKJHA335 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