HP3000-L Archives

April 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 15 Apr 1998 13:23:42 -0700
Content-Type:
text/plain
Parts/Attachments:
cc:Mail (31 lines)
how about

        call intrinsic timer using ws-time-1
        call intrinsic fwrite ....
        if c-c = 0 then
           call intrinsic timer using ws-time2
           if( ( ws-time2 - ws-time-1 ) >= ws-time-out ) then
              time out
           end-if
        end-if



Michael Abootorab







Greg writes:

Having tried to keep my COBOL as portable as possible, and having never
really learned to use intrinsic, I have now been asked to CALL
INTRINSICs, and have a newbie question (not that other questions
weren't). I want something that will time out and return success or
failure, much like an FREAD will. I am looking at FWRITE and IOWAIT, and
possibly FDEVICECONTROL, but feel rather lost. Any help, off list or on,
would be welcome.

ATOM RSS1 RSS2