Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8187
Location: East Dubuque, Illinois, USA

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: 4650
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: 8187
Location: East Dubuque, Illinois, USA

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: 4650
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: 8187
Location: East Dubuque, Illinois, USA

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: 8187
Location: East Dubuque, Illinois, USA

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
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts NDM 300 files from mainframe to linux shreya19 All Other Mainframe Topics 2 Thu Oct 26, 2017 11:40 am
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us