Link to home
Start Free TrialLog in
Avatar of smithmrk
smithmrkFlag for United States of America

asked on

DOS FTP - Mainframe (Data was Truncated)

This is a unique request...I have a file that I FTP to a main frame and normally if the the record length of each record in the text file is say for example 85 I would just put:

quote site lrecl = 85

This usually works and my data is NOT Trunacated...however I have a very unique file that one of our clients gets that does NOT have any CRLF in the file...it is one continuous string of data making it impossible to put an lrecl = ??

How can I get around this?

Mark
Avatar of Bill Prew
Bill Prew

Do you know how long the records are supposed to be in the file with no line breaks?  If so then we could write a small program to insert the needed line breaks.

Or, perhaps there is a set of characters that can be used to locate the start of each line?

~bp
Of course, I should add, can you change the source of this "odd" file to include line break characters?

~bp
Avatar of smithmrk

ASKER

Nethier are options!
The clients request was to have a file with NO CRLF within the file.

I will agree that it is odd...but I'm stuck with the way it needs to be.
Also each of the records within the file are different lenghts.

For example the header record is 30 and the detail record is 82.
But in the end it wraps all together when viewing in Notepad or any other text editor.

Mark
Okay, this is more of a mainframe question than a DOS FTP question.  You are dealing with a file type this is strange.  I will expand the visibility of this question to include some IBM mainframe experts, there may be a different RECFM that is needed.

It sounds like the file may be too large to upload in entirety, but on a PC< could you download the HEXDUMP utility from this site http://www.richpasco.org/utilities/hexdump.html , extract the EXE into a folder with a sample data file (unedited), and then do the following command:

hexdump.exe /keep:500 inputfile.txt > outputfile.txt

and then post the outputfile.txt here?  That might also give some clues on how to deal with this file.

~bp
I appreciate your help!

The file is small 16KB...the problem is that it is one continuous string of data with NO CRLF.
This appears to throw off the mainframe when I have no way of telling it what the Record Length is as it changes from day to day.

Mark
Is it possible for you to post a sample, or the dump I mentioned?  It is possible that there could be "special characters" that notepad ignores but could be important to finding a solution.

~bp
SOLUTION
Avatar of ThomasMcA2
ThomasMcA2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I appreciate everyones help on this!

First I'm not able to send a copy of the data due to security reasons (it has sensitive data)...but I can tell you that I created the file!

The client's requirements were to produce the file without the CRLF.
The file is in ASCII Format and I use UltraEdit program to open the file and it is one continuous string of data...trust me on this!

I need a way to FTP the file to the Main Frame without it truncating this file.

FYI...it has been this way for many years and we use to send it (FTP) to a server then the Main Frame would pick the file up from there...but now the requirment is to decommission this server and send the file directly to the Main Frame...which is why we are now getting this error.

Thanks,
Mark
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Guys!
I appreciate all the comments and sugguestion!

I will work it out with the Main Frame guys or they may have to just pick it up themselves from our server without me FTP the file at all.

Thanks,
Mark
Welcome, and good luck!

~bp