The question of how to transfer packed data from an iSeries to an ASCII system has been asked many times. It has been suggested that one can use a logical file that redefines the packed field as zoned. This works as long as the value is non-negative and the number of decimals is 0 - the decimal point does not get transferred. CPYTOIMPF and CPYFRMIMPF can also be used but require extra steps in the process.
A standard logical file cannot convert numeric data to character, either. But an SQL logical view can use the SQL CHAR function to convert any numeric data to left-justified values that have the sign and the decimal point
http://search400.techtarget.com/tip/1,289483,sid3_gci1044575,00.html
Monday, January 31, 2005
Subscribe to:
Post Comments (Atom)
Popular Posts
- AS400 Job Scheduler
- Recover or reset QSECOFR passwords
- Make a Home made, open source mp3 Player
- UDATE and *DATE in AS400 RPG
- Sending and receiving email on i5/os - QtmmSendMail
- A free fully functional database is yours with Microsoft's SQL Server Express
- AS400 API - QCMDEXC - Execute Command
- API Example - Deleting Old Spooled Files
- AS400 Jobs: Do you have a job at the moment?
- 3 fires up high-speed Super 3G network, News at CNET.co.uk
No comments:
Post a Comment