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: 4649
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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