Topic: Problems with the Lay file (1 of 2), Read 21 times
Conf: Converting, Translating
From: Pavan Nadimpalli
Date: Friday, August 10, 2007 04:51 PM

I am trying to convert an EBCDIC file to ASCII. The last field has re-defines in it and am having difficulty in writing my lay file.

Any help is greatly appreciated.

My lay file and my copy books looks like this..

----------------------------
Lay File
-----------------------------

t 1,0xFFFFFF,0xF2F3F2 // EBCDIC for 232 event data.
l=575 // Record length
e 1,125
pd 126,136 u v2
pd 137,143=4 // EL01-EVENT-DATA
e 144,575

--------------------------------

--------------------------------
Copy Book
--------------------------------

15 REDEFINES EVENT-DATA.
20 AMT PIC S9(11)V99 USAGE COMP-3.
20 DATE PIC S9(07) USAGE COMP-3.
20 FILLER PIC X(439).

-------------------------------------

What am I doing wrong here?

Thanks,
-Pavan

 


Topic: Re: Problems with the Lay file (2 of 2), Read 18 times
Conf: Converting, Translating
From: Ted Green
Date: Monday, August 13, 2007 11:29 AM

At 05:17 PM 8/10/2007, you wrote:
>From: "Pavan Nadimpalli"
>
>I am trying to convert an EBCDIC file to ASCII. The last field has re-defines in it and am having difficulty in writing my lay file.
>
>Any help is greatly appreciated.
>
>My lay file and my copy books looks like this..

Pavan:

We prefer not to handle EBCDIC conversion questions on our User Forum.
I have forward your question to Tony Taylor who will answer you today.
Thank you.

Ted.