|
Thanks Barb, Just yesterday I ran into a program here in which the developer added a *LIKE DEFN instead of adding another D spec. Sometimes I feel like a mackerel trying to turn an aircraft carrier. Rob Berendt ================== "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin bmorris@ca.ibm.co m To: rpg400-l@midrange.com Sent by: cc: rpg400-l-admin@mi Fax to: drange.com Subject: RE: Prototype for a command parameter. 12/12/2001 03:15 PM Please respond to rpg400-l >From: "Bob Cozzi \(RPGIV\)" <cozzi@rpgiv.com> >Date: Wed, 12 Dec 2001 10:35:12 -0600 > ... >To solve this, I've created a /COPY that includes all these data type, >and I've named them INT1, INT2, INT4, and INT8. And I've been using >LIKE(INT4) in my code. (Please tell me the LIKE'd fields are INT4 and >not packed!) Bob, the LIKE'd fields are INT4 and not packed. :) As long as you use LIKE (and not *LIKE DEFINE), your LIKE'd fields have the format of the original. With *LIKE DEFINE, it depends. (See your local RPG manual for all the gruesome details of how *LIKE DEFINE operates.) Barbara Morris _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com 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-2024 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.