View previous topic :: View next topic |
Author |
Message |
devpal Beginner
Joined: 06 Jul 2004 Posts: 14 Topics: 8
|
Posted: Thu Aug 19, 2004 4:25 pm Post subject: Ftp of a file containing packed decimals |
|
|
Hi,
I need to transfer a sequential file containing packed decimals from mainframe to a notepad. It gives me all junk values in the packed decimal fields when I do this. I thought of writing a small cobol program where I can convert a packed to a numeric field and then transmit. But in this case the file length would increase. Please can you let me know if there is any alternate solution?
Regards,
Devpal. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Aug 20, 2004 5:42 am Post subject: |
|
|
Devpal,
You don't need a pgm to convert a packed decimal to a numeric. You can use SORT to conversion. The length will increase depending the value in the field. if you are sure that your data will not have a value greater than numeric field length, then you can simply convert the field.
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|