Re: Tab delimiter
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 09:50:22 GMT
I found the following in the current LRM,
"2. The ORGANIZATION IS LINE SEQUENTIAL clause specifies that the logical
organization of the file is line sequential. The file organization is determined
at the creation of the file and cannot be changed later. The records in a line
sequential file are delimited by delimiters. Each record can contain only
printable characters and record delimiters. One record is counted as one line."
that doesn't say what HAPPENS to "non-printable" characters, just that they
aren't supported. Later it says,
"1. When a READ statement has been executed for a line sequential file, some
record data may be transferred to the internal format. Refer to "NetCOBOL User's
Guide" for the transfer rules of record data."
and that lead me to the final answer (in the User Guide),
"If there are tab characters in an input record, spaces are inserted to align
the following characters to preset tab positions. The tab positions are 1, 8,
12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, and 72. If a tab is
present at a character position beyond 72, it is read as a single space."
I have never used it, but there is a reference to "High-Speed File Processing"
that includes a statement,
"4. If a record read from a line sequential file includes a tab, the tab code is
not replaced by a blank."
--
Bill Klein
wmklein <at> ix.netcom.com
"Richard" <riplin@xxxxxxxxxxxx> wrote in message
news:1162015308.745215.256280@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Donald Tees wrote:
Fujitsu very definitely expands tabs while reading line sequential
files. I believe there is a setting that allows you to turn it off, but
the default is to expand tabs.
There is no runtime option that I have been able to find. The is
CBR_TRAILING_BLANK_RECORD to suppress the trailing blanks on writing,
but nothing that I know of for tabs on reading.
There is a TAB compiler option, but this controls what the compiler
does with tabs in the source file, and does not affect the program
running.
.
- Follow-Ups:
- Re: Tab delimiter
- From: HeyBub
- Re: Tab delimiter
- References:
- Tab delimiter
- From: hmitchell
- Re: Tab delimiter
- From: Richard
- Re: Tab delimiter
- From: HeyBub
- Re: Tab delimiter
- From: Donald Tees
- Re: Tab delimiter
- From: Richard
- Tab delimiter
- Prev by Date: Re: Tab delimiter
- Next by Date: Single Source CICS/Batch
- Previous by thread: Re: Tab delimiter
- Next by thread: Re: Tab delimiter
- Index(es):
Relevant Pages
|