Skip to main content

[Migrated content. Thread originally posted on 05 December 2005]

Hi,

I have to remove printing sequences from a sequential file.

I have tried to read it sequentially, and write each line in a other file without the printing sequences, but I lose the "new page" information.

Page height can be variable, so I can't do something like that:
If no-record = page-height
write print-rec after page
else
write print-rec
end-if.

I have to keep the "new page" info because it's useful for the application (StremServe) who get the printing file .

Idea ?

[Migrated content. Thread originally posted on 05 December 2005]

Hi,

I have to remove printing sequences from a sequential file.

I have tried to read it sequentially, and write each line in a other file without the printing sequences, but I lose the "new page" information.

Page height can be variable, so I can't do something like that:
If no-record = page-height
write print-rec after page
else
write print-rec
end-if.

I have to keep the "new page" info because it's useful for the application (StremServe) who get the printing file .

Idea ?
If the sequential file already has the page feed control codes within it then why remove them when copying the records from one file to another?

A page throw is normally a Control-L (hex 0C) in a sequential file.

[Migrated content. Thread originally posted on 05 December 2005]

Hi,

I have to remove printing sequences from a sequential file.

I have tried to read it sequentially, and write each line in a other file without the printing sequences, but I lose the "new page" information.

Page height can be variable, so I can't do something like that:
If no-record = page-height
write print-rec after page
else
write print-rec
end-if.

I have to keep the "new page" info because it's useful for the application (StremServe) who get the printing file .

Idea ?
We had in the past the same problem. Seems so that cobol ignores the "new page sign" during reading.

Only solution we found was to create a separat print-file where no "write after page" is used and set a never used sign like "?" to mark the new page.

[Migrated content. Thread originally posted on 05 December 2005]

Hi,

I have to remove printing sequences from a sequential file.

I have tried to read it sequentially, and write each line in a other file without the printing sequences, but I lose the "new page" information.

Page height can be variable, so I can't do something like that:
If no-record = page-height
write print-rec after page
else
write print-rec
end-if.

I have to keep the "new page" info because it's useful for the application (StremServe) who get the printing file .

Idea ?
thanks for reply

I've found the solution :

I was reading the file "line sequential" instead of "binary sequential".

I'm able now to see "new page" (0C) and I can also remove printing sequence.