Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Remove CRLF from mainframe dataset while FTPing to UNIX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Remove CRLF from mainframe dataset while FTPing to UNIX
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: 7913
Location: Bellevue, IA

PostPosted: Wed Dec 08, 2010 6:58 am    Post subject:
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    Post subject:
Reply with quote

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

Moderator Team Head


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

PostPosted: Wed Dec 08, 2010 10:33 pm    Post subject: Reply to: Remove CRLF from mainframe dataset while FTPing to
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    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Wed Dec 08, 2010 11:15 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Dec 08, 2010 11:48 pm    Post subject: Reply to: Remove CRLF from mainframe dataset while FTPing to
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: 7913
Location: Bellevue, IA

PostPosted: Wed Dec 08, 2010 11:49 pm    Post subject:
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    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Thu Dec 09, 2010 12:58 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us