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

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 How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 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
No new posts Allianz Technology - Mainframe 3+ Yea... sooraj184 Mainframe Jobs 0 Mon Jul 31, 2017 2:17 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm

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