I download files to our Z/VM system in binary. The files on the windows
ftp server are in ascii.

Then I run a PIPE to deblock the file and convert to ebcidic.

Here is a snippet:
 address command "PIPE ( endchar ? )                " ,
                "<" !workfile                   " | " ,
                " deblock linend 0a               | " ,
                " strip both     0d 1             | " ,
                " xlate from 819 to 1047          | " ,
                " change x00 / /                  | " ,
                " strip trailing                  | " ,

This works fine when the records are delimited by '0d0a' or '0a'.

Last night I received a file whose records are delimited by '0d'. Things
broke because the file wasn't deblocked properly.

I am having a hard time visualizing how to cope with records delimited
by '0d' and not mess up what I already have.

Advice??

____________________________ 
Jim Hughes
603-271-5586
"Its kind of fun to do the impossible." (Walt Disney)

Reply via email to