James

I can think of one way - write the EBCDIC to a single-column PF - created without DDS. This write can be done with some kind of command-line SQL processor command (many are out there), since you are in CL. Then use the CPY command to copy it to an IFS file - specify appropriate CCSIDs.

You could also write the data to a user space (this is easiest in RPG) - then, again, use the CPY command - since it uses path naming, the user space will be treated like any other stream file. Handle CCSIDs again.

I suggest pointer coding for writing to the user space - create it, then get the pointer to it. Ba-da-boom!

HTH
Vern

On 10/31/2011 2:09 PM, James Lampert wrote:
Is there some quick and easy way, under V6R1, to take EBCDIC text passed
as a parameter to a CL program, and make an ASCII stream file from it?

--
JHHL

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.