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

FTP from UNIX to Mainframe


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

New User


Joined: 06 May 2010
Posts: 17
Location: INDIA

PostPosted: Wed Jul 13, 2011 6:46 pm
Reply with quote

Hi All,

There are some new line characters in the file on UNIX Box. While trying to pull the data to MF by using a JCL the New line characters are dropped, which I want to avaoid.

html location
Useid
pwd
LOCSITE lrecl=0 blksize=4096 recfm=u
LOCSITE cyl primary=100 secondary=20
binary
get VAADC061011.TXT 'NI00.LTA00.UFMT.VA2.TWE0211.UNIX1'
quit

Is there any command/way I can use to retain these characters?

Data on UNIX and MF:
==============

Data on UNIX:
-----------------
000001 William and Mary Traffic Citation Appeal....
000002 BEGIN...DROP2.65115

MF AFTRE ftp:
----------------
000001 William and Mary Traffic Citation Appeal....BEGIN...DROP2.65115
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jul 13, 2011 6:48 pm
Reply with quote

What does this have to do with COBOL?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 13, 2011 6:52 pm
Reply with quote

TS did not bother to search the forum,
and does not realize there are different forums within this website,
even though he has 15 posts.

do a search on Robert_Sample's posts in the JCL forum.
either he has provided links to FTP documentation or has spelled out the syntax for what you want.
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 Jul 13, 2011 8:52 pm
Reply with quote

The mode specified is BINARY, so the data will not be translated in any way. Both files should be identical in every way. We'd need some better evidence to show that they're not the same after the transfer.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Jul 13, 2011 10:58 pm
Reply with quote

If you are doing a binary FTP, one of these is completely wrong since the native code page on Unix is ASCII and on the mainframe it is EBCDIC:
Quote:
Data on UNIX:
-----------------
000001 William and Mary Traffic Citation Appeal....
000002 BEGIN...DROP2.65115

MF AFTRE ftp:
----------------
000001 William and Mary Traffic Citation Appeal....BEGIN...DROP2.65115
What you posted looks like a TEXT, not binary, transfer with the SBSENDEOL flag set wrong.
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 4
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
Search our Forums:

Back to Top