[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI IFS file lock



Thomas,

I don't agree with you.  This is clearly a bug in HTTPCMDR4.  I've 
already released a beta copy that fixes the bug...  (Which I saw pretty 
quickly when looking at the code)

Why are you still discussing this as if the cause of the error is unknown??

-SK



On 2/17/2012 2:22 PM, Thomas Raddatz wrote:
> So far the only option to make HTTPAPI keep the stream file open is to
> let the program crash. When the program crashes due to an unexpected
> error after having opened the file, procedure cleanup() is not being
> called. Hence the stream file stays open.
>
> I changed the attached version of HTTPCMDR4 to register an error handler
> that calls cleanup() for unexpected errors. Maybe it is worth to get
> into the official version of HTTPAPI.
>
> Thomas.
>
> Am 17.02.2012 18:07, schrieb Stone, Joel:
>> Help!!
>>
>>
>> I am using the following HTTPAPI and it works perfectly.
>>
>>
>>
>> HTTPAPI URL(&URL) DOWNLOAD(&TOIFSFILE)
>>
>>
>> The DOWNLOAD file appears intact in windows explorer and in System I
>> navigator.
>>
>>
>> However, my next command fails:
>>
>>
>> For some reason (and randomly) the DOWNLOADed file is in use and
>> CPYFRMSTMF command is NOT able to copy it.
>>
>>
>> CPYFRMSTMF FROMSTMF('/gig/incoming/Official 02-17-12
>> H10M43S00.xml')
>>
>> TOMBR('/QSYS.LIB/QTEMP.LIB/ifsinfo.FILE/ifsinfo.MBR')
>> MBROPT(*REPLACE) ENDLINFMT(*FIXED) TABEXPN(*NO)
>>
>>
>> Object in use. Object is /gig/incoming/Official 02-17-12
>> H10M43S00.xml.
>>
>>
>> Stream file not copied.
>>
>>
>> CPFA095 received
>>
>>
>> Most times I receive the "Object in use" message, but other times the
>> CPYFRMSTMF works just fine.
>>
>>
>> If it fails (with the "Object in use"), it appears to NEVER be
>> available until I log off - which seems to release the lock.
>>
>>
>> 1) Is there a command like WRKOBJLCK to view an IFS file lock?
>>
>> 2) How can I release this nasty lock so a CPYFRMSTMF can function
>> properly?
>>
>>
>> Thanks so much in advance!!
>>
>>
>>
>>
>> [cid:image001.png@01CCED62.EC347320]
>>
>> ______________________________________________________________________
>> This outbound email has been scanned for all viruses by the MessageLabs
>> Skyscan service.
>> For more information please visit http://www.symanteccloud.com
>> ______________________________________________________________________
>>
>>
>>
>>
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list. To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------