IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Remove CRLF from mainframe dataset while FTPing to UNIX


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jithumohan

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Wed Dec 08, 2010 6:21 am
Reply with quote

Hi,

Can anyone help me to remove CRLF from a mainframe dataset while FTPing to UNIX server.

Thanks,
Jithu
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 08, 2010 6:58 am
Reply with quote

Text or binary transfer?
Back to top
View user's profile Send private message
jithumohan

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Wed Dec 08, 2010 10:29 pm
Reply with quote

Text transfer.... The text file should not contain CRLF.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Dec 08, 2010 10:33 pm
Reply with quote

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
View user's profile Send private message
jithumohan

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Wed Dec 08, 2010 10:50 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 08, 2010 11:15 pm
Reply with quote

Try QUOTE LOCSITE SBSENDEOL NONE

What version of z/OS are you running?
Back to top
View user's profile Send private message
jithumohan

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Wed Dec 08, 2010 11:29 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Dec 08, 2010 11:48 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 08, 2010 11:49 pm
Reply with quote

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
View user's profile Send private message
jithumohan

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Thu Dec 09, 2010 12:50 am
Reply with quote

Hi Robert and Kevin,

Thanks for your help !!. It worked when I tried with

LOCSITE SBSENDEOL=NONE
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Dec 09, 2010 12:58 am
Reply with quote

Great! Glad to hear it works!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top