Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesFinding All Currency Fields


September 1997 / International Features / Euro-Conversion Scenarios / Finding All Currency Fields

Code-scanning tools, such as TechForce's Cosmos and Origin's Lida, help users trace information flow and data paths in software applications and reveal all currency fields that need to be adapted. For example, Cosmos can identify the exact context in which currency fields are used, thus qualifying those date fields that will cause problems and those that will not. This avoids unnecessary and risky repairs. Cosmos works with C, C++, and Cobol.

Origin's Lida is made up of three components: a language-logic parameter file, a pattern-definition parameter file, and a general-purpose scanning engine. The language-logic file consists of rules that define the character istics and structures of computer languages and system environments. To date, Origin has developed files for several dozen programming environments, inc luding IBM 370 assembly language, COBOL, C, C++, and Visual Basic. The company has also completed files for several fourth-generation languages (4GLs), including PowerSoft's PowerBuilder.

The pattern-definition parameter file contains rules that define the essence of the issue for which the scanning takes place. For the year-2000 problem, these would include specifications for date files and for the types of operations in which date fields would typically be involved. For Euro-conversion problems, scanning takes place for fields with names that contain, for example, "DEM" or "CCY" or that have two decimal places, or where multiplications involving currency fields are involved, such as accruals.

Origin's scanning engine, written in Perl, exploits that language's pattern-matching ability. (Origin says Perl supports t he matching and replacing of arbitrary strings better than any other general-purpose language.)

The actual scanning of code is usually a fairly rapid process once the environment is set up and source files are prepared in ASCII format. The engine allows interaction from tracing logic through code and permits the manual or automatic flagging of prospective currency-related problems. The system also calculates the amount of code in need of change to help estimate the cost and time that will be involved in the conversion.


Up to the International Features section contentsGo to previous article: Finding All Currency FieldsGo to next article: Digital ImagesSearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network