Re: cobol to ascii translation



"Doug Miller" <spambait@xxxxxxxxxx> wrote in message
news:bQ9hi.23097$C96.793@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In article <1183131010.025069.104020@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
roch77@xxxxxxxxx wrote:
Hi,
I have a cobol data file from a unisys A series mainframe.

2 types of fields :

pic 9 (xx) comp. <= many fields of this type varying lengths
pic X (15) . <= only one field

I am having a problem translating the pic X (display field).

I ftp'd file from mainframe as binary.

But I want to automate this. I thought I was able to use an
ebcdic2ascii function for this and translate the pic X field before
being unpacked, but I am not getting the right answer..

That should work, as long as that function is ONLY operating on the display
fields and not the entire record. (Unpacking? What's to "unpack?" If file
is FTPed it is not 'packed' it just 'is')

(Third time in three weeks for this *exact* same question here. Search
archives, seems to me there have been at least 6,862 suggestions to solve
your problem)

MCM



.