|
I decided that writing and RPG program would be the best route. Works good. Mike Wills iSeries Programmer mnwills@taylorcorp.com (507) 386-3187 -----Original Message----- From: Richard B Baird [mailto:rbaird@esourceconsulting.com] Sent: Tuesday, December 10, 2002 2:11 PM To: rpg400-l@midrange.com Subject: Re: Trimming in CL Mike, in what context do you want to use the result? *CATing to another string? I'm not sure it's possible or practical to do so in cl. I would create a generic rpg program that concatonates parm1 with parm2 giving parm3, and wrap it in a command that allows return a return variable value for parm3. by wrapping it in a command, you don't have to worry about the length of your variables - as long as the command and the rpg pgm match, the CL var lengths are less than or equal to that. hth, rick ----- original message------- I need to be able to trim out the spaces of a field in a CL program. Is there a way to do this? Or will it be best to use an RPG program? Mike Wills iSeries Programmer mnwills@taylorcorp.com (507) 386-3187 _______________________________________________ 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-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.