Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@quark.zko.dec.com (Steve Lionel)
Subject: Re: Help Replace USEROPEN Macro w/ Fortran
Date: 1996/09/03	[thread overview]
Message-ID: <50hfr7$8ua@nntpd.lkg.dec.com> (raw)
In-Reply-To: 1996Aug30.122330@stsci.edu



In article <1996Aug30.122330@stsci.edu>, speck@stsci.edu writes:
|>I'm trying to replace an old macro USEROPEN routine with a Fortran routine.
|>
|>And here is the Fortran (without comments) with which I'm trying to replace it:

..
|>	    ! set the UFO and CBT bits 
|>	    fab.fab$l_fop = fab$v_ufo .OR. fab$v_cbt

Should be:
	    fab.fab$l_fop = fab.fab$l_fop .OR. fab$m_ufo .OR. fab$m_cbt
|>
|>            ! set the UPI bit
|>            fab.fab$b_shr = fab$v_upi

Should be:
	    fab.fab$b_shr = fab.fab$b_shr .OR. fab$m_upi

|>
|>	    ! open the file, return on error
|>	    open_old_chan = sys$open(fab)
|>
|>	    if (open_old_chan .eq. 0) then

Should be:
	    if (.not. open_old_chan) then

Try these corrections and see if things improve.  The fab$v_ symbols are
bit offset numbers, not masks.  Alternatively, you could use the IBSET
intrinsic.
-- 

Steve Lionel                      mailto:lionel@quark.zko.dec.com
Fortran Development               http://www.digital.com/info/slionel.html
Digital Equipment Corporation     
110 Spit Brook Road, ZKO2-3/N30    
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on Digital Fortran, see http://www.digital.com/info/hpc/fortran/



      reply	other threads:[~1996-09-03  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-30  4:00 Help Replace USEROPEN Macro w/ Fortran speck
1996-09-03  4:00 ` Steve Lionel [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox