OASIS Scan

oasis2ascii_web_logo.gifuploading.4e448015.gif轉存失敗重新上傳取消

 

Oas2Ascii is a light weight utility that reads an OASIS file sequentially and translates it's contents one record at a time into ascii text. The most likely use for this utility is analyzing problem OASIS files.

oasis_to_ascii_flow.gifuploading.4e448015.gif轉存失敗重新上傳取消

The OASIS database is binary and is organized around the concept of records. These files are quite large. Converting an entire OASIS file into ASCII could easily produce an ASCII file many gigabytes in size. The utility enables the user to define a starting point (byte offset) for the conversion.

first_byte_of_record.gifuploading.4e448015.gif轉存失敗重新上傳取消

Note that the specified offset must point into the first byte of a record. This is because OASIS records have different lengths. The first byte of a record defines its "type" and if you know the "type" then you know the length of that record.

How do you know the offset of the first byte of each record?

Currently you must rely on some kind of a diagnostic tool that reports the byte offset. However we may also write a tool that scans an OASIS file from the beginning and creates a table of records and their byte offsets.

Compressed CBLOCKS

OASIS files often make use of cblocks. These are sections of data that have been compressed to decrease the size of the OASIS data. In order to see "inside" a CBLOCK it would have to be decompressed. Not all records in an OASIS file are compressed. So a block diagram of a file containing CBLOCKS might look like this:

cblock_diagram.gifuploading.4e448015.gif轉存失敗重新上傳取消

By default, Oas2Ascii decompresses CBLOCKs and translates it's contents in-between the CBLOCK::start-offset and CBLOCK::end-offset tags. However, if the -pass_cblocks option is specified, the CBLOCKs will not be translated or decompressed.


Oas2ASCII Command Line Syntax

 oas2ascii64.exe <input_oasis_file> <output_text_file> [options]

 where: 

     input_oasis_file : Path/name of the OASIS file to be translated 
	 
     output_text_file : Path/name of ascii file to be created.

 Options:

    -jump:<offset> : Jump to a record at the specified file offset.
	
    -limit:<number_of_records> : Process only a specified number of records 
	
    -no_details : Print only the record names and their file offsets
	
    -skip:<list_of_record_nums> : Ignore records whose number is listed in 
                                  list_of_record_nums 
	
    -only:<list_of_record_nums> : Ignore all records except the ones whose 
                                  number is listed in list_of_record_nums 
          
    -pass_cblocks : Do not translate CBLOCK data 
 

Sample Output Files

We've included two small sample output files generated from OASIS data so that you can inspect the syntax.

Sample_demo1.txt 42 KB text file

Sample_demo5_w_cblock.txt 2.9 KB text file







 


  Download          Price         Revision History


 


ARTWORK CONVERSION SOFTWARE, INC.

417 Ingalls St. Unit C, Santa Cruz, CA 95060 831.426.6163 email:  [email protected]


 

https://www.artwork.com/gdsii/oasis2ascii/oa2ascii_function.htm

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章