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
 

 

How to transfer zip file using connect Direct

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: How to transfer zip file using connect Direct
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

Site Director


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

PostPosted: Wed Nov 25, 2009 12:09 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Nov 25, 2009 8:19 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Nov 25, 2009 10:11 pm    Post subject: Reply to: How to transfer zip file using connect Direct
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    Post subject:
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

Site Director


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

PostPosted: Thu Nov 26, 2009 9:52 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Nov 26, 2009 10:11 am    Post subject: Reply to: How to transfer zip file using connect Direct
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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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