[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference ilbbak::ibi_focus

Title:FOCUS, from INFORMATION BUILDERS
Moderator:ZAYIUS::BROUILLETTE
Created:Thu Feb 19 1987
Last Modified:Mon May 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:615
Total number of notes:1779

553.0. "COMP-2 Valus Stored in Alpha Field" by MASALA::SACAMPBELL (Too Fast to Live, Too Young to Die !!) Fri Jun 04 1993 07:15

Hi,

	I have a field whose value can either be alpha or numeric. The master 
   file defines the field to be A12.  There is a comment in the master file as
   follows :

	 $ if the engineering data value is numeric, then it is stored as a
	 $ comp-2 number in the first 8 bytes of the value field.


	The value I am trying to get is actually an exponential number but when 
    I try to print the field I just get control characters.


	How can I get my exponential number from an A12 field.

	I've tried defining the field as a D8 but just get zero.

All suggestions appreciated.


	Thanx,

		Stuart.
T.RTitleUserPersonal
Name
DateLines
553.1DEMAND::MADDENThu Jun 17 1993 16:515
    If you were describing an RMS file with a comp-2 number field, you
    would use D8 as the actual FOCUS format.  Look at the data file to see 
    what you are describing...does it look like binary data or alpha?
    
    I'm not aware of an exponential format in FOCUS.