Peopletools 8.4: SQR for Peoplesoft Language Reference Peopletools 8.4: SQR for Peoplesoft Language Reference
Total Page:16
File Type:pdf, Size:1020Kb
PeopleTools 8.4: SQR for PeopleSoft Language Reference PeopleTools 8.4: SQR for PeopleSoft Language Reference SKU Tr84SQL-B 0302 PeopleBooks Contributors: Teams from PeopleSoft Product Documentation and Development. Copyright © 2002 PeopleSoft, Inc. All rights reserved. Printed in the United States. All material contained in this documentation is proprietary and confidential to PeopleSoft, Inc. ("PeopleSoft"), protected by copyright laws and subject to the nondisclosure provisions of the applicable PeopleSoft agreement. No part of this documentation may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, including, but not limited to, electronic, graphic, mechanical, photocopying, recording, or otherwise without the prior written permission of PeopleSoft. This documentation is subject to change without notice, and PeopleSoft does not warrant that the material contained in this documentation is free of errors. Any errors found in this document should be reported to PeopleSoft in writing. The copyrighted software that accompanies this document is licensed for use only in strict accordance with the applicable license agreement which should be read carefully as it governs the terms of use of the software and this document, including the disclosure thereof. PeopleSoft, the PeopleSoft logo, PeopleTools, PS/nVision, PeopleCode, PeopleBooks, PeopleTalk, and Vantive are registered trademarks, and "People power the internet." and Pure Internet Architecture are trademarks of PeopleSoft, Inc. All other company and product names may be trademarks of their respective owners. The information contained herein is subject to change without notice. Contents SQR for PeopleSoft Language Reference Preface About This PeopleBook..................................................................................................... ix Before You Begin.............................................................................................................. ix PeopleSoft Application Fundamentals ............................................................................... x Related Documentation ...................................................................................................... x Hard-copy Documentation.......................................................................................... xi PeopleBooks Standard Field Definitions........................................................................... xi Typographical Conventions and Visual Cues.................................................................. xiii Page and Panel Introductory Table.................................................................................. xiv Comments and Suggestions...............................................................................................xv Chapter 1 Understanding SQR for PeopleSoft Understanding SQR for PeopleSoft Tools....................................................................... 1-1 Understanding SQR......................................................................................................... 1-1 SQR Program Structure ............................................................................................ 1-2 SQR Syntax Conventions.......................................................................................... 1-3 Rules for Entering SQR Commands ......................................................................... 1-3 Understanding the SQR Command Line ......................................................................... 1-4 SQR Command-Line Arguments.............................................................................. 1-4 SQR Command-Line Flags....................................................................................... 1-5 Understanding SQR Data Elements .............................................................................. 1-13 Columns .................................................................................................................. 1-13 Variables ................................................................................................................. 1-14 Literals .................................................................................................................... 1-18 Viewing Sample Reports............................................................................................... 1-18 Chapter 2 SQR Command Reference ADD.......................................................................................................................... 2-2 ALTER-COLOR-MAP............................................................................................. 2-2 ALTER-CONNECTION .......................................................................................... 2-4 ALTER-LOCALE..................................................................................................... 2-6 ALTER-PRINTER.................................................................................................. 2-13 P EOPLES OFT P ROPRIETARY AND C ONFIDENTIAL C ONTENTS iii SQR FOR P EOPLES OFT L ANGUAGE R EFERENCE ALTER-REPORT ...................................................................................................2-15 ARRAY-ADD, ARRAY-DIVIDE, ARRAY-MULTIPLY, ARRAY-SUBTRACT.............................................................................................2-16 ASK.........................................................................................................................2-19 BEGIN-DOCUMENT.............................................................................................2-20 BEGIN-EXECUTE.................................................................................................2-21 BEGIN-FOOTING..................................................................................................2-24 BEGIN-HEADING .................................................................................................2-25 BEGIN-PROCEDURE............................................................................................2-27 BEGIN-PROGRAM................................................................................................2-30 BEGIN-SELECT.....................................................................................................2-30 BEGIN-SETUP.......................................................................................................2-34 BEGIN-SQL............................................................................................................2-35 BREAK ...................................................................................................................2-40 CALL, CALL SYSTEM ........................................................................................2-40 CLEAR-ARRAY ....................................................................................................2-46 CLOSE ....................................................................................................................2-46 COLUMNS .............................................................................................................2-47 COMMIT ................................................................................................................2-48 CONCAT ................................................................................................................2-49 CONNECT..............................................................................................................2-50 CREATE-ARRAY..................................................................................................2-51 CREATE-COLOR-PALETTE................................................................................2-54 #DEBUG.................................................................................................................2-55 DECLARE-CHART................................................................................................2-56 DECLARE-COLOR-MAP......................................................................................2-65 DECLARE-CONNECTION ...................................................................................2-66 DECLARE-IMAGE................................................................................................2-68 DECLARE-LAYOUT.............................................................................................2-69 DECLARE-PRINTER ............................................................................................2-76 DECLARE-PROCEDURE .....................................................................................2-83 DECLARE-REPORT..............................................................................................2-85 DECLARE-TOC .....................................................................................................2-87 DECLARE-VARIABLE.........................................................................................2-89 #DEFINE.................................................................................................................2-92 DISPLAY................................................................................................................2-93 DIVIDE...................................................................................................................2-97 DO...........................................................................................................................2-98 #ELSE .....................................................................................................................2-99