Topic: EBCDIC.LAY Redefine record (1 of 2), Read 99 times
Conf: Converting, Translating
From: Barb Collins
Date: Thursday, May 12, 2005 12:04 PM

Please Help.
I wish to process a record layout; if Field 121 (not a packed field) = 0 or 1, if field 121 = 2 or 3, I have a similar record layout with the same record length as the first.
////////////////////////////////////////////////////////
r=283,0 //record length
t 121, 0,1 //if field 121 = 0 or 1 use this record layout
l=283 //redundant
e=1,10
d 11,13
etc..
...
more field descriptions
...
t 121, 2,3
td //just in case other fields are present
l=283 //redundant

e=1,9
d 10,13
etc...
more field descriptions
...
////////////////////////////////////////////////////////
Can anyone tell me what I am doing wrong?
BCollins

 


Topic: Re: EBCDIC.LAY Redefine record (2 of 2), Read 108 times
Conf: Converting, Translating
From: Tom Burt
Date: Thursday, May 12, 2005 12:37 PM

Barb,

The format fot the record type specification is
t col#,mask,val[,maxval]
In your case this would be:
t 121,0xFF,0xF0,0xF1
and
t 121,0xFF,0xF2,0xF3

The "td" should not be placed immediately after a 't' spec.
If you wish to be careful, include it at the end of the
data descriptions:

td
l=283 // redundant
i 1,283,=283; // sometimes necessary kludge;
// the ",=283;" specifies the size of
// the ASCII output field

If you have further problems, please attach your .lay file
to your e-mail. Problems can occur in many different ways.

Regards,

Tom


At 12:05 PM 5/12/2005, you wrote:
>From: "Barb Collins"
>
>Please Help.
>I wish to process a record layout; if Field 121 (not a packed field) = 0 or 1, if field 121 = 2 or 3, I have a similar record layout with the same record length as the first.
>////////////////////////////////////////////////////////
>r=283,0 //record length
>t 121, 0,1 //if field 121 = 0 or 1 use this record layout
>l=283 //redundant
>e=1,10
>d 11,13
>etc..
>...
>more field descriptions
>...
>t 121, 2,3
>td //just in case other fields are present
>l=283 //redundant
>
>e=1,9
>d 10,13
>etc...
>more field descriptions
>...
>////////////////////////////////////////////////////////
>Can anyone tell me what I am doing wrong?
>BCollins
>
>
>
>To reply: mailto:vtech-convert.18927@...
>To start a new topic: mailto:vtech-convert@...
>To login: http://...
>To (un)subscribe: mailto: vtech-convert.list-request@...


Tom.
---------------------------------------------------------------------
Tom Burt (tom@...) Greenview Data, Inc.
Web: http://www.... PO Box 1586, Ann Arbor, MI 48106
Tel: 734-996-1300 Fax: 734-996-1308 VEDIT - Text/Data/Binary Editor