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:  info@artwork.com


 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值