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



I think (depends of the format of your PC file) that CPYFRMIMPF might do the 
trick directly.

Otherwise CPYF (but this has to be /QSYS.LIB files) can do a lot:
Copying between files with differet CCSID converts from ASCII to EBCDIC
Copying between file1.field2 (zoned decimal - ebcdic) to file3.field2 (packed 
field, but same name) with FMTOPT(*MAP) will do it.

Henrik
http://hkrebs.dk


> Date: Fri, 2 May 2003 16:12:13 -0500 
> From: Doug Johnson <djohnson@xxxxxxxxxxxxxxx>
> Subject: packed decimal numbers
> 
> Greetings, 
> 
> I have a file on my PC that has data that needs to be copied into a specific
> member of a file on my AS/400.  I need to parse the data into the proper
> fields, rearrange the data and add some additional fields to the original
> data. I have worked out how to do most of this, but am having a problem with
> a particular field, which in the resulting file on the AS/400 needs to be a
> packed decimal number.  What can I do to convert an ascii decimal number to
> a packed decimal when I don't have access to RPG or anything else to write a
> conversion program?  Is there a function in REXX to accomplish this?  Only
> one of the numeric fields in this file is packed, the rest are zoned.
> 
> Thanks, 
> 



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.