Operating System - OpenVMS
1752777 Members
6369 Online
108789 Solutions
New Discussion юеВ

Re: Fortran IAND equivalent command in VMS DCL

 
SOLVED
Go to solution
Thomas Ritter
Respected Contributor

Re: Fortran IAND equivalent command in VMS DCL

John, thanks for the correction.
Use f$cvui not f$cvsi


Lexicals

F$CVUI

Extracts bit fields from character string data and converts the
result to an unsigned number.

Format

F$CVUI(start-bit,number-of-bits,string)




John Kamaka
New Member

Re: Fortran IAND equivalent command in VMS DCL

Mea cupla, forgot to rename .com attachment to .txt.
Jan van den Ende
Honored Contributor

Re: Fortran IAND equivalent command in VMS DCL

My ususal quick way to see the bit settings of a number is to simple assign that value to a symbol and SHOW that symbol.
It displays in Octal and in Hex, and those translate character by character to the bit pattern.
Of course, in a procedure, the already given .AND. will do the trick just fine.
But even there, it is a lot more intuitive to .AND. with a %O or a %X value!

fwiw.

Proost.

Have one on me (if/when you locate me at the bar in Nashua Sheraton)

jpe
Don't rust yours pelled jacker to fine doll missed aches.