Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Lourens Absent Member.
Absent Member.
3401 views

PKZIP

We use PKZIP to programmatically make backups from within our application.

I have a problem with only one file that gives an error "Warning! Could not open file VPMS2006.pay".

I thought it might be that the file is in an open state but that was not the case.

The file select is :

SELECT MIS2FL
ASSIGN TO RANDOM MIS2NAME
WITH ENCRYPTION COMPRESSION
COMPRESSION CONTROL VALUE 70
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
LOCK MODE IS AUTOMATIC
FILE STATUS IS DSTAT
RECORD KEY IS MIS2KEY-NEW.

Any ideas on what could be causing this?

Thanks,

Lourens

 

Tags (3)
0 Likes
9 Replies
rstoll Absent Member.
Absent Member.

RE: PKZIP

We used to use pkzip but had issues when switched to win7   We now call a batch file which runs the command line version of 7zip for making backups.  

We don't use the compression control or encryption compression but I have a question.

Is the MIS2NAME file the backup of the original or is it the original file that is to be backed up?

You say that the file is not open, so that makes me think its the original, but just checking.\

Is it an Acucobol warning message or a warning message generated from within your program.  Is it possible to provide the extended file status (four character file status)

0 Likes
Lourens Absent Member.
Absent Member.

RE: PKZIP

Hi, MIS2NAME  is the original file. The warning message is actually generated by pkzip.

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: PKZIP

Is VPMS2006.pay the name of the file assigned to MIS2NAME? Why would PKZIP need to actually open a file, a zip is a list of files and PKZIP makes an archive? Are your files Vision 3 file (single format file)?

0 Likes
Lourens Absent Member.
Absent Member.

RE: PKZIP

Yes, VPMS2006.pay is the name of the file assigned to MIS2NAME. We are using vision version 5 files, so there is also a  VPMS2006.vix file which gives the same problem. All the other similar indexed files works fine except this one. I agree about the open  but that is a  pkzip message and most likely part of their process that they use to archive.

0 Likes
Lourens Absent Member.
Absent Member.

RE: PKZIP

It might also be helpful to add that if I exit the system completely with a stop run and I go into this option again, the archiving process completes successfully.

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: PKZIP

Justing guessing, it appears that the file is still being held by the runtime until the stop run. Are you using transaction management, what type of locking are you using on the file, and is the file closed before the runtime stop run statement.

0 Likes
Lourens Absent Member.
Absent Member.

RE: PKZIP

Not using transaction management. I have tried to close the file before calling the archiving process to make sure that it is in fact closed, but I get a status "42" - file not open on the close. The file appears to be closed, but when I do a trace, there is a warning that the file is not closed just before the stop run. This tells me that my test with the close before the archiving, wrongly indicates that the file is not open. This does not make sense.    

0 Likes
dalekreitzer
Visitor.

RE: PKZIP

This is an OS level file lock, not an Acu caused lock.  Research Opportunistic Locking.  

Dale

0 Likes
DougP Outstanding Contributor.
Outstanding Contributor.

RE: PKZIP

I also suspect Windows Opportunistic Locking may be involved.  Capturing a Process Monitor log while exercising this part of your application will likely help you sort it out.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.