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
 

 

Issue with file transfer from mainframes>windows>mainf

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
kkxlnc

New User


Joined: 12 Jun 2005
Posts: 44
Location: Boston

PostPosted: Fri Mar 09, 2012 3:05 am    Post subject: Issue with file transfer from mainframes>windows>mainf
Reply with quote

We have an issue with a ftp process. We are zipping a file on mainframes (.zip using pkzip, the EBCDIC to ASCII conversion is being handled). This file is being sent to a windows based server using SFTP process. Another SFTP process send this file over to the vendor. The vendor is unzipping the file at his end.
eg:
say the record length on originating mainframes is FIXED 1000 bytes.
the vendor after unzipping the file is getting a variable blocked file and hence unable to process it as expected

The data itself is perfectly readable, but the record length is distorted.

Please suggest how to handle this data transmission?
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1018
Location: Oostende, Belgium

PostPosted: Fri Mar 09, 2012 3:48 am    Post subject:
Reply with quote

z/OS XMIT+AMATERSE (or ADRDSSU) -> binary ftp -> PC -> binary ftp -> z/OS AMATERSE+RECEIVE (or ADRDSSU)

ZIP on z/OS when you have real tools? Gimme a break!
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Mar 09, 2012 3:55 am    Post subject: Reply to: Issue with file transfer from mainframes>window
Reply with quote

If you zip the file on the mainframe, transfer it to somewhere in the middle, from there to the destination, then unzip it, then it should arrive as you sent it (it has gone all the way as "binary", otherwise it would be a garbled mess at the other end).

Most likely the "vendor" is doing something, wittingly or otherwise.

I'm guessing you can't visit the vendor? Ask them to send the zip file back to you without doing anything to it, along with a zipped file that the vendor "received". So, you get two zips back. One should be identical to what you have sent out. The other should give you some clues about what the vendor has done.

Is the "vendor" on a mainframe (you mention they are getting "variable blocked"?
Back to top
View user's profile Send private message
kkxlnc

New User


Joined: 12 Jun 2005
Posts: 44
Location: Boston

PostPosted: Fri Mar 09, 2012 4:33 am    Post subject: Reply to: Issue with file transfer from mainframes>window
Reply with quote

Yes, the vendor is on a mainframe. We just suggested him to give a LRECL (not sure what he put on his unzip JCL) similar to ours on the output file. Waiting for his response to see if that works for him. Else, your suggestion is good. We will ask him to send that zip file (that he received) back to us and we will check if there is an issue.

Thank you for the help.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Mar 09, 2012 7:05 pm    Post subject:
Reply with quote

If they need a file with an LRECL, why are you translating to ASCII? The PKZIP program is probably assuming you will be using the file on a system that uses cr/lf to show end of record. It will truncate the lines for you on purpose.

Since you say they are getting RECFM=V, then they are probably opening it on some form of mainframe file system (maybe a real mainframe, maybe an emulator like Microfocus)

Please tell us the type of system on which they are using your file.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Mar 09, 2012 10:07 pm    Post subject: Reply to: Issue with file transfer from mainframes>window
Reply with quote

Good point from Ed.

I was assuming you'd tried "unzipping" your own file as part of the testing?

Also, if mainframe-mainframe, as Prino has pointed out, why use pkzip? It is just a lump of data passing through the Windows box, so no need for pkzip if data content not needed on PC?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1755
Location: Bloomington, IL

PostPosted: Fri Mar 09, 2012 11:11 pm    Post subject: Re: Reply to: Issue with file transfer from mainframes>wi
Reply with quote

Bill Woodger wrote:
Also, if mainframe-mainframe, as Prino has pointed out, why use pkzip? It is just a lump of data passing through the Windows box, so no need for pkzip if data content not needed on PC?

If the data set has a lot of whitespace in it, there may be non-trivial savings in time and cost in transmitting the compressed data, even given the need to compress it and then decompress it. There are better choices than PKZIP for data compression on the mainframe, but the fact that there's a Wintel box in the midst of the process suggests that the design involved a toy computer analyst who'd never heard of another way to do things.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Fri Mar 09, 2012 11:41 pm    Post subject:
Reply with quote

Akatsukami wrote:
suggests that the design involved a toy computer analyst who'd never heard of another way to do things.


Straight to the heart of the matter!
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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