View previous topic :: View next topic
|
Author |
Message |
Suceender Kumar
New User
Joined: 10 Jan 2008 Posts: 29 Location: Chennai, India
|
|
|
|
Hi,
One of my client reported that the file they received doesn’t have carriage control and Line feed in each line. We use to send a file from Mainframe to PC through “OUTBOUND”. This module may be from our shop.
I tried finding X'0D' or X'0A' in the file with HEX mode on but couldn’t find any. Is there any way to find whether my file has Line feed and Carriage control?
This topic is discussed many times but still I could not find a solution for it. Could you please help me? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you transfer a file (via FTP) in TEXT format (not BINARY), the system recognizes records and appends the CR/LF as the transmission occurs. The precise characters appended to the record are determined by FTP options (and can be nothing, or LF for Unix systems, or CR/LF for Windows systems). If you are transferring in binary, then you cannot put CR/LF on the end of records since a PC binary file does not have records.
You can either change to using FTP, or you can find out the source of the OUTBOUND program (vendor or internal) and if a vendor program read the documentation to determine how to do the same thing, or if internal contact the support person/team to get it changed.
Carriage control characters would depned upon the RECFM of the original file. If the RECFM is FBA or VBA or FBM or VBM then carriage control would be the first byte of each record (although OUTBOUND could be removing them, of course). If the A or M is missing from the RECFM, then the data set does not have carriage control characters. |
|
Back to top |
|
|
Suceender Kumar
New User
Joined: 10 Jan 2008 Posts: 29 Location: Chennai, India
|
|
|
|
Thank you Robert! Very useful information. I will post a file using FTP or with A or M in the RECFM with our OUTBOUND and let you know the feedback. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What is the Operating System/Version of the system where you sent the file? If it's a Windows system, does it still have the DOS DEBUG command available? If not, what other software do you use or have available to use for file management on that system that can replace the DEBUG command? |
|
Back to top |
|
|
Suceender Kumar
New User
Joined: 10 Jan 2008 Posts: 29 Location: Chennai, India
|
|
|
|
Apologize for my late reply. PCCRLF(NO) option is present in our OUTBOUND which prevents the carriage return and Line feed character being inserted in every record. I have removed this option and it worked perfectly. Thanks every one for your reply. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thank you for posting your solution
d |
|
Back to top |
|
|
|