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 

Decimail to Binary

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


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Mar 29, 2004 1:29 am    Post subject: Decimail to Binary Reply with quote

Hi,

Can anybody please let me know how to convert decimal data into binary data.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Mar 29, 2004 6:42 am    Post subject: Reply with quote

vkphani,

(start pos,length,PD,BI) will convert the decimal data into binary data.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Mar 29, 2004 11:59 am    Post subject: Reply with quote

For more information on using the numeric conversion parameters of DFSORT's INREC, OUTREC and OUTFIL OUTREC that Kolusu mentioned above, see "Reformatting Features" - "Reformatting: Numeric Conversion" in "Beyond Sorting" at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort


Last edited by Frank Yaeger on Fri Aug 25, 2006 3:56 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue Mar 30, 2004 11:38 pm    Post subject: Reply with quote

Hi,

I coded (start pos,length,PD,to=BI) in my SORT JCL and it worked fine.
Thanks for your info Kolusu and Yaeger.
Back to top
View user's profile Send private message Send e-mail
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Wed Mar 31, 2004 3:05 am    Post subject: Reply with quote

Decimal data need not be packed decimal. It can be unpacked also. Paneendra did not specify packed decimal.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Mar 31, 2004 9:16 am    Post subject: Reply with quote

Mfjin,

Can you enlighten me as to what you meant by UNPACKED decimal in here? Did you mean unsigned packed decimal? I assume you speak cobol, so can you show me the definitions of UNPACKED decimal?

Thanks

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Mar 31, 2004 10:33 am    Post subject: Reply with quote

mfjin,

The only other type of "decimal" that sort products recognize is ZD (zoned decimal). Is that what you're talking about?
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Wed Mar 31, 2004 2:51 pm    Post subject: Reply with quote

frank/kolusu,

yes i was referring to zd. (something like 12345.67). I was wondering how Kolusu realised that vkphani is referring to packed decimal and not zoned decimal (zoned decimal is not packed decimal), because when vkphani mentioned decimal what came to my mind immediately is a numeric like 12345.67. sorry it is not a siginificant question. i was just wondering if i was missing something.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Mar 31, 2004 3:18 pm    Post subject: Reply with quote

mfjin, I feel the same way you do. I do not speak in COBOL-ease, as I am a Technical Analyst and not a programmer, and I would have also made the same presumption. I have also made similar comments to other posts where there seems to be a logical gap from the question to the answer with a whole lot of assumptions made in between. Maybe there are intermediate posts that are being edited out - I don't know. I'm hoping that, over time, it will become clear to me how these assumptions are assertained.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Mar 31, 2004 4:09 pm    Post subject: Reply with quote

Mfjin,

May be my time spend on the help board made me assume that phani is refering Packed decimal instead of zoned decimal.

Quote:

because when vkphani mentioned decimal what came to my mind immediately is a numeric like 12345.67.


Even though you thought of zoned decimal in this context, but when you tried to refer it you refered it as NUMERIC.

Most people have trouble intrepreting the binary and packed decimal data since it cannot be viewed in 3.4 dsn listing.


Quote:

Maybe there are intermediate posts that are being edited out - I don't know.


Superk: I can assure you that none of content in the posts are edited. It is only titles or some kind of formatting(adding code blocks) is done.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Mar 31, 2004 5:46 pm    Post subject: Reply with quote

Quote:
Maybe there are intermediate posts that are being edited out


I believe only Kolusu (Administrator) and I (Moderator) can edit this Forum. He said he's not editing anything out, and I haven't either.

Quote:
there seems to be a logical gap from the question to the answer with a whole lot of assumptions made in between.


I think many of the answers to the vague questions are more along the line of "here's an example that might be relevent to what you asked for based on what I can figure out about what you said" rather than "here's exactly what you need". With some of these questions, it's impossible to answer without making assumptions (even after several go-rounds in some cases). This is one of the things I find most frustrating about answering questions on help boards. People just don't know how to describe what they want with any precision, leading to guessing games.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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