Re: Reading file error on AIX 5.2, microfocus cobol 4.0 SP1



On Jul 10, 2:19 am, hamilton <hamiltonh...@xxxxxxxxx> wrote:
We have a cobol program to process EDI file , It is using following to
condition end of file .
           READ INPUT-FILE AT END
           MOVE 'Y'                TO  WS-END-OF-FILE-SW
           GO TO 150-EXIT.

For some reason ( run-time ,environment , etc... ) , a large fiel only
be read partially  , but did move 'Y' to the switch . It caused the
file onle be processed partially , but no error logs . The same file
can be re-processed sucessfully . It happens very randomly , 3 times
since last 3 months.

Help please !

On Unix a file can be opened for reading while it is still being
written. If the file is arriving by, say, ftp and your program is
running from a cron job, or otherwise cycling looking for files that
have newly arrived, then it may be trying to process the file before
it is completely written and thus reaching the 'end' at that time.

If this is the case then try doing a sleep() or somehow mark the file
and do it next cycle.

.



Relevant Pages

  • Re: Network read/write assymetry between AIX boxen
    ... I it isn't good, the configuration must change. ... In most of all cases it is better to user autonegotiation on switch an on ... When using stock ftp, ... > magnitude slower than write onto A. Similar results with wget, ...
    (comp.unix.aix)
  • RE:This is a error message i receive when I try to install any,> pack using the package_add -r
    ... > I have checked all my settings on the firewall and I am able to FTP into> the server and FTP out from all my other workstations on my network. ... I called ATT and had them check> everything and of course nothing was wrong at there end. ... The BSD box is plugged into a switch on my network. ...
    (freebsd-questions)
  • Re: Can I limit the network bandwidth for FTP (in IIS 5/6)?
    ... I'm not too sure on the switch flooding part. ... since you have the ftp log file, you should be able to summarize the total ... in / out bandwidth and compare with the bandwidth report. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: How to activate publishing service?
    ... Can you set the MS FTP Publishing to auto? ... Bernard Cheah ... actually switch on the ftp but it just won't start automatically everytime ... automatically everytime when I switched on the computer. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: I got those FTP Blues
    ... Do you have a router, hub, switch? ... > I really need to get FTP up and runningd ...
    (microsoft.public.windowsxp.general)