HP3000-L Archives

March 1998, Week 4

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:
Michael Anderson <[log in to unmask]>
Reply To:
Michael Anderson <[log in to unmask]>
Date:
Wed, 25 Mar 1998 21:29:06 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
I am converting many CM progs to NM, and ran into dead-end with
FGETINFO. I have a subroutine that is called by many different
applications, it calls FGETINFO to get the records size of the FNUM
passed to it. When compiled in CM the FGETINFO call works perfect.
However, when compiled in NM it always returns zero as the record size.
Reading the Intrinsic Manual, I found that FGETINFO shouldn't  be used
in NM progs, to use FFILEINFO instead. OK, so I changed the routine to

CALL "FFILEINFO" USING FNUM \67\ RECSIZE.

Using item 67, RECSIZE is now a 32 bit integer. However, it still
returns zero as the record size. So I decided to use item 4, which would
make RECSIZE a 16 bit integer like it used to be.

CALL "FFILEINFO" USING FNUM \4\ RECSIZE.

Still returns zero as the record size.

Seems like a reasonable request, I just want the record size of a
specific FNUM. Does anyone have any clue or pointers for me?  I'm out of
idea's.

Thanks in Advance,
Michael Anderson

ATOM RSS1 RSS2