MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

convert into floating point number

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
jathampy
Beginner


Joined: 21 Dec 2007
Posts: 15
Topics: 6
Location: UK

PostPosted: Tue Oct 27, 2020 2:03 pm    Post subject: convert into floating point number Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Tue Oct 27, 2020 2:32 pm    Post subject: Reply with quote

Jathampy,

DFSORT does not support converting to COMP-2 format.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jathampy
Beginner


Joined: 21 Dec 2007
Posts: 15
Topics: 6
Location: UK

PostPosted: Tue Oct 27, 2020 2:38 pm    Post subject: Reply with quote

Thanks Kolusu for the quick reply. I will then handle in Cobol program.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group