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