Ask the Expert

Converting and transferring AS/400 packed decimal fields to ASCII systems

I have a physical file in AS/400 that contains data like that: 'BB_¶__LOCLFRAM237'. I want to transfer the file to my PC and convert the packed characters to ASCII. Is there any way to do this?
There are two options:

You can use command CPYTOIMPF. This command convert database file to "flat file" (i.e it makes target file with packed represented as strings). The converted file can be sent to ASCII systems using FTP.

You can use file transfer utilities. One example is iSeries Access file transfer, this utility will translate AS/400 fields (including packed decimal fields) to ASCII systems with no problem.

This was first published in November 2008

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: