Try %xlate

El 2019-11-26 a las 17:30, Danny Hayes escribió:
First,



V7 R3 -



I have a CL program that is calling another program to get a file name. The field is 256 characters long.

It has the value for the file name and then the rest is populated with hex zeroes.

The file name is then to be used in the CPYTOIMPF command, and it chokes if there are Nulls in the file name.



I tried %TRIM with no second parm, but that only works for blanks.

I tried %Trim using the second parm, but not sure I specified it right:

VALUE(%TRIM(&FILELABEL 'X"00"')) I tried multiple times and this is the only way I got it to compile.



I initialized the fields to blanks, but when they come back to me the file name has those x'00'.



TIA,

Danny





"This email and any attachments, contain Genuine Parts Company confidential information that is proprietary, privileged, and protected by applicable laws. If you have received this message in error and are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy this email, any attachments or copies therein forthwith. Please notify the sender immediately by email if you have received this email in error."

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

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