HOW CAN I CONVERT SIGND packed decimal TO CHAR USE DFSORT? Post subject: HOW CAN I 0x7fffffff in binary option SIGND packed decimal TO CHAR USE DFSORT?
I want to convert a file’S signed packed decimal column to displayable and ftp this file from mainframe to unix. PLEASE HELP ME PINPOINT why this can abend and how to resolve it,thanks a lot! Your cobol definitions have no packed-decimal fields. Col 2 and 4 are definitions of binary numbers rather than packed-decimal numbers. I am not very clear about what the difference between binary numbers and packed-decimal ,would you please give me some information about it ?
Refer to the COBOL Language Reference manual for complete descriptions of binary and packed decimal. Here is a link to the cobol manual that describes different numeric data types. This is the link to the Table of Contents for the COBOL Language Reference – a good one to bookmark for regular use. As this file is to be downloaded to unis, i’d suggest you create the file as a tab-delimited file which is quite usable on unix. Good luck – someone will be here if there are questions. Second, the format ‘BI’ is unsigned binary, for proper negative usage, you should use ‘FI’.