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

FTP from Mainframe


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Sat Jul 02, 2005 12:46 am
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
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
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
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

Global Moderator


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

PostPosted: Wed Jul 06, 2005 6:45 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
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
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top