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: 8152
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: 8152
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: 8152
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: 8152
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 Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

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