Newsletters Subscriptions Media Kit About Us Contact Search Home

mgo
OS/400 Edition
Volume 3, Number 46 -- July 18, 2003

Reader Feedback and Insights: More About Strings


Hey, Ted:

The %STR() built-in function supports C-style strings (or "null terminated strings") just as you described ["Variable-Length Character Data"]. The other variable-length string with the VARYING keyword was described perfectly, except, traditionally, this type of value is often referred to as a "Pascal string."

I'm not sure if that term is still widely used, but back when they were implementing Pascal on the System/38, that's what IBMers in Rochester called them. It seemed like the guys at Rochester were the single largest installed base for Borland International's Turbo Pascal compiler. They even had Pascal clubs.  The Turbo Pascal compiler was a key reason why IBM created a Pascal compiler for the System/38.

--Bob Cozzi


That's interesting, Bob. I've never heard the term "Pascal string" before. I learned Pascal on a DEC VAX 11/780, in 1983, and for the next two years I wrote a lot of Pascal on the VAX and the Harris H800. I don't remember about the Harris compiler, but VAX Pascal supported a "varying of character" data type. I understand that Niklaus Wirth, who invented Pascal, implemented strings as arrays of characters. It was also my understanding that the Pascal compiler writers, especially Borland, added the string type. I wrote even more Pascal using Turbo Pascal on 8088 machines, and found support for strings very helpful.

The only other language I knew of back in those days that implemented what you call Pascal strings was BASIC, in particular IBM's BASICA interpreter and its twin, GW-BASIC, so I have always called them "BASIC strings."

--Ted


Sponsored By
WORKSRIGHT SOFTWARE

600 Billion

That's how much a recent independent study estimated U.S. businesses spend on dirty data. How much of that 600 billion is spent by your company? Cleanse your dirty ZIP Codes and mailing addresses with our software and save big bucks.

WorksRight Software, Inc.
Phone: 601-856-8337
E-mail: software@worksright.com
Web site: www.worksright.com


THIS ISSUE
SPONSORED BY:

WorksRight Software
Affirmative Computer


BACK ISSUES

TABLE OF
CONTENTS

Use Workstation Customizing Objects to Control Printing

Extract Reports from Disk Files

Reader Feedback and Insights: More About Strings


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris
Shannon O'Donnell

Managing Editor
Shannon Pastore

Publisher and
Advertising Director:

Jenny Thomas

Advertising Sales Representative
Kim Reed

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.