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

How to transfer zip file using connect Direct


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

New User


Joined: 29 Sep 2008
Posts: 6
Location: United Kingdom

PostPosted: Wed Nov 25, 2009 12:06 pm
Reply with quote

I am trying to transfer a zip file using C;D from mainframe to windows machine. When I am trying to open the zip file i am getting the following error "Cannot open file. It does not appear to be a valid archive ".

The proc which I am using is as follows
ABCPRO PROC SNODE=&&CDNODE -
PNODE=PNODE -
RETAIN=NO -
CLASS=10 PRTY=10 -
&INDSN = &&DSN1
SYMBOL &OUTDSN = &&DSN2

COPYSTEP COPY FROM -
(PNODE -
DSN=&INDSN -
DISP=(SHR) -
) -
TO -
(SNODE -
DSN=&OUTDSN -
DISP=RPL -
SYSOPTS="DATATYPE(BINARY)" -
)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 25, 2009 12:09 pm
Reply with quote

Hello and welcome to the forum,

Can the archive be successfully unzipped on the mainframe?

Is the file on the target system the same size as the mainframe zipped file?

Sugest you work with a very, very small test file to work out the process and then go for the real file.
Back to top
View user's profile Send private message
peyush

New User


Joined: 29 Sep 2008
Posts: 6
Location: United Kingdom

PostPosted: Wed Nov 25, 2009 12:50 pm
Reply with quote

Answer to your queries
1) When I try to transfer this file using quick 3270 in binary mode and i was able to open the file in zip fromat.
2) The file which was zipped would be having the same size once it was unzipped on the windows machine.
I tried testing it but no sucess. is there anything wrong with the procs.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 25, 2009 8:19 pm
Reply with quote

Hello,

It may help if you post the informational messages generated when the process was executed.
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 Nov 25, 2009 10:11 pm
Reply with quote

My first instinct is to go to the location of the file in question (on the Windows machine) and run a hex dump of the good file vs. the problem file (presuming, of course, that they are the same file) and try to find where there are discrepencies in the coding bits.
Back to top
View user's profile Send private message
peyush

New User


Joined: 29 Sep 2008
Posts: 6
Location: United Kingdom

PostPosted: Thu Nov 26, 2009 9:45 am
Reply with quote

Hi,

I am able to transfer the file. Thanks for taking time off to put your valuable suggestions here.

Thanks
Peyush
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 26, 2009 9:52 am
Reply with quote

Hello,

Quote:
I am able to transfer the file.
Good to hear it is working icon_smile.gif

What was changed to make it work?
Back to top
View user's profile Send private message
peyush

New User


Joined: 29 Sep 2008
Posts: 6
Location: United Kingdom

PostPosted: Thu Nov 26, 2009 9:58 am
Reply with quote

The utility which was used to zip this dataset is converting it into GZIP rather than zip. I changed the extension of destination file to .GZ and it worked. I also checked by cnverting the dataset into zip and received it with the file having extension as .zip. It worked fine as well.

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 26, 2009 10:11 am
Reply with quote

Thank you for posting the resolution icon_smile.gif

d
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top