|
Well if you were using prototypes you would make it a CONST parm with 10i0 as the size/type and not worry about it. Just declare the value as 10i0 and move the count in that field, then pass that 10i0 field on your call/parm opcodes. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Reggie Acosta Sent: Wednesday, February 11, 2004 2:14 PM To: rpg400-l@xxxxxxxxxxxx Subject: RE: QLICHGLL API Since %ELEM() returns an unsigned integer, maybe these changes will work. D NumOfLibs S 10u 0 then... C Eval NumofLibs = %ELEM(UserLibs) HTH, Reggie Acosta > ------------------------------ > > message: 3 > date: Wed, 11 Feb 2004 12:30:06 -0600 > from: "Malchow, Grizzly" <GMalchow@xxxxxxxxxxxxxxxxxxxxx> > subject: RE: RPG400-L Digest, Vol 3, Issue 89 > > >> from: "Bob Cozzi" <cozzi@xxxxxxxxx> > >> subject: RE: QLICHGLL API > > >> Uh yes... the number of libs needs to be a 4-byte binary field > (INT4). In >> RPG IV that would be a 10i0 value. -Bob Cozzi > > I noticed that but I couldn't get the value to convert to a > 4-byte binary field. I looked around and I found an example > that was using a packed decimal. Obviously that is incorrect. > Is there a built in function in RPG that works like %BIN in > CL programs? I can't find anything. > > ------------------------------ _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.