View previous topic :: View next topic |
Author |
Message |
jathampy Beginner
Joined: 21 Dec 2007 Posts: 15 Topics: 6 Location: UK
|
Posted: Tue Oct 27, 2020 2:03 pm Post subject: convert into floating point number |
|
|
I am having a file with numbers stored with decimal point. I would like to convert into COMP-2 format as it need to passed to an existing cobol program for generating one report. Just want to know whether it's possible in SORT without modifying Cobol program.
e.g
+000011.88
-000567.99
I tried with OUTREC OVERLAY=(30:1,10,SFF,TO=FL,LENGTH=8) but seems TO=FL can't be used.
Appreciate your help on this |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Tue Oct 27, 2020 2:32 pm Post subject: |
|
|
Jathampy,
DFSORT does not support converting to COMP-2 format. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
jathampy Beginner
Joined: 21 Dec 2007 Posts: 15 Topics: 6 Location: UK
|
Posted: Tue Oct 27, 2020 2:38 pm Post subject: |
|
|
Thanks Kolusu for the quick reply. I will then handle in Cobol program. |
|
Back to top |
|
|
|
|