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
 

 

FTP from UNIX to Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP from UNIX to Mainframe
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    Post subject: Reply to: FTP from UNIX to Mainframe
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Jul 13, 2011 8:52 pm    Post subject: Reply to: FTP from UNIX to Mainframe
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: 7931
Location: Bellevue, IA

PostPosted: Wed Jul 13, 2011 10:58 pm    Post subject:
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    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 Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
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
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 Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm


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