For Programmers: Free Programming Magazines  


Home > Archive > Cobol > July 2006 > Zoned Decimal to Char









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Zoned Decimal to Char
Zeta

2006-07-10, 6:55 pm

Hi,
I have a data file containing data in Zoned Decimal. Is it possible to
change it into a different data type, so that its more readable. Is it
possible to convert it to char ?
Thanks in advance

2006-07-10, 6:55 pm

In article <1152549434.960229.10980@m79g2000cwm.googlegroups.com>,
Zeta <jeevitha.k@gmail.com> wrote:
>Hi,
>I have a data file containing data in Zoned Decimal. Is it possible to
>change it into a different data type, so that its more readable. Is it
>possible to convert it to char ?


It might be possible, yes. Please post what you have tried so far in
order to decrease the possibility of duplicating errors.

DD

epc8@juno.com

2006-07-10, 6:55 pm

Zeta wrote:
> Hi,
> I have a data file containing data in Zoned Decimal. Is it possible to
> change it into a different data type, so that its more readable. Is it
> possible to convert it to char ?
> Thanks in advance


1. HINT: Can you read some of the characters? If so, which ones do not
appear to be numeric digits?

2. For background go to http://www.flexus.com/download.html and
download cobdata.zip. This is a tutorial on COBOL data formats written
by Michael Mattias, one of the regular contributors to this newsgroup.

-- elliot

Michael Mattias

2006-07-10, 6:55 pm

In article <1152549434.960229.10980@m79g2000cwm.googlegroups.com>,
Zeta <jeevitha.k@gmail.com> wrote:
>Hi,
>I have a data file containing data in Zoned Decimal. Is it possible to
>change it into a different data type, so that its more readable. Is it
>possible to convert it to char ?


For both this question and your question re EBCDIC-ASCII, I really suggest
you first read my tutorial at:
http://www.talsystems.com/tsihome_h...oads/C2IEEE.htm

(Hey, it's free! No, I can't do it for less than that!)

That will tell you some other information you will have to supply to the
newsgroup members if you would like to obtain quality assistance from those
members.

--
Michael C. Mattias
Tal Systems Inc.
Racine WI
mmattias@talsystems.com
ph 262-681-3895
Outside WI Toll Free 1-877-264-2847



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com