× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> date: Wed, 5 Jan 2005 13:28:23 -0500
> from: Gene_Gaunt@xxxxxxxxxxxxxxx
> subject: RE: [MI400] EDIT instruction to left-justify
>
> Example to right-justify and blank-fill:
>
> DCL DD NUMBER BIN(4);
> DCL DD RESULT CHAR(11);
> EDIT  RESULT, NUMBER, X"03B1400303B2B2B2B2B2B2B2B2B2AAAF40036003";
>
> My question is what EDIT operand 3 value will left-justify the result?

I don't know whether there's an edit mask that will left-justify.  I 
suspect not, but I'm not an expert.

But it should be straightforward to edit right-justified, verify for the 
first non-blank, then cpyblap the substring.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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.