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

    ITKE435,995 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...

    ITKE435,995 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?

    ITKE435,995 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  ...

    ITKE435,995 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 .

    munduuu435 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

    mvrkrishna560 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?

    Durgesh813375 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

    Durgesh813375 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,465 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:
  • 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'...

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

    JLH10 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:
  • TAP01 Failed.

    While running a backup job on the AS400, the job was ended. Now the status of TAP01 is FAILED. Apparently, the device is still active? Any ideas? When I try to vary it off, I get this:Device TAP01 not varied off. Error occurred.Message ID . . . . . . : CPD2643 Severity . . . . . . . : 40 Message...

    Ddiamondd15 pointsBadges:
  • RPGLE Subfile Validation

    Hi Everybody, I am new to RPGLE and I hope you can help me with my problem. I have used a subfile for loading details in my program. Now it is expanded subfile (page down on the next page) cause there is a lot of transactions displayed. My problem is that I have entered a selection on the first...

    calvin0105905 pointsBadges:
  • AS/400 RPGLE

    0001.00 Fbsamplepf o a e disk 0002.00 Dcusdata ds qualified 0003.00 Din likerec(rcdfmt:*input) 0004.00 Dout likerec(rcdfmt:*output) 0005.00 D overlay(in) 0006.00 /free 0007.00 read rcdfmt cusdata.in; 0008.00 dow not%eof; 0009.00 dsply cusdata.in.sno; 0010.00 dsply cusdata.in.sname; 0011.00 read...

    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.

Thanks! We'll email you when relevant content is added and updated.

Following