View previous topic :: View next topic
|
Author |
Message |
jithumohan
New User
Joined: 31 Jan 2008 Posts: 30 Location: Woodland Hills, CA
|
|
|
|
Hi,
Can anyone help me to remove CRLF from a mainframe dataset while FTPing to UNIX server.
Thanks,
Jithu |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Text or binary transfer? |
|
Back to top |
|
|
jithumohan
New User
Joined: 31 Jan 2008 Posts: 30 Location: Woodland Hills, CA
|
|
|
|
Text transfer.... The text file should not contain CRLF. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Use the SBSENDEOL parameter of the LOCSITE command.
Quote: |
SBSENDEOL
Specifies which end-of-line sequence to use when ENCODING is SBCS, the data transfer type is ASCII, and data is being sent to the server. The following are possible values:
CRLF
Append both carriage return (X'0D') and line feed (X'0A') end-of-line sequences to each line of translated text. This is the default and the standard sequence defined by RFC 959. The z/OS server can receive ASCII data in this format only.
CR
Append only a carriage return (X'0D') end-of-line sequence to each line of translated text.
LF
Append only a line feed (X'0A') end-of-line sequence to each line of translated text.
NONE
Do not append an end-of-line sequence to the line of translated text.
|
|
|
Back to top |
|
|
jithumohan
New User
Joined: 31 Jan 2008 Posts: 30 Location: Woodland Hills, CA
|
|
|
|
I used the command LOCSITE SBSENDEOL NONE in the FTP card.
Now I am getting the following error.
LOCSITE SBSENDEOL NONE
SBSENDEOL parameter () is not valid. SBSENDEOL ignored.
Unrecognized option 'NONE' on locsite command.
The job is failing with return code 8. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Try QUOTE LOCSITE SBSENDEOL NONE
What version of z/OS are you running? |
|
Back to top |
|
|
jithumohan
New User
Joined: 31 Jan 2008 Posts: 30 Location: Woodland Hills, CA
|
|
|
|
Hi,
I am getting the following error.
Command:
QUOTE LOCSITE SBSENDEOL NONE
>>> LOCSITE SBSENDEOL NONE
ITE SBSENDEOL NONE': command not understood
Std Return Code = 30500, Error Code = 00002
>>> QUIT
I am using Z/OS version 01.10.00. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Robert, jithumohan, the documentation that I provided in the link shows an equal sign before the sub-parameter, i.e.:
locsite sbsendeol=none
maybe it's required? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Try this:
Code: |
//SYSFTPD DD *
SBSENDEOL NONE
/* |
added to your FTP job.
Kevin -- my manual doesn't show the equal sign, but I'm running on an older release of z/OS (1.8) so the equals sign may be a 1.9 or 1.10 addition. |
|
Back to top |
|
|
jithumohan
New User
Joined: 31 Jan 2008 Posts: 30 Location: Woodland Hills, CA
|
|
|
|
Hi Robert and Kevin,
Thanks for your help !!. It worked when I tried with
LOCSITE SBSENDEOL=NONE |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Great! Glad to hear it works! |
|
Back to top |
|
|
|