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 Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Fri Jul 01, 2005 11:00 pm    Post subject: FTP from Mainframe
Reply with quote

Dear All, Good Morning,

I have downloaded VB format dataset from Mainframe to PC. Then I have uploaded the file from PC to Mainframe as a new dataset. While comparing the new dataset with original dataset, the data is not matching. If the dataset is FB format it's matching.

Can anyone help me how to solve this FTP issue with VB format datasets?

FYI, I did this ftp with Binary mode.

Thanks,
Prem
icon_smile.gif
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: Sat Jul 02, 2005 12:46 am    Post subject: Re: FTP from Mainframe
Reply with quote

I've been looking at this issue from a bunch of different angles, and I can't see a solution that doesn't compromise the integrity of the data. Why you wish to do this process, I don't know, but here is what I see to be the major issues:

As you know, the VB dataset format uses the RDW (Record Descriptor Word) in the first 4 bytes to indicate the length of the record. You can remove the RDW (which is the default) or keep in with the data (LOCSITE RDW), but I can't see where it would help any on a binary transfer. Since VB records don't contain trailing blanks, then specifying LOCSITE TRAIL to retain any trailing blanks isn't going to help either. When you specify a binary transfer, then you lose the inter-record seperator indicators (which on an ASCII transfer would convert the END-OF-RECORD (hex '15') to a Carriage-Return/Line Feed (hex '0D0A')). So, in essence, you create a continuous stream of bits without any indicators as to how to properly re-assemble them after the upload.

Now, if you were to just transfer the data as ASCII without the RDW or trailing blanks, it would probably work.
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Sat Jul 02, 2005 1:29 am    Post subject: Re: FTP from Mainframe
Reply with quote

I tried in the TEXT - TO ASCII format and both the files were same. It may be worth a try.
Back to top
View user's profile Send private message
Virgon
Warnings : 1

New User


Joined: 17 Jun 2005
Posts: 14
Location: Chennai

PostPosted: Sat Jul 02, 2005 3:01 pm    Post subject: Re: FTP from Mainframe
Reply with quote

Hi ,
One more option which I tried and successful was with PKZIP.

1. PKZIP the file and do a PUT FTP
2. Do a GET FTP and UNZIP

Thanks,
Virgon
Back to top
View user's profile Send private message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Wed Jul 06, 2005 5:55 am    Post subject: Re: FTP from Mainframe
Reply with quote

Hi All,

Sorry for this late reply.

Hi die7nadal,

I tried with text mode, still the data's are not matching.

Hi Virgon,

First I want to download the dataset from Mainframe.

You are asking me to compress the file using pkzip.

Where you have the PKZIP software? in Mainframe or PC?

Thanks & Regards,
Prem
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 06, 2005 6:45 pm    Post subject: Re: FTP from Mainframe
Reply with quote

I'm pretty sure that Virgon meant PKZIP/MVS on the mainframe.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm


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