×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Since V5R3 10 years ago, you can specify the character(s) to trim in RPG.
For example, newBadgeId = %TRIML(badgeId:'0 ') will trim leading zeros and
spaces.


Yours truly,

Glenn Gundermann
Email: glenn.gundermann@xxxxxxxxx
Work: (905) 795-2111 ext. 3098 (until Nov. 28)
Cell: (416) 317-3144

On 25 November 2014 at 18:07, Hoteltravelfundotcom <hoteltravelfun@xxxxxxxxx
wrote:

HI I have to create a file based on employee badge info.

there is name and dept 40 characters each.

the badge id is 3 but they want the PF to hold 8 for futures.

when I created the field as 8 character, it adds leading zeros so I made
the field numeric 8S 00 but they want it to be character.

Any ideas how to copy without throwing in the leading zeros? I think an RPG
program would be the way but is there any way in a CL or Command?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.