The following are worldwide trademarks of Informix Software, Inc., or its subsidiaries, registered in ... Adobe Systems
INFORMIX-SQL
Reference
INFORMIX-SQL Version 6.0 April 1994 Part No. 000-7607
Published by INFORMIX® Press Informix Software, Inc. 4100 Bohannon Drive Menlo Park, CA 94025 The following are worldwide trademarks of Informix Software, Inc., or its subsidiaries, registered in the United States of America as indicated by an “®,” and in numerous other countries worldwide: INFORMIX® and C-ISAM®.
The following are worldwide trademarks of the indicated owners or their subsidiaries, registered in the United States of America as indicated by an “®,” and in numerous other countries worldwide: X/OpenCompany Ltd.: UNIX®; X/Open® Adobe Systems Incorporated: Post Script® Some of the products or services mentioned in this document are provided by companies other than Informix. These products or services are identified by the trademark or servicemark of the appropriate company. If you have a question about one of those products or services, please call the company in question directly. ACKNOWLEDGMENTS The following people contributed to this version of INFORMIX-SQL Reference: Documentation Team:
Adam Barnett, Diana Boyd, Lisa Braz, Mitch Gordon, Liz Knittel
Technical Contributors:
Radovan Binar, Jon Dietch, Chris Horak, Jonathan Leffler, Jonathan Rende, Kevin Rowney, Elham Sohrab, Patrick Stephens
Copyright © 1981-1994 by Informix Software, Inc. All rights reserved. No part of this work covered by the copyright hereon may be reproduced or used in any form or by any means—graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage and retrieval systems—without permission of the publisher. RESTRICTED RIGHTS LEGEND Software and accompanying materials acquired with United States Federal Government funds or intended for use within or for any United States federal agency are provided with “Restricted Rights” as defined in DFARS 252.227-7013(c)(1)(ii) or FAR 52.227-19.
ii
Preface The INFORMIX-SQL Reference and its companion volume, the INFORMIX-SQL User Guide, are your primary sources for learning to make the best use of the INFORMIX-SQL (I-SQL) relational ; f003 = customer.lname, color=red where f003 not like "Quinn"; f004 = customer.zipcode color=red blink where f004 > 10000;
The FORMBUILD Transaction Form Generator
2-31
COLOR
NLS
The evaluation of MATCHES, LIKE, and BETWEEN expressions containing character arguments is dependent on the LANG and LC_COLLATE settings in an NLS , upshift, autonext; f007 = customer.zipcode, autonext; f008 = customer.phone; f009 = displayonly type char; f010 = displayonly type char; instructions after editadd editupdate of phone nextfield = f001 after editadd editupdate of customer call stamptime() end
The function stamptime, called by the form specification file when the entry clerk presses ESCAPE to complete the transaction, follows. In addition to the special function pf_putval defined earlier in this section, stamptime uses the system functions time, localtime, and getlogin. The login name of the order taker is obtained from the string function getlogin and is displayed in the screen field Entry Clerk.
6-38 C Functions in ACE and PERFORM
Examples
The system time is decomposed into hours and minutes and then reconstructed into a string variable displayed in the screen field Time Entered. PERFORM then writes the record to the customer table, using the DAILY ORDER REPORT" print column 10, "========================================================" skip 1 line print column 15, "FROM: ", begin_date using "mm/dd/yy", column 35, "TO: ", end_date using "mm/dd/yy" print column 15, "Report run date: ", today using "mmm dd, yyyy" skip 2 lines print column 2, "ORDER DATE", column 15, "COMPANY", column 35, "NAME", column 57, "NUMBER", column 65, "AMOUNT"
A-44
The Demonstration ======================================================" skip 2 lines print "Total Amount of orders: ", total of total_price using "$$$$,$$$,$$$.&&" page trailer print column 28, pageno using "page