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



Hi Mike,

> What is the proper procedure in CL to convert the BINARY(4) Batch jobs
> waiting for messages output from QWCRSSTS to DEC(<len> 0)?

I guess it depends on how you've got BINARY(4) fields defined in your CL
programs.  In V5R2 and earlier, it's usually defined as:

       DCL VAR(&MYVAR) TYPE(*CHAR) LEN(4)

but, in V5R3 there are actual integer data types that you can use instead.

Assuming that you want to use the V5R2 and below method, you can do the
following:

       DCL VAR(&MYDEC) TYPE(*DEC) LEN(10 0)
       DCL VAR(&MYBIN) TYPE(*CHAR) LEN(4)

       CHGVAR VAR(&MYDEC) VALUE(%BIN(&MYBIN))


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.