From sqr-users-bounces@sqrug.org Thu Apr 01 06:20:23 2004 Subject: RE: [sqr-users] SQR211A1 Package was not found Date: Thu, 1 Apr 2004 11:08:28 +0530 From: "Narayanaswamy Murugesan (Cognizant)" This is a multi-part message in MIME format... ------=_NextPartTM-000-b6624062-61b1-4772-9e29-c9fe1657cdf5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks. This is very good solution. -----Original Message----- From: sqr-users-bounces+nmuruges=3Dchn.cognizant.com@sqrug.org [mailto:sqr-users-bounces+nmuruges=3Dchn.cognizant.com@sqrug.org]On Behalf Of Peter Burton Sent: Wednesday, March 31, 2004 9:23 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] SQR211A1 Package was not found Murugesan, Have somebody with DBA privileges on the database in question run an SQR program against the database in order for SQR to create the proper packages for it to run. Or the DBA can issue the following command if they do not want to run an SQR program: db2 connect to {database} [user {username} using {password}] db2 bind $SQRDIR/dbcalls.bnd grant public sqlwarn no collection sqr db2 terminate After this is done anybody can run a report against that database. Peter > _____________________________________________=20 > From: > sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org@HYPERION On Beh= alf > Of "Narayanaswamy Murugesan (Cognizant)" > Sent: Wednesday, March 31, 2004 1:10 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] SQR211A1 Package was not found >=20 > Hi, >=20 > I tried to run an SQR program which has a embedded sql in it.I have used > DB2 UDB 8.1.0 Database.It throws following error >=20 > (SQR 5528) DB2 SQL PREPARE/DECLARE error -805 in cursor 20: > SQL0805N Package "SQR.SQR211A1 0X4941734345644B52" was not found. > SQLSTATE=3D51002 >=20 > Can anyone tell me that what could cause this issue ? >=20 > Thanks and Regards > Murugesh > - InterScan_Disclaimer.txt << File: InterScan_Disclaimer.txt >>=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > =20 >=20 ------=_NextPartTM-000-b6624062-61b1-4772-9e29-c9fe1657cdf5 Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-b6624062-61b1-4772-9e29-c9fe1657cdf5 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPartTM-000-b6624062-61b1-4772-9e29-c9fe1657cdf5-- From sqr-users-bounces@sqrug.org Thu Apr 01 06:26:25 2004 Date: Thu, 1 Apr 2004 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 01 15:13:22 2004 Date: Thu, 1 Apr 2004 11:58:50 -0700 From: "Jon Alsager" Subject: [sqr-users] SQR error 7715 Hello gurus! =20 We have a couple of sqr's which are outputting html (-printer:eh), but are now giving us the following error: =20 (SQR 7715) Failed to start the Java Virtual Machine (JVM) Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. =20 We are running version 8.0.2 on HP-Unix 11.22, Oracle 9.2.0.4.0 =20 Thanks for any direction anyone can provide! =20 Jon _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 01 16:09:41 2004 Subject: RE: [sqr-users] SQR error 7715 Date: Thu, 1 Apr 2004 14:18:46 -0600 From: "Knapp, Richard" Check the classpath first. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org]On Behalf Of Jon Alsager Sent: Thursday, April 01, 2004 12:59 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR error 7715 Hello gurus! =20 We have a couple of sqr's which are outputting html (-printer:eh), but are now giving us the following error: =20 (SQR 7715) Failed to start the Java Virtual Machine (JVM) Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. =20 We are running version 8.0.2 on HP-Unix 11.22, Oracle 9.2.0.4.0 =20 Thanks for any direction anyone can provide! =20 Jon _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 01 16:12:22 2004 From: "the dragon" Subject: RE: [sqr-users] SQR error 7715 Date: Thu, 01 Apr 2004 14:27:07 -0600 Hey, good luck with that. 0) make sure your path environment variables are set up correctly in the config files/.profiles if executing from the command line. 1) make certain that you have enough disk space available for log files. 2) If you have an environment where it works, find your jre directory and do a ls -alr > blob1.lis for the good env and the bad env ls -alr > blob1.lis - and then run a compare on the output in unix using the diff command, or import the output into excell, or use examdiff on a pc against the files. In either case, you may need to sort the output files first so they'll match up. That will tell you if you're missing any files. 3) Have your sys admin watch the system resources while you try to run those sqrs. hope these ideas help. peace clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello gurus! We have a couple of sqr's which are outputting html (-printer:eh), but are now giving us the following error: (SQR 7715) Failed to start the Java Virtual Machine (JVM) Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. We are running version 8.0.2 on HP-Unix 11.22, Oracle 9.2.0.4.0 Thanks for any direction anyone can provide! Jon _________________________________________________________________ Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 months! http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 00:12:49 2004 Date: Thu, 1 Apr 2004 15:55:44 -0800 (PST) From: Clara Carter Subject: [sqr-users] Medical or HMO using SQR? Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 09:00:53 2004 Date: Fri, 2 Apr 2004 10:01:11 +0200 From: "Martin, Annerose" Subject: [sqr-users] to buy SQR independent of a Peoplesoft-Installation Hello, =20 do you know, whether we can install SQR independent of a Peoplesoft-Install= ation and whom I can contact for getting more informations how much a licence is. =20 Is there any trial-version of SQR ? =20 thank you very much for your answer ! =20 kind regards =20 Annerose Martin =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 09:04:22 2004 Date: Fri, 2 Apr 2004 13:46:44 +0530 From: "Deva Anbu Daniel" Subject: [sqr-users] Dynamic SQL problem Begin-SQL INSERT INTO PS_WORK_TABLE SELECT NAME,SEX,BIRTHDATE,[$Cur_Date] FROM PS_PERSONAL_DATE WHERE ........ =20 End-SQL =20 instead of [$Cur_Date] I tried=20 =20 $temp =3D ''''||$Cur_Date||'''' and used $temp instead of $Cur_Date. =20 It always give me Invalid Column error. =20 Is this possible in SQR? =20 thanks, daniel =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 09:07:38 2004 From: "the dragon" Subject: RE: [sqr-users] Medical or HMO using SQR? Date: Fri, 02 Apr 2004 04:33:40 -0600 Clara, I am not certain what the business focus has to do with sqr. It's a language that can be used with any relational database, regardless of the application or the focus of the business. But I know of at least 2 hospitals which use both the HRMS and FIN side of PeopleSoft and use SQR. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 09:10:43 2004 Subject: Re: [sqr-users] Medical or HMO using SQR? From: "Richard C Spoth" Date: Fri, 2 Apr 2004 08:26:19 -0500 Yes. We use if as part of PeopleSoft and a have a full stand alone version to do home grown data loads and reports. Rick Clara Carter Sent by: sqr-users-bounces+spoth.richard=healthnow.org@sqrug.org 04/01/2004 06:55 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: sqr-users@sqrug.org cc: Subject: [sqr-users] Medical or HMO using SQR? Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 09:13:51 2004 Subject: RE: [sqr-users] Medical or HMO using SQR? Date: Fri, 2 Apr 2004 13:21:49 +0800 From: mark.a.o.pabilona@accenture.com Hello, I was able to develop an SQR for our HMO a year back. Mark A. O. Pabilo=C3=B1a -----Original Message----- From: sqr-users-bounces+mark.a.o.pabilona=3Daccenture.com@sqrug.org [mailto= :sqr-users-bounces+mark.a.o.pabilona=3Daccenture.com@sqrug.org] On Behalf O= f Clara Carter Sent: Friday, April 02, 2004 7:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] Medical or HMO using SQR? Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway=20 http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This message is for the designated recipient only and may contain privilege= d, proprietary, or otherwise private information. If you have received it = in error, please notify the sender immediately and delete the original. An= y other use of the email by you is prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 09:17:01 2004 Date: Fri, 2 Apr 2004 11:07:04 +0530 From: Subject: [sqr-users] unable to FTP through PIA --===============0202258689== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCkhpLCANCg0KDQpJIGFtIHVuYWJsZSB0byBleGVjdXRlIHRoZSBGVFAg Y29tbWFuZCB0aHJ1IHRoZSBQSWEgaGVyZSBhcyAgaSBjYW4gIEZUUCBpdCB0 aHJ1IFNRUlcNCg0KVGhlIGNvZGUgbG9va3MgbGlrZQ0KDQoNCkJlZ2luLXBy b2dyYW0NCg0KbGV0ICRmdHBfZmlsZT0ndGVzdDEudHh0Jw0KDQogIGxldCAk c3lzY21kID0gJ0ZUUCAtczonIHx8ICRmdHBfZmlsZQ0KDQogQ0FMTCBTWVNU RU0gVVNJTkcgJHN5c2NtZCAjc3RhdCBXQUlUDQogIA0KICAgaWYgI3N0YXQg PSAwIA0KICBsZXQgJGRpc3AgPSAnRlRQIHN1Y2Nlc3NmdWwuLi4nDQogICBk aXNwbGF5ICRkaXNwDQogIGVsc2UNCiAgIGxldCAkZGlzcCA9ICdFcnJvciAn IHx8IHRvX2NoYXIoI3N0YXQpIHx8ICcgYXR0ZW1wdGluZyBGVFAuLi4nDQog ICAgZGlzcGxheSAkZGlzcA0KICBlbmQtaWYNCg0KZW5kLXByb2dyYW0NCg0K DQpjb3VsZCBhbnkgYm9keSBoZWxwDQoNCg0KSSBoYXZlIGdvbmUgdGhydSB0 aGlzIGFydGljbGUgYW5kIHRyaWVkIGV2ZXJ5dGhpbmcgIGFzc29jaWF0ZWQg d2l0aCB0aGlzIGFydGljbGUNCg0KIFtzcXItdXNlcnNdIFVzaW5nIENhbGwg U3lzdGVtIHRvIEZUUCBvbiBmaWxlIG9uIFdJTk5ULWFuZCBQZW9wbGVTb2Z0 DQoNCm5vdGhpbmcgaGVscHMNCg0KIA0KDQpSZWdhcmRzDQoNCk1heA0KDQog DQoNCg0KQ29uZmlkZW50aWFsaXR5IE5vdGljZSANCg0KVGhlIGluZm9ybWF0 aW9uIGNvbnRhaW5lZCBpbiB0aGlzIGVsZWN0cm9uaWMgbWVzc2FnZSBhbmQg YW55IGF0dGFjaG1lbnRzIHRvIHRoaXMgbWVzc2FnZSBhcmUgaW50ZW5kZWQN CmZvciB0aGUgZXhjbHVzaXZlIHVzZSBvZiB0aGUgYWRkcmVzc2VlKHMpIGFu ZCBtYXkgY29udGFpbiBjb25maWRlbnRpYWwgb3IgcHJpdmlsZWdlZCBpbmZv cm1hdGlvbi4gSWYNCnlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZCByZWNpcGll bnQsIHBsZWFzZSBub3RpZnkgdGhlIHNlbmRlciBhdCBXaXBybyBvciBNYWls YWRtaW5Ad2lwcm8uY29tIGltbWVkaWF0ZWx5DQphbmQgZGVzdHJveSBhbGwg Y29waWVzIG9mIHRoaXMgbWVzc2FnZSBhbmQgYW55IGF0dGFjaG1lbnRzLg0K --===============0202258689== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============0202258689==-- From sqr-users-bounces@sqrug.org Fri Apr 02 09:20:07 2004 Subject: RE: [sqr-users] Medical or HMO using SQR? Date: Fri, 2 Apr 2004 08:46:31 -0500 From: "Beller, Jay" I believe that HIP (New York) is a PeopleSoft client, so likely they're usi= ng SQR. Sorry, no contact info to pass along. -----Original Message----- From: Clara Carter [mailto:kevs_pitbabe@yahoo.com] Sent: Thursday, April 01, 2004 6:56 PM To: sqr-users@sqrug.org Subject: [sqr-users] Medical or HMO using SQR? Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway=20 http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 10:48:52 2004 Subject: RE: [sqr-users] unable to FTP through PIA Date: Fri, 2 Apr 2004 08:29:14 -0600 From: "Knapp, Richard" --===============0035984263== Content-class: urn:content-classes:message Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQpXaGF0IGlzIHRoZSBlcnJvciByZXR1cm5lZD8gIFdoYXQgYXBwbGljYXRp b24gc3VwcGxpZXMgeW91ciBGVFA/ICBDYW4geW91IGV4ZWN1dGUgdGhhdCBj b21tYW5kIGZyb20gdGhlIGNvbW1hbmQgbGluZSBzdWNjZXNzZnVsbHk/DQoN ClJpY2hhcmQgS25hcHANCkRhdGFiYXNlIFByb2dyYW1tZXIvQW5hbHlzdA0K SW5zdGl0dXRpb25hbCBSZXNlYXJjaCBhbmQgUGxhbm5pbmcNClVuaXZlcnNp dHkgb2YgTWlzc291cmkgU3lzdGVtDQo1NzMtODgyLTg4NTYNCmtuYXBwckB1 bXN5c3RlbS5lZHUNCg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0K RnJvbTogc3FyLXVzZXJzLWJvdW5jZXMra25hcHByPXVtc3lzdGVtLmVkdUBz cXJ1Zy5vcmcNClttYWlsdG86c3FyLXVzZXJzLWJvdW5jZXMra25hcHByPXVt c3lzdGVtLmVkdUBzcXJ1Zy5vcmddT24gQmVoYWxmIE9mDQptYXlhbmsuYmFr aHJ1QHdpcHJvLmNvbQ0KU2VudDogVGh1cnNkYXksIEFwcmlsIDAxLCAyMDA0 IDExOjM3IFBNDQpUbzogc3FyLXVzZXJzQHNxcnVnLm9yZw0KU3ViamVjdDog W3Nxci11c2Vyc10gdW5hYmxlIHRvIEZUUCB0aHJvdWdoIFBJQQ0KDQoNCg0K DQpIaSwgDQoNCg0KSSBhbSB1bmFibGUgdG8gZXhlY3V0ZSB0aGUgRlRQIGNv bW1hbmQgdGhydSB0aGUgUElhIGhlcmUgYXMgIGkgY2FuICBGVFAgaXQgdGhy dSBTUVJXDQoNClRoZSBjb2RlIGxvb2tzIGxpa2UNCg0KDQpCZWdpbi1wcm9n cmFtDQoNCmxldCAkZnRwX2ZpbGU9J3Rlc3QxLnR4dCcNCg0KICBsZXQgJHN5 c2NtZCA9ICdGVFAgLXM6JyB8fCAkZnRwX2ZpbGUNCg0KIENBTEwgU1lTVEVN IFVTSU5HICRzeXNjbWQgI3N0YXQgV0FJVA0KICANCiAgIGlmICNzdGF0ID0g MCANCiAgbGV0ICRkaXNwID0gJ0ZUUCBzdWNjZXNzZnVsLi4uJw0KICAgZGlz cGxheSAkZGlzcA0KICBlbHNlDQogICBsZXQgJGRpc3AgPSAnRXJyb3IgJyB8 fCB0b19jaGFyKCNzdGF0KSB8fCAnIGF0dGVtcHRpbmcgRlRQLi4uJw0KICAg IGRpc3BsYXkgJGRpc3ANCiAgZW5kLWlmDQoNCmVuZC1wcm9ncmFtDQoNCg0K Y291bGQgYW55IGJvZHkgaGVscA0KDQoNCkkgaGF2ZSBnb25lIHRocnUgdGhp cyBhcnRpY2xlIGFuZCB0cmllZCBldmVyeXRoaW5nICBhc3NvY2lhdGVkIHdp dGggdGhpcyBhcnRpY2xlDQoNCiBbc3FyLXVzZXJzXSBVc2luZyBDYWxsIFN5 c3RlbSB0byBGVFAgb24gZmlsZSBvbiBXSU5OVC1hbmQgUGVvcGxlU29mdA0K DQpub3RoaW5nIGhlbHBzDQoNCiANCg0KUmVnYXJkcw0KDQpNYXgNCg0KIA0K DQoNCkNvbmZpZGVudGlhbGl0eSBOb3RpY2UgDQoNClRoZSBpbmZvcm1hdGlv biBjb250YWluZWQgaW4gdGhpcyBlbGVjdHJvbmljIG1lc3NhZ2UgYW5kIGFu eSBhdHRhY2htZW50cyB0byB0aGlzIG1lc3NhZ2UgYXJlIGludGVuZGVkDQpm b3IgdGhlIGV4Y2x1c2l2ZSB1c2Ugb2YgdGhlIGFkZHJlc3NlZShzKSBhbmQg bWF5IGNvbnRhaW4gY29uZmlkZW50aWFsIG9yIHByaXZpbGVnZWQgaW5mb3Jt YXRpb24uIElmDQp5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50 LCBwbGVhc2Ugbm90aWZ5IHRoZSBzZW5kZXIgYXQgV2lwcm8gb3IgTWFpbGFk bWluQHdpcHJvLmNvbSBpbW1lZGlhdGVseQ0KYW5kIGRlc3Ryb3kgYWxsIGNv cGllcyBvZiB0aGlzIG1lc3NhZ2UgYW5kIGFueSBhdHRhY2htZW50cy4NCg== --===============0035984263== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============0035984263==-- From sqr-users-bounces@sqrug.org Fri Apr 02 10:52:03 2004 Date: Fri, 02 Apr 2004 08:19:55 -0600 From: "Harry R Harris" Subject: RE: [sqr-users] Medical or HMO using SQR? Hello from Omaha. I have used SQR here at Alegent Health for the last 6 years.=20 >>> mark.a.o.pabilona@accenture.com 04/01/04 11:21PM >>> Hello, I was able to develop an SQR for our HMO a year back. Mark A. O. Pabilo=F1a -----Original Message----- From: sqr-users-bounces+mark.a.o.pabilona=3Daccenture.com@sqrug.org [mailto:sqr-users-bounces+mark.a.o.pabilona=3Daccenture.com@sqrug.org] On Behalf Of Clara Carter Sent: Friday, April 02, 2004 7:56 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Medical or HMO using SQR? Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway=20 http://promotions.yahoo.com/design_giveaway/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 10:54:55 2004 Subject: RE: [sqr-users] Dynamic SQL problem Date: Fri, 2 Apr 2004 08:31:29 -0600 From: "Knapp, Richard" What's the layout of the work table? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org]On Behalf Of Deva Anbu Daniel Sent: Friday, April 02, 2004 2:17 AM To: sqr-users@sqrug.org Subject: [sqr-users] Dynamic SQL problem=20 Begin-SQL INSERT INTO PS_WORK_TABLE SELECT NAME,SEX,BIRTHDATE,[$Cur_Date] FROM PS_PERSONAL_DATE WHERE ........ =20 End-SQL =20 instead of [$Cur_Date] I tried=20 =20 $temp =3D ''''||$Cur_Date||'''' and used $temp instead of $Cur_Date. =20 It always give me Invalid Column error. =20 Is this possible in SQR? =20 thanks, daniel =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 10:57:32 2004 Date: Fri, 02 Apr 2004 17:23:27 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20to=20buy=20SQR=20indep?==?ISO-8859-1?Q?endent=20of=20a=20Peoplesoft-Installation?= We don't use PeopleSoft, only Brio.Report Builder v6.2.1=20 client-Windows/server-Unix on unix Oracle Databases=20 (accessed via ODBC on windows). See Hyperion for more informations. Regards, P.LEBLANC. France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 11:00:09 2004 From: "Hood Louise (app1lxh)" Date: Fri, 2 Apr 2004 10:22:20 -0500 Subject: [sqr-users] Compatibility Is anyone aware of any known/reported compatibility issues between certain versions of SQR (particularly 6 and above) and Oracle 9i? I've been looking through the archives but haven't found anything yet. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 11:02:42 2004 Date: Fri, 2 Apr 2004 07:34:46 -0800 (PST) From: Clara Carter Subject: RE: [sqr-users] Medical or HMO using SQR? It has to do with an HMO client just wants to know if any other HMO is using SQR. Thats all. Thank you all for responding, I will pass this on. Clara --- the dragon wrote: > Clara, > > I am not certain what the business focus has to do > with sqr. It's a > language that can be used with any relational > database, regardless of the > application or the focus of the business. But I > know of at least 2 > hospitals which use both the HRMS and FIN side of > PeopleSoft and use SQR. > > peace, > > clark 'the dragon' willis > > > > PSA: Salary <> Slavery. If you earn a salary, your > employer is renting your > services for 40 hours a week, not purchasing your > soul. Your time is the > only real finite asset that you have, and once used > it can never be > recovered, so don't waste it by giving it away. > > "Time is the coin of your life. It is the only coin > you have, and only you > can determine how it will be spent. Be careful lest > you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > > ----Original Message Follows---- > Hi, > > Any Medical or HMO companies out there using SQR? > > I don't need contact just a ref. > We have a client that would like to know if anyone > else has been using it. > > Thanks, > Clara > > _________________________________________________________________ > Check out MSN PC Safety & Security to help ensure > your PC is protected and > safe. http://specials.msn.com/msn/security.asp > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 11:05:13 2004 Date: Fri, 2 Apr 2004 07:40:18 -0800 (PST) From: Clara Carter Subject: Re: [sqr-users] to buy SQR independent of a Peoplesoft-Installation Hi, Yes you can. Plus if you want to use SQR for any other application with the sqr delivered with peoplesoft you will can get into trouble. (just check your contract). Send me your contact information off line (kevs_pitbabe@yahoo.com) and I can get you a rep. to call you. Clara --- "Martin, Annerose" wrote: > Hello, > > do you know, whether we can install SQR independent > of a Peoplesoft-Installation > and whom I can contact for getting more informations > how much a licence is. > > Is there any trial-version of SQR ? > > thank you very much for your answer ! > > kind regards > > Annerose Martin > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 11:07:42 2004 From: "the dragon" Subject: RE: [sqr-users] to buy SQR independent of a Peoplesoft-Installation Date: Fri, 02 Apr 2004 09:40:25 -0600 http://www.hyperion.com/news_events/brio/ try that site for a list of sales people or VARs. PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, do you know, whether we can install SQR independent of a Peoplesoft-Installation and whom I can contact for getting more informations how much a licence is. Is there any trial-version of SQR ? thank you very much for your answer ! kind regards Annerose Martin _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 months! http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 11:10:21 2004 Date: Fri, 2 Apr 2004 09:42:43 -0600 From: "Turner, Ivan" Subject: [sqr-users] EBCIDIC to ASCII Hi all, I receiving a mainframe file to hp UNIX. Does sqr have a function to translate EBCIDIC to ASCII? This If not, Any other suggestions? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 13:01:36 2004 Date: Fri, 2 Apr 2004 12:09:55 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] EBCIDIC to ASCII If you have SQR version 6.1.3 or higher, you can set the value "UseUnicodeInternal = TRUE" in the Default-Settings section of your sqr.ini file. If you want to keep your original sqr.ini pristine, you can make an alternate .ini file and use the -ZIF command line flag. When you issue your open command, use the "ENCODING=" option. On Fri, 2 Apr 2004, Turner, Ivan wrote: > Hi all, > > I receiving a mainframe file to hp UNIX. Does sqr have a function to > translate EBCIDIC to ASCII? This If not, Any other suggestions? > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 13:04:19 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Compatibility Date: Fri, 2 Apr 2004 09:26:52 -0800 Yes, you may get this error message when reading numeric fields: (SQR 6806) String2Em: String to Decimal Object Conversion Error -----Original Message----- From: Hood Louise (app1lxh) [mailto:app1lxh@ups.com] Sent: Friday, April 02, 2004 7:22 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Compatibility Is anyone aware of any known/reported compatibility issues between certain versions of SQR (particularly 6 and above) and Oracle 9i? I've been looking through the archives but haven't found anything yet. Thanks, Louise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 13:06:50 2004 Subject: RE: [sqr-users] EBCIDIC to ASCII Date: Fri, 2 Apr 2004 11:47:50 -0600 From: "Knapp, Richard" The mainframe application that created the file may be able to produce ASCI= I output. Your file transfer application may be able to translate. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org]On Behalf Of Turner, Ivan Sent: Friday, April 02, 2004 9:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] EBCIDIC to ASCII Hi all, I receiving a mainframe file to hp UNIX. Does sqr have a function to translate EBCIDIC to ASCII? This If not, Any other suggestions? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 23:39:57 2004 From: "the dragon" Subject: RE: [sqr-users] EBCIDIC to ASCII Date: Fri, 02 Apr 2004 15:52:52 -0600 Ivan, If you cfan wait until Monday when I get back to work, I think I have a couple of procesudres I could send you that might help. Send me an e-mail Monday morning to remind me., clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all, I receiving a mainframe file to hp UNIX. Does sqr have a function to translate EBCIDIC to ASCII? This If not, Any other suggestions? _________________________________________________________________ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 02 23:42:33 2004 From: "Edmundo Reyes Cuellar" Subject: RE: [sqr-users] Medical or HMO using SQR? Date: Fri, 2 Apr 2004 17:47:30 -0600 the IMSS Mexican institud of social security are using it. Edmundo Reyes -----Mensaje original----- De: Clara Carter [mailto:kevs_pitbabe@yahoo.com] Enviado el: Thursday, April 01, 2004 5:56 PM Para: sqr-users@sqrug.org Asunto: [sqr-users] Medical or HMO using SQR? Hi, Any Medical or HMO companies out there using SQR? I don't need contact just a ref. We have a client that would like to know if anyone else has been using it. Thanks, Clara __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 00:19:14 2004 From: "Bryson, Steven" Date: Mon, 5 Apr 2004 15:51:42 -0400 Subject: [sqr-users] Calculating Business Days Has anyone ever calculated this with datediff and subtracted holidays? Just throwing the question out there. "The sender believes that this E-mail and any attachments were free of any harmful and malicious code or defects when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action regarding the code or such defects. The sender is not liable for any loss or damage arising in any way from this message or its attachments." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 00:21:54 2004 Date: Mon, 05 Apr 2004 17:05:19 -0400 From: Jae Lee Subject: [sqr-users] How do I use a variable file path for flat files? Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file names when I read from or write to flat files. (for ex. let $outfilename = '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously not a desirable solution... When I move my SQR programs from TEST to PROD, the DBA has to change the file path in the program... If I can define the file path and name for flat files just like the report files in the UNIX shell script that runs SQR program, it would be great! Can I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle and SQR... Thank you folks! -- jae .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +=================================+ ,-~~-.___. | Jae S. Lee | / | ' \ | Applications Analyst | ( ) 0 | Information Technology Services | \_/-, ,----' | Room 1109 Raley Hall | ==== // | Appalachian State University | / \-'~; /~~~(O) | Boone, NC 28608 | / __/~| / | |Ph. 828/262-6283 Fax 828/262-2236| =( _____| (_________| +=================================+ .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:00:21 2004 Date: Tue, 6 Apr 2004 07:45:20 +0200 From: "R Gumbo" Subject: [sqr-users] Linked Tables In access I have an MS Access Database in which I have a linked table which is linked= to a table in Oracle 8 i database I am unable to go into insert mode, when i open the access database My access application ca also not insert data into this linked table What do I need to do to be able to create records in this table or is it a = question of permissions Please help !! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:03:50 2004 Date: Tue, 6 Apr 2004 07:52:55 +0200 From: "R Gumbo" Subject: [sqr-users] Oracle Error I am getting the following error when running an sqr report against an Orac= le 8i database Page buffer must be < 65536 PC SQR 65536 is double the value in the parameter file for buffers i have tried to increase this parameter but no solution What do I need to do=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:07:50 2004 Date: Tue, 6 Apr 2004 08:24:58 +0200 From: "Martin, Annerose" Subject: [sqr-users] FW: compare array-field with a string =20 =20=20=20 Hello,=20 =20 I've following (urgent) problem: =20 I have created an array, loaded with the values (put)(within a while-loop) = and then accessed the array with get (within a while-loop) for comparing the field descriptio= n with a fixed string (variable: 'Hugo'). Although I see the correct value of this array-field with DISPLAY, but the= IF-comparison is not true. What is the problem ? In a next step, I delimited the description-field with let ... =3D substr= ($bewdata_descr,1,4) and compared with 'Hugo' , but I had again no success !! =20 Many thanks for your help !!! =20 =20 =20 CREATE-ARRAY name=3Dbewdata size=3D{max_entries_bewdata}=20=20=20=20 field=3Ddescription:char field=3Dreport-type:char field=3Dexcl-code:char field=3Dfirmnr:char field=3Dpay-element:char:2 field=3Delement-code:char:3 =20 =20 ....=20 =20 put $description $report_type $exclusion_code $firmnr $pay_element1 $= pay_element2 $element_code1 $element_code2 $element_code3 into bewdata(#j) description report-type excl-code firmnr pay-element(0) pay-el= ement(1) element-code(0) element-code(1) element-code(2) =20 =20 .... =20 get $bewdata_descr $bewdata_report-type $bewdata_excl $bewdata_firmnr=20 from bewdata(#i) description report-type excl-code firmnr=20 =20 if $bewdata_descr =3D 'Hugo' !is always wrong =20 =20 many thanks=20=20 =20 Annerose =20=20 =20 Annerose Martin=20 Hewlett-Packard Boeblingen (Germany) EMEA Payroll and Time Tracking IT Team Office: phone.: +49 (0)7031 14-7059 Home Office: phone: +49 (0) 711 79 467 51 (8a.m. - 12 a.m.)=20 Fax: +49 (0) 711 78 232 67=20 mailto:annerose.martin@hp.com =20=20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:11:53 2004 From: Franck Masson Date: Tue, 6 Apr 2004 00:58:39 -0700 Subject: RE: [sqr-users] How do I use a variable file path for flat files? Hi, you can either pass your path as a parameters of your sqr program or retreive this path from Unix shell variable look to the ask command for Input parameters and look to getenv()function to retreive a value of Unix variable Franck, -----Original Message----- From: sqr-users-bounces+franck.masson=brio.com@sqrug.org [mailto:sqr-users-bounces+franck.masson=brio.com@sqrug.org]On Behalf Of Jae Lee Sent: lundi 5 avril 2004 23:05 To: sqr-users@sqrug.org Subject: [sqr-users] How do I use a variable file path for flat files? Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file names when I read from or write to flat files. (for ex. let $outfilename = '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously not a desirable solution... When I move my SQR programs from TEST to PROD, the DBA has to change the file path in the program... If I can define the file path and name for flat files just like the report files in the UNIX shell script that runs SQR program, it would be great! Can I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle and SQR... Thank you folks! -- jae .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +=================================+ ,-~~-.___. | Jae S. Lee | / | ' \ | Applications Analyst | ( ) 0 | Information Technology Services | \_/-, ,----' | Room 1109 Raley Hall | ==== // | Appalachian State University | / \-'~; /~~~(O) | Boone, NC 28608 | / __/~| / | |Ph. 828/262-6283 Fax 828/262-2236| =( _____| (_________| +=================================+ .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:15:52 2004 From: "Vijay Tripathi" Subject: RE: [sqr-users] Calculating Business Days Date: Tue, 6 Apr 2004 13:42:45 +0530 Can you highlight the problem please?? -----Original Message----- From: sqr-users-bounces+vijay.tripathi=patni.com@sqrug.org [mailto:sqr-users-bounces+vijay.tripathi=patni.com@sqrug.org]On Behalf Of Bryson, Steven Sent: Tuesday, April 06, 2004 1:22 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Calculating Business Days Has anyone ever calculated this with datediff and subtracted holidays? Just throwing the question out there. "The sender believes that this E-mail and any attachments were free of any harmful and malicious code or defects when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action regarding the code or such defects. The sender is not liable for any loss or damage arising in any way from this message or its attachments." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:19:19 2004 From: "the dragon" Subject: RE: [sqr-users] How do I use a variable file path for flat files? Date: Tue, 06 Apr 2004 05:03:52 -0500 I think the sytax is getenv(ORACLE_SID), or something like that. I am at home and my BOOK is at work. I also have an example there I'll send you. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file names when I read from or write to flat files. (for ex. let $outfilename = '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously not a desirable solution... When I move my SQR programs from TEST to PROD, the DBA has to change the file path in the program... If I can define the file path and name for flat files just like the report files in the UNIX shell script that runs SQR program, it would be great! Can I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle and SQR... Thank you folks! -- jae _________________________________________________________________ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:22:43 2004 From: "the dragon" Subject: RE: [sqr-users] Calculating Business Days Date: Tue, 06 Apr 2004 05:05:45 -0500 you need a holiday calendar, or work week calendar to do this, since 'holiday' is an arbitrary variable depending on country, company, etc. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Has anyone ever calculated this with datediff and subtracted holidays? Just throwing the question out there. _________________________________________________________________ Free up your inbox with MSN Hotmail Extra Storage! Multiple plans available. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:25:43 2004 Subject: Re: [sqr-users] Calculating Business Days From: "Richard C Spoth" Date: Tue, 6 Apr 2004 06:49:13 -0400 I've done it in VB, however you should be able to take the concept and use it in SQR. You will first need a table of Holidays. Then you need to count the number of holidays that fall between the 2 dates in question. You have a few options, I loaded them into an array and compared the dates. You could also easily just use a count(*) where the dates fall between your target dates. Then you can calculate business days as CVB_BUSD_NumOfBusinessDays = DateDiff("d", pdtBeginDate, pdtEndDate) - (DateDiff("ww", pdtBeginDate, pdtEndDate) * 2) - liNumOfHolidays The code above is VB, just convert it to an SQR statement. The big concept you need is to subtract out the weekends which is simply the number of weeks times 2. Rick Spoth "Bryson, Steven" Sent by: sqr-users-bounces+spoth.richard=healthnow.org@sqrug.org 04/05/2004 03:51 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: "'sqr-users@sqrug.org'" cc: Subject: [sqr-users] Calculating Business Days Has anyone ever calculated this with datediff and subtracted holidays? Just throwing the question out there. "The sender believes that this E-mail and any attachments were free of any harmful and malicious code or defects when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action regarding the code or such defects. The sender is not liable for any loss or damage arising in any way from this message or its attachments." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:29:26 2004 From: Pamela Lantzy Subject: RE: [sqr-users] How do I use a variable file path for flat files? Date: Tue, 6 Apr 2004 08:07:17 -0400 We have an environment variable set for us for each unix machine and then we reference that in our programs. echo $UA_INPUTDIR /av01/app/devl/uainput/ !**************************************************** ! Get-Input-Dir !**************************************************** begin-procedure Get-Input-Dir(:$input_dir) let $input_dir = getenv('UA_INPUTDIR') end-procedure Get-Input-Dir Sample source: let $input_dir = {NULL} do Get-Input-Dir($input_dir) let $Ua_Usernames_File = $input_dir || 'uaupccid.dat' We have use a common function sqc that has these procedures in case we need to add, change or delete environment varables we dont have to change alot of sqrs. Pam -----Original Message----- From: Jae Lee [mailto:leejc@appstate.edu] Sent: Monday, April 05, 2004 5:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] How do I use a variable file path for flat files? Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file names when I read from or write to flat files. (for ex. let $outfilename = '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously not a desirable solution... When I move my SQR programs from TEST to PROD, the DBA has to change the file path in the program... If I can define the file path and name for flat files just like the report files in the UNIX shell script that runs SQR program, it would be great! Can I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle and SQR... Thank you folks! -- jae .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +=================================+ ,-~~-.___. | Jae S. Lee | / | ' \ | Applications Analyst | ( ) 0 | Information Technology Services | \_/-, ,----' | Room 1109 Raley Hall | ==== // | Appalachian State University | / \-'~; /~~~(O) | Boone, NC 28608 | / __/~| / | |Ph. 828/262-6283 Fax 828/262-2236| =( _____| (_________| +=================================+ .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:45:47 2004 Date: Tue, 06 Apr 2004 09:06:09 -0400 From: "Anderson, Paul S" Subject: RE: [sqr-users] Linked Tables In access When you created the link did you specify the unique key to the table? Its not required for read only but I don't think it allows update w/o it. -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of R Gumbo Sent: Tuesday, April 06, 2004 1:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] Linked Tables In access I have an MS Access Database in which I have a linked table which is linked to a table in Oracle 8 i database I am unable to go into insert mode, when i open the access database My access application ca also not insert data into this linked table What do I need to do to be able to create records in this table or is it a question of permissions Please help !! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:48:55 2004 Subject: FW: [sqr-users] How do I use a variable file path for flat files? Date: Tue, 6 Apr 2004 08:07:12 -0500 From: "O'Neil, Tara" In this code I check which instance I am in and assign the appropriate file. Otherwise you could create a run control to insert the file name. Thanks. Tara let $DatabaseName =3D '*unknown*' #ifdef ORACLE begin-SELECT loops=3D1=20 DBNAME &DBNAME let $DatabaseName =3D &DBNAME FROM PSDBOWNER end-SELECT #else begin-SELECT loops=3D1=20 DBNAME &DBNAME let $DatabaseName =3D &DBNAME FROM PSPRCSRQST end-SELECT #end-if show 'Data Base Name =3D ' $DatabaseName=09=20=20=20=20=20=20=20=20 show 'unix or nt?'=20 #ifdef UNIX show 'unix -' #else #ifdef NT show 'nt -' #end-if #end-if if $prcs_process_instance =3D ''=20 let $output-file1 =3D 'c:\tmp\oir_newst_aid.txt' let $output-file2 =3D 'c:\tmp\oir_newst.txt' let $output-file3 =3D 'c:\tmp\oir_renewst_aid.txt' let $output-file4 =3D 'c:\tmp\oir_renewst.txt' else if $DatabaseName =3D 'SATST' or $DatabaseName =3D 'SADEV' or $DatabaseName =3D 'SACONV'=20 or $DatabaseName =3D 'SAPROD' or $DatabaseName =3D 'SATRN' or $DatabaseName =3D 'SAPRO' !show 'unix or nt?'=20 #ifdef UNIX !show 'unix -' let $output-file1 =3D '/psoft/data/finaid/outbound/oir_newst_aid.txt'=20 let $output-file2 =3D '/psoft/data/finaid/outbound/oir_newst.txt' let $output-file3 =3D '/psoft/data/finaid/outbound/oir_renewst_aid.txt'=20 let $output-file4 =3D '/psoft/data/finaid/outbound/oir_renewst.txt'=20 #else #ifdef NT if $DatabaseName =3D 'SATST' let $output-file1 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_newst_aid.txt'=20 let $output-file2 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_newst.txt'=20 let $output-file3 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_renewst_aid.txt'=20 let $output-file4 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_renewst.txt'=20 end-if if $DatabaseName =3D 'SADEV' let $output-file1 =3D 'P:\psoft\mu\DEV\DATA\finaid\outbound\oir_newst_aid.txt'=20 let $output-file2 =3D 'P:\psoft\mu\DEV\DATA\finaid\outbound\oir_newst.txt'=20 let $output-file3 =3D 'P:\psoft\mu\DEV\DATA\finaid\outbound\oir_renewst_aid.txt'=20 let $output-file4 =3D 'P:\psoft\mu\DEV\DATA\finaid\outbound\oir_renewst.txt'=20 end-if if $DatabaseName =3D 'SAPROD' let $output-file1 =3D 'P:\psoft\mu\PROD\DATA\finaid\outbound\oir_newst_aid.txt'=20 let $output-file2 =3D 'P:\psoft\mu\PROD\DATA\finaid\outbound\oir_newst.txt'=20 let $output-file3 =3D 'P:\psoft\mu\PROD\DATA\finaid\outbound\oir_renewst_aid.txt'=20 let $output-file4 =3D 'P:\psoft\mu\PROD\DATA\finaid\outbound\oir_renewst.txt'=20 end-if if $DatabaseName =3D 'SACONV' or $DatabaseName =3D 'SATRN' or $DatabaseName =3D 'SAPRO' !show 'nt -' let $output-file1 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_newst_aid.txt'=20 let $output-file2 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_newst.txt'=20 let $output-file3 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_renewst_aid.txt'=20 let $output-file4 =3D 'P:\psoft\mu\TST\DATA\finaid\outbound\oir_renewst.txt'=20 end-if #end-if #end-if end-if=20=20=20 end-if=20=20 -----Original Message----- From: sqr-users-bounces+tara.oneil=3Dmarquette.edu@sqrug.org [mailto:sqr-users-bounces+tara.oneil=3Dmarquette.edu@sqrug.org] On Behalf Of Jae Lee Sent: Monday, April 05, 2004 4:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] How do I use a variable file path for flat files? Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file=20 names when I read from or write to flat files. (for ex. let=20 $outfilename =3D '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously=20 not a desirable solution... When I move my SQR programs from TEST to=20 PROD, the DBA has to change the file path in the program... If I can=20 define the file path and name for flat files just like the report files=20 in the UNIX shell script that runs SQR program, it would be great! Can=20 I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=3D$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=3D$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=3D$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01=20 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID=20 environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle=20 and SQR... Thank you folks! -- jae .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ ,-~~-.___. | Jae S. Lee | / | ' \ | Applications Analyst | ( ) 0 | Information Technology Services | \_/-, ,----' | Room 1109 Raley Hall |=20=20=20 =3D=3D=3D=3D // | Appalachian State University | / \-'~; /~~~(O) | Boone, NC 28608 | / __/~| / | |Ph. 828/262-6283 Fax 828/262-2236|=20=20 =3D( _____| (_________| +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ =09=09=09=20 .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:52:13 2004 From: Pamela Lantzy Subject: FW: [sqr-users] How do I use a variable file path for flat files? Date: Tue, 6 Apr 2004 09:27:05 -0400 We have an environment variable set for us for each unix machine and then we reference that in our programs. echo $UA_INPUTDIR /av01/app/devl/uainput/ !**************************************************** ! Get-Input-Dir !**************************************************** begin-procedure Get-Input-Dir(:$input_dir) let $input_dir = getenv('UA_INPUTDIR') end-procedure Get-Input-Dir Sample source: let $input_dir = {NULL} do Get-Input-Dir($input_dir) let $Ua_Usernames_File = $input_dir || 'uaupccid.dat' We have use a common function sqc that has these procedures in case we need to add, change or delete environment varables we dont have to change alot of sqrs. Pam -----Original Message----- From: Jae Lee [mailto:leejc@appstate.edu] Sent: Monday, April 05, 2004 5:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] How do I use a variable file path for flat files? Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file names when I read from or write to flat files. (for ex. let $outfilename = '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously not a desirable solution... When I move my SQR programs from TEST to PROD, the DBA has to change the file path in the program... If I can define the file path and name for flat files just like the report files in the UNIX shell script that runs SQR program, it would be great! Can I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle and SQR... Thank you folks! -- jae .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +=================================+ ,-~~-.___. | Jae S. Lee | / | ' \ | Applications Analyst | ( ) 0 | Information Technology Services | \_/-, ,----' | Room 1109 Raley Hall | ==== // | Appalachian State University | / \-'~; /~~~(O) | Boone, NC 28608 | / __/~| / | |Ph. 828/262-6283 Fax 828/262-2236| =( _____| (_________| +=================================+ .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:55:34 2004 From: "the dragon" Subject: RE: [sqr-users] FW: compare array-field with a string Date: Tue, 06 Apr 2004 08:27:23 -0500 Annerose, Make certain the value you are comparing is always the same *format*... My guess is you're comparing something with extra spaces against something without spaces. Use a show statement before your compare that looks like this... #debugv show 'The array value for [whatever] = |' $bewdata_descr '|' I bet you'll see some extra spaces. If you just do a regular show, such as #debugv show 'The array value for [whatever] = ' $bewdata_descr you'll never see the extra spaces, so [Hugo ] will *look* like [Hugo], but the comparrison will fail. After you see that you have extra spaces, you'll need to remove them with an rtrim and/or ltrim let $bewdata_descr = ltrim(rtrim($bewdata_descr, ' '), ' ') before you do your compare.... Hope this helps, Peace clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, I've following (urgent) problem: I have created an array, loaded with the values (put)(within a while-loop) and then accessed the array with get (within a while-loop) for comparing the field description with a fixed string (variable: 'Hugo'). Although I see the correct value of this array-field with DISPLAY, but the IF-comparison is not true. What is the problem ? In a next step, I delimited the description-field with let ... = substr($bewdata_descr,1,4) and compared with 'Hugo' , but I had again no success !! Many thanks for your help !!! CREATE-ARRAY name=bewdata size={max_entries_bewdata} field=description:char field=report-type:char field=excl-code:char field=firmnr:char field=pay-element:char:2 field=element-code:char:3 .... put $description $report_type $exclusion_code $firmnr $pay_element1 $pay_element2 $element_code1 $element_code2 $element_code3 into bewdata(#j) description report-type excl-code firmnr pay-element(0) pay-element(1) element-code(0) element-code(1) element-code(2) .... get $bewdata_descr $bewdata_report-type $bewdata_excl $bewdata_firmnr from bewdata(#i) description report-type excl-code firmnr if $bewdata_descr = 'Hugo' !is always wrong many thanks Annerose Annerose Martin Hewlett-Packard Boeblingen (Germany) EMEA Payroll and Time Tracking IT Team _________________________________________________________________ Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 months! http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 08:58:55 2004 From: "the dragon" Subject: RE: [sqr-users] Linked Tables In access Date: Tue, 06 Apr 2004 08:32:40 -0500 It sounds to me like a permissions issue on the Oracle side. I may be wrong about this, since I don't know much about crappy Micro$haft junk like Access, but since the table is linked to Oracle, and you're trying to insert into the table, it's trying to carry that insert back to Oracle, and the Access user doesn't have permissions to insert (Which is a very good thing). I assume, if you want to insert into that table you'll need to unlink it from Oracle. hope this helps, peace clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have an MS Access Database in which I have a linked table which is linked to a table in Oracle 8 i database I am unable to go into insert mode, when i open the access database My access application ca also not insert data into this linked table What do I need to do to be able to create records in this table or is it a question of permissions Please help !! _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 10:32:57 2004 Date: Tue, 6 Apr 2004 06:46:05 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] FW: compare array-field with a string Did you Try and Display the Value just before the If condition? Try show '|' $bewdata_descr '|' and see if there are space or may be the Value is Null ? HTH Datta. --- "Martin, Annerose" wrote: > > > > Hello, > > I've following (urgent) problem: > > I have created an array, loaded with the values (put)(within a > while-loop) and then accessed > the array with get (within a while-loop) for comparing the field > description with a fixed > string (variable: 'Hugo'). > Although I see the correct value of this array-field with DISPLAY, > but the IF-comparison > is not true. > What is the problem ? > In a next step, I delimited the description-field with let ... = > substr($bewdata_descr,1,4) > and compared with 'Hugo' , but I had again no success !! > > Many thanks for your help !!! > > > > CREATE-ARRAY name=bewdata size={max_entries_bewdata} > field=description:char > field=report-type:char > field=excl-code:char > field=firmnr:char > field=pay-element:char:2 > field=element-code:char:3 > > > .... > > put $description $report_type $exclusion_code $firmnr > $pay_element1 $pay_element2 > $element_code1 $element_code2 $element_code3 into > bewdata(#j) > description report-type excl-code firmnr pay-element(0) > pay-element(1) > element-code(0) element-code(1) element-code(2) > > > .... > > get $bewdata_descr $bewdata_report-type $bewdata_excl > $bewdata_firmnr > from bewdata(#i) description report-type excl-code firmnr > > if $bewdata_descr = 'Hugo' !is always wrong > > > many thanks > > Annerose > > > > > Annerose Martin > Hewlett-Packard Boeblingen (Germany) > EMEA Payroll and Time Tracking IT Team > > Office: phone.: +49 (0)7031 14-7059 > > Home Office: phone: +49 (0) 711 79 467 51 (8a.m. - 12 a.m.) > > Fax: +49 (0) 711 78 232 67 > > mailto:annerose.martin@hp.com > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 11:02:19 2004 Subject: RE: [sqr-users] Linked Tables In access Date: Tue, 6 Apr 2004 17:58:40 +0200 From: "R Gumbo" Yes , I created a unique key -----Original Message----- From: Anderson, Paul S [mailto:Paul.Anderson@usa.xerox.com] Sent: 06 April 2004 03:06 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Linked Tables In access When you created the link did you specify the unique key to the table? Its not required for read only but I don't think it allows update w/o it. -----Original Message----- From: sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org] On Behalf Of R Gumbo Sent: Tuesday, April 06, 2004 1:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] Linked Tables In access I have an MS Access Database in which I have a linked table which is linked to a table in Oracle 8 i database I am unable to go into insert mode, when i open the access database My access application ca also not insert data into this linked table What do I need to do to be able to create records in this table or is it a question of permissions Please help !! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 12:16:23 2004 From: Rebecca.Barilleaux@Anthem.com Date: Tue, 6 Apr 2004 13:13:08 -0400 Subject: [sqr-users] Re: sqr-users Digest, Vol 2, Issue 4 Jae, I use getenv to get environment variables from UNIX in my SQR program. The following lines in SQR should create the same file names as your shell script: let $DD_PRNTO1 = getenv('HOME') || '/pzrlbec_' || to_char(#sqr-pid) || '.lis' let $DD_PRNTO2 = getenv('HOME') || '/pzrlbec_' || to_char(#sqr-pid) || '_01.log' let $DD_PRNTO3 = getenv('HOME') || '/pzrlbec_' || to_char(#sqr-pid) || '_02.lis' open $DD_PRNTO1 as 1 for-writing record=150:vary status=#openstatus1 open $DD_PRNTO2 as 2 for-writing record=250:vary status=#openstatus2 open $DD_PRNTO3 as 3 for-writing record=150:vary status=#openstatus3 - Rebecca Date: Mon, 05 Apr 2004 17:05:19 -0400 From: Jae Lee Subject: [sqr-users] How do I use a variable file path for flat files? To: sqr-users@sqrug.org Message-ID: <4071CA0F.5070802@appstate.edu> Content-Type: text/plain; format=flowed; charset=us-ascii Hi, In my SQR(v. 6.2) programs I've been hard-coding the directory and file names when I read from or write to flat files. (for ex. let $outfilename = '/u02/sct/banner/banHRPROD/asu/export/sis/UppsDemogra.txt' open $outfilename as 1 for-writing...) We have Oracle 8.x db that runs on a UNIX machine. This is obviously not a desirable solution... When I move my SQR programs from TEST to PROD, the DBA has to change the file path in the program... If I can define the file path and name for flat files just like the report files in the UNIX shell script that runs SQR program, it would be great! Can I do this, and if I can, how? Below is how I name the report files in a shell script: # # Define files # DD_PRNT01=$HOME/pzrlbec_$$.lis ; export DD_PRNT01 DD_PRNT02=$HOME/pzrlbec_$$_01.log ; export DD_PRNT02 DD_PRNT03=$HOME/pzrlbec_$$_02.lis ; export DD_PRNT03 .... # # Run the program # $SQRDIR/sqr $EXEDIR/pzrlbec.sqt [db connection string] -RT -F$DD_PRNT01 -F$DD_PRNT02 -F$DD_PRNT03 $3 | tee $LOGFILE but I know this -F argument is for report files only.... As an alternative, If I can somehow pass our ban$ORACLE_SID environmental variable to the SQR program, that will work! I'd appreciate any help I can get on this.... I am new to UNIX, Oracle and SQR... Thank you folks! -- jae .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +=================================+ ,-~~-.___. | Jae S. Lee | / | ' \ | Applications Analyst | ( ) 0 | Information Technology Services | \_/-, ,----' | Room 1109 Raley Hall | ==== // | Appalachian State University | / \-'~; /~~~(O) | Boone, NC 28608 | / __/~| / | |Ph. 828/262-6283 Fax 828/262-2236| =( _____| (_________| +=================================+ .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. ------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 12:51:08 2004 Date: Tue, 06 Apr 2004 13:50:02 -0400 From: "Anderson, Paul S" Subject: RE: [sqr-users] Linked Tables In access I had bumped into that.. Its probably the accounts Oracle privileges then. -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of R Gumbo Sent: Tuesday, April 06, 2004 11:59 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Linked Tables In access Yes , I created a unique key -----Original Message----- From: Anderson, Paul S [mailto:Paul.Anderson@usa.xerox.com] Sent: 06 April 2004 03:06 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Linked Tables In access When you created the link did you specify the unique key to the table? Its not required for read only but I don't think it allows update w/o it. -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of R Gumbo Sent: Tuesday, April 06, 2004 1:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] Linked Tables In access I have an MS Access Database in which I have a linked table which is linked to a table in Oracle 8 i database I am unable to go into insert mode, when i open the access database My access application ca also not insert data into this linked table What do I need to do to be able to create records in this table or is it a question of permissions Please help !! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 12:59:44 2004 From: Joe_Johnson@adp.com Date: Tue, 6 Apr 2004 12:53:16 -0500 Subject: [sqr-users] Is it possible - or advisable - to set a sql commit to 1? Greetings, We have an interface that inserts rows of data into PS_JOB. We have been asked to change the logic so when an insert error occurs, the rest of the input file data can be inserted rather than have the process stop with the insert error. I'm thinking the only way to do this is to commit the insert after each row. 1) Can this be done? I am using begin-sql for the insert statement. 2) What are the risks with this approach, besides, large overhead as each row is committed? Thanks, Joe Johnson Programmer Analyst ADP ESG - Technical Services Group _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 13:04:27 2004 Date: Tue, 06 Apr 2004 14:03:47 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Is it possible - or advisable - to set a sql commit to1? What RDBMS are you on? I have done this in oracle just by having 2 begin-sql statements begin-sql insert into blah end-sql begin-sql commit end-sql ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Joe_Johnson@adp.com 04/06/04 01:53PM >>> Greetings, We have an interface that inserts rows of data into PS_JOB. We have been asked to change the logic so when an insert error occurs, the = rest of the input file data can be inserted rather than have the process stop with the insert error. I'm thinking the only way to do this is to commit the insert after each row. 1) Can this be done? I am using begin-sql for the insert statement. 2) What are the risks with this approach, besides, large overhead as each = row is committed? Thanks, Joe Johnson Programmer Analyst ADP ESG - Technical Services Group _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 13:13:24 2004 Date: Tue, 06 Apr 2004 14:12:30 -0400 From: "Anderson, Paul S" Subject: RE: [sqr-users] Is it possible - or advisable - to set a sql comm it to 1? You shouldn't need commits... The following would execute 2-2-1-Insert-Error on an insert error due to constraints etc.. and return for additional processing. begin-SQL on-error=2-2-1-Insert-Error INSERT INTO PS_JOB ( -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of Joe_Johnson@adp.com Sent: Tuesday, April 06, 2004 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] Is it possible - or advisable - to set a sql commit to 1? Greetings, We have an interface that inserts rows of data into PS_JOB. We have been asked to change the logic so when an insert error occurs, the rest of the input file data can be inserted rather than have the process stop with the insert error. I'm thinking the only way to do this is to commit the insert after each row. 1) Can this be done? I am using begin-sql for the insert statement. 2) What are the risks with this approach, besides, large overhead as each row is committed? Thanks, Joe Johnson Programmer Analyst ADP ESG - Technical Services Group _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 14:08:40 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Is it possible - or advisable - to set a sql commi tto 1? Date: Tue, 6 Apr 2004 12:07:03 -0700 Also, if you do a commit, SQR documentation strongly recommends that you use the SQR command "commit" rather than the SQL command in a begin-sql paragraph. -----Original Message----- From: Anderson, Paul S [mailto:Paul.Anderson@usa.xerox.com] Sent: Tuesday, April 06, 2004 11:13 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] Is it possible - or advisable - to set a sql comm i tto 1? You shouldn't need commits... The following would execute 2-2-1-Insert-Error on an insert error due to constraints etc.. and return for additional processing. begin-SQL on-error=2-2-1-Insert-Error INSERT INTO PS_JOB ( -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of Joe_Johnson@adp.com Sent: Tuesday, April 06, 2004 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] Is it possible - or advisable - to set a sql commit to 1? Greetings, We have an interface that inserts rows of data into PS_JOB. We have been asked to change the logic so when an insert error occurs, the rest of the input file data can be inserted rather than have the process stop with the insert error. I'm thinking the only way to do this is to commit the insert after each row. 1) Can this be done? I am using begin-sql for the insert statement. 2) What are the risks with this approach, besides, large overhead as each row is committed? Thanks, Joe Johnson Programmer Analyst ADP ESG - Technical Services Group _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 06 20:38:29 2004 From: Al H Subject: Re: [sqr-users] Is it possible - or advisable - to set a sql commit to 1? Date: Tue, 06 Apr 2004 18:33:27 -0700 Use on-error to execute a paragraph that checks the error code to see if the error is a duplicate row. The error code is platform specific, so you'll have to find the code for your database. If the error is a duplicate, don't do anything in the error paragraph. If it's not a duplicate error, you probably want to show the error and terminate. Note: This won't work if you are using INSERT (...) SELECT FROM.... It only works if you are selecting and then inserting one row at a time. begin-sql on-error=3Dcheck-for-duplicates INSERT .... end-sql begin-procedure check-for-duplicates if #sql-error <>-9 !this code is platform specific end-if end-procedure On Tue, 6 Apr 2004 12:53:16 -0500, you wrote: > >Greetings, > >We have an interface that inserts rows of data into PS_JOB. > >We have been asked to change the logic so when an insert error occurs, the= rest of the input file data can be inserted rather than >have the process stop with the insert error. > >I'm thinking the only way to do this is to commit the insert after each ro= w. > >1) Can this be done? I am using begin-sql for the insert statement. > >2) What are the risks with this approach, besides, large overhead as each= row is committed? > >Thanks, > >Joe Johnson >Programmer Analyst >ADP ESG - Technical Services Group > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 01:30:50 2004 Subject: RE: [sqr-users] FW: compare array-field with a string Date: Wed, 7 Apr 2004 08:29:16 +0200 From: "Martin, Annerose" Hello ! Many thanks: this was the solution !! I always did a DISPLAY instead of your special SHOW and didn't saw the spaces... kind regards Annerose -----Original Message----- From: sqr-users-bounces+annerose.martin=3Dhp.com@sqrug.org [mailto:sqr-users-bounces+annerose.martin=3Dhp.com@sqrug.org]On Behalf Of the dragon Sent: Tuesday, April 06, 2004 15:27 To: sqr-users@sqrug.org Cc: annerose.martin@hp.co Subject: RE: [sqr-users] FW: compare array-field with a string Annerose, Make certain the value you are comparing is always the same *format*... My= =20 guess is you're comparing something with extra spaces against something=20 without spaces. Use a show statement before your compare that looks like= =20 this... #debugv show 'The array value for [whatever] =3D |' $bewdata_descr '|' I bet you'll see some extra spaces. If you just do a regular show, such as #debugv show 'The array value for [whatever] =3D ' $bewdata_descr you'll never see the extra spaces, so [Hugo ] will *look* like [Hugo],= =20 but the comparrison will fail. After you see that you have extra spaces, you'll need to remove them with a= n=20 rtrim and/or ltrim let $bewdata_descr =3D ltrim(rtrim($bewdata_descr, ' '), ' ') before you do your compare.... Hope this helps, Peace clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting you= r=20 services for 40 hours a week, not purchasing your soul. Your time is the= =20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you= =20 can determine how it will be spent. Be careful lest you let other people= =20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, I've following (urgent) problem: I have created an array, loaded with the values (put)(within a while-loop)= =20 and then accessed the array with get (within a while-loop) for comparing the field descriptio= n=20 with a fixed string (variable: 'Hugo'). Although I see the correct value of this array-field with DISPLAY, but the= =20 IF-comparison is not true. What is the problem ? In a next step, I delimited the description-field with let ... =3D=20 substr($bewdata_descr,1,4) and compared with 'Hugo' , but I had again no success !! Many thanks for your help !!! CREATE-ARRAY name=3Dbewdata size=3D{max_entries_bewdata} field=3Ddescription:char field=3Dreport-type:char field=3Dexcl-code:char field=3Dfirmnr:char field=3Dpay-element:char:2 field=3Delement-code:char:3 .... put $description $report_type $exclusion_code $firmnr $pay_element1= =20 $pay_element2 $element_code1 $element_code2 $element_code3 into bewdata(#j) description report-type excl-code firmnr pay-element(0)=20 pay-element(1) element-code(0) element-code(1) element-code(2) .... get $bewdata_descr $bewdata_report-type $bewdata_excl $bewdata_firmnr from bewdata(#i) description report-type excl-code firmnr if $bewdata_descr =3D 'Hugo' !is always wrong many thanks Annerose Annerose Martin Hewlett-Packard Boeblingen (Germany) EMEA Payroll and Time Tracking IT Team _________________________________________________________________ Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2= =20 months!=20 http://join.msn.com/?page=3Ddept/dialup&pgmarket=3Den-us&ST=3D1/go/onm00200= 361ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 03:05:28 2004 Subject: RE: [sqr-users] Linked Tables In access Date: Wed, 7 Apr 2004 10:01:43 +0200 From: "R Gumbo" Thanks Anderson. I had tried to create the unique index from Access side=20 and had not realized that it was not saving them. I create the key on the Oracle table and it worked Thanks again -----Original Message----- From: Anderson, Paul S [mailto:Paul.Anderson@usa.xerox.com] Sent: 06 April 2004 07:50 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Linked Tables In access I had bumped into that.. Its probably the accounts Oracle privileges then. -----Original Message----- From: sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org] On Behalf Of R Gumbo Sent: Tuesday, April 06, 2004 11:59 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Linked Tables In access Yes , I created a unique key -----Original Message----- From: Anderson, Paul S [mailto:Paul.Anderson@usa.xerox.com] Sent: 06 April 2004 03:06 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Linked Tables In access When you created the link did you specify the unique key to the table? Its not required for read only but I don't think it allows update w/o it. -----Original Message----- From: sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org] On Behalf Of R Gumbo Sent: Tuesday, April 06, 2004 1:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] Linked Tables In access I have an MS Access Database in which I have a linked table which is linked to a table in Oracle 8 i database I am unable to go into insert mode, when i open the access database My access application ca also not insert data into this linked table What do I need to do to be able to create records in this table or is it a question of permissions Please help !! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 07:34:43 2004 Date: Wed, 7 Apr 2004 08:33:28 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] intermittent OCI server attach error when running Brio 6 Hi to all: We are running Oracle 8 on Linux with Brio 6 on the clients. Recently we have had intermittent problems where any one of the hundreds of brio reports we have fails to run with with errors: SQR 5528 ORACLE OCIServerAttach error 12500 in cursor 0 TNS listener failed to start a dedicated server process Cannot log on to database Has anyone had any problems with Brio not releasing a file handle on the server, particularly if too many dynamic where's are used? It appears that the problems arises if too many reports have been run in a day. I know this is probably not a brio problem as the same report will run with no problems the next day but I wondered if any of the database gurus had any suggestions. Kevin LaRoche Oracle Forms Developer Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 13:48:30 2004 Date: Wed, 7 Apr 2004 12:47:23 -0600 From: "Lance Munger" Subject: [sqr-users] Unknown error when posting to SQR platform We are in the process of converting our reports from Brio 6.5 over to SQR ver 8.2, currently I have a report that is giving me an error of 1300307. Nothing else is listed, it doesn't say that one of my variables is wrong, or that one of the include files has an error or anything to indicate where I should look for this error or how to fix it. I have searched the Hyperion site, IBM (we are running on DB2), MSDN and this site, but have not found any reference to what this error might be related to. If anyone has seen this error or might have any idea of where I should look it would be greatly appreciated. =20 Thank you in advance, =20 Lance D. Munger =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 14:13:53 2004 From: "the dragon" Subject: RE: [sqr-users] Unknown error when posting to SQR platform Date: Wed, 07 Apr 2004 14:12:51 -0500 Please post the entire error message. Also, are you getting this with SQRW or how is it being generated? My guess is the goofballs at PSoft screwed something up. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- We are in the process of converting our reports from Brio 6.5 over to SQR ver 8.2, currently I have a report that is giving me an error of 1300307. Nothing else is listed, it doesn't say that one of my variables is wrong, or that one of the include files has an error or anything to indicate where I should look for this error or how to fix it. I have searched the Hyperion site, IBM (we are running on DB2), MSDN and this site, but have not found any reference to what this error might be related to. If anyone has seen this error or might have any idea of where I should look it would be greatly appreciated. Thank you in advance, Lance D. Munger _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 14:34:08 2004 Subject: RE: [sqr-users] Unknown error when posting to SQR platform Date: Wed, 7 Apr 2004 13:33:02 -0600 From: "Lance Munger" Turns out it was a simple error, I had a space in the name of the report. Thanks for your help. Lance -----Original Message----- From: sqr-users-bounces+lance.munger=3Dnavigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dnavigant.com@sqrug.org] On Behalf Of the dragon Sent: Wednesday, April 07, 2004 1:13 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unknown error when posting to SQR platform Please post the entire error message. Also, are you getting this with SQRW=20 or how is it being generated? My guess is the goofballs at PSoft screwed=20 something up. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- We are in the process of converting our reports from Brio 6.5 over to SQR ver 8.2, currently I have a report that is giving me an error of 1300307. Nothing else is listed, it doesn't say that one of my variables is wrong, or that one of the include files has an error or anything to indicate where I should look for this error or how to fix it. I have searched the Hyperion site, IBM (we are running on DB2), MSDN and this site, but have not found any reference to what this error might be related to. If anyone has seen this error or might have any idea of where I should look it would be greatly appreciated. Thank you in advance, Lance D. Munger _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee(r)=20 Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 15:29:40 2004 From: Joe_Johnson@adp.com Date: Wed, 7 Apr 2004 15:09:04 -0500 Subject: [sqr-users] Is it possible - or advisable - to set a sql commit to 1? Greets, Thanks for the help, everyone. Looks like I'll deal with this in the on-error procedure. Joe Johnson Programmer Analyst ADP ESG - Technical Services Group email: joe_johnson@adp.com ----- Forwarded by Joe Johnson/ESG/NAD on 04/07/2004 03:08 PM ----- Joe Johnson To: sqr-users@sqrug.org 04/06/2004 12:53 cc: PM Subject: Is it possible - or advisable - to set a sql commit to 1?(Document link: Joe Johnson) Greetings, We have an interface that inserts rows of data into PS_JOB. We have been asked to change the logic so when an insert error occurs, the rest of the input file data can be inserted rather than have the process stop with the insert error. I'm thinking the only way to do this is to commit the insert after each row. 1) Can this be done? I am using begin-sql for the insert statement. 2) What are the risks with this approach, besides, large overhead as each row is committed? Thanks, Joe Johnson Programmer Analyst ADP ESG - Technical Services Group _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 16:53:15 2004 Date: Wed, 7 Apr 2004 14:52:07 -0700 (PDT) From: Yuri Lakef Subject: [sqr-users] Recursion in SQR Greetings, Will SQR allow calling the same function (procedure) recursively? I'd like to process a tree and print data to flat file. I only want to call procedures to print record once I'm at the bottom-most level (i.e., no rows found where Parent_Node_Num is equal to a particular Tree_Node). The particular tree I'm processing has up to 10 levels (call same procedure for each level for different TREE_NODE). Thanks in advance! --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 07 17:15:03 2004 Subject: Re: [sqr-users] Recursion in SQR Date: Wed, 7 Apr 2004 22:14:19 -0000 From: Hi, you can get tail recursion by using a stack adt that I wrote and provided to the sqrug. (see http://www.dssltd.com |clients only|sqrug sqrug) The stack limit is preset at 100 but recompiling will allow you to go as deep as your cpu's memory. John Willson Yuri Lakef said: > Greetings, > > Will SQR allow calling the same function (procedure) recursively? > > I'd like to process a tree and print data to flat file. I only want to call procedures to print record once I'm at the bottom-most level (i.e., no rows found where Parent_Node_Num is equal to a particular Tree_Node). The particular tree I'm processing has up to 10 levels (call same procedure for each level for different TREE_NODE). > > Thanks in advance! > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 05:12:13 2004 Date: Thu, 8 Apr 2004 12:10:31 +0200 From: "Martin, Annerose" Subject: [sqr-users] access to KSAM-file Hello, =20 is there any possibility to access a KSAM (key sequenced/index) file, a very big file on a fast kind of way: I have to check the validity of an employee-number against a very big personal-file and it takes very long =20 many thanks =20 Annerose Martin =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 06:19:39 2004 From: "the dragon" Subject: RE: [sqr-users] access to KSAM-file Date: Thu, 08 Apr 2004 06:18:14 -0500 Annerose, I am not certain what a KSAM file is, but if it can be extracted into a flat file, you can process that through SQR, or dump it into a table in a relationaly database and then use the RDBMS to do the processing. hope this helps, peace clark 'they dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, is there any possibility to access a KSAM (key sequenced/index) file, a very big file on a fast kind of way: I have to check the validity of an employee-number against a very big personal-file and it takes very long many thanks Annerose Martin _________________________________________________________________ Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 07:58:02 2004 Date: Thu, 08 Apr 2004 08:56:11 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Recursion in SQR Hi John, I was interested to look at your program, do I need an User ID / Password?. Appreciate your response Thanks Prasanna jwillson@dssltd.com wrote: > > Hi, you can get tail recursion by using a stack adt that I wrote and > provided to the sqrug. (see http://www.dssltd.com |clients only|sqrug sqrug) > The stack limit is preset at 100 but recompiling will allow you to go as > deep as your cpu's memory. > > John Willson > > Yuri Lakef said: > > > Greetings, > > > > Will SQR allow calling the same function (procedure) recursively? > > > > I'd like to process a tree and print data to flat file. I only want to > call procedures to print record once I'm at the bottom-most level (i.e., no > rows found where Parent_Node_Num is equal to a particular Tree_Node). The > particular tree I'm processing has up to 10 levels (call same procedure for > each level for different TREE_NODE). > > > > Thanks in advance! > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Small Business $15K Web Design Giveaway - Enter today > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -- > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 08:32:00 2004 Subject: Re: [sqr-users] Recursion in SQR Date: Thu, 8 Apr 2004 13:31:20 -0000 From: Hi, in the previous email response click on "clients only" and enter "sqrug" for both user and for pswd and follow the instructions. John Willson Prasanna Menta said: > Hi John, > I was interested to look at your program, do I need an User ID / > Password?. Appreciate your response > Thanks > Prasanna > > jwillson@dssltd.com wrote: > > > > Hi, you can get tail recursion by using a stack adt that I wrote and > > provided to the sqrug. (see http://www.dssltd.com |clients only|sqrug sqrug) > > The stack limit is preset at 100 but recompiling will allow you to go as > > deep as your cpu's memory. > > > > John Willson > > > > Yuri Lakef said: > > > > > Greetings, > > > > > > Will SQR allow calling the same function (procedure) recursively? > > > > > > I'd like to process a tree and print data to flat file. I only want to > > call procedures to print record once I'm at the bottom-most level (i.e., no > > rows found where Parent_Node_Num is equal to a particular Tree_Node). The > > particular tree I'm processing has up to 10 levels (call same procedure for > > each level for different TREE_NODE). > > > > > > Thanks in advance! > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Yahoo! Small Business $15K Web Design Giveaway - Enter today > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > -- > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 08:56:27 2004 Subject: RE: [sqr-users] access to KSAM-file Date: Thu, 8 Apr 2004 08:55:14 -0500 From: "Knapp, Richard" Get the employee ids into a table. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org]On Behalf Of Martin, Annerose Sent: Thursday, April 08, 2004 5:11 AM To: 'Sqr-Users (E-mail) Subject: [sqr-users] access to KSAM-file Hello, =20 is there any possibility to access a KSAM (key sequenced/index) file, a very big file on a fast kind of way: I have to check the validity of an employee-number against a very big personal-file and it takes very long =20 many thanks =20 Annerose Martin =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 09:54:42 2004 Date: Thu, 8 Apr 2004 10:53:59 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] Save as .CSV doesnt work on some PC's Hi all I had a nice little program that would use the -PRINTER:EH -EH_CSVONLY command flag to write a .csv. Works great on a some computers here with report builder 5.1 and Viewer 6.14 to output a CSV file. Recently some clients have upgraded to Pentium 4's with the same standard install but the save as csv or save as HTML from the command line flag, or from the report viewer doesnt work. No output is produced. An .spf file and a file without a text extension is produced but nothing else. The java JRE module appears to be the same on all machines. All suggestions appreciated. Kevin LaRoche Canadian Human Rights Commission Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 10:14:45 2004 Date: Thu, 8 Apr 2004 08:13:44 -0700 (PDT) From: Yuri Lakef Subject: Re: [sqr-users] Recursion in SQR Thanks for the response. I was able to get the desired effect by using an array and then processing from bottom of array to top by decrementing #array_count. Thank you again. jwillson@dssltd.com wrote: Hi, you can get tail recursion by using a stack adt that I wrote and provided to the sqrug. (see http://www.dssltd.com |clients only|sqrug sqrug) The stack limit is preset at 100 but recompiling will allow you to go as deep as your cpu's memory. John Willson Yuri Lakef said: > Greetings, > > Will SQR allow calling the same function (procedure) recursively? > > I'd like to process a tree and print data to flat file. I only want to call procedures to print record once I'm at the bottom-most level (i.e., no rows found where Parent_Node_Num is equal to a particular Tree_Node). The particular tree I'm processing has up to 10 levels (call same procedure for each level for different TREE_NODE). > > Thanks in advance! > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 08 12:14:23 2004 Date: Thu, 08 Apr 2004 13:07:40 -0400 From: "Anderson, Paul S" Subject: [sqr-users] PAY003 PDF output Hello! We are running an ADP cloned version of Peoplesoft PAY003 which I think was developed under an older version of SQR. We are currently running SQR 6.1.3. Utilizing sqrug advice recently sent out to someone else, I've been able to modify PAY003 to cut a PDF file for each pay statement. Thanks from me also on that. To get the PDF output the only thing I did was use the -PRINTER:PD override when I ran the SQR. For the most part the statements look ok... but the fonts pulled in by the PD override are causing some overlapped output. It is also not printing the MICR line or the spelled out amount. From other posts I'm guessing this is because I'm missing the PDF fonts needed there. I've been a developer for 23+ years but somehow avoided having to manipulate or futz around with fonts ... so I plead ignorance. Here is the font section of my sqr.ini. Do I need a PDF font section...and do additional fonts for PDF need to be installed on the server? Thanks Very Much! Paul A. [Fonts] ; The following are SQR predefined font styles. ; The numbers on the left are associated with font styles on the right. ; Users may define their own associations between font_numbers and font ; styles using the font_numbers 900 thru 999. ; ; Notes: ; ; - If SQR does not find a particular font a substitute is used. ; - If a font style (fixed or proportional) is defined inside SQR, ; its style will override the setting in this file. ; - Proportional is assumed if the second field begins with the character 'p'. ; (i.e., "4=Arial,p" would equate to "4=Arial,proportional") ; - Bold is assumed if a third parameter is supplied. ; 3=Courier New,fixed 300=Courier New,fixed,bold 4=Arial,proportional 400=Arial,proportional,bold 5=Times New Roman,proportional 500=Times New Roman,proportional,bold 6=AvantGarde,proportional 8=Palatino,proportional 800=Palatino,proportional,bold 11=Symbol,symbol _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 09 08:38:34 2004 Date: Fri, 9 Apr 2004 09:37:26 -0400 From: "White, Denise" Subject: [sqr-users] RE: Save as .CSV doesnt work on some PC's Hi, This is probably a very silly idea, but could the file without the extensio= n be a .csv file? If the PC is set up to hide certain file extensions, you= would see the file name, but not the extension. Personally, I prefer to h= ave my PC set up to see all extensions, but I guess some people must like i= t the other way. Again, probably too basic an answer, but always eliminate= the most obvious first! Denise M. White Sr. Software Engineer Vicor=20 ------------------------------ Message: 5 Date: Thu, 8 Apr 2004 10:53:59 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] Save as .CSV doesnt work on some PC's To: Message-ID: <200404081453.i38Erxer013029@webmail2.magma.ca> Content-Type: text/plain Hi all I had a nice little program that would use the -PRINTER:EH -EH_CSVONLY comm= and flag to=20 write a .csv. Works great on a some computers here with report builder 5.1= and Viewer=20 6.14 to output a CSV file. Recently some clients have upgraded to Pentium 4's with the same standard i= nstall but the=20 save as csv or save as HTML from the command line flag, or from the report= viewer doesnt=20 work. No output is produced. An .spf file and a file without a text exten= sion is=20 produced but nothing else. The java JRE module appears to be the same on all machines. All suggestions appreciated. Kevin LaRoche Canadian Human Rights Commission Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 09 12:46:51 2004 From: "Kevin LaRoche" Subject: RE: [sqr-users] RE: Save as .CSV doesnt work on some PC's Date: Fri, 9 Apr 2004 13:50:14 -0400 Thanks for your idea, I checked this out. Like you I have 'show file extensions' on by default. The file without an extension is smaller than an .spf file but when renamed as a text file or csv does have some of the data in it. It appears to be an intermediate file of some sort. I tested further and the error is easy to duplicate in our shop. Older computers, celerons, the save as csv works perfect. Same program, report on a pentium 4 does nothing. I believe, from reading through the forums that the csv conversion uses the java runtime engine normally installed in c:/JRE by brio. Something is stopping this from working but what it is I don't know. I am trying to use Ray Ontko's csv conversion library as an alternate to the 'easy way'. Kevin LaRoche Canadian Human Rights Commission Ottawa, ontario -----Original Message----- From: sqr-users-bounces+bydesign=magma.ca@sqrug.org [mailto:sqr-users-bounces+bydesign=magma.ca@sqrug.org] On Behalf Of White, Denise Sent: April 9, 2004 9:37 AM To: SQR Users Group (E-mail) Subject: [sqr-users] RE: Save as .CSV doesnt work on some PC's Hi, This is probably a very silly idea, but could the file without the extension be a .csv file? If the PC is set up to hide certain file extensions, you would see the file name, but not the extension. Personally, I prefer to have my PC set up to see all extensions, but I guess some people must like it the other way. Again, probably too basic an answer, but always eliminate the most obvious first! Denise M. White Sr. Software Engineer Vicor ------------------------------ Message: 5 Date: Thu, 8 Apr 2004 10:53:59 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] Save as .CSV doesnt work on some PC's To: Message-ID: <200404081453.i38Erxer013029@webmail2.magma.ca> Content-Type: text/plain Hi all I had a nice little program that would use the -PRINTER:EH -EH_CSVONLY command flag to write a .csv. Works great on a some computers here with report builder 5.1 and Viewer 6.14 to output a CSV file. Recently some clients have upgraded to Pentium 4's with the same standard install but the save as csv or save as HTML from the command line flag, or from the report viewer doesnt work. No output is produced. An .spf file and a file without a text extension is produced but nothing else. The java JRE module appears to be the same on all machines. All suggestions appreciated. Kevin LaRoche Canadian Human Rights Commission Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 09 13:14:01 2004 From: Peter Burton Subject: RE: [sqr-users] RE: Save as .CSV doesnt work on some PC's Date: Fri, 9 Apr 2004 14:12:48 -0400 This is a multi-part message in MIME format... ------_=_NextPart_000_01C41E5E.439C91B0 Content-Type: text/plain Kevin, Most likely the problem is that the version of Java being used with SQR 6.1.4 is not compatible with the newer CPUs. You can try the following -- in the %BRIO_HOME%\JRE\JRE122\BIN directory is a fill called SYMCJIT.DLL, what you should do is rename this to SYMCJIT.DLL.SAVE. Peter > _____________________________________________ > From: > sqr-users-bounces+peter_burton=hyperion.com@sqrug.org@HYPERION On Behalf > Of "Kevin LaRoche" > Sent: Friday, April 09, 2004 1:50 PM > To: 'This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions.' > Subject: RE: [sqr-users] RE: Save as .CSV doesnt work on some PC's > > Thanks for your idea, I checked this out. Like you I have 'show file > extensions' on by default. > The file without an extension is smaller than an .spf file but when > renamed > as a text file or csv does have some of the data in it. It appears to be > an > intermediate file of some sort. > I tested further and the error is easy to duplicate in our shop. Older > computers, celerons, the save as csv works perfect. Same program, report > on > a pentium 4 does nothing. I believe, from reading through the forums that > the csv conversion uses the java runtime engine normally installed in > c:/JRE > by brio. Something is stopping this from working but what it is I don't > know. > I am trying to use Ray Ontko's csv conversion library as an alternate to > the > 'easy way'. > > > > > Kevin LaRoche > Canadian Human Rights Commission > Ottawa, ontario > > > -----Original Message----- > From: sqr-users-bounces+bydesign=magma.ca@sqrug.org > [mailto:sqr-users-bounces+bydesign=magma.ca@sqrug.org > ] On Behalf Of > White, > Denise > Sent: April 9, 2004 9:37 AM > To: SQR Users Group (E-mail) > Subject: [sqr-users] RE: Save as .CSV doesnt work on some PC's > > Hi, > > This is probably a very silly idea, but could the file without the > extension > be a .csv file? If the PC is set up to hide certain file extensions, you > would see the file name, but not the extension. Personally, I prefer to > have my PC set up to see all extensions, but I guess some people must like > it the other way. Again, probably too basic an answer, but always > eliminate > the most obvious first! > > Denise M. White > Sr. Software Engineer > Vicor > ------------------------------ > > Message: 5 > Date: Thu, 8 Apr 2004 10:53:59 -0400 (EDT) > From: "Kevin Laroche" > Subject: [sqr-users] Save as .CSV doesnt work on some PC's > To: > Message-ID: <200404081453.i38Erxer013029@webmail2.magma.ca> > Content-Type: text/plain > > Hi all > I had a nice little program that would use the -PRINTER:EH -EH_CSVONLY > command flag to write a .csv. Works great on a some computers here with > report builder 5.1 and Viewer > 6.14 to output a CSV file. > Recently some clients have upgraded to Pentium 4's with the same standard > install but the save as csv or save as HTML from the command line flag, > or > from the report viewer doesnt work. No output is produced. An .spf file > and a file without a text extension is produced but nothing else. > > The java JRE module appears to be the same on all machines. > All suggestions appreciated. > > Kevin LaRoche > Canadian Human Rights Commission > Ottawa Ontario > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ------_=_NextPart_000_01C41E5E.439C91B0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C41E5E.439C91B0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_000_01C41E5E.439C91B0-- From sqr-users-bounces@sqrug.org Fri Apr 09 15:42:25 2004 From: "Kevin LaRoche" Subject: RE: [sqr-users] RE: Save as .CSV doesnt work on some PC's Date: Fri, 9 Apr 2004 16:45:53 -0400 Thanks Peter, I'll try it out on the next working day for us, Tuesday April 13. Kevin LaRoche Canadian Human Rights Commission Ottawa, Ontario -----Original Message----- From: sqr-users-bounces+bydesign=magma.ca@sqrug.org [mailto:sqr-users-bounces+bydesign=magma.ca@sqrug.org] On Behalf Of Peter Burton Sent: April 9, 2004 2:13 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Cc: 'Kevin LaRoche' Subject: RE: [sqr-users] RE: Save as .CSV doesnt work on some PC's Kevin, Most likely the problem is that the version of Java being used with SQR 6.1.4 is not compatible with the newer CPUs. You can try the following -- in the %BRIO_HOME%\JRE\JRE122\BIN directory is a fill called SYMCJIT.DLL, what you should do is rename this to SYMCJIT.DLL.SAVE. Peter > _____________________________________________ > From: > sqr-users-bounces+peter_burton=hyperion.com@sqrug.org@HYPERION On Behalf > Of "Kevin LaRoche" > Sent: Friday, April 09, 2004 1:50 PM > To: 'This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions.' > Subject: RE: [sqr-users] RE: Save as .CSV doesnt work on some PC's > > Thanks for your idea, I checked this out. Like you I have 'show file > extensions' on by default. > The file without an extension is smaller than an .spf file but when > renamed as a text file or csv does have some of the data in it. It > appears to be an intermediate file of some sort. > I tested further and the error is easy to duplicate in our shop. > Older computers, celerons, the save as csv works perfect. Same > program, report on a pentium 4 does nothing. I believe, from reading > through the forums that the csv conversion uses the java runtime > engine normally installed in c:/JRE by brio. Something is stopping > this from working but what it is I don't know. > I am trying to use Ray Ontko's csv conversion library as an alternate > to the 'easy way'. > > > > > Kevin LaRoche > Canadian Human Rights Commission > Ottawa, ontario > > > -----Original Message----- > From: sqr-users-bounces+bydesign=magma.ca@sqrug.org > [mailto:sqr-users-bounces+bydesign=magma.ca@sqrug.org > ] On Behalf Of > White, Denise > Sent: April 9, 2004 9:37 AM > To: SQR Users Group (E-mail) > Subject: [sqr-users] RE: Save as .CSV doesnt work on some PC's > > Hi, > > This is probably a very silly idea, but could the file without the > extension be a .csv file? If the PC is set up to hide certain file > extensions, you would see the file name, but not the extension. > Personally, I prefer to have my PC set up to see all extensions, but I > guess some people must like it the other way. Again, probably too > basic an answer, but always eliminate the most obvious first! > > Denise M. White > Sr. Software Engineer > Vicor > ------------------------------ > > Message: 5 > Date: Thu, 8 Apr 2004 10:53:59 -0400 (EDT) > From: "Kevin Laroche" > Subject: [sqr-users] Save as .CSV doesnt work on some PC's > To: > Message-ID: <200404081453.i38Erxer013029@webmail2.magma.ca> > Content-Type: text/plain > > Hi all > I had a nice little program that would use the -PRINTER:EH -EH_CSVONLY > command flag to write a .csv. Works great on a some computers here > with report builder 5.1 and Viewer > 6.14 to output a CSV file. > Recently some clients have upgraded to Pentium 4's with the same > standard install but the save as csv or save as HTML from the command > line flag, or from the report viewer doesnt work. No output is > produced. An .spf file and a file without a text extension is > produced but nothing else. > > The java JRE module appears to be the same on all machines. > All suggestions appreciated. > > Kevin LaRoche > Canadian Human Rights Commission > Ottawa Ontario > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 09 21:35:28 2004 From: "Steve Cavill" Subject: RE: [sqr-users] access to KSAM-file Date: Sat, 10 Apr 2004 12:34:52 +1000 SQR can only read flat files sequentially. If the file is indexed, then I would check to see if there is a SQL interface to the file, and use standard SQL Select to access it (with a where clause). If there is no SQL interface, check if there is a operating system level command or write a C program and call that from SQR with CALL SYSTEM USING Cheers, Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org]On Behalf Of Martin, Annerose Sent: Thursday, 8 April 2004 8:11 PM To: 'Sqr-Users (E-mail) Subject: [sqr-users] access to KSAM-file Hello, is there any possibility to access a KSAM (key sequenced/index) file, a very big file on a fast kind of way: I have to check the validity of an employee-number against a very big personal-file and it takes very long many thanks Annerose Martin _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 05:30:46 2004 Date: Tue, 13 Apr 2004 16:01:24 +0530 From: sheetalk Subject: [sqr-users] .txt as sqr? Hi All, I'm working on ps8..where sqr report name and process definition name should be same... I define say abc123.sqr in Process Definitions as Process Type : SQR Report and Process Name : abc123 For one special case, our requirement is to run abc123.txt (fils has valid sqr code..only extension is .txt and not .sqr).We don't want to rename file nor save as different name with extension sqr. Is there any way to run '.txt' file ? How should i define process in peoplesoft? If i define as abc123 then it looks for .sqr file... If i define process as abc123.txt then it looks for abc123.txt.sqr file... Any solution? Many Thanks in advance... Regards, Sheetal ********************************************************* Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 06:17:22 2004 From: "the dragon" Subject: RE: [sqr-users] .txt as sqr? Date: Tue, 13 Apr 2004 06:15:57 -0500 I do not believe that you can use process scheduler to run and sqr that doesn't have the extension .sqr. I guess I am bewildered by *WHY* you would want to do this. Maybe you're trying to solve the wrong problem. Ultimately, whatever creates the txt file will need to be created as .sqr, I believe. Perhaps solving the problem from that end, rather than trying to change process scheduler is the answer. HTH peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi All, I'm working on ps8..where sqr report name and process definition name should be same... I define say abc123.sqr in Process Definitions as Process Type : SQR Report and Process Name : abc123 For one special case, our requirement is to run abc123.txt (fils has valid sqr code..only extension is .txt and not .sqr).We don't want to rename file nor save as different name with extension sqr. Is there any way to run '.txt' file ? How should i define process in peoplesoft? If i define as abc123 then it looks for .sqr file... If i define process as abc123.txt then it looks for abc123.txt.sqr file... Any solution? Many Thanks in advance... Regards, Sheetal _________________________________________________________________ Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 months! http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 06:27:34 2004 Date: Tue, 13 Apr 2004 13:26:13 +0200 From: edwin.hommes@bluewin.ch Subject: [sqr-users] RE: .txt as sqr Hi sheetalk, Why not rename your .txt to .sqr? makes it so much more easy. However, if you insist in using the .txt I suggest you create a SQR which does nothing else but include your .txt file and fire off the procedures in there. so: begin-procedure Main #include abc123.txt end-procedure Hope that helps, Edwin >From: sheetalk >Subject: [sqr-users] .txt as sqr? >Date: Tue, 13 Apr 2004 16:01:24 +0530 >To: sqr-users@sqrug.org >Reply-To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > >Hi All, > >I'm working on ps8..where sqr report name and process definition name >should be same... >I define say abc123.sqr in Process Definitions as Process Type : SQR >Report and Process Name : abc123 > >For one special case, our requirement is to run abc123.txt (fils has >valid sqr code..only extension is .txt and not .sqr).We don't want to >rename file nor save as different name with extension sqr. > >Is there any way to run '.txt' file ? How should i define process in >peoplesoft? If i define as abc123 then it looks for .sqr file... >If i define process as abc123.txt then it looks for abc123.txt.sqr >file... > >Any solution? > >Many Thanks in advance... > >Regards, >Sheetal > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 06:56:35 2004 From: James Womeldorf Subject: RE: [sqr-users] .txt as sqr? Date: Tue, 13 Apr 2004 06:54:49 -0500 Hi Sheetal, I'm quite certain that include files can be named any way you wish, so I believe you could create an SQR named abc123.sqr whose only line would be #include 'abc123.txt' PS would be happy, and your code could remain in a file named abc123.txt. Jim -----Original Message----- From: sheetalk [mailto:sheetalk@mahindrabt.com] Sent: Tuesday, April 13, 2004 5:31 AM To: sqr-users@sqrug.org Subject: [sqr-users] .txt as sqr? Hi All, I'm working on ps8..where sqr report name and process definition name should be same... I define say abc123.sqr in Process Definitions as Process Type : SQR Report and Process Name : abc123 For one special case, our requirement is to run abc123.txt (fils has valid sqr code..only extension is .txt and not .sqr).We don't want to rename file nor save as different name with extension sqr. Is there any way to run '.txt' file ? How should i define process in peoplesoft? If i define as abc123 then it looks for .sqr file... If i define process as abc123.txt then it looks for abc123.txt.sqr file... Any solution? Many Thanks in advance... Regards, Sheetal ********************************************************* Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 07:21:53 2004 Date: Tue, 13 Apr 2004 08:20:57 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] Save as .CSV doesnt work on some PC's Hi to all Peter's suggestion to rename SYMCJIT.DLL to SYMCJIT.DLL.SAVE. in the JRE folder worked great. Thanks Kevin LaRoche Oracle Developer Canadian Human Rights Commission Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 11:07:53 2004 From: MGreene@MarinerHealthCare.com Date: Tue, 13 Apr 2004 11:09:37 -0500 Subject: [sqr-users] PeopleSoft PeopleCode list?? I realize this list is for SQR users, and not all of those user are on PeopleSoft. Does anyone know of a e-list for developers to use focusing on PeopleSoft PeopleCode? PeopleCode is not my favorite development area, and I could use suggestions from time to time. Thanks, Marsha Greene Mariner Health Care, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 11:13:42 2004 From: "Overcashier, Patricia" Subject: RE: [sqr-users] PeopleSoft PeopleCode list?? Date: Tue, 13 Apr 2004 12:12:42 -0400 Yes, there are a few places. The original PeopleSoft site www.peoplesoft.com and go to their discussion groups or the PeopleSoft fans site www.peoplesoftfans.com -----Original Message----- From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org]On Behalf Of MGreene@MarinerHealthCare.com Sent: Tuesday, April 13, 2004 12:10 PM To: sqr-users@sqrug.org Subject: [sqr-users] PeopleSoft PeopleCode list?? I realize this list is for SQR users, and not all of those user are on PeopleSoft. Does anyone know of a e-list for developers to use focusing on PeopleSoft PeopleCode? PeopleCode is not my favorite development area, and I could use suggestions from time to time. Thanks, Marsha Greene Mariner Health Care, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 11:16:25 2004 Date: Tue, 13 Apr 2004 11:14:54 -0500 From: "Harry R Harris" Subject: [sqr-users] Sending E-mail from SQR I am trying to send an email from within an SQR using the following: let $mail_cmd = 'echo' || $body || '|' || ' mailx -s ' || $subject || $address call system using $mail_cmd #status nowait Seems to work fine until $body contains more than about 500 characters.??? We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 11:47:52 2004 Date: Tue, 13 Apr 2004 12:43:04 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] Sending E-mail from SQR I think the problem is that on any system there is X number of characters allowed in a command-line. If you go over that limit, unpredictable results will occur. In your case the end of the command line is getting chopped-off (the address - arguably the most important part of the command you're executing). You may want to try creating a file in SQR that is a text-file which contains the body. Depending on what you are doing you'll of course need to watch out for concurrency issues (ie. use unique file names somehow - include the date, time and/or process ID in the file name) and security issues also if the body contains any information you don't want people to see. Once the body is created, do this: let $mail_cmd = 'cat ' || $body_file || '|' || ' mailx -s ' || $subject || $address Then when you're done you could clean-up the body file like this: let $del_cmd = 'rm ' || $body_file Hope this helps! :) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> HHARRIS@alegent.org 4/13/2004 12:14:54 PM >>> I am trying to send an email from within an SQR using the following: let $mail_cmd = 'echo' || $body || '|' || ' mailx -s ' || $subject || $address call system using $mail_cmd #status nowait Seems to work fine until $body contains more than about 500 characters.??? We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 12:04:44 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] PeopleSoft PeopleCode list?? Date: Tue, 13 Apr 2004 10:03:17 -0700 There's also www.ITtoolbox.com which has many technical discussion lists, including one for Peopletools. -----Original Message----- From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] Sent: Tuesday, April 13, 2004 9:13 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] PeopleSoft PeopleCode list?? Yes, there are a few places. The original PeopleSoft site www.peoplesoft.com and go to their discussion groups or the PeopleSoft fans site www.peoplesoftfans.com -----Original Message----- From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org]On Behalf Of MGreene@MarinerHealthCare.com Sent: Tuesday, April 13, 2004 12:10 PM To: sqr-users@sqrug.org Subject: [sqr-users] PeopleSoft PeopleCode list?? I realize this list is for SQR users, and not all of those user are on PeopleSoft. Does anyone know of a e-list for developers to use focusing on PeopleSoft PeopleCode? PeopleCode is not my favorite development area, and I could use suggestions from time to time. Thanks, Marsha Greene Mariner Health Care, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 14:44:27 2004 Date: Tue, 13 Apr 2004 14:42:59 -0500 From: "Harry R Harris" Subject: Re: [sqr-users] Sending E-mail from SQR I owe you one "JHarris". It worked just fine! >>> JHarris@frederick.edu 04/13/04 11:43AM >>> I think the problem is that on any system there is X number of characters allowed in a command-line. If you go over that limit, unpredictable results will occur. In your case the end of the command line is getting chopped-off (the address - arguably the most important part of the command you're executing). You may want to try creating a file in SQR that is a text-file which contains the body. Depending on what you are doing you'll of course need to watch out for concurrency issues (ie. use unique file names somehow - include the date, time and/or process ID in the file name) and security issues also if the body contains any information you don't want people to see. Once the body is created, do this: let $mail_cmd = 'cat ' || $body_file || '|' || ' mailx -s ' || $subject || $address Then when you're done you could clean-up the body file like this: let $del_cmd = 'rm ' || $body_file Hope this helps! :) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> HHARRIS@alegent.org 4/13/2004 12:14:54 PM >>> I am trying to send an email from within an SQR using the following: let $mail_cmd = 'echo' || $body || '|' || ' mailx -s ' || $subject || $address call system using $mail_cmd #status nowait Seems to work fine until $body contains more than about 500 characters.??? We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 15:23:20 2004 From: Peter Burton Date: Tue, 13 Apr 2004 13:22:33 -0700 Subject: RE: [sqr-users] Sending E-mail from SQR This is a multi-part message in MIME format... ----=_NextPart_ST_16_25_36_Tuesday_April_13_2004_10580 Content-Type: text/plain; charset="iso-8859-1" Harry, You are most likely running into the 512 character limit imposed by the CALL command. You can try using the LET SYSTEM() function: Let #Status = System($mail_cmd) Peter > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org@HYPERION On > Behalf Of "Harry R Harris" > Sent: Tuesday, April 13, 2004 12:15 PM > To: SQR-users@sqrug.org > Subject: [sqr-users] Sending E-mail from SQR > > I am trying to send an email from within an SQR using the following: > > let $mail_cmd = 'echo' || $body || '|' || ' mailx -s ' || $subject || > $address > > call system using $mail_cmd #status nowait > > Seems to work fine until $body contains more than about 500 > characters.??? > > We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com ----=_NextPart_ST_16_25_36_Tuesday_April_13_2004_10580 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ----=_NextPart_ST_16_25_36_Tuesday_April_13_2004_10580 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ----=_NextPart_ST_16_25_36_Tuesday_April_13_2004_10580-- From sqr-users-bounces@sqrug.org Tue Apr 13 16:23:03 2004 Date: Tue, 13 Apr 2004 16:21:40 -0500 From: "Harry R Harris" Subject: RE: [sqr-users] Sending E-mail from SQR Thanks Peter, that works even better. >>> Peter_Burton@Hyperion.com 04/13/04 03:22PM >>> Harry, You are most likely running into the 512 character limit imposed by the CALL command. You can try using the LET SYSTEM() function: Let #Status = System($mail_cmd) Peter > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org@HYPERION On > Behalf Of "Harry R Harris" > Sent: Tuesday, April 13, 2004 12:15 PM > To: SQR-users@sqrug.org > Subject: [sqr-users] Sending E-mail from SQR > > I am trying to send an email from within an SQR using the following: > > let $mail_cmd = 'echo' || $body || '|' || ' mailx -s ' || $subject || > $address > > call system using $mail_cmd #status nowait > > Seems to work fine until $body contains more than about 500 > characters.??? > > We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 13 19:16:56 2004 From: PSFTPROGRAMMER@aol.com Date: Tue, 13 Apr 2004 20:15:51 EDT Subject: Re: [sqr-users] PeopleSoft PeopleCode list?? Also try the PeopleTools (no specific PeopleCode yet) forum at www.slerp.com. This has PeopleSoft, SAP and Siebel for anyone not familiar with their site. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 05:49:30 2004 Date: Wed, 14 Apr 2004 06:48:01 -0400 From: EricRection@aol.com Subject: [sqr-users] Encrypting SQR output Comrades, As you'll have guessed from the title, I'd like to encrypt SQR output because it's intimate payroll data. I was hoping to do it just with some flag, but failing that I was thinking of CALL SYSTEM and winzip. I searched the archive and it mentioned PGP (or something) - third party software. I'd be very grateful if someone could tell me how to send SQR one way or another. If the solution involves third party software, please describe it. Many thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 06:38:03 2004 From: "the dragon" Subject: RE: [sqr-users] Encrypting SQR output Date: Wed, 14 Apr 2004 06:36:38 -0500 It has been my experience that you need to create the file and then encrypt it using third party software (PGP, GPG, etc) or OS specific commands (Md5, etc) with a shell script. I guess it would be possible to close the existing output from within the program and then execute the third party software using a call system from within sqr. But, I don't believe that sqr has any built in encryption. Also, I don't know if winzip peforms 128 bit encrytion, but you want 128 bit or above. hope this helps peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Comrades, As you'll have guessed from the title, I'd like to encrypt SQR output because it's intimate payroll data. I was hoping to do it just with some flag, but failing that I was thinking of CALL SYSTEM and winzip. I searched the archive and it mentioned PGP (or something) - third party software. I'd be very grateful if someone could tell me how to send SQR one way or another. If the solution involves third party software, please describe it. Many thanks. _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 07:00:05 2004 Date: Wed, 14 Apr 2004 07:58:59 -0400 From: "Anderson, Paul S" Subject: RE: [sqr-users] Encrypting SQR output We're using a product called GPG which is installed on our unix server. Its 100% compatible with PGP but much, much cheaper. About $2500 vs $50K for PGP on our server. We use it to encrypt/decrypt numerous HR/Payroll feeds being sent from and to Xerox. Its all done via shell scripting. -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of EricRection@aol.com Sent: Wednesday, April 14, 2004 6:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Encrypting SQR output Comrades, As you'll have guessed from the title, I'd like to encrypt SQR output because it's intimate payroll data. I was hoping to do it just with some flag, but failing that I was thinking of CALL SYSTEM and winzip. I searched the archive and it mentioned PGP (or something) - third party software. I'd be very grateful if someone could tell me how to send SQR one way or another. If the solution involves third party software, please describe it. Many thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 07:22:27 2004 From: "the dragon" Subject: RE: [sqr-users] Encrypting SQR output Date: Wed, 14 Apr 2004 07:20:41 -0500 GnuPG is free, I believe. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- We're using a product called GPG which is installed on our unix server. Its 100% compatible with PGP but much, much cheaper. About $2500 vs $50K for PGP on our server. We use it to encrypt/decrypt numerous HR/Payroll feeds being sent from and to Xerox. Its all done via shell scripting. -----Original Message----- Comrades, As you'll have guessed from the title, I'd like to encrypt SQR output because it's intimate payroll data. I was hoping to do it just with some flag, but failing that I was thinking of CALL SYSTEM and winzip. I searched the archive and it mentioned PGP (or something) - third party software. I'd be very grateful if someone could tell me how to send SQR one way or another. If the solution involves third party software, please describe it. Many thanks. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 08:03:08 2004 Date: Wed, 14 Apr 2004 09:01:35 -0400 From: "White, Denise" Subject: [sqr-users] RE: PeopleSoft PeopleCode list?? A few more are www.peoplesoftpros.net and www.slerp.com, that have message = boards. Denise M. White Sr. Software Engineer Vicor=20 ------------------------------ Message: 9 Date: Tue, 13 Apr 2004 10:03:17 -0700 From: "Alexander, Steve" Subject: RE: [sqr-users] PeopleSoft PeopleCode list?? To: "'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.'" Message-ID: <62AFC819CCF3D611827A00065B3F798106BA88DE@sj-exchange.ci.sj.ca.u s> Content-Type: text/plain; charset=3Diso-8859-1 There's also www.ITtoolbox.com which has many technical discussion lists, including one for Peopletools. -----Original Message----- From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] Sent: Tuesday, April 13, 2004 9:13 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] PeopleSoft PeopleCode list?? Yes, there are a few places. The original PeopleSoft site www.peoplesoft.com and go to their discussion groups or the PeopleSoft fans site www.peoplesoftfans.com -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org]On Behalf Of MGreene@MarinerHealthCare.com Sent: Tuesday, April 13, 2004 12:10 PM To: sqr-users@sqrug.org Subject: [sqr-users] PeopleSoft PeopleCode list?? I realize this list is for SQR users, and not all of those user are on=20 PeopleSoft.=20 Does anyone know of a e-list for developers to use focusing on PeopleSoft= =20 PeopleCode?=20 PeopleCode is not my favorite development area, and I could use=20 suggestions from time to time.=20 Thanks, Marsha Greene Mariner Health Care, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 10:18:12 2004 Date: Wed, 14 Apr 2004 11:16:01 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Encrypting SQR output Holy Cross, as well, uses GPG. Same as Xerox, we invoke scripts in combinat= ion with trusted SSH logins to manage the encryption /decrypt process >>> Paul.Anderson@usa.xerox.com 04/14/04 07:58AM >>> We're using a product called GPG which is installed on our unix server. Its 100% compatible with PGP but much, much cheaper. About $2500 vs $50K for PGP on our server. We use it to encrypt/decrypt numerous HR/Payroll feeds being sent from and to Xerox. Its all done via shell scripting.=20 -----Original Message----- From: sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org=20 [mailto:sqr-users-bounces+paul.anderson=3Dusa.xerox.com@sqrug.org] On Behalf Of EricRection@aol.com=20 Sent: Wednesday, April 14, 2004 6:48 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Encrypting SQR output Comrades, As you'll have guessed from the title, I'd like to encrypt SQR output because it's intimate payroll data. I was hoping to do it just with some flag, but failing that I was thinking of CALL SYSTEM and winzip. I searched the archive and it mentioned PGP (or something) - third party software. I'd be very grateful if someone could tell me how to send SQR one way or another. If the solution involves third party software, please describe it. Many thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 14 16:38:00 2004 Date: Wed, 14 Apr 2004 17:36:44 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Char-width problem. This is a multi-part message in MIME format... --=_1C3D2CE7.78195D91 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Today, I was working on a mockup report which required me to vary the chara= cter width between printed characters, to determine how many printed column= s can be accomodated using various types of fonts.=20 =20 I observed a rather strange behaviour - The char-width change applied to on= e printed line & did not apply to the other. Has anybody observed this beha= viour or is there something that I am not doing right. Any help would be gr= eatly appreciated. =20 Thanks, Jessie --=_1C3D2CE7.78195D91 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/html' MIME type. It has been automatically discarded before sending the message to the list. --=_1C3D2CE7.78195D91 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=_1C3D2CE7.78195D91-- From sqr-users-bounces@sqrug.org Thu Apr 15 10:20:00 2004 From: "Greg Devereaux" Subject: Re: [sqr-users] Linking SQR 4.3 on VMS with no local Oracle 9iDatabase Date: Thu, 15 Apr 2004 11:19:56 -0400 Hello, I finally have SQR version 4.3.5 working on VMS with our SUN 9.2.0.4 databases. After all the effort to put a local database up, we discovered it didn't fix the problem after all. Knowing the names compilier conflict was introduced in 9.2.0.4 I thought I would try to link against the 9.2.0.2 version of libclntsh.so. So I uninstalled the latest version we had after patches (libclntsh.so;3 33525 23-MAR-2004) copied the first version (libclntsh.so;1 33195 11-MAR-2004 ) to libclntsh.so;4 I rebooted which installed it and then linked against it. It works with out stack dumping! I expect we will have to change our SQLNET network service name to SID.WORLD after error regarding service name But that should be easy to fix. libclntsh.so;4 33195 14-APR-2004 16:53:21.67 (RWE,RWED,RE,RE) libclntsh.so;3 33525 23-MAR-2004 09:15:16.58 (RWE,RWED,RE,RE) libclntsh.so;2 33493 12-MAR-2004 10:12:08.64 (RWE,RWED,RE,RE) libclntsh.so;1 33195 11-MAR-2004 21:13:59.25 (RWE,RWED,RE,RE) So I expect everyone that is working linked their SQR against the 9.2.0.2 version of libclntsh.so. I expect anyone that links to the latest versions (libclntsh.so;3 33525) would have problems most likely introduced by the names case problem within the libclntsh shared object. I think that may even be addressed with LDA_DEF or perhaps with symbols that equate the new to the old names. Greg Devereaux. University of Hartford CT. ----- Original Message ----- From: "Greg Devereaux" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Thursday, March 25, 2004 12:38 PM Subject: Re: [sqr-users] Linking SQR 4.3 on VMS with no local Oracle 9iDatabase > Well here is an update after working with Oracle and installing a couple > more patches for our VMS Oracle 9i OCI development environment. > > I have been working on getting SQR version 4.3.2.1 running with Oracle 9i > on > VMS 7.3-1. After working with Oracle to get our OCI linking utilities > patched and > successfully compiling one of their test programs it appears that we will be > unable > to build SQR using the LNOCIC.COM and LOUTL.com linker scripts from Oracle > 9i. > Apparently the object files and symbols referenced have used different cases > for > definitions and/or symbol names that show up as an ident mis-matches. > > These can be resolved only through the CC command with the modifier > /names=(as_is) > which leaves the case unchanged for definitions and symbol name resolution. > > Some of my co-workers are certain that others are running SQR 4.3 on VMS 7.3 > with Oracle 9i. > > If you are using SQR 4.3 on VMS 7.3 with Oracle 9i can you tell us if you > were able to > get it to work with the linking utilities (LNOCIC.COM) or by creating own CC > command? > > I expect the use of the CC command was required to circumvent this problem, > could you share your solution with us please? > > Here is output information that demonstates the problem. > > To demonstrate: > =============== > $set def ora_oci_demo > $cc cdemo1 /include=(ora_root:[rdbms.demo],ora_root:[rdbms.public]) > > $lnocic cdemo1 > > - Linking CDEMO1.EXE > > $run cdemo1 > > %SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual > address=FFFFFFFFFFFF > FFFF, PC=00000000002634EC, PS=0000001B > %TRACE-F-TRACEBACK, symbolic stack dump follows > image module routine line rel PC abs PC > LIBCLNTSH OCICOB OLOG 171117 000000000000059C 00000000002634EC > CDEMO1 CDEMO1 main 7239 0000000000000134 0000000000030134 > CDEMO1 CDEMO1 __main 0 0000000000000064 0000000000030064 > PTHREAD$RTL 0 000000000003E4E0 000000007BC5C4E0 > PTHREAD$RTL 0 000000000001C31C 000000007BC3A31C > 0 FFFFFFFF8028D59C FFFFFFFF8028D59C > > $cc > cdemo1/include=(ora_root:[rdbms.demo],ora_root:[rdbms.public])/names=(as_is) > <<--add this > > $lnocic cdemo1 > - Linking CDEMO1.EXE > > $run cdemo1 > > Connected to ORACLE as SCOTT > Enter employee name (or CR to EXIT): miller > Enter employee job: clerk > Enter employee salary: 1300 > Enter employee dept: 10 > > miller added to the ACCOUNTING department as employee number 7944 > > Enter employee name (or CR to EXIT): > Exiting... > > > When we attempt to run an SQR program we have the same type of Access > violation, > it is presumed to be due to the symbol names case differences. Error shown > below... > > > SQR V4.3.2.1 > Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. > > %SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual > address=FFFFFFFFFFFF > FFFF, PC=0000000000363928, PS=0000001B > %TRACE-F-TRACEBACK, symbolic stack dump follows > image module routine line rel PC abs PC > LIBCLNTSH OCICOB ORLON 171276 00000000000009D8 > 0000000000363928 > SQR DBCALLS sqr0253 12186 0000000000000100 > 00000000000435E0 > SQR RDPGM sqr0479 12464 0000000000000CF8 > 000000000006CED8 > SQR SQR SQR_CommonLogic 14622 0000000000001048 > 0000000000041048 > SQR SQR main 13896 00000000000002A0 > 00000000000402A0 > SQR SQR __main 0 00000000000000A8 > 00000000000400A8 > PTHREAD$RTL 0 000000000003F0D0 > 000000007BC770D0 > PTHREAD$RTL 0 000000000001C31C > 000000007BC5431C > 0 FFFFFFFF8028B4D4 > FFFFFFFF8028B4D4 > > > Thank you for any assistance you can provide, > > Greg Devereaux > University of Hartford CT. > devereaux@hartford.edu > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 15 14:40:08 2004 From: "Hale, Keith" Date: Thu, 15 Apr 2004 15:40:00 -0400 Subject: [sqr-users] sending email in SQR (NT v7.5x) The auditors don't like the fact that the user has the option to say no to sending the email on the client's behalf. How can I configure Workflow to send email from PSNT or PSUNIX instead of Outlook? TIA, Keith _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 15 14:43:56 2004 From: "Hale, Keith" Date: Thu, 15 Apr 2004 15:43:47 -0400 Subject: [sqr-users] Oops: sending email in SQR (NT v7.5x) Sorry... I remember this isn't a PS UG -----Original Message----- From: Hale, Keith Sent: Thursday, April 15, 2004 3:40 PM To: 'sqr-users@sqrug.org' Subject: sending email in SQR (NT v7.5x) The auditors don't like the fact that the user has the option to say no to sending the email on the client's behalf. How can I configure Workflow to send email from PSNT or PSUNIX instead of Outlook? TIA, Keith _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 16 00:56:23 2004 Date: Fri, 16 Apr 2004 11:25:34 +0530 From: "Santhanam, Subramanian (Cognizant)" Subject: [sqr-users] FW: Help needed in Begin-Execute construct This is a multi-part message in MIME format... ------=_NextPartTM-000-6917d083-9755-45c8-9777-a0e0832be665 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Hi, > I need some working example in Begin-Execute construct (Calling oracle = procedure). >=20 > Awaiting your reply. >=20 > Thanks in advance >=20 > Regards, > Subbu. ------=_NextPartTM-000-6917d083-9755-45c8-9777-a0e0832be665 Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-6917d083-9755-45c8-9777-a0e0832be665 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPartTM-000-6917d083-9755-45c8-9777-a0e0832be665-- From sqr-users-bounces@sqrug.org Sat Apr 17 14:13:20 2004 From: "ruscs ___" Subject: [sqr-users] T-SQL DDL statements within SQR Begin-SQL...End-SQL construct Date: Sat, 17 Apr 2004 19:12:12 +0000 Is it possible to create a local or global temporary table (within MSSQL server database) in Begin-SQL...End-SQL construct? The following creates a perm. table: Begin-SQL On-Error=Warn !..... create table test_tbl (emplid char(11), name char(11) ) !..... End-SQL Replacing test_tbl with #test_tbl or ##test_tbl will produce an error... Thank you _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 08:15:07 2004 Subject: Re: [sqr-users] T-SQL DDL statements within SQR Begin-SQL...End-SQL construct From: Ramzi_Salameh@daveandbusters.com Date: Mon, 19 Apr 2004 08:13:54 -0500 --===============1177258726== Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: base64 DQoNCg0KDQoNCllvdSBuZWVkIHRvIGFzc2lnbiB5b3VyIHRlbXAgdGFibGUg bmFtZSB0byBhIHZhcmlhYmxlLCB0aGVuIHdyYXAgdGhlDQp2YXJpYWJsZSB3 aXRoIGJyYWNrZXRzIGluIHlvdXIgU1FMIHN0YXRlbWVudCwgaS5lLg0KDQpM RVQgJFRNUF9UQkxfTk0gPSAnIyMjVE1QX1RCTF8xMjM0Jw0KDQpCRUdJTi1T UUwNCg0KQ1JFQVRFIFRBQkxFIFskVE1QX1RCTF9OTV0gKENPTFVNTjEgQ0hB Uig4KSwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIENPTFVNTjIgIENIQVIoOCksDQogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBl dGMuKQ0KDQpFTkQtU1FMDQoNCg0KSFRILA0KDQotLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NClJhbXpp IFNhbGFtZWgNClBlb3BsZVNvZnQgVGVjaG5pY2FsIEFuYWx5c3QNCkRhdmUg JiBCdXN0ZXJzLCBJbmMuDQoNCnd3dy5kYXZlYW5kYnVzdGVycy5jb20gLSBy ZWNlc3MgaXMgY2FsbGluZw0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoNCg0KfC0tLS0tLS0tLSst LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0+DQp8ICAgICAgICAgfCAgICAgICAgICAgInJ1c2Nz IF9fXyIgPHJ1c2NvbHNAaG90bWFpbC5jb20+ICAgICAgICAgICAgICAgIHwN CnwgICAgICAgICB8ICAgICAgICAgICBTZW50IGJ5OiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgfA0KfCAgICAgICAgIHwgICAg ICAgICAgIHNxci11c2Vycy1ib3VuY2VzK3JhbXppX3NhbGFtZWg9ZGF2ZWFu ZGJ1c3RlcnMuY298DQp8ICAgICAgICAgfCAgICAgICAgICAgbUBzcXJ1Zy5v cmcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwNCnwg ICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgfA0KfCAgICAgICAgIHwgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICB8DQp8ICAgICAgICAgfCAgICAgICAgICAgMDQvMTcvMDQgMDI6 MTIgUE0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwNCnwgICAg ICAgICB8ICAgICAgICAgICBQbGVhc2UgcmVzcG9uZCB0byAiVGhpcyBsaXN0 IGlzIGZvciBkaXNjdXNzaW9uICAgfA0KfCAgICAgICAgIHwgICAgICAgICAg IGFib3V0IHRoZSBTUVIgZGF0YWJhc2UgcmVwb3J0aW5nICBsYW5ndWFnZSBm cm9tICB8DQp8ICAgICAgICAgfCAgICAgICAgICAgSHlwZXJpb24gU29sdXRp b25zLiIgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwNCnwgICAgICAg ICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgfA0KfC0tLS0tLS0tLSstLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0+DQogID4tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLXwNCiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgfA0KICB8ICAgICAgIFRvOiAgICAg ICBzcXItdXNlcnNAc3FydWcub3JnICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8DQogIHwgICAg ICAgY2M6ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IHwNCiAgfCAgICAgICBTdWJqZWN0OiAgW3Nxci11c2Vyc10gVC1TUUwgRERM IHN0YXRlbWVudHMgd2l0aGluIFNRUiBCZWdpbi1TUUwuLi5FbmQtU1FMICAg Y29uc3RydWN0ICAgfA0KICA+LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS18DQoNCg0KDQoNCklzIGl0IHBvc3Np YmxlIHRvIGNyZWF0ZSBhIGxvY2FsIG9yIGdsb2JhbCB0ZW1wb3JhcnkgdGFi bGUgKHdpdGhpbiBNU1NRTA0Kc2VydmVyIGRhdGFiYXNlKSBpbiBCZWdpbi1T UUwuLi5FbmQtU1FMIGNvbnN0cnVjdD8NCg0KVGhlIGZvbGxvd2luZyBjcmVh dGVzIGEgcGVybS4gdGFibGU6DQpCZWdpbi1TUUwgT24tRXJyb3I9V2Fybg0K IS4uLi4uDQogICBjcmVhdGUgdGFibGUgdGVzdF90YmwgKGVtcGxpZCBjaGFy KDExKSwgbmFtZSBjaGFyKDExKSApDQohLi4uLi4NCkVuZC1TUUwNCg0KUmVw bGFjaW5nIHRlc3RfdGJsIHdpdGggI3Rlc3RfdGJsIG9yICMjdGVzdF90Ymwg d2lsbCBwcm9kdWNlIGFuIGVycm9yLi4uDQoNClRoYW5rIHlvdQ0KDQpfX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fXw0KTVNOIFRvb2xiYXIgcHJvdmlkZXMgb25lLWNs aWNrIGFjY2VzcyB0byBIb3RtYWlsIGZyb20gYW55IFdlYiBwYWdlIOKAkyBG UkVFDQpkb3dubG9hZCEgaHR0cDovL3Rvb2xiYXIubXNuLmNvbS9nby9vbm0w MDIwMDQxM2F2ZS9kaXJlY3QvMDEvDQoNCg0KX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCnNxci11c2VycyBtYWls aW5nIGxpc3QNCnNxci11c2Vyc0BzcXJ1Zy5vcmcNCmh0dHA6Ly93d3cuc3Fy dWcub3JnL21haWxtYW4vbGlzdGluZm8vc3FyLXVzZXJzDQoNCg== --===============1177258726== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============1177258726==-- From sqr-users-bounces@sqrug.org Mon Apr 19 13:18:30 2004 From: Bruce Burnell Date: Mon, 19 Apr 2004 11:16:36 -0700 Subject: [sqr-users] Call System I have an SQR that I am running from the UNIX command line. I have a number off call system statements, and some of them are working. The following sequence if bahaving oddly: let $command_line = 'mkdir -p ' || $target show 'command is ' show $command_line call system using $command_line #status The command line that displays, when copied from the log and pasted into the UNIX command line, exeucutes as expected. When the SQR exucutes the command, I get the following: mkdir: not found I do not believe that this is permissions because I execute the SQR from the UNIX prompt, then execute the pasted command from the same UNIX prompt. So the SQR execution has the same permissions and environment variables. The value of #status is 127. I have other call system commands is the same SQR that execute as expected. Any help would be appreciated. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 13:38:38 2004 Subject: RE: [sqr-users] Call System Date: Mon, 19 Apr 2004 13:37:27 -0500 From: "Knapp, Richard" Isn't this usually due to the path being missing form the SQR user's enviro= nment? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org]On Behalf Of Bruce Burnell Sent: Monday, April 19, 2004 1:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] Call System I have an SQR that I am running from the UNIX command line. I have a number off call system statements, and some of them are working. The following sequence if bahaving oddly: let $command_line =3D 'mkdir -p ' || $target show 'command is ' show $command_line call system using $command_line #status The command line that displays, when copied from the log and pasted into the UNIX command line, exeucutes as expected. When the SQR exucutes the command, I get the following: mkdir: not found I do not believe that this is permissions because I execute the SQR from the UNIX prompt, then execute the pasted command from the same UNIX prompt. So the SQR execution has the same permissions and environment variables. The value of #status is 127. I have other call system commands is the same SQR that execute as expected. Any help would be appreciated. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 13:44:16 2004 From: "the dragon" Subject: RE: [sqr-users] Call System Date: Mon, 19 Apr 2004 13:43:11 -0500 Bruce, When you execute a command from within an sqr it executes the command in a spawned shell which is probably not inheriting the environment variables of the calling program. At this point I do not think you're dealing with a permissions issue. Find the path on mkdir (which mkdir or whence mkdir should work) and place that entire command in place of your single mkdir command and see if that helps. hope this helps. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have an SQR that I am running from the UNIX command line. I have a number off call system statements, and some of them are working. The following sequence if bahaving oddly: let $command_line = 'mkdir -p ' || $target show 'command is ' show $command_line call system using $command_line #status The command line that displays, when copied from the log and pasted into the UNIX command line, exeucutes as expected. When the SQR exucutes the command, I get the following: mkdir: not found I do not believe that this is permissions because I execute the SQR from the UNIX prompt, then execute the pasted command from the same UNIX prompt. So the SQR execution has the same permissions and environment variables. The value of #status is 127. I have other call system commands is the same SQR that execute as expected. Any help would be appreciated. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Lose those love handles! MSN Fitness shows you two moves to slim your waist. http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 13:47:15 2004 Date: Mon, 19 Apr 2004 14:44:58 -0400 From: "Boddapati, Jagadish" Subject: [sqr-users] Removal of Carriage Control in SQR lis file Hi, I am trying to remove the carriage control from the LIS file generated by SQR. There are about 80000 lines in the lis file and i am getting carriage control for after every 32766 lines ( due to max limit on page size buffer). So in the file with 80000 lines i am getting carriage control in 2 places. I don't want to have this character in the lis file as it would page break at that point. I can't increase the page size more than 32766. Can you please let me know if you have any solution to this.. Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 14:28:58 2004 From: James Womeldorf Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Date: Mon, 19 Apr 2004 14:27:44 -0500 Hi Jagadish, If you have the book 'SQR in PeopleSoft and Other Applications' (Landres and Landres) look on page 255 at the section on creating flat files. (If you don't have it I'd recommend it) I use this: begin-setup DECLARE-LAYOUT NoFormfeed TOP-MARGIN = 0 MAX-LINES = 999 FORMFEED = No END-DECLARE DECLARE-REPORT MYREPORT LAYOUT = NoFormfeed END-DECLARE END-SETUP Hope this helps, Jim -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Removal of Carriage Control in SQR lis file Hi, I am trying to remove the carriage control from the LIS file generated by SQR. There are about 80000 lines in the lis file and i am getting carriage control for after every 32766 lines ( due to max limit on page size buffer). So in the file with 80000 lines i am getting carriage control in 2 places. I don't want to have this character in the lis file as it would page break at that point. I can't increase the page size more than 32766. Can you please let me know if you have any solution to this.. Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 14:49:46 2004 Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Date: Mon, 19 Apr 2004 15:48:42 -0400 From: "Boddapati, Jagadish" Hi Jim, I will try this and let you know the results. Thanks a lot for your quick suggestion. Thanks, Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 -----Original Message----- From: sqr-users-bounces+jboddapati=amerisure.com@sqrug.org [mailto:sqr-users-bounces+jboddapati=amerisure.com@sqrug.org]On Behalf Of James Womeldorf Sent: Monday, April 19, 2004 3:28 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jagadish, If you have the book 'SQR in PeopleSoft and Other Applications' (Landres and Landres) look on page 255 at the section on creating flat files. (If you don't have it I'd recommend it) I use this: begin-setup DECLARE-LAYOUT NoFormfeed TOP-MARGIN = 0 MAX-LINES = 999 FORMFEED = No END-DECLARE DECLARE-REPORT MYREPORT LAYOUT = NoFormfeed END-DECLARE END-SETUP Hope this helps, Jim -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Removal of Carriage Control in SQR lis file Hi, I am trying to remove the carriage control from the LIS file generated by SQR. There are about 80000 lines in the lis file and i am getting carriage control for after every 32766 lines ( due to max limit on page size buffer). So in the file with 80000 lines i am getting carriage control in 2 places. I don't want to have this character in the lis file as it would page break at that point. I can't increase the page size more than 32766. Can you please let me know if you have any solution to this.. Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 15:01:27 2004 From: James Womeldorf Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Date: Mon, 19 Apr 2004 15:00:17 -0500 Good luck. I hope it works for you. -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 2:49 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jim, I will try this and let you know the results. Thanks a lot for your quick suggestion. Thanks, Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 -----Original Message----- From: sqr-users-bounces+jboddapati=amerisure.com@sqrug.org [mailto:sqr-users-bounces+jboddapati=amerisure.com@sqrug.org]On Behalf Of James Womeldorf Sent: Monday, April 19, 2004 3:28 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jagadish, If you have the book 'SQR in PeopleSoft and Other Applications' (Landres and Landres) look on page 255 at the section on creating flat files. (If you don't have it I'd recommend it) I use this: begin-setup DECLARE-LAYOUT NoFormfeed TOP-MARGIN = 0 MAX-LINES = 999 FORMFEED = No END-DECLARE DECLARE-REPORT MYREPORT LAYOUT = NoFormfeed END-DECLARE END-SETUP Hope this helps, Jim -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Removal of Carriage Control in SQR lis file Hi, I am trying to remove the carriage control from the LIS file generated by SQR. There are about 80000 lines in the lis file and i am getting carriage control for after every 32766 lines ( due to max limit on page size buffer). So in the file with 80000 lines i am getting carriage control in 2 places. I don't want to have this character in the lis file as it would page break at that point. I can't increase the page size more than 32766. Can you please let me know if you have any solution to this.. Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 15:18:50 2004 Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Date: Mon, 19 Apr 2004 16:17:45 -0400 From: "Boddapati, Jagadish" Hi Jim, IT WORKED.... THANKS A LOT FOR YOUR HELP. I WILL KEEP YOUR SUGGESTED BOOK IN MY LIBRARY. Have a Good Day, Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 -----Original Message----- From: sqr-users-bounces+jboddapati=amerisure.com@sqrug.org [mailto:sqr-users-bounces+jboddapati=amerisure.com@sqrug.org]On Behalf Of James Womeldorf Sent: Monday, April 19, 2004 4:00 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Good luck. I hope it works for you. -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 2:49 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jim, I will try this and let you know the results. Thanks a lot for your quick suggestion. Thanks, Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 -----Original Message----- From: sqr-users-bounces+jboddapati=amerisure.com@sqrug.org [mailto:sqr-users-bounces+jboddapati=amerisure.com@sqrug.org]On Behalf Of James Womeldorf Sent: Monday, April 19, 2004 3:28 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jagadish, If you have the book 'SQR in PeopleSoft and Other Applications' (Landres and Landres) look on page 255 at the section on creating flat files. (If you don't have it I'd recommend it) I use this: begin-setup DECLARE-LAYOUT NoFormfeed TOP-MARGIN = 0 MAX-LINES = 999 FORMFEED = No END-DECLARE DECLARE-REPORT MYREPORT LAYOUT = NoFormfeed END-DECLARE END-SETUP Hope this helps, Jim -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Removal of Carriage Control in SQR lis file Hi, I am trying to remove the carriage control from the LIS file generated by SQR. There are about 80000 lines in the lis file and i am getting carriage control for after every 32766 lines ( due to max limit on page size buffer). So in the file with 80000 lines i am getting carriage control in 2 places. I don't want to have this character in the lis file as it would page break at that point. I can't increase the page size more than 32766. Can you please let me know if you have any solution to this.. Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 19 15:35:28 2004 From: James Womeldorf Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Date: Mon, 19 Apr 2004 15:33:48 -0500 Wonderful! You have a good day, too. -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 3:18 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jim, IT WORKED.... THANKS A LOT FOR YOUR HELP. I WILL KEEP YOUR SUGGESTED BOOK IN MY LIBRARY. Have a Good Day, Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 -----Original Message----- From: sqr-users-bounces+jboddapati=amerisure.com@sqrug.org [mailto:sqr-users-bounces+jboddapati=amerisure.com@sqrug.org]On Behalf Of James Womeldorf Sent: Monday, April 19, 2004 4:00 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Good luck. I hope it works for you. -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 2:49 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jim, I will try this and let you know the results. Thanks a lot for your quick suggestion. Thanks, Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 -----Original Message----- From: sqr-users-bounces+jboddapati=amerisure.com@sqrug.org [mailto:sqr-users-bounces+jboddapati=amerisure.com@sqrug.org]On Behalf Of James Womeldorf Sent: Monday, April 19, 2004 3:28 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Removal of Carriage Control in SQR lis file Hi Jagadish, If you have the book 'SQR in PeopleSoft and Other Applications' (Landres and Landres) look on page 255 at the section on creating flat files. (If you don't have it I'd recommend it) I use this: begin-setup DECLARE-LAYOUT NoFormfeed TOP-MARGIN = 0 MAX-LINES = 999 FORMFEED = No END-DECLARE DECLARE-REPORT MYREPORT LAYOUT = NoFormfeed END-DECLARE END-SETUP Hope this helps, Jim -----Original Message----- From: Boddapati, Jagadish [mailto:JBoddapati@amerisure.com] Sent: Monday, April 19, 2004 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Removal of Carriage Control in SQR lis file Hi, I am trying to remove the carriage control from the LIS file generated by SQR. There are about 80000 lines in the lis file and i am getting carriage control for after every 32766 lines ( due to max limit on page size buffer). So in the file with 80000 lines i am getting carriage control in 2 places. I don't want to have this character in the lis file as it would page break at that point. I can't increase the page size more than 32766. Can you please let me know if you have any solution to this.. Jagadish Boddapati Application Developer Consultant Amerisure Insurance Companies Ph: 248 426 7888 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 21 16:18:52 2004 From: Bruce Burnell Date: Wed, 21 Apr 2004 14:15:18 -0700 Subject: [sqr-users] RE: Call System That did it. I still don't understand why environment variables from my .profile were not carried to the child shell, but it was a one-time fixit program, so I won't worry about it. Thanks, Bruce "the dragon" To sqr-users@sqrug.org 04/19/2004 11:43 cc AM Bruce.Burnell@sfgov.org Subject RE: [sqr-users] Call System Bruce, When you execute a command from within an sqr it executes the command in a spawned shell which is probably not inheriting the environment variables of the calling program. At this point I do not think you're dealing with a permissions issue. Find the path on mkdir (which mkdir or whence mkdir should work) and place that entire command in place of your single mkdir command and see if that helps. hope this helps. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have an SQR that I am running from the UNIX command line. I have a number off call system statements, and some of them are working. The following sequence if bahaving oddly: let $command_line = 'mkdir -p ' || $target show 'command is ' show $command_line call system using $command_line #status The command line that displays, when copied from the log and pasted into the UNIX command line, exeucutes as expected. When the SQR exucutes the command, I get the following: mkdir: not found I do not believe that this is permissions because I execute the SQR from the UNIX prompt, then execute the pasted command from the same UNIX prompt. So the SQR execution has the same permissions and environment variables. The value of #status is 127. I have other call system commands is the same SQR that execute as expected. Any help would be appreciated. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Lose those love handles! MSN Fitness shows you two moves to slim your waist. http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Apr 21 17:12:25 2004 Date: Wed, 21 Apr 2004 15:09:52 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] RE: Call System Bruce, Wills has the explianation in the mail,it depends on who the new shell is spwaned to execute the Process. Hence the Need to specify and absolute path to the mkdir command. A work around could to to wrap the command in a Shell Script and execute the Shell script with a command to run your .profile in there, but that is too much work for a single command. Will's method is much better. HTH. Datta. --- Bruce Burnell wrote: > > > > > That did it. I still don't understand why environment variables from > my > .profile were not carried to the child shell, but it was a one-time > fixit > program, so I won't worry about it. > Thanks, > Bruce > > > > > "the dragon" > > > m> > To > sqr-users@sqrug.org > > 04/19/2004 11:43 > cc > AM Bruce.Burnell@sfgov.org > > > Subject > RE: [sqr-users] Call System > > > > > > > > > > > > > > > > > > Bruce, > > When you execute a command from within an sqr it executes the command > in a > spawned shell which is probably not inheriting the environment > variables of > > the calling program. At this point I do not think you're dealing > with a > permissions issue. Find the path on mkdir (which mkdir or whence > mkdir > should work) and place that entire command in place of your single > mkdir > command and see if that helps. > > hope this helps. > > peace, > clark 'the dragon' willis > > > PSA: Salary <> Slavery. If you earn a salary, your employer is > renting > your > services for 40 hours a week, not purchasing your soul. Your time is > the > only real finite asset that you have, and once used it can never be > recovered, so don't waste it by giving it away. > > "Time is the coin of your life. It is the only coin you have, and > only you > can determine how it will be spent. Be careful lest you let other > people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > I have an SQR that I am running from the UNIX command line. I have a > number off call system statements, and some of them are working. The > following sequence if bahaving oddly: > > let $command_line = 'mkdir -p ' || $target > show 'command is ' > show $command_line > call system using $command_line #status > > The command line that displays, when copied from the log and pasted > into > the UNIX command line, exeucutes as expected. When the SQR exucutes > the > command, I get the following: > > mkdir: not found > > I do not believe that this is permissions because I execute the SQR > from > the UNIX prompt, then execute the pasted command from the same UNIX > prompt. > So the SQR execution has the same permissions and environment > variables. > The value of #status is 127. I have other call system commands is > the > same SQR that execute as expected. > > Any help would be appreciated. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Lose those love handles! MSN Fitness shows you two moves to slim your > waist. > http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 08:14:04 2004 Date: Thu, 22 Apr 2004 09:13:05 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] get oracle database name from SQR Hi to all I am developing a log of what sqr reports are run by which users and how long they take. How can I determine the database name that the user logged onto? I tried select name from v$database, select global_name from global_name, begin-select global_name &vdbname from global_name end-select these work great in oracle or SQL but give an error if run from SQR "Error in include file "write_log.sqh" on line 33: (SQR 3704) Missing procedure name. from global_name" I must be missing some really obvious thing. Any suggestions? Oracle 8.06/SQR 6.0/Windows 2000 clients Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 08:17:21 2004 Date: Thu, 22 Apr 2004 09:13:14 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] get oracle database name from SQR Hi to all I am developing a log of what sqr reports are run by which users and how long they take. How can I determine the database name that the user logged onto? I tried select name from v$database, select global_name from global_name, begin-select global_name &vdbname from global_name end-select these work great in oracle or SQL but give an error if run from SQR "Error in include file "write_log.sqh" on line 33: (SQR 3704) Missing procedure name. from global_name" I must be missing some really obvious thing. Any suggestions? Oracle 8.06/SQR 6.0/Windows 2000 clients Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 08:37:39 2004 From: James Womeldorf Subject: RE: [sqr-users] get oracle database name from SQR Date: Thu, 22 Apr 2004 08:35:07 -0500 Hi Kevin, We use this procedure: begin-procedure get_database_name(:$database_name) begin-select value &database_name let $database_name = &database_name from v$parameter where name = 'db_name' end-select end-procedure get_database_name Jim Womeldorf -----Original Message----- From: Kevin Laroche [mailto:bydesign@magma.ca] Sent: Thursday, April 22, 2004 8:13 AM To: sqr-users@sqrug.org Subject: [sqr-users] get oracle database name from SQR Hi to all I am developing a log of what sqr reports are run by which users and how long they take. How can I determine the database name that the user logged onto? I tried select name from v$database, select global_name from global_name, begin-select global_name &vdbname from global_name end-select these work great in oracle or SQL but give an error if run from SQR "Error in include file "write_log.sqh" on line 33: (SQR 3704) Missing procedure name. from global_name" I must be missing some really obvious thing. Any suggestions? Oracle 8.06/SQR 6.0/Windows 2000 clients Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 08:41:51 2004 From: "Hale, Keith" Subject: RE: [sqr-users] get oracle database name from SQR Date: Thu, 22 Apr 2004 09:40:13 -0400 How about select * from global_name? You can then parse the db name. Keith -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Thursday, April 22, 2004 9:35 AM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] get oracle database name from SQR Hi Kevin, We use this procedure: begin-procedure get_database_name(:$database_name) begin-select value &database_name let $database_name = &database_name from v$parameter where name = 'db_name' end-select end-procedure get_database_name Jim Womeldorf -----Original Message----- From: Kevin Laroche [mailto:bydesign@magma.ca] Sent: Thursday, April 22, 2004 8:13 AM To: sqr-users@sqrug.org Subject: [sqr-users] get oracle database name from SQR Hi to all I am developing a log of what sqr reports are run by which users and how long they take. How can I determine the database name that the user logged onto? I tried select name from v$database, select global_name from global_name, begin-select global_name &vdbname from global_name end-select these work great in oracle or SQL but give an error if run from SQR "Error in include file "write_log.sqh" on line 33: (SQR 3704) Missing procedure name. from global_name" I must be missing some really obvious thing. Any suggestions? Oracle 8.06/SQR 6.0/Windows 2000 clients Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 08:45:01 2004 Date: Thu, 22 Apr 2004 15:38:23 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20get=20oracle=20databas?==?ISO-8859-1?Q?e=20name=20from=20SQR?= I used this procedure: !=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Begin-Procedure fToolsRechBase Let $ToolsProc =3D 'fToolsRechBase' !--------------------------------------------------------------------------= ---------------------- ! Objet : Recuperation du nom de la base de connexion ! Conception : Philippe LEBLANC ! Modification : 19/06/2001 !--------------------------------------------------------------------------= ---------------------- ! variable relative a la base de connexion Move '' to $sToolsNomBase Begin-Select On-Error=3DfToolsErreurSql=20=20 value &Basename from v$parameter where name =3D 'db_name' End-Select Move &Basename to $sToolsNomBase =20=20 End-Procedure !--------------------------------------------------------------------------= ---------------------- It work for me, so it must for you ;-) Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 08:56:32 2004 Date: Thu, 22 Apr 2004 06:55:22 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] get oracle database name from SQR Hi Kevin, The Select Statement you have works as is on our System. UNIX / SQR 4.3. ORACLE 8.1. I am not sure if the Select is Error see if the Error is some other place. HTH Datta. --- James Womeldorf wrote: > Hi Kevin, > > We use this procedure: > > begin-procedure get_database_name(:$database_name) > begin-select > value &database_name > let $database_name = &database_name > from v$parameter > where name = 'db_name' > end-select > end-procedure get_database_name > > Jim Womeldorf > > > -----Original Message----- > From: Kevin Laroche [mailto:bydesign@magma.ca] > Sent: Thursday, April 22, 2004 8:13 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] get oracle database name from SQR > > > Hi to all > I am developing a log of what sqr reports are run by which users and > how > long they take. > How can I determine the database name that the user logged onto? > I tried > select name from v$database, > select global_name from global_name, > > begin-select > global_name &vdbname > from global_name > end-select > > these work great in oracle or SQL but give an error if run from SQR > "Error in include file "write_log.sqh" on line 33: > (SQR 3704) Missing procedure name. > from global_name" > > I must be missing some really obvious thing. Any suggestions? > > Oracle 8.06/SQR 6.0/Windows 2000 clients > Kevin LaRoche > Oracle Forms Developer > Canadian Human Rights Commission > Ottawa Ontario > K2E 5G2 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 09:05:36 2004 Date: Thu, 22 Apr 2004 10:03:22 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] get oracle database name from SQR Thanks to all for your reply James, if you don't mind I will use your procedure. I believe my problems were with having a space between the start of the line and the begin-select. Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 09:17:10 2004 From: James Womeldorf Subject: RE: [sqr-users] get oracle database name from SQR Date: Thu, 22 Apr 2004 09:15:52 -0500 Hi Kevin, Be my guest. I can't resist the temptation to tout the advantages of local procedures over a global ones. I think it is nice to just call a procedure and to not have to worry about what global variables gets set. My memory just is not good enough to remember them all :) Jim -----Original Message----- From: Kevin Laroche [mailto:bydesign@magma.ca] Sent: Thursday, April 22, 2004 9:03 AM To: sqr-users@sqrug.org Subject: [sqr-users] get oracle database name from SQR Thanks to all for your reply James, if you don't mind I will use your procedure. I believe my problems were with having a space between the start of the line and the begin-select. Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Apr 22 09:58:16 2004 Date: Thu, 22 Apr 2004 10:55:54 -0400 From: "Everett Carr" Subject: Re: [sqr-users] get oracle database name from SQR you have a syntax error in your sqr begin-select name &vcbname from v$database end-select Works just fine inside an sqr; we do all all the time. >From your error message you have a begin-progam end-program, begin-procedur= e end-procedure mismatch.=20 You are avoiding "begin-report" aren't you? >>> bydesign@magma.ca 04/22/04 09:13AM >>> Hi to all I am developing a log of what sqr reports are run by which users and how lo= ng they take. How can I determine the database name that the user logged onto? I tried select name from v$database, select global_name from global_name, begin-select global_name &vdbname from global_name end-select these work great in oracle or SQL but give an error if run from SQR "Error in include file "write_log.sqh" on line 33: (SQR 3704) Missing procedure name. from global_name" I must be missing some really obvious thing. Any suggestions? Oracle 8.06/SQR 6.0/Windows 2000 clients Kevin LaRoche Oracle Forms Developer Canadian Human Rights Commission Ottawa Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 23 08:57:01 2004 Date: Fri, 23 Apr 2004 09:53:25 -0400 From: sqr-users@sqrug.org Subject: [sqr-users] placeholder message placeholder message From sqr-users-bounces@sqrug.org Fri Apr 23 09:03:56 2004 Date: Fri, 23 Apr 2004 10:00:57 -0400 From: sqr-users@sqrug.org Subject: RE: [sqr-users] placeholder message placeholder message _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 23 08:58:55 2004 From: sqr-users@sqrug.org Subject: RE: [sqr-users] placeholder message Date: Fri, 23 Apr 2004 09:58:16 -0400 placeholder message _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Apr 25 15:58:14 2004 Date: Sun, 25 Apr 2004 22:57:06 +0200 (CEST) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: Re: [sqr-users] Sending E-mail from SQR --- Harry R Harris a écrit : > I am trying to send an email from within an SQR using the following: > > let $mail_cmd = 'echo' || $body || '|' || ' mailx -s ' || $subject || > $address > > call system using $mail_cmd #status nowait > > Seems to work fine until $body contains more than about 500 > characters.??? > > We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 > > Hello You can try to produce an ASCII text file from SQR (open-file, etc...) then send it with something like (suppose you named you text file 'email-text.txt') : let $mail_cmd = 'cat email-text.txt |' || ' mailx -s ' || $subject || $address call system using $mail_cmd #status nowait Here you should not reach the 500 char limit... Hope this helps, Charly ===== Charly Lebrun calebrun@yahoo.com _________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Apr 25 16:02:53 2004 Date: Sun, 25 Apr 2004 23:00:42 +0200 (CEST) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: Re: [sqr-users] Oops: sending email in SQR (NT v7.5x) --- "Hale, Keith" a écrit : > Sorry... I remember this isn't a PS UG > > > > -----Original Message----- > From: Hale, Keith > Sent: Thursday, April 15, 2004 3:40 PM > To: 'sqr-users@sqrug.org' > Subject: sending email in SQR (NT v7.5x) > > > > The auditors don't like the fact that the user has the option to say no to > sending the email on the client's behalf. How can I configure Workflow to > send email from PSNT or PSUNIX instead of Outlook? > > > > TIA, > > Keith > > I assume you are using Windows (NT or other...). You can write the message you intend to send in an ASCII text file, then send it with the SMTPSEND.EXE tool thru a CALL SYSTEM command. If you can't find SMTPSEND tool (freeware) on the net, just tell me... Charly ' ===== Charly Lebrun calebrun@yahoo.com _________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 06:27:17 2004 Date: Mon, 26 Apr 2004 07:25:34 -0400 From: "George Jansen" Subject: Re: [sqr-users] Sending E-mail from SQR Since you have Oracle, why not use the utl_smtp package? Have a look at the= Provided PL/SQL Packages documentation. >>> calebrun@yahoo.com 04/25/04 04:57PM >>> --- Harry R Harris a =E9crit : > I am trying to send= an email from within an SQR using the following: >=20 > let $mail_cmd =3D 'echo' || $body || '|' || ' mailx -s ' || $subject || > $address >=20 > call system using $mail_cmd #status nowait >=20 > Seems to work fine until $body contains more than about 500 > characters.??? >=20 > We are: SQR for PeopleSoft/8.19/IBM RS6000/AIX 5.1/Oracle 9.2.0.4 >=20 >=20 Hello You can try to produce an ASCII text file from SQR (open-file, etc...) then= send it with something like (suppose you named you text file 'email-text.txt') : let $mail_cmd =3D 'cat email-text.txt |' || ' mailx -s ' || $subject || $ad= dress call system using $mail_cmd #status nowait Here you should not reach the 500 char limit... Hope this helps, Charly =3D=3D=3D=3D=3D Charly Lebrun calebrun@yahoo.com=20 _________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran=E7ais ! Yahoo! Mail : http://fr.mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 09:38:31 2004 Date: Mon, 26 Apr 2004 07:37:58 -0700 From: "Happersberger. Rich (MSA)" Subject: [sqr-users] Encapsulate with Double-Quotes Greetings - I'm using Brio as my report writer against an Oracle db and an application using Oracle forms. When I have my users submit a certain job through the forms, they must enter certain information. No matter what they type, only the first word will be captured in the resulting ASCII file. The forms developer suggested I encapsulate the entries in the forms with double-quotes. If I make an entry to forms and use double-quotes to encapsulate the entry, all the narrative is returned to the file. I've tried to do this in Visual-Sqribe using the following in order to save some extra demands on the users (remembering to use the quotes) - move '<34> <34>' to $MethodName input $MethodName 'Specify Method Name' type=3Dchar This is not working - again only the first word of the narrative is retruned to file no matter how loooooooooooooong it might be. TIA - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ___________________________________________________________________________= ________________________________ This email and any attachments thereto may contain private, confidential, a= nd privileged material for the sole use of the intended recipient. Any review, copying, or distribution of= this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient i= s strictly prohibited. If you are not the intended recipient, please contact the sender immediatel= y and permanently delete the original and any copies of this email and any attachments theret= o. ___________________________________________________________________________= ________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 09:53:35 2004 From: "the dragon" Subject: RE: [sqr-users] Encapsulate with Double-Quotes Date: Mon, 26 Apr 2004 09:52:22 -0500 Rich, my advice: Slap the users and tell them they'll use quotes, or get on THE LIST of "Bastard Sysadm From Hell".... Time to put some fear into the users and quit coddling them... :-p hee hee hee peace, clark 'the dragon' willis PS. If you're too young or not geeky enough to remember "The Bastard Operator Fron Hell", you can read about his amusing exploits here: http://bofh.ntk.net/Bastard.html http://members.iinet.net.au/~bofh/ http://www.theregister.co.uk/odds/bofh/ PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Greetings - I'm using Brio as my report writer against an Oracle db and an application using Oracle forms. When I have my users submit a certain job through the forms, they must enter certain information. No matter what they type, only the first word will be captured in the resulting ASCII file. The forms developer suggested I encapsulate the entries in the forms with double-quotes. If I make an entry to forms and use double-quotes to encapsulate the entry, all the narrative is returned to the file. I've tried to do this in Visual-Sqribe using the following in order to save some extra demands on the users (remembering to use the quotes) - move '<34> <34>' to $MethodName input $MethodName 'Specify Method Name' type=char This is not working - again only the first word of the narrative is retruned to file no matter how loooooooooooooong it might be. TIA - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 10:14:42 2004 Date: Mon, 26 Apr 2004 11:11:57 -0400 From: "George Jansen" Subject: RE: [sqr-users] Encapsulate with Double-Quotes Tempting though the BOFH art of user discipline is, it might be better to step back and look at the problem. If Oracle Forms quit capturing after the first token, Larry Ellison would have a deal less money, wouldn't he? Typically, Oracle Forms are a handy front end to a relational table, no? Joe User bangs in a job name in box one, a tale of woe in box 2, hits save, and the code behind pushes it all into the table. So, what exactly is writing the ASCII file? The SQR program? A PL/SQL block using the TEXT_IO or UTIL_FILE package? Without knowing that, it's hard to guess what is happening. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 10:18:50 2004 Subject: RE: [sqr-users] Encapsulate with Double-Quotes Date: Mon, 26 Apr 2004 08:17:04 -0700 From: "Happersberger. Rich (MSA)" Sorry - yes, the SQR program. -----Original Message----- From: George Jansen [mailto:GJANSEN@aflcio.org]=0D Sent: Monday, April 26, 2004 8:12 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Encapsulate with Double-Quotes Tempting though the BOFH art of user discipline is, it might be better to step back and look at the problem. If Oracle Forms quit capturing after the first token, Larry Ellison would have a deal less money, wouldn't he? Typically, Oracle Forms are a handy front end to a relational table, no? Joe User bangs in a job name in box one, a tale of woe in box 2, hits save, and the code behind pushes it all into the table. So, what exactly is writing the ASCII file? The SQR program? A PL/SQL block using the TEXT_IO or UTIL_FILE package? Without knowing that, it's hard to guess what is happening. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________________________________________________= ________________________________ This email and any attachments thereto may contain private, confidential, a= nd privileged material for the sole use of the intended recipient. Any review, copying, or distribution of= this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient i= s strictly prohibited. If you are not the intended recipient, please contact the sender immediatel= y and permanently delete the original and any copies of this email and any attachments theret= o. ___________________________________________________________________________= ________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 10:28:44 2004 From: Al H Subject: Re: [sqr-users] Encapsulate with Double-Quotes Date: Mon, 26 Apr 2004 08:28:56 -0700 Two things to try: 1. Try type=3Dtext instead of type=3Dchar 2. Put the quotes into the string AFTER the input: encode <34> into $q let $Methodname =3D $q || $MethodName || $q On Mon, 26 Apr 2004 07:37:58 -0700, you wrote: > >Greetings - > >I'm using Brio as my report writer against an Oracle db and an >application using Oracle forms. > >When I have my users submit a certain job through the forms, they must >enter certain information. No matter what they type, only the first word >will be captured in the resulting ASCII file. > >The forms developer suggested I encapsulate the entries in the forms >with double-quotes. If I make an entry to forms and use double-quotes to >encapsulate the entry, all the narrative is returned to the file. > >I've tried to do this in Visual-Sqribe using the following in order to >save some extra demands on the users (remembering to use the quotes) - > >move '<34> <34>' to $MethodName >input $MethodName 'Specify Method Name' type=3Dchar > >This is not working - again only the first word of the narrative is >retruned to file no matter how >loooooooooooooong it might be. > >TIA - > >Rich Happersberger >Asst. Systems Administrator >SRCSD Laboratory (MSA) > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 10:31:24 2004 Date: Mon, 26 Apr 2004 11:27:39 -0400 From: "George Jansen" Subject: RE: [sqr-users] Encapsulate with Double-Quotes Where does "Input" come into the picture, then? You have data, it appears, in a relational table, and should be able to use a Begin-Select paragraph. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 11:12:00 2004 Date: Mon, 26 Apr 2004 11:10:07 -0500 From: "Turner, Ivan" Subject: [sqr-users] Dynamic table names Logic dictates using different tables based on user choices. I hate program maintenance, but it goes with the territory! an assignment takes place such as this in the program based on a user choice. move 'PS_ITEM_ACTIVITY A,PS_CUSTOMER m,PS_ENTRY_TYPE_TBL B, PS_JRNL_HEADER_FS Z1,ps_cust_prd_info_l cp,ps_cust_type_bu_l ct ' to $from_tables But the driving query doesn't include table ps_jrnl_header_fs in the statement below. Is variable $from_tables cumulative? Is there no need to incluse it in the driving query's select? SELECT ... FROM [PS_CUSTOMER m,PS_ENTRY_TYPE_TBL B,PS_ITEM_ACTIVITY A,ps_cust_prd_info_l cp,ps_cust_type_bu_l ct : $from_tables] WHERE [$where] AND A.ENTRY_TYPE =3D B.ENTRY_TYPE AND B.CLASS_L IN ($Adj,$Occ,$Inv,$Pay) AND A.CUST_ID =3D m.CUST_ID and m.setid =3D b.setid and a.cust_id =3D cp.cust_id(+) [$Where_IR_State] !Outer join to get the SAM IR account's state value (arl50000.sqc). [$where_rj] !Logic to retrieve RJ exception/non-exception entries (arl50000.sqc). [$where_HIST] !Use historic cust_type where available, else use pc_customer cust_type (cust_type.sqc) [$exclude_am] !Exclude entry_type 195 from output. AND m.SETID =3D 'LCI' [$order_by] !Order of report breaks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 11:13:33 2004 Subject: RE: [sqr-users] Encapsulate with Double-Quotes Date: Mon, 26 Apr 2004 09:12:25 -0700 From: "Happersberger. Rich (MSA)" Sorry - same thing; only the first word shows in $MethodName. -----Original Message----- From: Al H [mailto:maillists@starbuckk.net]=0D Sent: Monday, April 26, 2004 8:29 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Encapsulate with Double-Quotes Two things to try: 1. Try type=3Dtext instead of type=3Dchar 2. Put the quotes into the string AFTER the input: encode <34> into $q let $Methodname =3D $q || $MethodName || $q On Mon, 26 Apr 2004 07:37:58 -0700, you wrote: > >Greetings - > >I'm using Brio as my report writer against an Oracle db and an=0D >application using Oracle forms. > >When I have my users submit a certain job through the forms, they must=0D >enter certain information. No matter what they type, only the first=0D >word will be captured in the resulting ASCII file. > >The forms developer suggested I encapsulate the entries in the forms=0D >with double-quotes. If I make an entry to forms and use double-quotes=0D >to encapsulate the entry, all the narrative is returned to the file. > >I've tried to do this in Visual-Sqribe using the following in order to=0D >save some extra demands on the users (remembering to use the quotes) - > >move '<34> <34>' to $MethodName >input $MethodName 'Specify Method Name' type=3Dchar > >This is not working - again only the first word of the narrative is=0D >retruned to file no matter how loooooooooooooong it might be. > >TIA - > >Rich Happersberger >Asst. Systems Administrator >SRCSD Laboratory (MSA) > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________________________________________________= ________________________________ This email and any attachments thereto may contain private, confidential, a= nd privileged material for the sole use of the intended recipient. Any review, copying, or distribution of= this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient i= s strictly prohibited. If you are not the intended recipient, please contact the sender immediatel= y and permanently delete the original and any copies of this email and any attachments theret= o. ___________________________________________________________________________= ________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 11:22:15 2004 Subject: RE: [sqr-users] Encapsulate with Double-Quotes Date: Mon, 26 Apr 2004 09:21:42 -0700 From: "Happersberger. Rich (MSA)" This is a multi-part message in MIME format... ------_=_NextPart_001_01C42BAA.8F834FDE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Here's the entire file - -----Original Message----- From: George Jansen [mailto:GJANSEN@aflcio.org]=0D Sent: Monday, April 26, 2004 8:28 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Encapsulate with Double-Quotes Where does "Input" come into the picture, then? You have data, it appears, in a relational table, and should be able to use a Begin-Select paragraph. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________________________________________________= ________________________________ This email and any attachments thereto may contain private, confidential, a= nd privileged material for the sole use of the intended recipient. Any review, copying, or distribution of= this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient i= s strictly prohibited. If you are not the intended recipient, please contact the sender immediatel= y and permanently delete the original and any copies of this email and any attachments theret= o. ___________________________________________________________________________= ________________________________ ------_=_NextPart_001_01C42BAA.8F834FDE Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/x-zip-compressed' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C42BAA.8F834FDE Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C42BAA.8F834FDE-- From sqr-users-bounces@sqrug.org Mon Apr 26 11:42:35 2004 Date: Mon, 26 Apr 2004 12:42:02 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] Encapsulate with Double-Quotes Hi Rich We use oracle forms 5 and 6 on oracle 8.06 with brio 5/6 as our report tool. It works well most of the time but now and again we end up odd problems. One of them sounds like yours. I was attempting to pass a Where clause with multiple words in a text string to the report and BRIO only picked up on the first word for no good reason that we could find. Our quick and dirty solution was to use a replace on the forms side and replace every blank space with a ?. Pass the text string and then on the Brio side use translate to remove the ? and put blanks in their place. It's not elegant but it worked for us. Good luck Kevin LaRoche Oracle forms developer Canadian Human Rights Commission Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Apr 26 15:16:30 2004 From: Al H Subject: Re: [sqr-users] Encapsulate with Double-Quotes Date: Mon, 26 Apr 2004 12:58:26 -0700 The list does not allow attachments. I hope I am understanding your issue correctly. I tried the following simple test: begin-report input $Inchar 'Enter text' type=3Dtext show $Inchar end-report The show statement does indeed display all characters entered regardless of what was typed in. Therefore, the input statement should not be the root of the problem. You'll need to place show statements throughout the program to see where the data is disappearing. On Mon, 26 Apr 2004 09:12:25 -0700, you wrote: > >Sorry - same thing; only the first word shows in $MethodName. > >-----Original Message----- >From: Al H [mailto:maillists@starbuckk.net] > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 08:26:10 2004 Date: Tue, 27 Apr 2004 09:24:58 -0400 From: "White, Denise" Subject: [sqr-users] RE: Dynamic table names Ivan, I would try it like this: move ', PS_JRNL_HEADER_FS Z1' to $from_tables FROM PS_CUSTOMER m,PS_ENTRY_TYPE_TBL B,PS_ITEM_ACTIVITY A,ps_cust_prd_info_l cp,ps_cust_type_bu_l ct [$from_tables] The only thing that appears to be variable is that one table. I've never t= ried it, but I doubt SQR would take well to having some tables listed twice= , with the same alias. HTH, Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation dewhite@vicr.com ------------------------------ Message: 8 Date: Mon, 26 Apr 2004 11:10:07 -0500 From: "Turner, Ivan" Subject: [sqr-users] Dynamic table names Logic dictates using different tables based on user choices. I hate program maintenance, but it goes with the territory! an assignment takes place such as this in the program based on a user choice. move 'PS_ITEM_ACTIVITY A,PS_CUSTOMER m,PS_ENTRY_TYPE_TBL B, PS_JRNL_HEADER_FS Z1,ps_cust_prd_info_l cp,ps_cust_type_bu_l ct ' to $from_tables But the driving query doesn't include table ps_jrnl_header_fs in the statement below. Is variable $from_tables cumulative? Is there no need to incluse it in the driving query's select? SELECT ... FROM [PS_CUSTOMER m,PS_ENTRY_TYPE_TBL B,PS_ITEM_ACTIVITY A,ps_cust_prd_info_l cp,ps_cust_type_bu_l ct : $from_tables] WHERE [$where] AND A.ENTRY_TYPE =3D B.ENTRY_TYPE AND B.CLASS_L IN ($Adj,$Occ,$Inv,$Pay) AND A.CUST_ID =3D m.CUST_ID and m.setid =3D b.setid and a.cust_id =3D cp.cust_id(+) [$Where_IR_State] !Outer join to get the SAM IR account's state value (arl50000.sqc). [$where_rj] !Logic to retrieve RJ exception/non-exception entries (arl50000.sqc). [$where_HIST] !Use historic cust_type where available, else use pc_customer cust_type (cust_type.sqc) [$exclude_am] !Exclude entry_type 195 from output. AND m.SETID =3D 'LCI' [$order_by] !Order of report breaks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 14:12:47 2004 From: "DICKMAN, ERIC C." Date: Tue, 27 Apr 2004 14:11:25 -0500 Subject: [sqr-users] Creating Commas in a String for 'WHERE" clause Hello All.... I have never had to deal with the "IN" portion of SQL in SQR. Is there a way to pass a list of variables into the SQL. In this case, $max_speed is passed as '123,145,087'. The SQL returns no values when passed as $max_speed. If I hard code the SQL with '123,145,087', the results return as expected. Is there anyway to convert the input variable to the correct format for the "IN" Passed In SQL. FROM CAR A, CAR_BUILT B, WHERE A.CAR_MODEL _ID = B.ID_CAR_MAKE AND B.MAX_SPEED in ($max_speed) Hard Coded SQL FROM CAR A, CAR_BUILT B, WHERE A.CAR_MODEL _ID = B.ID_CAR_MAKE AND B.MAX_SPEED in ('123,145,087') Any assistance would be greatly appreciated. Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 14:41:55 2004 Subject: RE: [sqr-users] Creating Commas in a String for 'WHERE" clause Date: Tue, 27 Apr 2004 13:41:19 -0600 From: "Jon Alsager" I think it will work if you put $max_speed in [], as: AND B.MAX_SPEED in ([$max_speed]) Hope this helps. Jon -----Original Message----- From: sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Tuesday, April 27, 2004 1:11 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Creating Commas in a String for 'WHERE" clause Hello All.... I have never had to deal with the "IN" portion of SQL in SQR. Is there a way to pass a list of variables into the SQL. In this case, $max_speed is passed as '123,145,087'. The SQL returns no values when passed as $max_speed. If I hard code the SQL with '123,145,087', the results return as expected. Is there anyway to convert the input variable to the correct format for the "IN"=20=20 Passed In SQL. FROM CAR A, CAR_BUILT B, WHERE A.CAR_MODEL _ID =3D B.ID_CAR_MAKE=20=20 AND B.MAX_SPEED in ($max_speed) Hard Coded SQL FROM CAR A, CAR_BUILT B, WHERE A.CAR_MODEL _ID =3D B.ID_CAR_MAKE=20=20 AND B.MAX_SPEED in ('123,145,087') Any assistance would be greatly appreciated. Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 15:12:28 2004 From: "DICKMAN, ERIC C." Subject: RE: [sqr-users] Creating Commas in a String for 'WHERE" clause Date: Tue, 27 Apr 2004 15:11:05 -0500 Worked great... Thanks, Jon. -----Original Message----- From: Jon Alsager [mailto:Jalsager@ISIF.STATE.ID.US] Sent: Tuesday, April 27, 2004 2:41 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Creating Commas in a String for 'WHERE" clause I think it will work if you put $max_speed in [], as: AND B.MAX_SPEED in ([$max_speed]) Hope this helps. Jon -----Original Message----- From: sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Tuesday, April 27, 2004 1:11 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Creating Commas in a String for 'WHERE" clause Hello All.... I have never had to deal with the "IN" portion of SQL in SQR. Is there a way to pass a list of variables into the SQL. In this case, $max_speed is passed as '123,145,087'. The SQL returns no values when passed as $max_speed. If I hard code the SQL with '123,145,087', the results return as expected. Is there anyway to convert the input variable to the correct format for the "IN" Passed In SQL. FROM CAR A, CAR_BUILT B, WHERE A.CAR_MODEL _ID = B.ID_CAR_MAKE AND B.MAX_SPEED in ($max_speed) Hard Coded SQL FROM CAR A, CAR_BUILT B, WHERE A.CAR_MODEL _ID = B.ID_CAR_MAKE AND B.MAX_SPEED in ('123,145,087') Any assistance would be greatly appreciated. Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 15:27:23 2004 Date: Tue, 27 Apr 2004 16:25:25 -0400 (EDT) From: mc_integra8 Subject: [sqr-users] Help with summing column not in select statement Hi I am wondering if I can do the following in SQR: I have a table with x no of columns, and in the SQR program, I do not want to select a certain column but I want to do a rolling total. How do I do this? Here is all the versio info: SQR: SQR/3.0.12.3/Sun/Solaris 2.4/Sybase 4.9.2/Mar 19 1996 Unix: Solaris OS V2.8, database: Sybase V11.9.2 Thanks in advance Martha --------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 15:38:31 2004 Date: Tue, 27 Apr 2004 16:37:30 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Help with summing column not in select statement Not sure what you mean, but here is an example: Sample Table =3D=3D=3D=3D=3D=3D=3D=3D ID COST UNITS begin-procedure get-totals Let #RUN_TOTAL =3D 0 begin-select A.ID A.COST A.UNITS Let #RUN_TOTAL =3D #RUN_TOTAL + &A.COST show 'ID =3D ' &A.ID ' UNITS =3D ' &A.UNITS ' COST=3D ' &A.COST ' RUNNING= COST =3D ' #RUN_TOTAL from UNITS_COST_TBL A end-select end-procedure Is that what you mean? =20=20 ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> mc_integra8@yahoo.ca 04/27/04 04:25PM >>> Hi =20 I am wondering if I can do the following in SQR: =20 I have a table with x no of columns, and in the SQR program, I do not want = to select a certain column but I want to do a rolling total. How do I do t= his? =20 Here is all the versio info: =20 SQR: SQR/3.0.12.3/Sun/Solaris 2.4/Sybase 4.9.2/Mar 19 1996 Unix: Solaris OS V2.8,=20 database: Sybase V11.9.2 =20 Thanks in advance Martha --------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Apr 27 20:06:45 2004 From: "Ewan Kho" Subject: RE: [sqr-users] Creating Commas in a String for 'WHERE" clause Date: Wed, 28 Apr 2004 09:05:40 +0800 Or if you are running in mainframe: \$max_speed\ >From: "Jon Alsager" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Creating Commas in a String for 'WHERE" clause >Date: Tue, 27 Apr 2004 13:41:19 -0600 > >I think it will work if you put $max_speed in [], as: > >AND B.MAX_SPEED in ([$max_speed]) > > >Hope this helps. >Jon > >-----Original Message----- >From: sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org >[mailto:sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org] On Behalf >Of DICKMAN, ERIC C. >Sent: Tuesday, April 27, 2004 1:11 PM >To: 'sqr-users@sqrug.org' >Subject: [sqr-users] Creating Commas in a String for 'WHERE" clause > > >Hello All.... > >I have never had to deal with the "IN" portion of SQL in SQR. Is there >a >way to pass a list of variables into the SQL. In this case, $max_speed >is >passed as '123,145,087'. The SQL returns no values when passed as >$max_speed. If I hard code the SQL with '123,145,087', the results >return as >expected. Is there anyway to convert the input variable to the correct >format for the "IN" > >Passed In SQL. >FROM CAR A, > CAR_BUILT B, >WHERE A.CAR_MODEL _ID = B.ID_CAR_MAKE >AND B.MAX_SPEED in ($max_speed) > > >Hard Coded SQL > >FROM CAR A, > CAR_BUILT B, >WHERE A.CAR_MODEL _ID = B.ID_CAR_MAKE >AND B.MAX_SPEED in ('123,145,087') > > >Any assistance would be greatly appreciated. > >Thanks, Eric > >NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) >has >changed its name to the Department of Family and Protective >Services(DFPS) >resulting in the following e-mail address format change for all >employees: >firstname.lastname@dfps.state.tx.us > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 10:52:17 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Encapsulate with Double-Quotes Date: Fri, 30 Apr 2004 08:50:07 -0700 How are you transmitting the "certain information" to the SQR program? By any chance, is the Oracle form appending it to the end of the command line for sqrw.exe? If so, the problem is the operating system, not Oracle Forms or SQR. A space on a command line is the separator between parameters. The software that is creating the command line must put in the quote marks, or your SQR program has to perform an input statement within a while loop to pick up each word separately, until $MethodName returns ''. -----Original Message----- From: Happersberger. Rich (MSA) [mailto:happersbergerr@SacCounty.NET] Sent: Monday, April 26, 2004 7:38 AM To: sqr-users@sqrug.org Subject: [sqr-users] Encapsulate with Double-Quotes Greetings - I'm using Brio as my report writer against an Oracle db and an application using Oracle forms. When I have my users submit a certain job through the forms, they must enter certain information. No matter what they type, only the first word will be captured in the resulting ASCII file. The forms developer suggested I encapsulate the entries in the forms with double-quotes. If I make an entry to forms and use double-quotes to encapsulate the entry, all the narrative is returned to the file. I've tried to do this in Visual-Sqribe using the following in order to save some extra demands on the users (remembering to use the quotes) - move '<34> <34>' to $MethodName input $MethodName 'Specify Method Name' type=char This is not working - again only the first word of the narrative is retruned to file no matter how loooooooooooooong it might be. TIA - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ____________________________________________________________________________ _______________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ____________________________________________________________________________ _______________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 14:07:16 2004 From: "Chu, Nicholas" Date: Fri, 30 Apr 2004 14:06:29 -0500 Subject: [sqr-users] Global VS parameter list > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 14:24:00 2004 From: James Womeldorf Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 14:21:31 -0500 Hi Nicholas, All arrays in SQR are global by nature and are referred to in exactly the same way regardless of whether you are accessing them from a global or local procedure, so that should work for you. Jim Womeldorf -----Original Message----- From: Chu, Nicholas [mailto:Nicholas.Chu@RedPrairie.com] Sent: Friday, April 30, 2004 2:06 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Global VS parameter list > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 14:29:26 2004 From: "the dragon" Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 14:28:15 -0500 Nicholas, in your procedure that you have shown us, there is no reason for it to be a local procedure - it isn't doing anything. Drop the 'local' part and make it a global procedure; you're over-complicating it... In my opinion, and I'll start a load of conversation here, there is never a reason for a local procedure in most cases. www.techsunite.org/offshore/ clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 14:37:09 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 14:36:17 -0500 The example I have here is to show the errors that I'm getting in the real SQR program. As a matter of fact, I am adding functionality to a SQR program. In this SQR program, almost almost all variables are shared globally. When I add a new procedure with parameters, it complains with the error listed here because there's a whole bunch of variables that are not in the parameter list. So either I have to add ALL variables (that are being referenced in the new procedure) to the parameter list, or I have to make this new procedure's parameters global. In my case, I had no choice but to do the latter. But that complicates the code a lot, so I'm wondering if there's any suggestions to better coordinate the variables being declared. Thanks! Nicholas -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Friday, April 30, 2004 2:28 PM To: sqr-users@sqrug.org Cc: Nicholas.Chu@RedPrairie.com Subject: RE: [sqr-users] Global VS parameter list Nicholas, in your procedure that you have shown us, there is no reason for it to be a local procedure - it isn't doing anything. Drop the 'local' part and make it a global procedure; you're over-complicating it... In my opinion, and I'll start a load of conversation here, there is never a reason for a local procedure in most cases. www.techsunite.org/offshore/ clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 14:47:13 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 12:44:26 -0700 When you have a procedure with parameters, it is a "local" procedure. If you want to use variables from other parts of the program, you have to put an underscore in their second position: Global variable $xyz is available as $_xyz. Global database column &abc is available as &_abc. As James says, you don't have to do this for arrays because arrays are never local. Therefore you don't have to distinguish between an array that just exists within one procedure (because there's no such thing) and an array which is accessible everywhere (because they all are). -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, April 30, 2004 12:22 PM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list Hi Nicholas, All arrays in SQR are global by nature and are referred to in exactly the same way regardless of whether you are accessing them from a global or local procedure, so that should work for you. Jim Womeldorf -----Original Message----- From: Chu, Nicholas [mailto:Nicholas.Chu@RedPrairie.com] Sent: Friday, April 30, 2004 2:06 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Global VS parameter list > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 14:54:38 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 12:51:20 -0700 Oh boy, a controversy for a Friday afternoon, and a subjective technical one at that. There is never a requirement for a local procedure, but one reason for them is simplicity. After all, the built-in functions like substr() and mod() are local procedures. We could call them like this: let $needle = 'A' let $haystack = $alphabet let #start_position = 1 do instr if #found_position > 0 .... end-if but isn't it easier and clearer to write: if instr($alphabet, 'A', 1) > 0 .... end-if -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Friday, April 30, 2004 12:28 PM To: sqr-users@sqrug.org Cc: Nicholas.Chu@RedPrairie.com Subject: RE: [sqr-users] Global VS parameter list Nicholas, in your procedure that you have shown us, there is no reason for it to be a local procedure - it isn't doing anything. Drop the 'local' part and make it a global procedure; you're over-complicating it... In my opinion, and I'll start a load of conversation here, there is never a reason for a local procedure in most cases. www.techsunite.org/offshore/ clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 15:23:27 2004 From: James Womeldorf Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 15:22:12 -0500 I'm with you, Steve. I've spent WAY too much time digging through include files trying to determine where the value of some miserable global variable got set. The original programmer may (or may not) remember how it works, but for anyone attempting to do maintenance (and yes boys and girls, someone else WILL do maintenance on your stuff) it can be pure HECK! When all variables are global the result resembles something we used to call 'spaghetti code' in the days before light bulbs were invented. I can still be convinced to use global variables on occasion, but those occasions are rare. Jim Womeldorf -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, April 30, 2004 2:51 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list Oh boy, a controversy for a Friday afternoon, and a subjective technical one at that. There is never a requirement for a local procedure, but one reason for them is simplicity. After all, the built-in functions like substr() and mod() are local procedures. We could call them like this: let $needle = 'A' let $haystack = $alphabet let #start_position = 1 do instr if #found_position > 0 .... end-if but isn't it easier and clearer to write: if instr($alphabet, 'A', 1) > 0 .... end-if -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Friday, April 30, 2004 12:28 PM To: sqr-users@sqrug.org Cc: Nicholas.Chu@RedPrairie.com Subject: RE: [sqr-users] Global VS parameter list Nicholas, in your procedure that you have shown us, there is no reason for it to be a local procedure - it isn't doing anything. Drop the 'local' part and make it a global procedure; you're over-complicating it... In my opinion, and I'll start a load of conversation here, there is never a reason for a local procedure in most cases. www.techsunite.org/offshore/ clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 15:47:52 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 15:45:48 -0500 This is exactly why my question was raised. I was never a fan of global variables and in any programming you would hear that global variables should not be used at all. Now I'm in the exact situation where tons of global variables are used and every single procedure is referencing some of them. It makes me almost impossible to redeclare them into the parameter list of each procedure. I understand there is a way to reference global variables, I've seen too much of those and they confuse me a lot. Nicholas -----Original Message----- From: sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org [mailto:sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org]On Behalf Of James Womeldorf Sent: Friday, April 30, 2004 3:22 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list I'm with you, Steve. I've spent WAY too much time digging through include files trying to determine where the value of some miserable global variable got set. The original programmer may (or may not) remember how it works, but for anyone attempting to do maintenance (and yes boys and girls, someone else WILL do maintenance on your stuff) it can be pure HECK! When all variables are global the result resembles something we used to call 'spaghetti code' in the days before light bulbs were invented. I can still be convinced to use global variables on occasion, but those occasions are rare. Jim Womeldorf -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, April 30, 2004 2:51 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list Oh boy, a controversy for a Friday afternoon, and a subjective technical one at that. There is never a requirement for a local procedure, but one reason for them is simplicity. After all, the built-in functions like substr() and mod() are local procedures. We could call them like this: let $needle = 'A' let $haystack = $alphabet let #start_position = 1 do instr if #found_position > 0 .... end-if but isn't it easier and clearer to write: if instr($alphabet, 'A', 1) > 0 .... end-if -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Friday, April 30, 2004 12:28 PM To: sqr-users@sqrug.org Cc: Nicholas.Chu@RedPrairie.com Subject: RE: [sqr-users] Global VS parameter list Nicholas, in your procedure that you have shown us, there is no reason for it to be a local procedure - it isn't doing anything. Drop the 'local' part and make it a global procedure; you're over-complicating it... In my opinion, and I'll start a load of conversation here, there is never a reason for a local procedure in most cases. www.techsunite.org/offshore/ clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Apr 30 15:59:32 2004 From: James Womeldorf Subject: RE: [sqr-users] Global VS parameter list Date: Fri, 30 Apr 2004 15:58:25 -0500 Personally, I'd rather pass all the globals in as parameters. There isn't much you can do about existing code, but at least you don't have to add to the confusion. One advantage of local procedures that I like is that Begin-Select . . End-Select constructs are local, so you don't have to worry about using a &... alias that is already in use. I know some folks don't like to the 'bother' of having to pass variables, but I think the extra effort is well worth it. (I'm getting off my soap box now :) Jim -----Original Message----- From: Chu, Nicholas [mailto:Nicholas.Chu@RedPrairie.com] Sent: Friday, April 30, 2004 3:46 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list This is exactly why my question was raised. I was never a fan of global variables and in any programming you would hear that global variables should not be used at all. Now I'm in the exact situation where tons of global variables are used and every single procedure is referencing some of them. It makes me almost impossible to redeclare them into the parameter list of each procedure. I understand there is a way to reference global variables, I've seen too much of those and they confuse me a lot. Nicholas -----Original Message----- From: sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org [mailto:sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org]On Behalf Of James Womeldorf Sent: Friday, April 30, 2004 3:22 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list I'm with you, Steve. I've spent WAY too much time digging through include files trying to determine where the value of some miserable global variable got set. The original programmer may (or may not) remember how it works, but for anyone attempting to do maintenance (and yes boys and girls, someone else WILL do maintenance on your stuff) it can be pure HECK! When all variables are global the result resembles something we used to call 'spaghetti code' in the days before light bulbs were invented. I can still be convinced to use global variables on occasion, but those occasions are rare. Jim Womeldorf -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, April 30, 2004 2:51 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Global VS parameter list Oh boy, a controversy for a Friday afternoon, and a subjective technical one at that. There is never a requirement for a local procedure, but one reason for them is simplicity. After all, the built-in functions like substr() and mod() are local procedures. We could call them like this: let $needle = 'A' let $haystack = $alphabet let #start_position = 1 do instr if #found_position > 0 .... end-if but isn't it easier and clearer to write: if instr($alphabet, 'A', 1) > 0 .... end-if -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Friday, April 30, 2004 12:28 PM To: sqr-users@sqrug.org Cc: Nicholas.Chu@RedPrairie.com Subject: RE: [sqr-users] Global VS parameter list Nicholas, in your procedure that you have shown us, there is no reason for it to be a local procedure - it isn't doing anything. Drop the 'local' part and make it a global procedure; you're over-complicating it... In my opinion, and I'll start a load of conversation here, there is never a reason for a local procedure in most cases. www.techsunite.org/offshore/ clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- > Hi, > > I am supposed to modify an SQR report by adding a procedure to it. > When I add my procedure I passed in a couple of parameters and 1 as return > parameter. > Within that procedure I am also referencing some field variables that I > retrieved earlier. > > However it errored out and complained that the &xxxxx variables that I'm > referencing are not declared. > Later I found out that I have to put those variables that I want to use in > the parameter list of the procedure to make it work. > > For example: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel > do main($aa,$bb) > end-report > > begin-procedure sel > begin-select > 'TESTING' &dummy > from dual > end-select > end-procedure > > begin-procedure main($in_aa,$in_bb) > print $in_aa (1,1) > print $in_bb (+1,1) > print &dummy (+1,1) > end-procedure > > > > When you run it: > > > > SQR V6.1.4 > Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. > > (SQR 4407) Referenced variables not defined: > > &dummy (local) > > Errors were found in the program file. > > > > > This is the version that runs: > > begin-report > let $aa = 'A' > let $bb = 'B' > do sel($dummy) > do main($aa,$bb,$dummy) > end-report > > begin-procedure sel(:$ret_dummy) > begin-select > 'TESTING' &dummy > from dual > end-select > > let $ret_dummy = &dummy > end-procedure > > begin-procedure main($in_aa,$in_bb,$in_dummy) > print $in_aa (1,1) > print $in_bb (+1,1) > print $in_dummy (+1,1) > end-procedure > > > > > > Is there any way to get around? > > What if I have an array to reference? Can I pass it in as a parameter > list? > > > Many thanks!! > Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat May 01 00:02:09 2004 Date: Sat, 1 May 2004 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun May 02 05:46:11 2004 Date: Sun, 2 May 2004 16:16:49 +0530 From: "Anand_Gupta01" Subject: [sqr-users] SQR - CALL SYSTEM error codes for Windows OS Hi =20 I am required to invoke a 3rd party software from command line from within SQR. I was observing CALL SYSTEM command of SQR, and am stuck up at a place. =20 CALL SYSTEM USING command status [ WAIT | NOWAIT ] call system using dir > test1.txt' #NUM ! WAIT show #NUM =20 I am on Windows OS and Peoplebooks say that the returned STATUS should be a numeric field. If it is below 32, it implies an error. It is continuously returning 2.00000 for all DOS commands. I am unable to understand the implications of the error. If any of you can share a list of such error codes specific to Windows OS, I will appreciate. =20 If any of you have encountered a similar requirement and could resolve it, please mail me.=20 =20 Thanks Anand Gupta Enterprise Solutions=20 Infosys Technologies, Pune O: 91 20 22932800 D: 91 20 22978148 W: www.infosys.com=20=20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 09:40:03 2004 From: "sakthikumaran mariyappan" Date: Mon, 03 May 2004 22:37:43 +0800 Subject: [sqr-users] sqr on web ?? Hi all I am new to SQR. can i know how far it will be usefull in generating reports in web. Thanks -- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 14:39:20 2004 Date: Mon, 3 May 2004 21:36:44 +0200 (CEST) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: Re: [sqr-users] SQR - CALL SYSTEM error codes for Windows OS Hello The error codes are the ones given by Windows OS. You can find it in many development languages manuals (such as VB, VC, etc...), when you know what you are looking for. Here is a list of the most common ones taken out from some VB web site : Private Const ERROR_FILE_NOT_FOUND = 2& Private Const ERROR_PATH_NOT_FOUND = 3& Private Const ERROR_BAD_FORMAT = 11& Private Const SE_ERR_ACCESSDENIED = 5 ' access denied Private Const SE_ERR_ASSOCINCOMPLETE = 27 Private Const SE_ERR_DDEBUSY = 30 ' DDE interface related messages Private Const SE_ERR_DDEFAIL = 29 Private Const SE_ERR_DDETIMEOUT = 28 Private Const SE_ERR_DLLNOTFOUND = 32 ' DLL not found Private Const SE_ERR_FNF = 2 ' file not found Private Const SE_ERR_NOASSOC = 31 ' ex: .doc but MS-Word not installed ? Private Const SE_ERR_PNF = 3 ' path not found Private Const SE_ERR_OOM = 8 ' out of memory Private Const SE_ERR_SHARE = 26 Your error is "File not found". Such errors are raised when : - obviously you give a full pathname that is not correct AT EXECUTION TIME (is the target machine where your code runs configured in the same way than the development machine, if different ?) - if you run a program without giving a full pathname, you must have the program folder listed in the PATH environment variable of your system. - If you run a file that is not executable (i.e. if you wish to run a document file to have it loaded in it's application), you must always give the full path. Ex : to "run" ("open" would be more correct in this context) a Word document named "MyFile.doc" located in "C:\TEMP", you must call "C:\TEMP\MyFile.doc" and not only "MyFile.doc" even if your program runs in this folder. Well... did I forget anything... Hope this will help you, Charly --- Anand_Gupta01 wrote : > Hi > > > > I am required to invoke a 3rd party software from command line from > within SQR. I was observing CALL SYSTEM command of SQR, and am stuck up > at a place. > > > > CALL SYSTEM USING command status [ WAIT | NOWAIT ] > > call system using dir > test1.txt' #NUM ! WAIT > > show #NUM > > > > I am on Windows OS and Peoplebooks say that the returned STATUS should > be a numeric field. If it is below 32, it implies an error. It is > continuously returning 2.00000 for all DOS commands. I am unable to > understand the implications of the error. If any of you can share a list > of such error codes specific to Windows OS, I will appreciate. > > > > If any of you have encountered a similar requirement and could resolve > it, please mail me. > > > > Thanks > > Anand Gupta > Enterprise Solutions > Infosys Technologies, Pune > O: 91 20 22932800 > D: 91 20 22978148 > W: www.infosys.com > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ===== Charly Lebrun calebrun@yahoo.com Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 14:47:06 2004 Date: Mon, 3 May 2004 21:46:05 +0200 (CEST) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: RE: [sqr-users] Global VS parameter list Dear all, This is one of the really bad thing with SQR, which as so many qualities on the other hand ! First, did anyone mentioned that you can access all globals from a procedure with parameters by calling it with a preceeding '_' character. I did not fully read all the answers, please forgive me if this has been done before. So if somewhere you have a variable called &MyValue, you can read and and assign it in the procedure (with parameters) by calling it &_MyValue. This is true for any kind of variable ($, # and &). This SQR behavior is so painfull that I limit the use of procedure with parameters to small process with only a local context to use. Mainly I developp all my procedures without parameters and take care to call all my variables with prefix that identify were the variable is used, because I want often to access the cursors values from several points (and I cannot pass the full cursor record as a parameter like in PL/SQL with ROWTYPE). That's the way it is... Hope this helps anyway. You do really great things with Brio once you pass over this drawback. Charly ===== Charly Lebrun calebrun@yahoo.com Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 17:44:45 2004 Date: Mon, 3 May 2004 15:42:26 -0700 (PDT) From: Enrique Munoz Subject: [sqr-users] print a CLOB field in Oracle Database I need that someone says me how I can print a field CLOB with SQR. When I try to print it I get this error: (SQR 1305) CMPSQL: Unknown data type in database: 112. I have this code in my program: BEGIN-SELECT ap.localidad &lw_localidad () ON-BREAK LEVEL=1 PRINT=NEVER BEFORE=p_imp_localidad loc.nombre &lw_loc_desc det.denominacion &lw_denominacion (+10,038, 04) EDIT '9999' pr.proyecto &lw_proy ( ,070, 08) EDIT '99999999' DECODE(pr.fecha_termino, NULL,'PE', 'IT') TIPO &lw_tipo ( ,300, 02) pr.objetivo &lw_obj ( ,340, 50) !<--- THIS IS A CLOB FIELD FROM sips_proyectos pr, sips_detalle_prog det, sips_areas_proyectos ap, localidades loc WHERE det.clave_det_prog = pr.clave_det_prog AND ap.proyecto = pr.proyecto AND ap.principal = 'S' AND loc.localidad = ap.localidad ORDER BY pr.proyecto END-SELECT This are the releases: Win 2000 Oracle 9i PersonalSQR for Oracle 6.2 Thanks for any help...!! Enrique __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 17:46:16 2004 From: "abhay sachar" Date: Tue, 04 May 2004 04:14:29 +0530 Subject: [sqr-users] SQR 1500 I was trying to run the delivered 'Primary Job Audit' report. It errored out with the following : (SQR 1500) Array element out of range (100) for array 'message1' on line 246. Any ideas?? Thanks, Abhay. _________________________________________________________________ Let your desktop sizzle! Get the hottest wallpapers. http://www.msn.co.in/entertainment/ Right here at MSN Entertainment! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 18:21:00 2004 From: "the dragon" Subject: RE: [sqr-users] SQR 1500 Date: Mon, 03 May 2004 18:18:40 -0500 so, fix it. :-D It means you're trying to stuff too many records into the array. Figure out how many records are likely to be put in the array using your sql tool and then modify the array size. http://www.eweek.com/article2/0,1759,1581399,00.asp http://search400.techtarget.com/originalContent/0,289142,sid3_gci912197,00.html peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I was trying to run the delivered 'Primary Job Audit' report. It errored out with the following : (SQR 1500) Array element out of range (100) for array 'message1' on line 246. Any ideas?? Thanks, Abhay. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 03 21:29:34 2004 From: Ray Ontko Date: Mon, 3 May 2004 21:27:41 -0500 Subject: Re: [sqr-users] print a CLOB field in Oracle Database Enrique, This is a hard one. Carefully follow these instructions: 1) Break this into two queries. The first will look just like this one without the CLOB. The second one should be a single-row query that gets the corresponding CLOB value. 2) Move the second query to a PL/SQL block, and return the value into a PL/SQL variable. Then, 1999 characters at a time, extract pieces of the PL/SQL variable into $string_0, $string_1, ... $string_n variables using dbms_lob.substr(). Note that the order of parameters for dbms_lob.substr() is different from that of sql substr(). 3) Finally, assemble your $string_0, $string_1, ... $string_n variables into your final variable. Depending on your version of SQR or operating platform, you may be limited to 32767 characters in your final variable. Hope this helps. Ray On Mon, May 03, 2004 at 03:42:26PM -0700, Enrique Munoz wrote: > I need that someone says me how I can print a field > CLOB with SQR. > > When I try to print it I get this error: > > (SQR 1305) CMPSQL: Unknown data type in database: 112. > > I have this code in my program: > > BEGIN-SELECT > ap.localidad > &lw_localidad () ON-BREAK LEVEL=1 PRINT=NEVER > BEFORE=p_imp_localidad > loc.nombre > &lw_loc_desc > det.denominacion > &lw_denominacion (+10,038, 04) EDIT '9999' > pr.proyecto &lw_proy ( ,070, 08) EDIT > '99999999' > DECODE(pr.fecha_termino, NULL,'PE', 'IT') TIPO > &lw_tipo ( ,300, 02) > pr.objetivo &lw_obj ( ,340, 50) !<--- THIS > IS A CLOB FIELD > FROM sips_proyectos pr, sips_detalle_prog det, > sips_areas_proyectos ap, localidades loc > WHERE det.clave_det_prog = pr.clave_det_prog > AND ap.proyecto = pr.proyecto > AND ap.principal = 'S' > AND loc.localidad = ap.localidad > ORDER BY pr.proyecto > END-SELECT > > This are the releases: > Win 2000 > Oracle 9i > PersonalSQR for Oracle 6.2 > > Thanks for any help...!! > > Enrique > > > > > > __________________________________ > Do you Yahoo!? > Win a $20,000 Career Makeover at Yahoo! HotJobs > http://hotjobs.sweepstakes.yahoo.com/careermakeover > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 10:45:36 2004 From: "Raj Srinivasan" Date: Tue, 4 May 2004 10:45:47 -0500 Subject: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 10:55:44 2004 From: "the dragon" Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Date: Tue, 04 May 2004 10:54:39 -0500 Depends on the platform you're running it on. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 11:01:21 2004 Date: Tue, 04 May 2004 12:08:38 -0400 From: Krishna Chennamaneni Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Tej, On the n-tier environment, you need to specify the complete path of the network drive where you want your output to be resided. It would be a good practice to define those paths in your setenv.sqc. You have to remove the hard coded path C:\temp\xxx.txt and replace it with the defined variable in your setenv.sqc. You $filename now would be {DEFINED_VAR}xxx.txt, where {DEFINED_VAR} is the complete path you declare in your setenv.sqc. Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Raj Srinivasan Sent: Tuesday, May 04, 2004 11:46 AM To: Sqr-Users@Sqrug. Org Subject: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 11:05:36 2004 From: "Raj Srinivasan" Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Date: Tue, 4 May 2004 11:04:51 -0500 Hi: We have Sun-Solaris (UNIX) as our servers DB-Oracle as our Database and Win2000 as O/S. Thanks, Tej -----Original Message----- From: sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org [mailto:sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org]On Behalf Of the dragon Sent: Tuesday, May 04, 2004 10:55 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Depends on the platform you're running it on. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 11:09:32 2004 From: "Raj Srinivasan" Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Date: Tue, 4 May 2004 11:09:53 -0500 Thanks Krishna, Do you have a modified setenve.sqc that you have that I can take a look at. Thanks, Tej -----Original Message----- From: sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org [mailto:sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org]On Behalf Of Krishna Chennamaneni Sent: Tuesday, May 04, 2004 11:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Tej, On the n-tier environment, you need to specify the complete path of the network drive where you want your output to be resided. It would be a good practice to define those paths in your setenv.sqc. You have to remove the hard coded path C:\temp\xxx.txt and replace it with the defined variable in your setenv.sqc. You $filename now would be {DEFINED_VAR}xxx.txt, where {DEFINED_VAR} is the complete path you declare in your setenv.sqc. Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Raj Srinivasan Sent: Tuesday, May 04, 2004 11:46 AM To: Sqr-Users@Sqrug. Org Subject: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 11:19:07 2004 Date: Tue, 04 May 2004 12:26:23 -0400 From: Krishna Chennamaneni Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Tej, Following are some of the paths we defined in our setenv.sqc file. Replace the path by your network path and rename the variables used in #define statement with appropriate names. Once you are done with that step. All you need is to replace your hard coded filename C:\temp\xxx.txt with {DEFINED_VAR}xxx.txt #define BNRET K:\hris\psoft8\temp\bnret_iofiles1\ #define BNSBO1 K:\hris\psoft8\temp\bnsbo_iofiles1\ #define BNSBO2 K:\hris\psoft8\temp\bnsbo_iofiles2\ Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Raj Srinivasan Sent: Tuesday, May 04, 2004 12:10 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Thanks Krishna, Do you have a modified setenve.sqc that you have that I can take a look at. Thanks, Tej -----Original Message----- From: sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org [mailto:sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org]On Behalf Of Krishna Chennamaneni Sent: Tuesday, May 04, 2004 11:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Tej, On the n-tier environment, you need to specify the complete path of the network drive where you want your output to be resided. It would be a good practice to define those paths in your setenv.sqc. You have to remove the hard coded path C:\temp\xxx.txt and replace it with the defined variable in your setenv.sqc. You $filename now would be {DEFINED_VAR}xxx.txt, where {DEFINED_VAR} is the complete path you declare in your setenv.sqc. Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Raj Srinivasan Sent: Tuesday, May 04, 2004 11:46 AM To: Sqr-Users@Sqrug. Org Subject: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 11:32:40 2004 From: "Raj Srinivasan" Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Date: Tue, 4 May 2004 11:32:58 -0500 Thanks Krishna, Tej -----Original Message----- From: sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org [mailto:sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org]On Behalf Of Krishna Chennamaneni Sent: Tuesday, May 04, 2004 11:26 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Tej, Following are some of the paths we defined in our setenv.sqc file. Replace the path by your network path and rename the variables used in #define statement with appropriate names. Once you are done with that step. All you need is to replace your hard coded filename C:\temp\xxx.txt with {DEFINED_VAR}xxx.txt #define BNRET K:\hris\psoft8\temp\bnret_iofiles1\ #define BNSBO1 K:\hris\psoft8\temp\bnsbo_iofiles1\ #define BNSBO2 K:\hris\psoft8\temp\bnsbo_iofiles2\ Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Raj Srinivasan Sent: Tuesday, May 04, 2004 12:10 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Thanks Krishna, Do you have a modified setenve.sqc that you have that I can take a look at. Thanks, Tej -----Original Message----- From: sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org [mailto:sqr-users-bounces+raj.srinivasan=hccs.edu@sqrug.org]On Behalf Of Krishna Chennamaneni Sent: Tuesday, May 04, 2004 11:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Tej, On the n-tier environment, you need to specify the complete path of the network drive where you want your output to be resided. It would be a good practice to define those paths in your setenv.sqc. You have to remove the hard coded path C:\temp\xxx.txt and replace it with the defined variable in your setenv.sqc. You $filename now would be {DEFINED_VAR}xxx.txt, where {DEFINED_VAR} is the complete path you declare in your setenv.sqc. Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Raj Srinivasan Sent: Tuesday, May 04, 2004 11:46 AM To: Sqr-Users@Sqrug. Org Subject: [sqr-users] 2-tier v/s n-tier SQR through Process Scheduler Hi All: Any help appreciated... Thanks, Tej ?SQR execution 2-tier v/s n-tier Begin-Procedure Init-Report ??since everything is on the server and launched using process scheduler what will $Filename transform into. --Hard coded in 2-tier Let $Filename = 'c:\temp\xxxyyy.txt' --How will the above line look in 3/n-tier OPEN $Filename AS 1 FOR-WRITING RECORD = 200:FIXED STATUS = #Open1 IF (#Open1 <> 0) display 'Unsuccessful Open for Writing file....Program Stopped' STOP QUIET END-IF End-Procedure Init-Report _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 11:43:21 2004 Date: Tue, 4 May 2004 10:42:20 -0600 From: "Lance Munger" Subject: [sqr-users] Keep-Together I am building a report that returns multiple pages with a number of breaks throughout the report, after each break a subtotal is printed. Unfortunately, sometimes these subtotals are pushed to the next page and printed as the first item on the page. =20 I know when I was working in Brio 6.5 it had a Keep-Together function so that information such as subtotals would not be printed at the top of a page. Is there a similar function in SQR? =20 I am working on version 8.2.1.54 of SQR. =20 Let me know if I need to post more info, thanks in advance. =20 Lance D. Munger 720/364-4721 Developer Navigant International =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 12:01:35 2004 Date: Tue, 04 May 2004 12:59:23 -0400 From: "Anderson, Paul S" Subject: [sqr-users] Adding command line override to process scheduler Hello! In "Processes / Process Options" in Process Scheduler I'm trying to add a command line parameter of "-PRINTER:PD" in order to change the output of PAY003 to PDF. When I try to run the job I get an error "java.lang.StringIndexOutOfBoundsException: String index out of range: 11". Can this be done? If so what is the exact syntax? From unix I simply run the sqr "sqr pay003.sqr -PRINTER:PD" and it works perfect....I need to do this in process scheduler. Thanks! Paul A. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 12:08:01 2004 From: "Miller, Danika" Date: Tue, 4 May 2004 13:05:43 -0400 Subject: [sqr-users] Setting Fonts in my SQR Currently my report prints out using font Courier. The client wants the report to print Times New Roman. How do I make this change in my SQR? via SQC? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 12:16:44 2004 Date: Tue, 04 May 2004 13:06:03 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Keep-Together You have the similar function NEED Lance Munger wrote: > > I am building a report that returns multiple pages with a number of > breaks throughout the report, after each break a subtotal is printed. > Unfortunately, sometimes these subtotals are pushed to the next page and > printed as the first item on the page. > > > > I know when I was working in Brio 6.5 it had a Keep-Together function so > that information such as subtotals would not be printed at the top of a > page. Is there a similar function in SQR? > > > > I am working on version 8.2.1.54 of SQR. > > > > Let me know if I need to post more info, thanks in advance. > > > > Lance D. Munger > > 720/364-4721 > > Developer > > Navigant International > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 12:19:43 2004 Date: Tue, 04 May 2004 13:17:22 -0400 From: "Anderson, Paul S" Subject: RE: [sqr-users] Setting Fonts in my SQR I just went through all this... In my case there was a "std_font" definition (#define std_font 5) in the setup sqc for the printers etc. The define refers to a number which is defined in the sqr.ini. That will tell you which number refers to which font. In our case Times New Roman is number 5. -----Original Message----- From: sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org [mailto:sqr-users-bounces+paul.anderson=usa.xerox.com@sqrug.org] On Behalf Of Miller, Danika Sent: Tuesday, May 04, 2004 1:06 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Setting Fonts in my SQR Currently my report prints out using font Courier. The client wants the report to print Times New Roman. How do I make this change in my SQR? via SQC? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 12:48:32 2004 Subject: RE: [sqr-users] Keep-Together Date: Tue, 4 May 2004 11:46:11 -0600 From: "Lance Munger" That is what I was looking for, Thank You. -----Original Message----- From: sqr-users-bounces+lance.munger=3Dnavigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dnavigant.com@sqrug.org] On Behalf Of Prasanna Menta Sent: Tuesday, May 04, 2004 11:06 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Keep-Together You have the similar function NEED Lance Munger wrote: >=20 > I am building a report that returns multiple pages with a number of > breaks throughout the report, after each break a subtotal is printed. > Unfortunately, sometimes these subtotals are pushed to the next page and > printed as the first item on the page. >=20 >=20 >=20 > I know when I was working in Brio 6.5 it had a Keep-Together function so > that information such as subtotals would not be printed at the top of a > page. Is there a similar function in SQR? >=20 >=20 >=20 > I am working on version 8.2.1.54 of SQR. >=20 >=20 >=20 > Let me know if I need to post more info, thanks in advance. >=20 >=20 >=20 > Lance D. Munger >=20 > 720/364-4721 >=20 > Developer >=20 > Navigant International >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue May 04 16:41:33 2004 Date: Tue, 4 May 2004 14:40:34 -0700 (PDT) From: Enrique Munoz Subject: [sqr-users] RE: print a CLOB field in Oracle Database Hi Ray, I proved your steps that you said me and I got the same error, but I try with the SQR Function TO_CHAR and IT WORKS! I just use the funcion with the field CLOB and I got the result. BEGIN-SELECT ap.localidad &lw_localidad () ON-BREAK LEVEL=1 PRINT=NEVER BEFORE=p_imp_localidad loc.nombre &lw_loc_desc det.denominacion &lw_denominacion (+10,038, 04) EDIT '9999' pr.proyecto &lw_proy ( ,070, 08) EDIT '99999999' DECODE(pr.fecha_termino, NULL,'PE', 'IT') TIPO &lw_tipo ( ,300, 02) TO_CHAR(pr.objetivo) &lw_obj ( ,340, 50) !<--- THIS IS A CLOB FIELD FROM sips_proyectos pr, sips_detalle_prog det, sips_areas_proyectos ap, localidades loc WHERE det.clave_det_prog = pr.clave_det_prog AND ap.proyecto = pr.proyecto AND ap.principal = 'S' AND loc.localidad = ap.localidad ORDER BY pr.proyecto END-SELECT Anyway thank you for your help... Enrique ----------------------------------------------------- >Enrique, >This is a hard one. Carefully follow these >instructions: >1) Break this into two queries. The first will look >just like >this one without the CLOB. The second one should be >a single-row >query that gets the corresponding CLOB value. >2) Move the second query to a PL/SQL block, and >return the value >into a PL/SQL variable. Then, 1999 characters at a >time, extract >pieces of the PL/SQL variable into $string_0, >$string_1, ... >$string_n variables using dbms_lob.substr(). Note >that the order >of parameters for dbms_lob.substr() is different from >that of >sql substr(). >3) Finally, assemble your $string_0, $string_1, ... >$string_n >variables into your final variable. >Depending on your version of SQR or operating >platform, you may >be limited to 32767 characters in your final variable. >Hope this helps. >Ray ----------------------------------------------------- On Mon, May 03, 2004 at 03:42:26PM -0700, Enrique Munoz wrote: > I need that someone says me how I can print a field > CLOB with SQR. > > When I try to print it I get this error: > > (SQR 1305) CMPSQL: Unknown data type in database: 112. > > I have this code in my program: > > BEGIN-SELECT > ap.localidad > &lw_localidad () ON-BREAK LEVEL=1 PRINT=NEVER > BEFORE=p_imp_localidad > loc.nombre > &lw_loc_desc > det.denominacion > &lw_denominacion (+10,038, 04) EDIT '9999' > pr.proyecto &lw_proy ( ,070, 08) EDIT > '99999999' > DECODE(pr.fecha_termino, NULL,'PE', 'IT') TIPO > &lw_tipo ( ,300, 02) > pr.objetivo &lw_obj ( ,340, 50) !<--- THIS > IS A CLOB FIELD > FROM sips_proyectos pr, sips_detalle_prog det, > sips_areas_proyectos ap, localidades loc > WHERE det.clave_det_prog = pr.clave_det_prog > AND ap.proyecto = pr.proyecto > AND ap.principal = 'S' > AND loc.localidad = ap.localidad > ORDER BY pr.proyecto > END-SELECT > > This are the releases: > Win 2000 > Oracle 9i > PersonalSQR for Oracle 6.2 > > Thanks for any help...!! > > Enrique __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 10:45:44 2004 Date: Wed, 5 May 2004 08:45:02 -0700 From: "Happersberger. Rich (MSA)" Subject: [sqr-users] (SQR 5528) Error Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=3D:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus.=0D =46rom the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=3Dps.hsn and sc.queue=3D:1 and sc.queue=3Dbs.queue and bs.batch_number=3D:2 and ps.project_seq=3D:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') )=0D Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT=0D bs.sample_type =0D bs.schedule_seq =0D FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=3Dps.hsn and sc.queue=3D$_bs.Queue and sc.queue=3Dbs.queue !LACH for test purposes and bs.batch_number=3D$_bs.BatchNumber !1963 for test purposes and ps.project_seq=3D#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ___________________________________________________________________________= ________________________________ This email and any attachments thereto may contain private, confidential, a= nd privileged material for the sole use of the intended recipient. Any review, copying, or distribution of= this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient i= s strictly prohibited. If you are not the intended recipient, please contact the sender immediatel= y and permanently delete the original and any copies of this email and any attachments theret= o. ___________________________________________________________________________= ________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 10:56:06 2004 Date: Wed, 05 May 2004 11:53:20 -0400 From: "George Jansen" Subject: Re: [sqr-users] (SQR 5528) Error The DISTINCT goes up on the Begin-Select line. Putting it down with the select items is most likely what is causing the parser to write that extra comma in that you see in SELECT DISTINCT, bs.sample_type _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 10:58:50 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] (SQR 5528) Error Date: Wed, 5 May 2004 09:54:23 -0600 In your select you have a couple of variables prefixed with $_ and you also have a table as hv$sample_type. Check these. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 -----Original Message----- From: Happersberger. Rich (MSA) [mailto:happersbergerr@SacCounty.NET] Sent: Wednesday, May 05, 2004 9:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) Error Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ____________________________________________________________________________ _______________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ____________________________________________________________________________ _______________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 11:01:36 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] (SQR 5528) Error Date: Wed, 5 May 2004 08:54:32 -0700 When you write a select statement with a clause like: where ... sc.queue = $queue ... SQR send a SQL statement to Oracle using bind variables. That means the statement has a "sc.queue=:1" clause, and separately there is the first bind variable with the value of $queue. This is more efficient if you execute the select statement again with another value of $queue. Your error message might be due to the comma between the keyword DISTINCT and the first column name. -----Original Message----- From: Happersberger. Rich (MSA) [mailto:happersbergerr@SacCounty.NET] Sent: Wednesday, May 05, 2004 8:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) Error Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ____________________________________________________________________________ _______________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ____________________________________________________________________________ _______________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 11:04:16 2004 From: Subject: Re: [sqr-users] (SQR 5528) Error Date: Wed, 5 May 2004 11:56:32 -0400 I believe you need to move your DISTINCT up next to your SELECT BEGIN-SELECT DISTINCT bs.sample_type bs.schedule_seq etc... Good Luck Barb > > From: "Happersberger. Rich (MSA)" > Date: 2004/05/05 Wed AM 11:45:02 EST > To: > Subject: [sqr-users] (SQR 5528) Error > > > Hello - > > I'm new to SQR, so hope to ask the correct questions - > > Curious about the entries in the message below when it says > "sc.queue=:1", etc. > Does this indicate a collision of variables? > > This query is part of a local procedure. > > If the variables are hardcoded, this query will return stuff via > SQLPlus. > > > From the following Select I get the following error; > > (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: > ORA-00936: missing expression > SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM > batch_schedules > bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn > and > sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and > ps.project_seq=:3 and bs.sample_type IN (select sample_type from > hv$sample_type where sample_type_flag NOT IN ('0','9') ) > > > Error on line 227: > (SQR 3716) Error in SQL statement. > > begin-select > > DISTINCT > > bs.sample_type > > bs.schedule_seq > > > FROM > batch_schedules bs, > schedules sc, > project_samples ps > > WHERE > sc.schedule_id=ps.hsn > and sc.queue=$_bs.Queue > and sc.queue=bs.queue !LACH for test purposes > and bs.batch_number=$_bs.BatchNumber !1963 for test > purposes > and ps.project_seq=#_ProjectSeq !14666 for test purposes > and bs.sample_type IN > (select sample_type > from hv$sample_type > where sample_type_flag NOT IN ('0','9') > ) > > end-select > > Thanks to all - > > Rich Happersberger > Asst. Systems Administrator > SRCSD Laboratory (MSA) > > > > ___________________________________________________________________________________________________________ > This email and any attachments thereto may contain private, confidential, and privileged material for the > sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments > thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. > > If you are not the intended recipient, please contact the sender immediately and permanently > delete the original and any copies of this email and any attachments thereto. > ___________________________________________________________________________________________________________ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 11:07:21 2004 Date: Wed, 05 May 2004 12:09:20 -0400 From: Krishna Chennamaneni Subject: RE: [sqr-users] (SQR 5528) Error This is a multi-part message in MIME format... --Boundary_(ID_NODVQCb9bU+iFzP5X6sZdA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Rich, Replace your SQL statement with the following SQL and give a try. Begin-select DISTINCT bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) End-Select Hope this helps. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=jhuapl.edu@sqrug.org]On Behalf Of Happersberger. Rich (MSA) Sent: Wednesday, May 05, 2004 11:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) Error Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ____________________________________________________________________________ _______________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ____________________________________________________________________________ _______________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --Boundary_(ID_NODVQCb9bU+iFzP5X6sZdA) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. --Boundary_(ID_NODVQCb9bU+iFzP5X6sZdA) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --Boundary_(ID_NODVQCb9bU+iFzP5X6sZdA)-- From sqr-users-bounces@sqrug.org Wed May 05 11:08:59 2004 From: "Overcashier, Patricia" Subject: RE: [sqr-users] (SQR 5528) Error Date: Wed, 5 May 2004 12:06:28 -0400 Right before the select add these shows and then you will know what is actually in these variables. show '$_bs.batchnumber is ' $_bs.batchnumber show '#_ProjectSeq is: ' #_ProjectSeq -----Original Message----- From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org]On Behalf Of Happersberger. Rich (MSA) Sent: Wednesday, May 05, 2004 11:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) Error Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ____________________________________________________________________________ _______________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ____________________________________________________________________________ _______________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 11:21:30 2004 Subject: RE: [sqr-users] (SQR 5528) Error From: rwulfson@bost.com Date: Wed, 5 May 2004 10:23:36 -0600 My first guess is you have your processing logic between your select list and your from clause in the first column all of this needs to be indented. Thanks, Russ Wulfson Developer Boston Market Corporation Office: 303-216-5614 Fax: 303 -216- 8727 |---------+---------------------------------------------> | | "Overcashier, Patricia" | | | | | | Sent by: | | | sqr-users-bounces+rwulfson=bost.co| | | m@sqrug.org | | | | | | | | | 05/05/2004 10:06 AM | | | Please respond to "This list is | | | for discussion about the SQR | | | database reporting language | | | from Hyperion Solutions." | | | | |---------+---------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: RE: [sqr-users] (SQR 5528) Error | >----------------------------------------------------------------------------------------------| Right before the select add these shows and then you will know what is actually in these variables. show '$_bs.batchnumber is ' $_bs.batchnumber show '#_ProjectSeq is: ' #_ProjectSeq -----Original Message----- From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org]On Behalf Of Happersberger. Rich (MSA) Sent: Wednesday, May 05, 2004 11:45 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) Error Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ____________________________________________________________________________ _______________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ____________________________________________________________________________ _______________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 11:31:24 2004 From: "the dragon" Subject: RE: [sqr-users] (SQR 5528) Error Date: Wed, 05 May 2004 11:28:57 -0500 The :1 indicate values passed in the sql. Your problem is probably in yout subselect where you are selecting from a table called hv$sample_type - that is not a good name for the table, if you're actually calling a table that. More likely it's a typing mistake. Also, there is no need to use the underscore variable outside a local procedure. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ___________________________________________________________________________________________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ___________________________________________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 11:46:44 2004 From: "Edmundo Reyes Cuellar" Date: Wed, 5 May 2004 11:45:25 -0500 Subject: [sqr-users] Anybody have experience with as/400 Im trying to get data from a AS 400 using sqr 8.2. With the odbc drive from hyperion (brio, data) using the developer i could see the structure, but when I process send the error unable to create file. With client access express (IBM) drive i can see the libraries in my profile as user but unable to process. Using DDO with the JDBC drive from brio i couldnt make a connection. We have another JDBC class, but send a DDO error, unable to load the class when trying to configure in the DDO. Any help will be thank it. Edmundo Reyes Cuellar _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 12:27:23 2004 From: "Miller, Danika" Date: Wed, 5 May 2004 13:24:22 -0400 Subject: [sqr-users] Page Size My client says that my report is 18.7 X 10.67 and should be 11 X 8.5. Where is this set and how do I change it? I've been looking throughout my SQCs and I can't find it!! Please help!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 12:33:50 2004 Date: Wed, 5 May 2004 10:31:27 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] (SQR 5528) Error Hi Rich, Move the Distinct to be on the Same line as BEGIN-SELECT. The SQR is Parsing it as Column and distinct is a Reserved word in ORACLE. Moving it Up on the BEGIN-SELECT should do the trick. HTH Datta. --- "Happersberger. Rich (MSA)" wrote: > > Hello - > > I'm new to SQR, so hope to ask the correct questions - > > Curious about the entries in the message below when it says > "sc.queue=:1", etc. > Does this indicate a collision of variables? > > This query is part of a local procedure. > > If the variables are hardcoded, this query will return stuff via > SQLPlus. > > From the following Select I get the following error; > > (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: > ORA-00936: missing expression > SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM > batch_schedules > bs, schedules sc, project_samples ps WHERE > sc.schedule_id=ps.hsn > and > sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and > ps.project_seq=:3 and bs.sample_type IN (select sample_type > from > hv$sample_type where sample_type_flag NOT IN ('0','9') ) > > Error on line 227: > (SQR 3716) Error in SQL statement. > > begin-select > > DISTINCT > bs.sample_type > bs.schedule_seq > > FROM > batch_schedules bs, > schedules sc, > project_samples ps > > WHERE > sc.schedule_id=ps.hsn > and sc.queue=$_bs.Queue > and sc.queue=bs.queue !LACH for test > purposes > and bs.batch_number=$_bs.BatchNumber !1963 for test > purposes > and ps.project_seq=#_ProjectSeq !14666 for test > purposes > and bs.sample_type IN > (select sample_type > from hv$sample_type > where sample_type_flag NOT IN ('0','9') > ) > > end-select > > Thanks to all - > > Rich Happersberger > Asst. Systems Administrator > SRCSD Laboratory (MSA) > > > > ___________________________________________________________________________________________________________ > This email and any attachments thereto may contain private, > confidential, and privileged material for the > sole use of the intended recipient. Any review, copying, or > distribution of this email (or any attachments > thereto) by other than the County of Sacramento or the intended > recipient is strictly prohibited. > > If you are not the intended recipient, please contact the sender > immediately and permanently > delete the original and any copies of this email and any attachments > thereto. > ___________________________________________________________________________________________________________ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 12:36:32 2004 From: "the dragon" Subject: RE: [sqr-users] Page Size Date: Wed, 05 May 2004 12:35:30 -0500 if you are using peoplesloth, you should check the setupnnnx.sqc files that are being used by the program. If that isn't your problem look for a declare-layout, I think. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- My client says that my report is 18.7 X 10.67 and should be 11 X 8.5. Where is this set and how do I change it? I've been looking throughout my SQCs and I can't find it!! Please help!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 12:41:44 2004 Subject: RE: [sqr-users] (SQR 5528) Error Date: Wed, 5 May 2004 10:41:08 -0700 From: "Happersberger. Rich (MSA)" That's all there was to it - thanks again. -----Original Message----- From: Dattatraya Shetty [mailto:datta_shetty@yahoo.com]=0D Sent: Wednesday, May 05, 2004 10:31 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] (SQR 5528) Error Hi Rich, Move the Distinct to be on the Same line as BEGIN-SELECT. The SQR is Parsing it as Column and distinct is a Reserved word in ORACLE.=0D Moving it Up on the BEGIN-SELECT should do the trick.=0D HTH Datta.=0D --- "Happersberger. Rich (MSA)" wrote: >=0D > Hello - >=0D > I'm new to SQR, so hope to ask the correct questions - >=0D > Curious about the entries in the message below when it says=0D > "sc.queue=3D:1", etc. Does this indicate a collision of variables? >=0D > This query is part of a local procedure. >=0D > If the variables are hardcoded, this query will return stuff via=0D > SQLPlus. >=0D > From the following Select I get the following error; >=0D > (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: > ORA-00936: missing expression > SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM=0D > batch_schedules > bs, schedules sc, project_samples ps WHERE sc.schedule_id=3Dps.hsn > and > sc.queue=3D:1 and sc.queue=3Dbs.queue and bs.batch_number=3D:2 and > ps.project_seq=3D:3 and bs.sample_type IN (select sample_type > from > hv$sample_type where sample_type_flag NOT IN ('0','9') ) >=0D > Error on line 227: > (SQR 3716) Error in SQL statement. >=0D > begin-select >=0D > DISTINCT > bs.sample_type =0D > bs.schedule_seq =0D >=0D > FROM > batch_schedules bs, > schedules sc, > project_samples ps >=0D > WHERE > sc.schedule_id=3Dps.hsn > and sc.queue=3D$_bs.Queue > and sc.queue=3Dbs.queue !LACH for test > purposes > and bs.batch_number=3D$_bs.BatchNumber !1963 for test > purposes > and ps.project_seq=3D#_ProjectSeq !14666 for test > purposes > and bs.sample_type IN > (select sample_type > from hv$sample_type > where sample_type_flag NOT IN ('0','9') > ) >=0D > end-select >=0D > Thanks to all - >=0D > Rich Happersberger > Asst. Systems Administrator > SRCSD Laboratory (MSA) >=0D >=0D >=0D > ________________________________________________________________________ ___________________________________ > This email and any attachments thereto may contain private,=0D > confidential, and privileged material for the sole use of the intended > recipient. Any review, copying, or distribution of this email (or any=0D > attachments > thereto) by other than the County of Sacramento or the intended=0D > recipient is strictly prohibited. >=0D > If you are not the intended recipient, please contact the sender=0D > immediately and permanently delete the original and any copies of this > email and any attachments thereto. > ________________________________________________________________________ ___________________________________ >=0D > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =0D =0D __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs =0D http://hotjobs.sweepstakes.yahoo.com/careermakeover=0D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________________________________________________= ________________________________ This email and any attachments thereto may contain private, confidential, a= nd privileged material for the sole use of the intended recipient. Any review, copying, or distribution of= this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient i= s strictly prohibited. If you are not the intended recipient, please contact the sender immediatel= y and permanently delete the original and any copies of this email and any attachments theret= o. ___________________________________________________________________________= ________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 05 12:45:50 2004 Subject: RE: [sqr-users] (SQR 5528) Error Date: Wed, 5 May 2004 10:44:58 -0700 From: "Happersberger. Rich (MSA)" Actually the "table" is really a view created by the folks that did the db design A little out of my hands. Datta already provided a simple fix. Thanks again - -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com]=20 Sent: Wednesday, May 05, 2004 9:29 AM To: sqr-users@sqrug.org Cc: Happersberger. Rich (MSA) Subject: RE: [sqr-users] (SQR 5528) Error The :1 indicate values passed in the sql. Your problem is probably in yout=20 subselect where you are selecting from a table called hv$sample_type - that=20 is not a good name for the table, if you're actually calling a table that.=20=20 More likely it's a typing mistake. Also, there is no need to use the=20 underscore variable outside a local procedure. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=3D:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. =46rom the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=3Dps.hsn and sc.queue=3D:1 and sc.queue=3Dbs.queue and bs.batch_number=3D:2 and ps.project_seq=3D:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=3Dps.hsn and sc.queue=3D$_bs.Queue and sc.queue=3Dbs.queue !LACH for test purposes and bs.batch_number=3D$_bs.BatchNumber !1963 for test purposes and ps.project_seq=3D#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ________________________________________________________________________ ___________________________________ This email and any attachments thereto may contain private, confidential,=20 and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of=20 this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is=20 strictly prohibited. If you are not the intended recipient, please contact the sender immediately=20 and permanently delete the original and any copies of this email and any attachments=20 thereto. ________________________________________________________________________ ___________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 12 15:43:55 2004 From: "DICKMAN, ERIC C." Date: Wed, 12 May 2004 15:41:49 -0500 Subject: [sqr-users] Add comments to an input string. Hello everyone, I have a input parameter that I am passing into my SQR file. For Example, 'ask INV_NUM'. INV_NUM is a String that looks something like '000 001 002 003 004 005'. Is it possible to add commas to the blank spaces in SQR, so the String looks like '000,001,002,003,004,005'. Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 12 15:51:53 2004 Subject: RE: [sqr-users] Add comments to an input string. Date: Wed, 12 May 2004 14:51:15 -0600 From: "Jon Alsager" Although I don't know which version this became available, you could try the SQR command "replace": $text =3D '000 001 002 003 004 005' let $new_text =3D replace($text,' ',',') ($new_text shows as 000,001,002,003,004,005) At least this seems to work for me. Jon Alsager State Insurance Fund jalsager@isif.state.id.us 208-332-2573 -----Original Message----- From: sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Wednesday, May 12, 2004 2:42 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Add comments to an input string. Hello everyone, I have a input parameter that I am passing into my SQR file. For Example, 'ask INV_NUM'. INV_NUM is a String that looks something like '000 001 002 003 004 005'. Is it possible to add commas to the blank spaces in SQR, so the String looks like '000,001,002,003,004,005'. Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 12 15:55:07 2004 From: Ray Ontko Date: Wed, 12 May 2004 15:51:43 -0500 Subject: Re: [sqr-users] Add comments to an input string. You can't change the value of an ASK variable, but under certain circumstances you can do something like this: I'm guessing that you're trying to use INV_NUM in a where clause: where invoice_number in ({INV_NUM}) Try this: let $inv_num_list = translate('{INV_NUM}',' ',',') ... where invoice_number in ([$inv_num_list]) Ray On Wed, May 12, 2004 at 03:41:49PM -0500, DICKMAN, ERIC C. wrote: > Hello everyone, > > I have a input parameter that I am passing into my SQR file. For Example, > 'ask INV_NUM'. INV_NUM is a String that looks something like '000 001 002 > 003 004 005'. Is it possible to add commas to the blank spaces in SQR, so > the String looks like '000,001,002,003,004,005'. > > Thanks, > > Eric > > NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has > changed its name to the Department of Family and Protective Services(DFPS) > resulting in the following e-mail address format change for all employees: > firstname.lastname@dfps.state.tx.us > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 12 16:34:50 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Add comments to an input string. Date: Wed, 12 May 2004 14:33:14 -0700 And because you're changing a single character to another single character, you could also use translate. -----Original Message----- From: Jon Alsager [mailto:Jalsager@ISIF.STATE.ID.US] Sent: Wednesday, May 12, 2004 1:51 PM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] Add comments to an input string. Although I don't know which version this became available, you could try the SQR command "replace": $text = '000 001 002 003 004 005' let $new_text = replace($text,' ',',') ($new_text shows as 000,001,002,003,004,005) At least this seems to work for me. Jon Alsager State Insurance Fund jalsager@isif.state.id.us 208-332-2573 -----Original Message----- From: sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Wednesday, May 12, 2004 2:42 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Add comments to an input string. Hello everyone, I have a input parameter that I am passing into my SQR file. For Example, 'ask INV_NUM'. INV_NUM is a String that looks something like '000 001 002 003 004 005'. Is it possible to add commas to the blank spaces in SQR, so the String looks like '000,001,002,003,004,005'. Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 09:24:26 2004 From: "Miller, Danika" Date: Thu, 13 May 2004 10:20:52 -0400 Subject: [sqr-users] Wrapping Text Does anyone know of a function, have an existing SQC, or has code that will wrap text without messing up the rest of a report. Here's my report output: Name Rank Service Position Organization Jane Smith Cptn Navy Computer Consultanttment of Transportation James Jones Sgt Army Directory of Public Relations Association Data for Position and Organization is so long that they overlap. Is there a way to wrap the values for those two fields and put the data directly underneath their column headings then print the next person's line of data, so that the output will now look like this: Name Rank Service Position Organization Jane Smith Cptn Navy Computer Department of Consultant Transportation James Jones Sgt Army Director of U.S. Mailroom Public Relations Association PLEASE HELP!!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 09:34:09 2004 From: Smyth Lisa G Contr AEDC/ATA Date: Thu, 13 May 2004 14:33:05 -0000 Subject: [sqr-users] Selecting Long Raw Does anybody know how to select a long raw data type in SQR? I am trying to retrieve the Peoplecode that is stored as BLOB on the PSPCMPROG table. Thanks, Lisa Smyth Lisa Smyth PeopleSoft Financials 931.454.4861 Lisa.Smyth@arnold.af.mil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 09:59:27 2004 Date: Thu, 13 May 2004 10:57:25 -0400 From: "GREG KEENE" Subject: Re: [sqr-users] Wrapping Text There may be an easier way to do this but I'm new to SQR and I don't know a= better way. 1. Decide how many digits of a field you can fit on a line before wrapping. 2. Check the length of the field(s) before they are printed. 3. If a field is too long to fit on one line use EXTRACT commands to break = the field into two or more strings. You will need some IF logic for this. 4. Print the data. =20=20=20 Greg Keene IS&C - WVBEP Programmer/Analyst II Phone: (304) 558-4046 Fax: (304) 558-1850 >>> MillerD2@ndu.edu 05/13/04 10:20AM >>> Does anyone know of a function, have an existing SQC, or has code that will wrap text without messing up the rest of a report. Here's my report output: Name Rank Service Position Organization Jane Smith Cptn Navy Computer Consultanttment of Transportation James Jones Sgt Army Directory of Public Relations Association =09 Data for Position and Organization is so long that they overlap. Is there a way to wrap the values for those two fields and put the data directly underneath their column headings then print the next person's line of data, so that the output will now look like this: Name Rank Service Position Organization Jane Smith Cptn Navy Computer Department of=20 Consultant Transportation James Jones Sgt Army Director of U.S. Mailroom=20 Public Relations Association PLEASE HELP!!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 10:07:43 2004 Date: Thu, 13 May 2004 10:05:34 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Wrapping Text Check out the "WRAP" option of the print command. It does exactly what you want. (ex.) PRINT $this_var (#line, #col) WRAP #col_width #max_lines KEEP_TOP Explanation is in the language ref under the "PRINT" command. On Thu, 13 May 2004, Miller, Danika wrote: > Does anyone know of a function, have an existing SQC, or has code that will > wrap text without messing up the rest of a report. Here's my report > output: > > Name Rank Service Position > Organization > Jane Smith Cptn Navy Computer Consultanttment of > Transportation > James Jones Sgt Army Directory of Public > Relations Association > > Data for Position and Organization is so long that they overlap. Is there a > way to wrap the values for those two fields and put the data directly > underneath their column headings then print the next person's line of data, > so that the output will now look like this: > > Name Rank Service Position > Organization > Jane Smith Cptn Navy Computer Department > of > Consultant > Transportation > > James Jones Sgt Army Director of U.S. > Mailroom > Public Relations > Association > > > PLEASE HELP!!!! > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 11:46:01 2004 From: "John Willson" Date: Thu, 13 May 2004 10:41:36 -0600 Subject: Re: [sqr-users] Wrapping Text Hi see some example code below if you are wrapping over a page break. John Willson ----------------------------------------------start ! **************************************************************************** * ! * * ! * Procedure: PrintCheck * ! * * ! * Parameters: #new-page : 0 * ! * * ! * Description: Because sqr does not check if wrap goes over page break * ! * we must perform this check ourselves. * ! * This procedure should be called prior to all wrap print * ! * calls * ! * * ! * Return Values: * ! * * ! !*************************************************************************** ** begin-procedure PrintCheck( $wrapstr ) let #length_wrapstr = length($wrapstr) let #forward_lines = ceil (#length_wrapstr / {G_WRAP_COL_WIDTH}) if #forward_lines > {G_WRAP_LINES} let #forward_lines = {G_WRAP_LINES} end-if if ( #_current-line + #forward_lines ) >= {G_PAGE_LENGTH} NEW-PAGE print {G_BLANK} (+1, 1) end-if end-procedure PrintCheck ! Note G_ are user defined globals and #_ are SQR defined globals ----------------------------------------------end ----- Original Message ----- From: "Don Mellen" To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." Sent: Thursday, May 13, 2004 9:05 AM Subject: Re: [sqr-users] Wrapping Text > Check out the "WRAP" option of the print command. It does exactly what > you want. > > (ex.) PRINT $this_var (#line, #col) WRAP #col_width #max_lines KEEP_TOP > > Explanation is in the language ref under the "PRINT" command. > > On Thu, 13 May 2004, Miller, Danika wrote: > > > Does anyone know of a function, have an existing SQC, or has code that will > > wrap text without messing up the rest of a report. Here's my report > > output: > > > > Name Rank Service Position > > Organization > > Jane Smith Cptn Navy Computer Consultanttment of > > Transportation > > James Jones Sgt Army Directory of Public > > Relations Association > > > > Data for Position and Organization is so long that they overlap. Is there a > > way to wrap the values for those two fields and put the data directly > > underneath their column headings then print the next person's line of data, > > so that the output will now look like this: > > > > Name Rank Service Position > > Organization > > Jane Smith Cptn Navy Computer Department > > of > > Consultant > > Transportation > > > > James Jones Sgt Army Director of U.S. > > Mailroom > > Public Relations > > Association > > > > > > PLEASE HELP!!!! > > > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 11:50:19 2004 From: Peter Burton Date: Thu, 13 May 2004 09:49:28 -0700 Subject: RE: [sqr-users] Wrapping Text This is a multi-part message in MIME format... ----=_NextPart_ST_12_53_35_Thursday_May_13_2004_12044 Content-Type: text/plain; charset="iso-8859-1" John, Why don't you use the LET function WrapDepth() to determine the number of lines needed? Your code does not take in consideration any wrapping rules that SQR employs whereas the WrapDepth() function does. Peter > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org@HYPERION On > Behalf Of "John Willson" > Sent: Thursday, May 13, 2004 12:42 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: Re: [sqr-users] Wrapping Text > > Hi see some example code below if you are wrapping over a page break. > > John Willson > > ----------------------------------------------start > ! > ************************************************************************** > ** > * > ! * > * > ! * Procedure: PrintCheck > * > ! * > * > ! * Parameters: #new-page : 0 > * > ! * > * > ! * Description: Because sqr does not check if wrap goes over page > break > * > ! * we must perform this check ourselves. > * > ! * This procedure should be called prior to all wrap > print > * > ! * calls > * > ! * > * > ! * Return Values: > * > ! * > * > ! > !************************************************************************* > ** > ** > > begin-procedure PrintCheck( $wrapstr ) > > let #length_wrapstr = length($wrapstr) > let #forward_lines = ceil (#length_wrapstr / > {G_WRAP_COL_WIDTH}) > if #forward_lines > {G_WRAP_LINES} > let #forward_lines = {G_WRAP_LINES} > end-if > > if ( #_current-line + #forward_lines ) >= {G_PAGE_LENGTH} > NEW-PAGE > print {G_BLANK} (+1, 1) > end-if > > end-procedure PrintCheck > ! Note G_ are user defined globals and #_ are SQR defined globals > ----------------------------------------------end > ----- Original Message ----- > From: "Don Mellen" > To: "This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions." > Sent: Thursday, May 13, 2004 9:05 AM > Subject: Re: [sqr-users] Wrapping Text > > > > Check out the "WRAP" option of the print command. It does exactly what > > you want. > > > > (ex.) PRINT $this_var (#line, #col) WRAP #col_width #max_lines > KEEP_TOP > > > > Explanation is in the language ref under the "PRINT" command. > > > > On Thu, 13 May 2004, Miller, Danika wrote: > > > > > Does anyone know of a function, have an existing SQC, or has code that > will > > > wrap text without messing up the rest of a report. Here's my report > > > output: > > > > > > Name Rank Service Position > > > Organization > > > Jane Smith Cptn Navy Computer Consultanttment of > > > Transportation > > > James Jones Sgt Army Directory of Public > > > Relations Association > > > > > > Data for Position and Organization is so long that they overlap. Is > there a > > > way to wrap the values for those two fields and put the data directly > > > underneath their column headings then print the next person's line of > data, > > > so that the output will now look like this: > > > > > > Name Rank Service Position > > > Organization > > > Jane Smith Cptn Navy Computer Department > > > of > > > Consultant > > > Transportation > > > > > > James Jones Sgt Army Director of U.S. > > > Mailroom > > > Public Relations > > > Association > > > > > > > > > PLEASE HELP!!!! > > > > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > ----------------------------------------------------------------------- > > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > > donm@ontko.com | "In the beginning, there was nothing, which exploded" > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com ----=_NextPart_ST_12_53_35_Thursday_May_13_2004_12044 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ----=_NextPart_ST_12_53_35_Thursday_May_13_2004_12044 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ----=_NextPart_ST_12_53_35_Thursday_May_13_2004_12044-- From sqr-users-bounces@sqrug.org Thu May 13 11:53:34 2004 From: "Overcashier, Patricia" Date: Thu, 13 May 2004 12:49:18 -0400 Subject: [sqr-users] ftp using call system Hi group, I have used the 'call system' command for moving, deleting, and comparing files. I have also used it to send email messages. Now I would like to be able to use it to ftp my output file to a different server. Can I use 'call system' commands to ftp my output file? If so, how? Thanks. Patti ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 13 12:06:25 2004 Date: Thu, 13 May 2004 13:00:51 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] ftp using call system Yes you should be able to do that, you will need to store the ftp commands in a file and execute the file to do the fTP Prasanna "Overcashier, Patricia" wrote: > > Hi group, > I have used the 'call system' command for moving, deleting, and comparing > files. I have also used it to send email messages. > Now I would like to be able to use it to ftp my output file to a different > server. > Can I use 'call system' commands to ftp my output file? > If so, how? > Thanks. > Patti > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.mimesweeper.com > ********************************************************************** > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 06:48:56 2004 From: "Bambach, Tom" Subject: RE: [sqr-users] ftp using call system Date: Fri, 14 May 2004 07:47:19 -0400 Patricia, This is an example to FTP from Windows to UNIX create a file with contents like this: open 123.456.789.12 ftpusr 4ftponly ascii append g:\PeopleSoft\mxiss_grw.txt /home/ftpusr/files/mxissuef_grw.txt literal site chmod 777 /home/ftpusr/files/mxissuef_grw.txt quit EXIT (use put instead of append if you want to overwrite the file if it exists) this file could be created and written by your SQR program; assume that is is and that $local_file = 'g:\PeopleSoft\mxiss_grw.txt' and that $ftp_file is the name of the above file close $ftp_file after writing it... then in your SQR program, do this: let $syscmd = 'FTP -s:' || $ftp_file CALL SYSTEM USING $syscmd #stat WAIT if #stat = 0 let $disp = 'FTP successful...' display $disp let #stat1 = delete($local_file) if #stat1 <> 0 let $disp = 'Error ' || to_char(#stat1) || ' deleting ' || $local_file display $disp end-if else let $disp = 'Error ' || to_char(#stat) || ' attempting FTP...' display $disp end-if end-if Tom > -----Original Message----- > From: Overcashier, Patricia [SMTP:Patricia.Overcashier@aam.com] > Sent: Thursday, May 13, 2004 12:49 PM > To: Sqr-Users@Sqrug. Org (E-mail) > Subject: [sqr-users] ftp using call system > > Hi group, > I have used the 'call system' command for moving, deleting, and comparing > files. I have also used it to send email messages. > Now I would like to be able to use it to ftp my output file to a different > server. > Can I use 'call system' commands to ftp my output file? > If so, how? > Thanks. > Patti > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.mimesweeper.com > ********************************************************************** > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 07:49:14 2004 Date: Fri, 14 May 2004 08:47:57 -0400 From: Amy Emge Subject: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machine (JVM). We running SQR 8.2 via Unix on an AIX box and all programs have been running fine with the exception of one, which is returning this error: (SQR 7715) Failed to start the Java Virtual Machine (JVM). Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. It's perplexing because it's the only program returning the error. If we were in face missing jre files, I assume other programs would be bombing as well. I'm helping another user and I'm unclear if she's getting this message all the time or just when she's using these flags: sqr -rt -eh_csv SQREdit1.sqt -printer:eh We're running the .sqt because we're running a compiled version. Has anyone else experienced this problem and come up with a solution? If you need additional information, let me know. Thanks in advance. Amy Emge Applications Analyst Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 08:06:34 2004 Date: Fri, 14 May 2004 09:04:05 -0400 From: "Larry Roux" Subject: Re: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machine(JVM). Was the sqr recompiled after any SQR upgrades were applied? ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> emgeac@muohio.edu 05/14/04 08:52 AM >>> We running SQR 8.2 via Unix on an AIX box and all programs have been=20 running fine with the exception of one, which is returning this error: (SQR 7715) Failed to start the Java Virtual Machine (JVM). Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. It's perplexing because it's the only program returning the error. If we= =20 were in face missing jre files, I assume other programs would be bombing as= =20 well. I'm helping another user and I'm unclear if she's getting this message all= =20 the time or just when she's using these flags: sqr -rt -eh_csv SQREdit1.sqt -printer:eh We're running the .sqt because we're running a compiled version. Has anyone else experienced this problem and come up with a solution? If you need additional information, let me know. Thanks in advance. Amy Emge Applications Analyst Miami University=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 08:20:48 2004 From: "the dragon" Subject: Re: [sqr-users] (SQR 7715) Failed to start the Java VirtualMachine(JVM). Date: Fri, 14 May 2004 08:19:34 -0500 This was just discused in the newsgroup within the last 60 days. do a search in the archives at www.sqrug.com peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Was the sqr recompiled after any SQR upgrades were applied? ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> emgeac@muohio.edu 05/14/04 08:52 AM >>> We running SQR 8.2 via Unix on an AIX box and all programs have been running fine with the exception of one, which is returning this error: (SQR 7715) Failed to start the Java Virtual Machine (JVM). Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. It's perplexing because it's the only program returning the error. If we were in face missing jre files, I assume other programs would be bombing as well. I'm helping another user and I'm unclear if she's getting this message all the time or just when she's using these flags: sqr -rt -eh_csv SQREdit1.sqt -printer:eh We're running the .sqt because we're running a compiled version. Has anyone else experienced this problem and come up with a solution? If you need additional information, let me know. Thanks in advance. Amy Emge Applications Analyst Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 08:59:22 2004 From: Peter Burton Date: Fri, 14 May 2004 06:58:31 -0700 Subject: RE: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machi ne(JVM). Amy, Is your environment properly setup as documentated in the Installation Guide? Path Variable PATH=$SQRDIR:$BRIO_HOME/jre/jre141/bin:$PATH Environment Variable LIBPATH=$SQRDIR:$BRIO_HOME/jre/jre141/bin:$BRIO_HOME/jre/jre141/bin/classic: $LIBPATH Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Amy Emge Sent: Friday, May 14, 2004 8:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machine(JVM). We running SQR 8.2 via Unix on an AIX box and all programs have been running fine with the exception of one, which is returning this error: (SQR 7715) Failed to start the Java Virtual Machine (JVM). Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. It's perplexing because it's the only program returning the error. If we were in face missing jre files, I assume other programs would be bombing as well. I'm helping another user and I'm unclear if she's getting this message all the time or just when she's using these flags: sqr -rt -eh_csv SQREdit1.sqt -printer:eh We're running the .sqt because we're running a compiled version. Has anyone else experienced this problem and come up with a solution? If you need additional information, let me know. Thanks in advance. Amy Emge Applications Analyst Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 09:31:22 2004 Date: Fri, 14 May 2004 10:30:35 -0400 From: Amy Emge Subject: RE: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machi ne(JVM). Thanks, Peter - I'm having our DBA check that out now. I'm looking at the previous posts Clark pointed me to as well. Was it recompiled - yes. I just tried to run it and noticed it's running I believe to the point of completion, then crashing and returning that error right before the .pdf and .csv are created. The .spf appears and increases in size as the program runs, then right about the time the program should finish up (when the .pdf and .csv are created), the error occurs, program aborts. Thanks for the help so far. A. At 06:58 AM 5/14/2004 -0700, you wrote: >Amy, > >Is your environment properly setup as documentated in the Installation >Guide? > >Path Variable >PATH=$SQRDIR:$BRIO_HOME/jre/jre141/bin:$PATH > >Environment Variable >LIBPATH=$SQRDIR:$BRIO_HOME/jre/jre141/bin:$BRIO_HOME/jre/jre141/bin/classic: >$LIBPATH > >Peter > >-----Original Message----- >From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org >[mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of >Amy Emge >Sent: Friday, May 14, 2004 8:48 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] (SQR 7715) Failed to start the Java Virtual >Machine(JVM). > > >We running SQR 8.2 via Unix on an AIX box and all programs have been running >fine with the exception of one, which is returning this error: > >(SQR 7715) Failed to start the Java Virtual Machine (JVM). >Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or >insufficient resources. > >It's perplexing because it's the only program returning the error. If we >were in face missing jre files, I assume other programs would be bombing as >well. > >I'm helping another user and I'm unclear if she's getting this message all >the time or just when she's using these flags: > >sqr -rt -eh_csv SQREdit1.sqt -printer:eh > >We're running the .sqt because we're running a compiled version. > >Has anyone else experienced this problem and come up with a solution? > >If you need additional information, let me know. > >Thanks in advance. > >Amy Emge >Applications Analyst >Miami University > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >************************************************************************ > >If you have received this e-mail in error, please delete it and notify the >sender as soon as possible. The contents of this e-mail may be >confidential and the unauthorized use, copying, or dissemination of it and >any attachments to it, is prohibited. > >Internet communications are not secure and Hyperion does not, therefore, >accept legal responsibility for the contents of this message nor for any >damage caused by viruses. The views expressed here do not necessarily >represent those of Hyperion. > >For more information about Hyperion, please visit our Web site at >www.hyperion.com > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 09:45:21 2004 Subject: RE: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machine(JVM). Date: Fri, 14 May 2004 08:43:21 -0600 From: "Jon Alsager" We have the same problem, and the cause (as I understood it) is that we are running SQR 8.0.2 on Unix version 11.22 (Itanium chip set), which it is not certified for. The bottom line is that apparently SQR doesn't like the Java that our Unix is running (or something along those lines). Like yours, the only programs that were bombing were the ones using=20 -printer:eh. Our work around, which may or may not work for you, was to produce PDF instead. Jon Alsager State Insurance Fund jalsager@isif.state.id.us 208-332-2573 -----Original Message----- From: sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org] On Behalf Of Amy Emge Sent: Friday, May 14, 2004 6:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 7715) Failed to start the Java Virtual Machine(JVM).=20 We running SQR 8.2 via Unix on an AIX box and all programs have been=20 running fine with the exception of one, which is returning this error: (SQR 7715) Failed to start the Java Virtual Machine (JVM). Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. It's perplexing because it's the only program returning the error. If we=20 were in face missing jre files, I assume other programs would be bombing as=20 well. I'm helping another user and I'm unclear if she's getting this message all=20 the time or just when she's using these flags: sqr -rt -eh_csv SQREdit1.sqt -printer:eh We're running the .sqt because we're running a compiled version. Has anyone else experienced this problem and come up with a solution? If you need additional information, let me know. Thanks in advance. Amy Emge Applications Analyst Miami University=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 09:47:06 2004 From: "Miller, Danika" Date: Fri, 14 May 2004 10:45:20 -0400 Subject: [sqr-users] Date Format Help Ok, this should be an easy one, but it's Friday and my brain is totally fried. Anywho... I'm selecting END_DT via Toad and return the following date format: 5/14/2004 When my SQR runs I want to select rows where END_DT >= SYSDATE When I select SYSDATE from DUAL, I get: 5/14/2004 10:39:26 AM Now, I know that I need to do some type of formatting within my program, but what is it? I've tried adding: begin-select END_DT let $end_dt = to_date(end_dt,'DD-MON-YYYY:HH:MI:SS') from ps_table end-select But that didn't work. Am I even close to getting this right??? FYI, we are currently running Oracle 9i. PLEASE HELP!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 09:50:36 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] Date Format Help Date: Fri, 14 May 2004 09:50:01 -0500 can you do this? begin-select to_date(END_DT, 'DD-MON-YYYY:HH:MI:SS') &end_dt (move &end_dt to $end_dt if you want to) from ps_table end-select nicholas -----Original Message----- From: sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org [mailto:sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org]On Behalf Of Miller, Danika Sent: Friday, May 14, 2004 9:45 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Date Format Help Ok, this should be an easy one, but it's Friday and my brain is totally fried. Anywho... I'm selecting END_DT via Toad and return the following date format: 5/14/2004 When my SQR runs I want to select rows where END_DT >= SYSDATE When I select SYSDATE from DUAL, I get: 5/14/2004 10:39:26 AM Now, I know that I need to do some type of formatting within my program, but what is it? I've tried adding: begin-select END_DT let $end_dt = to_date(end_dt,'DD-MON-YYYY:HH:MI:SS') from ps_table end-select But that didn't work. Am I even close to getting this right??? FYI, we are currently running Oracle 9i. PLEASE HELP!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 09:53:57 2004 From: James Womeldorf Subject: RE: [sqr-users] Date Format Help Date: Fri, 14 May 2004 09:51:37 -0500 Try this: select trunc(sysdate) from dual Jim Womeldorf -----Original Message----- From: Miller, Danika [mailto:MillerD2@ndu.edu] Sent: Friday, May 14, 2004 9:45 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Date Format Help Ok, this should be an easy one, but it's Friday and my brain is totally fried. Anywho... I'm selecting END_DT via Toad and return the following date format: 5/14/2004 When my SQR runs I want to select rows where END_DT >= SYSDATE When I select SYSDATE from DUAL, I get: 5/14/2004 10:39:26 AM Now, I know that I need to do some type of formatting within my program, but what is it? I've tried adding: begin-select END_DT let $end_dt = to_date(end_dt,'DD-MON-YYYY:HH:MI:SS') from ps_table end-select But that didn't work. Am I even close to getting this right??? FYI, we are currently running Oracle 9i. PLEASE HELP!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 14 09:56:39 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] Date Format Help Date: Fri, 14 May 2004 09:52:50 -0500 oops, i meant using TO_CHAR!!! -----Original Message----- From: sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org [mailto:sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org]On Behalf Of Chu, Nicholas Sent: Friday, May 14, 2004 9:50 AM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Date Format Help can you do this? begin-select to_date(END_DT, 'DD-MON-YYYY:HH:MI:SS') &end_dt (move &end_dt to $end_dt if you want to) from ps_table end-select nicholas -----Original Message----- From: sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org [mailto:sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org]On Behalf Of Miller, Danika Sent: Friday, May 14, 2004 9:45 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Date Format Help Ok, this should be an easy one, but it's Friday and my brain is totally fried. Anywho... I'm selecting END_DT via Toad and return the following date format: 5/14/2004 When my SQR runs I want to select rows where END_DT >= SYSDATE When I select SYSDATE from DUAL, I get: 5/14/2004 10:39:26 AM Now, I know that I need to do some type of formatting within my program, but what is it? I've tried adding: begin-select END_DT let $end_dt = to_date(end_dt,'DD-MON-YYYY:HH:MI:SS') from ps_table end-select But that didn't work. Am I even close to getting this right??? FYI, we are currently running Oracle 9i. PLEASE HELP!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun May 16 23:48:39 2004 From: Britto.Devasahayam@in.standardchartered.com Subject: Re: [sqr-users] (SQR 5528) Error (Happersberger. Rich (MSA)) Date: Mon, 17 May 2004 10:16:04 +0530 This is a multi-part message in MIME format... --=_IS_MIME_Boundary Content-type: text/plain; charset=us-ascii You need to give the DISTINCT keyword in the same line with begin-select as follows begin-select DISTINCT bs.sample_type bs.schedule_seq . . . Regards, Britto ------------------------------------------------------------------------------------------------------------------------------------------------------------- Send sqr-users mailing list submissions to sqr-users@sqrug.org To subscribe or unsubscribe via the World Wide Web, visit http://www.sqrug.org/mailman/listinfo/sqr-users or, via email, send a message with subject or body 'help' to sqr-users-request@sqrug.org You can reach the person managing the list at sqr-users-owner@sqrug.org When replying, please edit your Subject line so it is more specific than "Re: Contents of sqr-users digest..." Today's Topics: 1. (SQR 5528) Error (Happersberger. Rich (MSA)) 2. Re: (SQR 5528) Error (George Jansen) 3. RE: (SQR 5528) Error (Bartlett, Dwain) 4. RE: (SQR 5528) Error (Alexander, Steve) 5. Re: (SQR 5528) Error (bmrazek@sympatico.ca) 6. RE: (SQR 5528) Error (Krishna Chennamaneni) 7. RE: (SQR 5528) Error (Overcashier, Patricia) 8. RE: (SQR 5528) Error (rwulfson@bost.com) 9. RE: (SQR 5528) Error (the dragon) 10. Anybody have experience with as/400 (Edmundo Reyes Cuellar) 11. Page Size (Miller, Danika) 12. Re: (SQR 5528) Error (Dattatraya Shetty) 13. RE: Page Size (the dragon) 14. RE: (SQR 5528) Error (Happersberger. Rich (MSA)) 15. RE: (SQR 5528) Error (Happersberger. Rich (MSA)) ----- Message from on ----- Hello - I'm new to SQR, so hope to ask the correct questions - Curious about the entries in the message below when it says "sc.queue=:1", etc. Does this indicate a collision of variables? This query is part of a local procedure. If the variables are hardcoded, this query will return stuff via SQLPlus. >From the following Select I get the following error; (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 5: ORA-00936: missing expression SQL: SELECT DISTINCT, bs.sample_type, bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=:1 and sc.queue=bs.queue and bs.batch_number=:2 and ps.project_seq=:3 and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) Error on line 227: (SQR 3716) Error in SQL statement. begin-select DISTINCT bs.sample_type bs.schedule_seq FROM batch_schedules bs, schedules sc, project_samples ps WHERE sc.schedule_id=ps.hsn and sc.queue=$_bs.Queue and sc.queue=bs.queue !LACH for test purposes and bs.batch_number=$_bs.BatchNumber !1963 for test purposes and ps.project_seq=#_ProjectSeq !14666 for test purposes and bs.sample_type IN (select sample_type from hv$sample_type where sample_type_flag NOT IN ('0','9') ) end-select Thanks to all - Rich Happersberger Asst. Systems Administrator SRCSD Laboratory (MSA) ___________________________________________________________________________________________________________ This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by other than the County of Sacramento or the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ___________________________________________________________________________________________________________ --=_IS_MIME_Boundary Content-Type: text/plain;charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline ---------------------------------------------------------- This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for damage caused by this email and may monitor email traffic. Unless expressly stated, any opinions are the sender's and are not approved by SCGroup and this email is not an offer, solicitation, recommendation or agreement of any kind. Standard Chartered Bank ("SCB") is a member of SCGroup incorporated in England with limited liability. SCB's principal office is 1 Aldermanbury Square, London, EC2V 7SB, UK. SCB is authorised and regulated by the Financial Services Authority ("FSA") and in FSA's register under no. 114276. SCB's VAT no. is GB244106593. FSA is the lead regulator for the SCGroup. For regulators in other countries contact the local compliance officer. --------------------------------------------------------- --=_IS_MIME_Boundary Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=_IS_MIME_Boundary-- From sqr-users-bounces@sqrug.org Mon May 17 09:52:25 2004 Date: Mon, 17 May 2004 09:46:11 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Vacation programs.... This is a multi-part message in MIME format... --===============0952569052== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Content-Disposition: inline This is a multi-part message in MIME format... --neYutvxvOLaeuPCA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've disabled the subscription that caused the mail loop this morning, so it should be safe to post messages to the list again. With the summer season upon us, here's a reminder of some items you should check before using a "vacation" or "out of office" program. 1) Make sure it only sends _one_ "on vacation" note back to=20 any given address. 2) Make sure it does _not_ send replies to messages that are marked with a "Precedence" of "list", "junk", or "bulk". 3) Make sure it only sends replies to messages that actually have your e-mail address in the To: or CC: lines. 4) The program should _not_ use the incoming message's subject line when sending a reply message.=20=20 (A large number of automated "confirm action with user" systems send a message with a confirmation code in the message subject line. If your vacation message doesn't change the subject line when it generates its reply message, that reply will end up being treated as a "confirmation" from you -- even though you aren't even in your office.) If you can't be sure that your vacation program follows those rules, you should not use it, as it's likely to cause you problems (not to mention other people subscribed to mailing lists with you, your mail system administrator, etc....). (If you still decide to go ahead and use the program, be sure to unsubscribe from any mailing lists you are subscribe to beforehand.) On a related note: whenever you notice a mail loop on a mailing list you are subscribed to, do not send any new messages to the list (and that includes "hey, there is a mail loop!"-type messages). Each additional message will start a new cycle of looping, making the situation that much worse (and it's already obvious to everyone on the list that there is a loop :) ). We now return to our regularly scheduled programming.... Nathan Stratton Treadway sqr-users list manager ---------------------------------------------------------------------------- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint =3D 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 --neYutvxvOLaeuPCA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAqNAzFfOtzez7YjkRAs3tAJ4lonGBEK7dsZYg18Lz3+exu5epRgCgpDsu 2ygeqqlAQ1yTTk10cPwKGZU= =ibv9 -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA-- --===============0952569052== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============0952569052==-- From sqr-users-bounces@sqrug.org Thu May 20 10:49:57 2004 Date: Thu, 20 May 2004 10:01:47 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] open text files error handling Hi to all I have this nice little procedure with borrowed code to log when a user runs a Brio report. It works great with a one or two users. I worry that if 2 users run a report at the same time Brio will be unable to open the log text file for appending and then the user will get the DOS 'black screen of death'. Is there a way if Brio can't open the log text file that I can tell it to wait and try again in a few milliseconds? A call_system to windows? Thanks for all suggestions begin-procedure write_log_start let $log_file = 'j:\Scott\SQR_LOG.txt' open $log_file as {OUT_FILE} for-append record={OUT_MAX}:vary status=#status if #status show 'error: unable to open "' $log_file '" for output' stop quiet !I could comment this out to make sure the report runs anyway end-if do get_database_name($locale ) let $user = $username let $reportname = $sqr-program let $line = edit($Current-date,'DD-MON-YYYY HH:MI:SS'||' , '||$user||' , '||$reportname||' , '||$locale write {OUT_FILE} from $line close {OUT_FILE} end-procedure write_log_start Brio 6.0-windows 2000 clients-oracle 8.06 dbase Kevin LaRoche Oracle Forms Developer Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 10:54:13 2004 Date: Thu, 20 May 2004 11:53:15 -0400 From: "Larry Roux" Subject: Re: [sqr-users] open text files error handling Could you add a while loop? ie begin-procedure write_log_start let $log_file =3D 'j:\Scott\SQR_LOG.txt' Let #status =3D 1 while #status <> 0 open $log_file as {OUT_FILE} for-append record=3D{OUT_MAX}:vary status=3D#status end-while do get_database_name($locale ) let $user =3D $username let $reportname =3D $sqr-program let $line =3D edit($Current-date,'DD-MON-YYYY=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 HH:MI:SS'||' , '||$user||' , '||$reportname||' , '||$locale write {OUT_FILE} from $line close {OUT_FILE} end-procedure write_log_start ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> bydesign@magma.ca 05/20/04 10:01AM >>> Hi to all I have this nice little procedure with borrowed code to log when a user ru= ns a Brio=20 report. It works great with a one or two users. I worry that if 2 users ru= n a report at=20 the same time Brio will be unable to open the log text file for appending a= nd then the=20 user will get the DOS 'black screen of death'. Is there a way if Brio can't open the log text file that I can tell it to w= ait and try=20 again in a few milliseconds? A call_system to windows? Thanks for all suggestions=20 begin-procedure write_log_start let $log_file =3D 'j:\Scott\SQR_LOG.txt' open $log_file as {OUT_FILE} for-append record=3D{OUT_MAX}:vary status=3D#status if #status show 'error: unable to open "' $log_file '" for output' stop quiet !I could comment this out to make sure the report runs anyway end-if do get_database_name($locale ) let $user =3D $username let $reportname =3D $sqr-program let $line =3D edit($Current-date,'DD-MON-YYYY=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 HH:MI:SS'||' , '||$user||' , '||$reportname||' , '||$locale write {OUT_FILE} from $line close {OUT_FILE} end-procedure write_log_start Brio 6.0-windows 2000 clients-oracle 8.06 dbase Kevin LaRoche Oracle Forms Developer Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 11:04:51 2004 Date: Thu, 20 May 2004 12:02:33 -0400 From: "George Jansen" Subject: Re: [sqr-users] open text files error handling Hmmm. You need something to manage concurrent access to a shared resource. Sounds like a job for a database, doesn't it? Since you've got Oracle, why not write yourself a couple of packaged procedures with signatures like PROCEDURE record_report_start (p_report_name IN t_report_name_type, p_report_user IN t_username_type, p_rec_nbr OUT number); PROCEDURE record_report_end (p_rec_nbr IN number, p_status IN t_status); Your employer has paid Oracle Corporation a lot of money to manage the locking & concurrency stuff. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 11:24:02 2004 Date: Thu, 20 May 2004 12:22:06 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] open text files error handling Thanks for the suggestions. You're right George, using an oracle side procedure is a more robust solution but I'm going to use Larry's suggestion to stay with the 'keep it simple' idea. By using an include file for the log procedure I can modify any Brio report in 10 seconds with a text editor while going to the oracle solution requires extensive testing and recompiling of all the forms and the agreement of the dba, maybe even the change management committee (!). Thanks again Kevin LaRoche Oracle Forms Developer Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 11:38:10 2004 From: Peter Burton Subject: RE: [sqr-users] open text files error handling Date: Thu, 20 May 2004 12:36:39 -0400 Kevin, Depending on the version of SQR you could use the LET SLEEP() function to pause execution for the specified number of seconds and then retry the operation. After a predetermined number of retries you could then give up and yell for help. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Kevin Laroche Sent: Thursday, May 20, 2004 12:22 PM To: sqr-users@sqrug.org Subject: [sqr-users] open text files error handling Thanks for the suggestions. You're right George, using an oracle side procedure is a more robust solution but I'm going to use Larry's suggestion to stay with the 'keep it simple' idea. By using an include file for the log procedure I can modify any Brio report in 10 seconds with a text editor while going to the oracle solution requires extensive testing and recompiling of all the forms and the agreement of the dba, maybe even the change management committee (!). Thanks again Kevin LaRoche Oracle Forms Developer Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 11:45:30 2004 Date: Thu, 20 May 2004 12:43:39 -0400 From: "Larry Roux" Subject: RE: [sqr-users] open text files error handling Yes, you will want to issue a stop after a number of tries in case somethin= g is wrong (and use the Sleep() function to make sure the program does not = attempt to access the file 1,000 times in a second).=20=20 Using the DB to store the info would be the best solution - but I hear ya -= we spend millions of dollars to have an RDBMS but actually getting to *use= * it sometimes is a real bear! Ah, such is life. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Peter_Burton@Hyperion.com 05/20/04 12:36PM >>> Kevin, Depending on the version of SQR you could use the LET SLEEP() function to pause execution for the specified number of seconds and then retry the operation. After a predetermined number of retries you could then give up and yell for help. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf = Of Kevin Laroche Sent: Thursday, May 20, 2004 12:22 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] open text files error handling Thanks for the suggestions. You're right George, using an oracle side procedure is a more robust solution but I'm going to use Larry's suggestion to stay with the 'keep it simple' idea. By using an include file for the log procedure I can modify any Brio report in 10 seconds with a text editor while going to the oracle solution requires extensive testing and recompiling of all the forms and the agreement of the dba, maybe even the change management committee (!). Thanks again Kevin LaRoche Oracle Forms Developer Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 11:48:20 2004 Date: Thu, 20 May 2004 12:46:04 -0400 From: "Larry Roux" Subject: Re: [sqr-users] open text files error handling Yes, you will want to issue a stop after a number of tries in case somethin= g is wrong (and use the Sleep() function to make sure the program does not = attempt to access the file 1,000 times in a second).=20=20 Using the DB to store the info would be the best solution - but I hear ya -= we spend millions of dollars to have an RDBMS but actually getting to *use= * it sometimes is a real bear! Ah, such is life. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Peter_Burton@Hyperion.com 05/20/04 12:36PM >>> Kevin, Depending on the version of SQR you could use the LET SLEEP() function to pause execution for the specified number of seconds and then retry the operation. After a predetermined number of retries you could then give up and yell for help. Peter >>> bydesign@magma.ca 05/20/04 12:22PM >>> Thanks for the suggestions. You're right George, using an oracle side proc= edure is a=20 more robust solution but I'm going to use Larry's suggestion to stay with t= he 'keep it=20 simple' idea. By using an include file for the log procedure I can modify = any Brio=20 report in 10 seconds with a text editor while going to the oracle solution = requires=20 extensive testing and recompiling of all the forms and the agreement of the= dba, maybe=20 even the change management committee (!). Thanks again Kevin LaRoche Oracle Forms Developer Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 12:35:44 2004 Date: Thu, 20 May 2004 13:35:07 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] open text files error handling Thanks Larry for the what-if suggestions. What is the sleep function that you mention? I can't see anything in the Brio 6.0 documentation about it. Are you calling VB or a script? Kevin LaRoche Oracle Forms Developer Ottawa, Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 12:52:31 2004 Date: Thu, 20 May 2004 13:50:13 -0400 From: "Larry Roux" Subject: Re: [sqr-users] open text files error handling I was just quoting George's suggestion, but I can't find Sleep() either. I= guess you would need to replicate that functionality somehow. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> bydesign@magma.ca 05/20/04 01:35PM >>> Thanks Larry for the what-if suggestions. What is the sleep function that you mention? I can't see anything in the B= rio 6.0=20 documentation about it. Are you calling VB or a script? Kevin LaRoche Oracle Forms Developer Ottawa, Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 13:17:24 2004 From: Peter Burton Date: Thu, 20 May 2004 11:16:42 -0700 Subject: RE: [sqr-users] open text files error handling All, The LET SLEEP() function was included in the UFUNC.C module as an example user function. It is there lurking in the shadows. It was added in SQR 6.2. LET #Status = Sleep(#Seconds) #Status = (Unix) number of unslept seconds (Windows) Always zero Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Larry Roux Sent: Thursday, May 20, 2004 1:50 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] open text files error handling I was just quoting George's suggestion, but I can't find Sleep() either. I guess you would need to replicate that functionality somehow. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> bydesign@magma.ca 05/20/04 01:35PM >>> Thanks Larry for the what-if suggestions. What is the sleep function that you mention? I can't see anything in the Brio 6.0 documentation about it. Are you calling VB or a script? Kevin LaRoche Oracle Forms Developer Ottawa, Ontario K2E 5G2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 13:38:18 2004 Date: Thu, 20 May 2004 14:36:27 -0400 (EDT) From: "Kevin Laroche" Subject: [sqr-users] open text files error handling Hm,in the shadows you say, Thanks Peter. As my chances of getting Brio upgraded from 6.0 are slim to none I'm going with plan 'B', If the status of brio opening a text file returns an error I will write the data to an error log in the same folder. Thanks Kevin LaRoche Oracle Forms Developer, Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 13:52:58 2004 From: "m rapson" Date: Thu, 20 May 2004 14:51:56 -0400 Subject: [sqr-users] Write Header to a File I currently have an SQR writing to a CSV file. However, I don't have a header or footer. The client has requested both. I am not sure how to add the header and footer to the write statement. I run through my sql procedures then I write it out as below begin-Procedure Write-File write 1 from $RECORD_TYPE $CONTROL_NUMBER $SUFFIX $ACCOUNT $EFF_DT $SSN $ENROLL_STATUS $DATE_HIRE $CLAIM_OFFICE $PLAN_NUMBER $GENDER $BIRTHDATE $NAME $NUMERIC1 $ISODATE $NUMERIC2 $COORD_BENEFIT $NUMERIC3 $ALPHA1 $SPECIAL_CODE $DIVISION_CODE $WORK_ZIP $NUMERIC4 $ADDRESS1 $ADDRESS2 $CITY $STATE $ZIPCODE $ISODATE2 $ISODATE3 $NUMERIC5 $ISODATE4 $NUMERIC6 $ALPHA2 $NUMERIC7 $ALPHA3 $NUMERIC8 $ALPHA4 $NUMERIC9 $ALPHA5 $NUMERIC10 $ALPHA6 $NUMERIC11 $ALPHA7 $HOME_PHONE $ALPHA8 $ALTERNATE_ID $NUMERIC12 $ALPHA9 end-PROCEDURE How do I add a header and footer to this code. Each would be one line each. Thanks _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 14:57:03 2004 Date: Thu, 20 May 2004 15:54:25 -0400 From: "George Jansen" Subject: Re: [sqr-users] open text files error handling Actually, with Oracle you can do your sleeping in the database... Begin-Program show 'Some' Do Snooze(1) show 'real' Do Snooze(3) show 'slow' Do Snooze(5) show 'Lines' End-Program Begin-Procedure Snooze (#secs) Begin-Sql begin dbms_lock.sleep(5);; end;; End-Sql End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 20 16:29:05 2004 From: "the dragon" Subject: RE: [sqr-users] Write Header to a File Date: Thu, 20 May 2004 16:27:58 -0500 You can not add a header or a footer to a write statement - however, you can create a write_header and write_footer procedure which write header and footer information respectively. Then, you call the write_header once before the regular data starts writeing, and you call the write_footer procedure after the data has finished writing. hope this helps peace clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I currently have an SQR writing to a CSV file. However, I don't have a header or footer. The client has requested both. I am not sure how to add the header and footer to the write statement. I run through my sql procedures then I write it out as below begin-Procedure Write-File write 1 from $RECORD_TYPE $CONTROL_NUMBER $SUFFIX $ACCOUNT $EFF_DT $SSN $ENROLL_STATUS $DATE_HIRE $CLAIM_OFFICE $PLAN_NUMBER $GENDER $BIRTHDATE $NAME $NUMERIC1 $ISODATE $NUMERIC2 $COORD_BENEFIT $NUMERIC3 $ALPHA1 $SPECIAL_CODE $DIVISION_CODE $WORK_ZIP $NUMERIC4 $ADDRESS1 $ADDRESS2 $CITY $STATE $ZIPCODE $ISODATE2 $ISODATE3 $NUMERIC5 $ISODATE4 $NUMERIC6 $ALPHA2 $NUMERIC7 $ALPHA3 $NUMERIC8 $ALPHA4 $NUMERIC9 $ALPHA5 $NUMERIC10 $ALPHA6 $NUMERIC11 $ALPHA7 $HOME_PHONE $ALPHA8 $ALTERNATE_ID $NUMERIC12 $ALPHA9 end-PROCEDURE How do I add a header and footer to this code. Each would be one line each. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 21 08:00:53 2004 Date: Fri, 21 May 2004 07:59:49 -0500 From: "Lock, Edward J" Subject: [sqr-users] Call System question When using the sqr Call System command to make a call to Unix, is there a way to return an actual value (such as a numeric value) to the sqr program, as opposed to just the #status?=20 Thanks, EJ Lock=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 21 10:14:03 2004 Date: Fri, 21 May 2004 10:13:21 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Call System question Probably... ;) Whatever is being called that has this value you want to pass, put it in a file. Then, in the SQR, open and read that file. If the value is from std_out of something you don't have programmatic control of, then redirect to a file. Or create a .sh script if it's more complex than std_out. You can even write a shell script file from the sqr, close it, call system to make it executable, then call system to run it. HTH, Don On Fri, 21 May 2004, Lock, Edward J wrote: > When using the sqr Call System command to make a call to Unix, is there > a way to return an actual value (such as a numeric value) to the sqr > program, as opposed to just the #status? > > Thanks, > EJ Lock > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 21 15:16:39 2004 Date: Fri, 21 May 2004 13:14:07 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Call System question EJ, The Status can be any value you. So if you have your own Unix Script or a Program then return status can be the value you want to send back to sqr. else the solution of writing to file can be used. HTH Datta. --- Don Mellen wrote: > Probably... ;) > > Whatever is being called that has this value you want to pass, put it > in a > file. Then, in the SQR, open and read that file. > > If the value is from std_out of something you don't have programmatic > control of, then redirect to a file. > > Or create a .sh script if it's more complex than std_out. You can > even > write a shell script file from the sqr, close it, call system to make > it > executable, then call system to run it. > > HTH, > Don > > > On Fri, 21 May 2004, Lock, Edward J wrote: > > > When using the sqr Call System command to make a call to Unix, is > there > > a way to return an actual value (such as a numeric value) to the > sqr > > program, as opposed to just the #status? > > > > Thanks, > > EJ Lock > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - > http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which > exploded" > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! Domains – Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 24 01:44:06 2004 Date: Mon, 24 May 2004 12:11:54 +0530 From: Subject: [sqr-users] list variable in SQR? Hi, =0D Can you please give me an example, which states the usage of "lists" in SQR? =0D Cheers, Ravi Tej varma D (PeopleSoft Practice) =0D =0D Confidentiality Notice=0D The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and may contain confidential or p= rivileged information. If you are not the intended recipient, please notify the sender at Wipro or Ma= iladmin@wipro.com immediately and destroy all copies of this message and any attachments. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon May 24 04:54:37 2004 From: "Steve Cavill" Subject: RE: [sqr-users] list variable in SQR? Date: Mon, 24 May 2004 19:52:59 +1000 Ravi, I think lists are only used by the DDO/SAP version of SQR. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org]On Behalf Of ravi.varma@wipro.com Sent: Monday, 24 May 2004 4:42 PM To: sqr-users@sqrug.org Subject: [sqr-users] list variable in SQR? Importance: High Hi, Can you please give me an example, which states the usage of "lists" in SQR? Cheers, Ravi Tej varma D (PeopleSoft Practice) Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 26 04:37:18 2004 Date: Wed, 26 May 2004 02:36:16 -0700 (PDT) From: Darshil Mehta Subject: [sqr-users] On Break Option Hi all, I am getting following data. Custname -------------- cust1 cust1 cust1 cust2 cust2 Now I want to show it like Custname -------------- cust1 cust1 cust1 Cust name: cust1 : 3 cust2 cust2 Cust name: cust2 : 2 I am using this command. crmserv.srno &service_req_id crmserv.srdesc &service_req_subject_desc crmserv.createdate &create_dt crmserv.statuscd &service_req_status_cd crmserv.topicdesc &service_req_topic_desc crmserv.srreqtype &serv_req_typ corp.description &cust_nam () on-break level=1 print=never after=cust_count crmserv.srowner &assigned_to_last_nam corp.cnt &custcount But I'm getting count in the begining instead of after cust name. My output shows following Custname -------------- Cust name: cust1 : 3 cust1 cust1 cust1 Cust name: cust2 : 2 cust2 cust2 what could be the reason? Thanks in advance... Darshil --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 26 06:50:00 2004 From: "the dragon" Subject: RE: [sqr-users] On Break Option Date: Wed, 26 May 2004 06:48:32 -0500 post the program PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all, I am getting following data. Custname -------------- cust1 cust1 cust1 cust2 cust2 Now I want to show it like Custname -------------- cust1 cust1 cust1 Cust name: cust1 : 3 cust2 cust2 Cust name: cust2 : 2 I am using this command. crmserv.srno &service_req_id crmserv.srdesc &service_req_subject_desc crmserv.createdate &create_dt crmserv.statuscd &service_req_status_cd crmserv.topicdesc &service_req_topic_desc crmserv.srreqtype &serv_req_typ corp.description &cust_nam () on-break level=1 print=never after=cust_count crmserv.srowner &assigned_to_last_nam corp.cnt &custcount But I'm getting count in the begining instead of after cust name. My output shows following Custname -------------- Cust name: cust1 : 3 cust1 cust1 cust1 Cust name: cust2 : 2 cust2 cust2 what could be the reason? Thanks in advance... Darshil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 26 07:41:01 2004 Date: Wed, 26 May 2004 05:37:35 -0700 (PDT) From: Darshil Mehta Subject: RE: [sqr-users] On Break Option here is the code... begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') crmserv.srno &service_req_id crmserv.srdesc &service_req_subject_desc crmserv.createdate &create_dt crmserv.statuscd &service_req_status_cd crmserv.topicdesc &service_req_topic_desc crmserv.srreqtype &serv_req_typ corp.description &cust_nam () on-break level=1 print=change before=cust_count crmserv.srowner &assigned_to_last_nam corp.cnt &custcount move &service_req_id to $service_req_id move &service_req_subject_desc to $service_req_subject_desc move &create_dt to $create_dt move &service_req_status_cd to $service_req_status_cd move &service_req_topic_desc to $service_req_topic_desc move &serv_req_typ to $serv_req_typ move &cust_nam to $cust_nam move &assigned_to_last_nam to $assigned_to_last_nam move &custcount to #custcount add 1 to #llopp do write_file_detail from [$from_clause] where 1=1 and corp.corp_cd = crmserv.corp_cd ![$where_clause] order by [$order_by_clause] end-select begin-procedure cust_count write 1 from $custname ' ' &cust_nam ' - ' &custcount end-procedure the dragon wrote: post the program PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all, I am getting following data. Custname -------------- cust1 cust1 cust1 cust2 cust2 Now I want to show it like Custname -------------- cust1 cust1 cust1 Cust name: cust1 : 3 cust2 cust2 Cust name: cust2 : 2 I am using this command. crmserv.srno &service_req_id crmserv.srdesc &service_req_subject_desc crmserv.createdate &create_dt crmserv.statuscd &service_req_status_cd crmserv.topicdesc &service_req_topic_desc crmserv.srreqtype &serv_req_typ corp.description &cust_nam () on-break level=1 print=never after=cust_count crmserv.srowner &assigned_to_last_nam corp.cnt &custcount But I'm getting count in the begining instead of after cust name. My output shows following Custname -------------- Cust name: cust1 : 3 cust1 cust1 cust1 Cust name: cust2 : 2 cust2 cust2 what could be the reason? Thanks in advance... Darshil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed May 26 13:48:20 2004 Date: Wed, 26 May 2004 13:46:13 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] On Break Option Well, your code uses "before=", it should be "after=". Instead of &cust_nam and &custcount in procedure cust_count, use $cust_nam and #custcount. On Wed, 26 May 2004, Darshil Mehta wrote: > here is the code... > > > begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') > crmserv.srno &service_req_id > crmserv.srdesc &service_req_subject_desc > crmserv.createdate &create_dt > crmserv.statuscd &service_req_status_cd > crmserv.topicdesc &service_req_topic_desc > crmserv.srreqtype &serv_req_typ > corp.description &cust_nam () on-break level=1 print=change before=cust_count > crmserv.srowner &assigned_to_last_nam > corp.cnt &custcount > > move &service_req_id to $service_req_id > move &service_req_subject_desc to $service_req_subject_desc > move &create_dt to $create_dt > move &service_req_status_cd to $service_req_status_cd > move &service_req_topic_desc to $service_req_topic_desc > move &serv_req_typ to $serv_req_typ > move &cust_nam to $cust_nam > move &assigned_to_last_nam to $assigned_to_last_nam > move &custcount to #custcount > add 1 to #llopp > do write_file_detail > from > [$from_clause] > where 1=1 > and corp.corp_cd = crmserv.corp_cd > ![$where_clause] > order by > [$order_by_clause] > end-select > > begin-procedure cust_count > write 1 from $custname ' ' &cust_nam ' - ' &custcount > end-procedure > > > the dragon wrote: > post the program > > > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting your > services for 40 hours a week, not purchasing your soul. Your time is the > only real finite asset that you have, and once used it can never be > recovered, so don't waste it by giving it away. > > "Time is the coin of your life. It is the only coin you have, and only you > can determine how it will be spent. Be careful lest you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > Hi all, > > I am getting following data. > > Custname > -------------- > cust1 > cust1 > cust1 > cust2 > cust2 > > Now I want to show it like > > Custname > -------------- > cust1 > cust1 > cust1 > Cust name: cust1 : 3 > cust2 > cust2 > Cust name: cust2 : 2 > > I am using this command. > > crmserv.srno &service_req_id > crmserv.srdesc &service_req_subject_desc > crmserv.createdate &create_dt > crmserv.statuscd &service_req_status_cd > crmserv.topicdesc &service_req_topic_desc > crmserv.srreqtype &serv_req_typ > corp.description &cust_nam () on-break level=1 print=never > after=cust_count > crmserv.srowner &assigned_to_last_nam > corp.cnt &custcount > > > But I'm getting count in the begining instead of after cust name. My output > shows following > > Custname > -------------- > Cust name: cust1 : 3 > cust1 > cust1 > cust1 > Cust name: cust2 : 2 > > cust2 > cust2 > > what could be the reason? > > Thanks in advance... > Darshil > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu May 27 00:19:17 2004 Date: Wed, 26 May 2004 22:18:43 -0700 (PDT) From: Darshil Mehta Subject: RE: [sqr-users] On Break Option Thanks a ton. Don. It's really working fine. Thanks for the great help :) Darshil Don Mellen wrote: Well, your code uses "before=", it should be "after=". Instead of &cust_nam and &custcount in procedure cust_count, use $cust_nam and #custcount. On Wed, 26 May 2004, Darshil Mehta wrote: > here is the code... > > > begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') > crmserv.srno &service_req_id > crmserv.srdesc &service_req_subject_desc > crmserv.createdate &create_dt > crmserv.statuscd &service_req_status_cd > crmserv.topicdesc &service_req_topic_desc > crmserv.srreqtype &serv_req_typ > corp.description &cust_nam () on-break level=1 print=change before=cust_count > crmserv.srowner &assigned_to_last_nam > corp.cnt &custcount > > move &service_req_id to $service_req_id > move &service_req_subject_desc to $service_req_subject_desc > move &create_dt to $create_dt > move &service_req_status_cd to $service_req_status_cd > move &service_req_topic_desc to $service_req_topic_desc > move &serv_req_typ to $serv_req_typ > move &cust_nam to $cust_nam > move &assigned_to_last_nam to $assigned_to_last_nam > move &custcount to #custcount > add 1 to #llopp > do write_file_detail > from > [$from_clause] > where 1=1 > and corp.corp_cd = crmserv.corp_cd > ![$where_clause] > order by > [$order_by_clause] > end-select > > begin-procedure cust_count > write 1 from $custname ' ' &cust_nam ' - ' &custcount > end-procedure > > > the dragon wrote: > post the program > > > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting your > services for 40 hours a week, not purchasing your soul. Your time is the > only real finite asset that you have, and once used it can never be > recovered, so don't waste it by giving it away. > > "Time is the coin of your life. It is the only coin you have, and only you > can determine how it will be spent. Be careful lest you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > Hi all, > > I am getting following data. > > Custname > -------------- > cust1 > cust1 > cust1 > cust2 > cust2 > > Now I want to show it like > > Custname > -------------- > cust1 > cust1 > cust1 > Cust name: cust1 : 3 > cust2 > cust2 > Cust name: cust2 : 2 > > I am using this command. > > crmserv.srno &service_req_id > crmserv.srdesc &service_req_subject_desc > crmserv.createdate &create_dt > crmserv.statuscd &service_req_status_cd > crmserv.topicdesc &service_req_topic_desc > crmserv.srreqtype &serv_req_typ > corp.description &cust_nam () on-break level=1 print=never > after=cust_count > crmserv.srowner &assigned_to_last_nam > corp.cnt &custcount > > > But I'm getting count in the begining instead of after cust name. My output > shows following > > Custname > -------------- > Cust name: cust1 : 3 > cust1 > cust1 > cust1 > Cust name: cust2 : 2 > > cust2 > cust2 > > what could be the reason? > > Thanks in advance... > Darshil > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri May 28 13:21:09 2004 From: =?iso-8859-1?Q?Info_Desenv_-_N=E9lson_Richter?= Date: Fri, 28 May 2004 15:17:25 -0300 Subject: [sqr-users] Printer HP Economode Hello all, Is there a way to use the HP Economode with SQR reports? TIA Nelson Richter Porto Alegre - Brazil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 01 00:02:10 2004 Date: Tue, 1 Jun 2004 00:00:03 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 01 16:24:21 2004 From: Scott.Howser@Certegy.Com Date: Tue, 1 Jun 2004 17:20:30 -0400 Subject: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 How do you print a bound variable int he report header like this: This is for Brio/Hyperion SQR 8.1. We cannot get this to work----- !------------------------------------------------------------------ begin-heading print $heading () end-heading begin-select field &f1 () on-break print-never procedure=changefield let $heading=&f1 from table1 where field is not null end-select begin-procedure changefiled new-page end-procedure !---------------------------------------------------------------------- Thanks, Scott Howser ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 01 16:47:31 2004 From: =?iso-8859-1?Q?Info_Desenv_-_N=E9lson_Richter?= Date: Tue, 1 Jun 2004 18:45:35 -0300 Subject: [sqr-users] HP Economode does not work with SQR reports Hi guys,=20 =20 I have posted an issue about using the HP Printer economode some days ago and there some lack of details that I=B4d like to supply now:=20 We are using SQR (SQT, actually) files in HP-UX servers and the .OUT files are be sending to the remote printers through network with Unix LP command. I have noticed that the printer's economic mode configuration isn't working with those files, wasting unnecessary amount of toner . I=B4ve been looking into PCL code trying to find some escape sequence or some thing like that but with no success.=20 Is there a way to enable this mode with SQR reports or make this work in another way? =20 Thanks in advance =20 Nelson Richter Porto Alegre, Brazil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 01 17:01:26 2004 From: "the dragon" Subject: RE: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Date: Tue, 01 Jun 2004 17:00:21 -0500 Scott, Is that your entire program?????? Is this generating ny output??? Even a bunch of blank pages??? First, I think you need to set aside some space for your heading, ie begin-heading 1 or begin-heading 2 (setting aside 1 or 2 lines respectively). I think the way you have it, even if you were going to print something, it wouldn't show... PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- How do you print a bound variable int he report header like this: This is for Brio/Hyperion SQR 8.1. We cannot get this to work----- !------------------------------------------------------------------ begin-heading print $heading () end-heading begin-select field &f1 () on-break print-never procedure=changefield let $heading=&f1 from table1 where field is not null end-select begin-procedure changefiled new-page end-procedure !---------------------------------------------------------------------- Thanks, Scott Howser ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 01 17:04:13 2004 From: "the dragon" Subject: RE: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Date: Tue, 01 Jun 2004 17:03:08 -0500 Scott, Is that your entire program?????? Is this generating any output??? Even a bunch of blank pages??? First, I think you need to set aside some space for your heading, ie begin-heading 1 or begin-heading 2 (setting aside 1 or 2 lines respectively). I think the way you have it, even if you were going to print something, it wouldn't show... oops, pressed send too early. Second, I am not certain if a heading will print unless you actually have something to print in the body, although that may be wrong, since you are declaring a next page. I think your problem is identified in the [First] paragraph above. hope this helps, or at least confuses you. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- How do you print a bound variable int he report header like this: This is for Brio/Hyperion SQR 8.1. We cannot get this to work----- !------------------------------------------------------------------ begin-heading print $heading () end-heading begin-select field &f1 () on-break print-never procedure=changefield let $heading=&f1 from table1 where field is not null end-select begin-procedure changefiled new-page end-procedure !---------------------------------------------------------------------- Thanks, Scott Howser _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 08:07:34 2004 From: Scott.Howser@Certegy.Com Date: Wed, 2 Jun 2004 09:03:56 -0400 Subject: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Yesterday I submitted some sample code to print dynamically in the heading section. Some people took the code I had literally but, it was meerely an example to show the problem at hand. Does anyone know how to print dynamically in a heading if evreything else in the program works fine. Below is some more sample code it is to simply show the problem in its simplest form. This is the skeleton of the problem. We cannot get this to work----- !------------------------------------------------------------------ begin-heading 5 print 'heading: ' (,1) let $dn=datenow() print $dn (,10) print $headingfield (,25) end-heading begin-procedure get_data begin-select category &f1 (+1,1) on-break procedure=changefield let $headingfield=&f1 element (,25) from dm_flat_element end-select end-procedure begin-procedure changefield new-page end-procedure begin-program do get_data end-program !---------------------------------------------------------------------- Thanks, Scott Howser ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 08:15:12 2004 From: "Bencke, Gina" Date: Wed, 2 Jun 2004 09:12:44 -0400 Subject: RE: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 What is being printed in your heading, include the line number on which it prints? -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Scott.Howser@Certegy.Com Sent: Wednesday, June 02, 2004 9:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Yesterday I submitted some sample code to print dynamically in the heading section. Some people took the code I had literally but, it was meerely an example to show the problem at hand. Does anyone know how to print dynamically in a heading if evreything else in the program works fine. Below is some more sample code it is to simply show the problem in its simplest form. This is the skeleton of the problem. We cannot get this to work----- !------------------------------------------------------------------ begin-heading 5 print 'heading: ' (,1) let $dn=3Ddatenow() print $dn (,10) print $headingfield (,25) end-heading begin-procedure get_data begin-select category &f1 (+1,1) on-break procedure=3Dchangefield let $headingfield=3D&f1 element (,25) from dm_flat_element end-select end-procedure begin-procedure changefield new-page end-procedure begin-program do get_data end-program !---------------------------------------------------------------------- Thanks, Scott Howser ------------------------------------------------------------------------ ------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 08:30:10 2004 From: "Hood Louise (app1lxh)" Subject: RE: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Date: Wed, 2 Jun 2004 09:26:37 -0400 Scott, 1. Are you sure that your heading routine is even being executed? Suggestion: begin-heading 5 #debuga string $dttmstamp ' begin-heading' by '' into $dispstr #debuga display $dispstr (heading content) #debuga string $dttmstamp ' end-heading' by '' into $dispstr #debuga display $dispstr end-heading 2. Are you sure that the size of your heading (5) is big enough; are you sure that it's expressed in lines and not points? Suggestion: Change heading to larger number (i.e., begin-heading 70) 3. Have you tried getting a static value to print? Suggestion: substitute for print $dn (,10): print 'This is my heading' (1,10) to see if anything changes. Also, note you would be designating a specific line of the heading for printing this statement. HTH, Louise -----Original Message----- From: Scott.Howser@Certegy.Com [mailto:Scott.Howser@Certegy.Com] Sent: Wednesday, June 02, 2004 9:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Yesterday I submitted some sample code to print dynamically in the heading section. Some people took the code I had literally but, it was meerely an example to show the problem at hand. Does anyone know how to print dynamically in a heading if evreything else in the program works fine. Below is some more sample code it is to simply show the problem in its simplest form. This is the skeleton of the problem. We cannot get this to work----- !------------------------------------------------------------------ begin-heading 5 print 'heading: ' (,1) let $dn=datenow() print $dn (,10) print $headingfield (,25) end-heading begin-procedure get_data begin-select category &f1 (+1,1) on-break procedure=changefield let $headingfield=&f1 element (,25) from dm_flat_element end-select end-procedure begin-procedure changefield new-page end-procedure begin-program do get_data end-program !---------------------------------------------------------------------- Thanks, Scott Howser ---------------------------------------------------------------------------- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================ == _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 08:36:49 2004 From: "the dragon" Subject: RE: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Date: Wed, 02 Jun 2004 08:33:56 -0500 Scott, OK, you say this is broken. Can you tell us exactly what the program is or isn't doing??? I suspect you're saying that the heading does not match the data on the page, but I am not certain I have heard *what* exactly the problem is. How about some sample output so we can understand your issue. look forward to your next post. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Yesterday I submitted some sample code to print dynamically in the heading section. Some people took the code I had literally but, it was meerely an example to show the problem at hand. Does anyone know how to print dynamically in a heading if evreything else in the program works fine. Below is some more sample code it is to simply show the problem in its simplest form. This is the skeleton of the problem. We cannot get this to work----- !------------------------------------------------------------------ begin-heading 5 print 'heading: ' (,1) let $dn=datenow() print $dn (,10) print $headingfield (,25) end-heading begin-procedure get_data begin-select category &f1 (+1,1) on-break procedure=changefield let $headingfield=&f1 element (,25) from dm_flat_element end-select end-procedure begin-procedure changefield new-page end-procedure begin-program do get_data end-program !---------------------------------------------------------------------- Thanks, Scott Howser _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 08:40:12 2004 From: "the dragon" Subject: RE: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 Date: Wed, 02 Jun 2004 08:37:08 -0500 The heading would be getting executed if there is any printed output. I am wondering in the changefield procedure is getting executed though. It should be. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Scott, 1. Are you sure that your heading routine is even being executed? Suggestion: begin-heading 5 #debuga string $dttmstamp ' begin-heading' by '' into $dispstr #debuga display $dispstr (heading content) #debuga string $dttmstamp ' end-heading' by '' into $dispstr #debuga display $dispstr end-heading 2. Are you sure that the size of your heading (5) is big enough; are you sure that it's expressed in lines and not points? Suggestion: Change heading to larger number (i.e., begin-heading 70) 3. Have you tried getting a static value to print? Suggestion: substitute for print $dn (,10): print 'This is my heading' (1,10) to see if anything changes. Also, note you would be designating a specific line of the heading for printing this statement. HTH, Louise -----Original Message----- Yesterday I submitted some sample code to print dynamically in the heading section. Some people took the code I had literally but, it was meerely an example to show the problem at hand. Does anyone know how to print dynamically in a heading if evreything else in the program works fine. Below is some more sample code it is to simply show the problem in its simplest form. This is the skeleton of the problem. We cannot get this to work----- !------------------------------------------------------------------ begin-heading 5 print 'heading: ' (,1) let $dn=datenow() print $dn (,10) print $headingfield (,25) end-heading begin-procedure get_data begin-select category &f1 (+1,1) on-break procedure=changefield let $headingfield=&f1 element (,25) from dm_flat_element end-select end-procedure begin-procedure changefield new-page end-procedure begin-program do get_data end-program !---------------------------------------------------------------------- Thanks, Scott Howser _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 11:07:30 2004 Date: Wed, 2 Jun 2004 11:05:31 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Printing Dynamic variable in Header Brio SQR 8.1 The "procedure=" is kind of a deprecated feature, existing for backwards compatibility. Better to use the "before=" and "after=" (which are also more forthright in what they do). Try something like.... begin-procedure get_data begin-select category &f1 () on-break print=never after=changefield save=$headingfield element (,25) from dm_flat_element ... end-select Also, remember that the heading prints *after* the body of the page, so during processing, every new-page (explicit or implicit) is when the heading actually gets fired, and it's for the previous page. HTH, Don On Wed, 2 Jun 2004 Scott.Howser@Certegy.Com wrote: > > Yesterday I submitted some sample code to print dynamically in the heading > section. Some people took the code I had literally but, it was meerely an > example to show the problem at hand. Does anyone know how to print > dynamically in a heading if evreything else in the program works fine. > Below is some more sample code it is to simply show the problem in its > simplest form. > > This is the skeleton of the problem. > > We cannot get this to work----- > > !------------------------------------------------------------------ > > begin-heading 5 > print 'heading: ' (,1) > let $dn=datenow() > print $dn (,10) > print $headingfield (,25) > end-heading > > begin-procedure get_data > begin-select > category &f1 (+1,1) on-break procedure=changefield > let $headingfield=&f1 > element (,25) > from dm_flat_element > > > end-select > > end-procedure > > begin-procedure changefield > new-page > end-procedure > > begin-program > do get_data > end-program > > !---------------------------------------------------------------------- > > Thanks, > Scott Howser > > > > > ------------------------------------------------------------------------------ > This message contains information from Certegy, Inc which may be confidential > and privileged. If you are not an intended recipient, please refrain from any > disclosure, copying, distribution or use of this information and note that > such actions are prohibited. If you have received this transmission in error, > please notify by e:mail postmaster@certegy.com. > ============================================================================== > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 11:49:16 2004 Date: Wed, 02 Jun 2004 11:48:32 -0500 From: "Judy Dreska" Subject: [sqr-users] PSoft Fin 7.5SP1, SQR 4.3.4.1, & DB2 OS/390 TEMP Database We are running PeopleSoft Financials 7.5 SP1 with SQR version 4.3.4.1 on DB2 OS/390 version 7.1. We could not run any SQRs until we defined a TEMP database. We are not Declaring any temporary tables and we are not using scrollable cursors, so we don't understand why we need the TEMP database. We are now getting this error on certain programs: SQL Status = -497, SQL Error = [IBM][CLI Driver][DB2] SQL0969N There is no message text corresponding to SQL error "-497" in the message file on this workstation. The error was returned from module "DSNXISCR" with original tokens "TEMP ". SQLSTATE=54041 For some reason, it seems that an object is being created in the TEMP database each time the select statement is called. SQL State 54041 states that "Only 32767 OBIDs are allowed". In other words, it sounds like we're reaching the physical limit for OBIDs. Does anyone know why we had to create a TEMP database? Also is there a way for us to change our setup so no TEMP database is needed? Any help will be appreciated. We specifically put together a very simple SQR trying to determine what is causing the problem. The code is listed below. Begin-Report #debugh show 'Begin-Report' do StdAPI-Init do Process-Main do StdAPI-Term End-Report Begin-Procedure Process-Main #debugh show 'Process-Main' let #cnt = 1 while #cnt <= 40000 display '#cnt = ' noline display #cnt do Get-Dept let #cnt = #cnt + 1 end-while End-Procedure Process-Main begin-procedure Get-Dept #debugh show 'Get-Dept' let $sql-statement = 'Get-Dept' BEGIN-Select ON-ERROR=SQL-ERROR descr from PS_DEPARTMENT_TBL WHERE DEPTID = 'OP58049' AND SETID = 'NIUDK' END-Select End-Procedure Get-Dept _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 02 13:50:51 2004 From: "Rob Callahan" Date: Wed, 2 Jun 2004 15:48:44 -0300 Subject: [sqr-users] Postscri.str not printing Western European Characters Hi, I have changed from postscri.str to post_iso.str as per the install instructions for SQR 8.1. We use the ISO-Latin 1 character set and are having problems printing certain characters. For example: C=E4n=E6, M=E3rj=F6rie Eliz=E5=DFeth prints as: C n M=AArj rie Eliz eth in post script using the following setti= ng in postscri.str: /CODE [ 144 /dotlessi 145 /grave 146 /acute 147 /circumflex 148 /tilde 149 /macron 150 /breve 151 /dotaccent 152 /dieresis 154 /ring 155 /cedilla 157 /hungarumlaut 158 /ogonek 159 /caron 160 /nbspace 161 /exclamdown 162 /cent 163 /sterling 164 /currency 165 /yen 166 /brokenbar 167 /section 168 /dieresis 169 /copyright 170 /ordfeminine 171 /guillemotleft 172 /logicalnot 173 /hyphen 174 /registered 175 /macron 176 /degree 177 /plusminus 178 /twosuperior 179 /threesuperior 180 /acute 181 /mu 182 /paragraph 183 /periodcentered 184 /cedilla 185 /onesuperior 186 /ordmasculine 187 /guillemotright 188 /onequarter 189 /onehalf 190 /threequarters 191 /questiondown 192 /Agrave 194 /Acircumflex 199 /Ccedilla 200 /Egrave 201 /Eacute 202 /Ecircumflex 203 /Edieresis 206 /Icircumflex 207 /Idieresis 212 /Ocircumflex 217 /Ugrave 219 /Ucircumflex 224 /agrave 226 /acircumflex 231 /ccedilla 232 /egrave 233 /eacute 234 /ecircumflex 235 /edieresis 238 /icircumflex 239 /idieresis 244 /ocircumflex 249 /ugrave 251 /ucircumflex 252 /udieresis ]def I need help/ideas to be able to print these correct characters using post script. Rob _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 11:34:09 2004 Date: Thu, 3 Jun 2004 12:31:45 -0400 From: "Vito Campanelli" Subject: [sqr-users] Master Detail Report Hi, I was hoping somebody can put me to some documentation on how to create a Master/Detail report. There are many fields to the report and the report is similar to an invoice type template. Is there any documentation available? Thanks in advance. Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 11:46:54 2004 From: "Hood Louise (app1lxh)" Date: Thu, 3 Jun 2004 12:43:55 -0400 Subject: [sqr-users] Font problem after installing SQR 8 After installing 8.2 on my machine yesterday, the PDF output of all SQRs now have incorrect fonts appearing on the first non-header line of the first page of the PDF report. Our environment is Oracle 9i. I consulted the release notes for 8.2 and there is only one reference to fonts, but it is not specific: ". . . .font rendering can differ from previous releases." Has anyone else encountered a similar problem and how was it resolved? Thanks, Louise H. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 13:37:06 2004 Date: Thu, 03 Jun 2004 14:36:21 -0400 From: "Robert K. Foster" Subject: [sqr-users] SQR and Zebra or Dymo label printers... Greetings, This has come up before on the list but I was wondering if anyone has experience sending SQR output (a mailing label) to Zebra or Dymo brand label printers. The Dymo printers, I'm told can be used with an HP print server and some of the Zebra models have internal or external network interfaces. I'm looking at having the label printer *not* attached to a computer host but running stand-alone on a network. I did a search on previous list messages and found a couple of hits but I wanted to see if anyone has updated info on this. Anyone have total success or total failure with trying to use SQR with one of these devices? Any information available on how to set this up? Thanks, Bob. -- === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 mailto:rkf@radiology.msu.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 14:01:56 2004 From: "Miller, Danika" Date: Thu, 3 Jun 2004 14:59:54 -0400 Subject: [sqr-users] SQR 5400 Error Good afternoon - Has anyone received the following message: (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. My SQR has been cloned from an existing 'working' sqr with almost the exact code. I can't figure out why I'm receiving this error. I've searched every SQC for before-page and after-page and neither can be found. Any help would be greatly appreciated!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 14:09:21 2004 From: "Bencke, Gina" Date: Thu, 3 Jun 2004 15:08:15 -0400 Subject: RE: [sqr-users] SQR 5400 Error This error is most often received when you attempt to write to a line in the footing that does not exist. In other words if you defined your footing to be 2 lines but write to line 3, usually using relative positioning. Gina Bencke -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Miller, Danika Sent: Thursday, June 03, 2004 3:00 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR 5400 Error Good afternoon - Has anyone received the following message: (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. My SQR has been cloned from an existing 'working' sqr with almost the exact code. I can't figure out why I'm receiving this error. I've searched every SQC for before-page and after-page and neither can be found. Any help would be greatly appreciated!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 14:12:34 2004 From: "Miller, Danika" Subject: RE: [sqr-users] SQR 5400 Error Date: Thu, 3 Jun 2004 15:10:02 -0400 Thanks Gina for the response. I don't have a footing section defined anywhere in my program. -----Original Message----- From: Bencke, Gina [mailto:GinaBencke@forestcity.net] Sent: Thursday, June 03, 2004 3:08 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR 5400 Error This error is most often received when you attempt to write to a line in the footing that does not exist. In other words if you defined your footing to be 2 lines but write to line 3, usually using relative positioning. Gina Bencke -----Original Message----- From: sqr-users-bounces+ginabencke=forestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] On Behalf Of Miller, Danika Sent: Thursday, June 03, 2004 3:00 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR 5400 Error Good afternoon - Has anyone received the following message: (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. My SQR has been cloned from an existing 'working' sqr with almost the exact code. I can't figure out why I'm receiving this error. I've searched every SQC for before-page and after-page and neither can be found. Any help would be greatly appreciated!!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 03 14:31:15 2004 Date: Thu, 3 Jun 2004 14:30:43 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] SQR 5400 Error Do you have a heading section? If the heading section tries to print past the end of page, this can also cause error 5400. On Thu, 3 Jun 2004, Miller, Danika wrote: > Thanks Gina for the response. > > I don't have a footing section defined anywhere in my program. > > > -----Original Message----- > From: Bencke, Gina [mailto:GinaBencke@forestcity.net] > Sent: Thursday, June 03, 2004 3:08 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] SQR 5400 Error > > > This error is most often received when you attempt to write to a line in > the footing that does not exist. In other words if you defined your > footing to be 2 lines but write to line 3, usually using relative > positioning. > > Gina Bencke > > -----Original Message----- > From: sqr-users-bounces+ginabencke=forestcity.net@sqrug.org > [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] On Behalf > Of Miller, Danika > Sent: Thursday, June 03, 2004 3:00 PM > To: 'sqr-users@sqrug.org' > Subject: [sqr-users] SQR 5400 Error > > > Good afternoon - > > Has anyone received the following message: > > (SQR 5400) Second page write attempted while writing current page. Check > BEFORE-PAGE, AFTER-PAGE procedures. > > > My SQR has been cloned from an existing 'working' sqr with almost the > exact code. I can't figure out why I'm receiving this error. I've > searched every SQC for before-page and after-page and neither can be > found. > > Any help would be greatly appreciated!!! > > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 04 11:23:28 2004 From: dinsx Date: Fri, 04 Jun 2004 18:00:52 +0200 Subject: [sqr-users] PRINT-CHART WITH NEWGRAPHICS OPTIONS Hello, I'm interested in print graphics but with the possibility of change the size and the color of diferent items on the chart but i don't know how to do. If I create a pdf file, i don't see any chart on these, the page is totally blank and if a create a html output, the files report_x.gif aren't created by the sqrw. Can you help me? Thanks and i'm sorry for my poor english. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 04 11:57:16 2004 Date: Fri, 4 Jun 2004 09:56:13 -0700 From: "Woods, Carolyn" Subject: [sqr-users] Writing an SQR file output in EBCDIC on Unix Is it possible to create an SQR to run on both Unix and an NT Server and wr= ite out a flat file in EBCDIC? Thx, Carolyn Woods Miracosta College Oceanside, CA _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 04 12:01:26 2004 From: donm@ontko.com Date: Fri, 4 Jun 2004 12:59:36 -0400 Subject: [sqr-users] Re: Re: your excel document This is a multi-part message in MIME format... ------=_NextPart_000_0016----=_NextPart_000_0016 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Your document is attached. ------=_NextPart_000_0016----=_NextPart_000_0016 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_0016----=_NextPart_000_0016 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_0016----=_NextPart_000_0016-- From sqr-users-bounces@sqrug.org Fri Jun 04 12:04:18 2004 Date: Fri, 04 Jun 2004 13:01:51 -0400 From: "Prasanna Menta" Subject: Re: [sqr-users] Writing an SQR file output in EBCDIC on Unix Use an #Ifdef command to do this Prasanna "Woods, Carolyn" wrote: > > Is it possible to create an SQR to run on both Unix and an NT Server and write out a flat file in EBCDIC? > > Thx, > Carolyn Woods > Miracosta College > Oceanside, CA > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 04 12:52:11 2004 From: RHudgins@genencor.com Date: Fri, 4 Jun 2004 13:50:34 -0400 Subject: [sqr-users] on-break problem I am having trouble using the on=break function. Below is an example of what happens. The first 2 columns print before the on-break activates. This then misaligns the first printed line after the on- break. --------------------------------------------------------------------- GII H16 RCDC Xxxxxx,Xxx 123456 GII H16 RTPC Yyyyyy,Yy 123456 GII H16 Total EE for Age Group = CR Gejrolfuq,Neux 300829 GII H16 CR --------------------------------------------------------------------- Here is the code I am using: begin-select distinct p2.company () on-break level=1 skiplines=2 print=NEVER after=PrintCo_Totals save=$old_company let $company = &p2.company PRINT $company (+1,5) p2.paygroup () on-break level=2 skiplines=2 print=never after=PrintPG_Totals save=$old_paygroup let $PAYGROUP = &P2.PAYGROUP print $paygroup (0,+1) a.age_range_high (0,+1) on-break level=3 skiplines=2 print=never before=Print1 after=Printage_Totals save=$old_age p2.location (0,+1) P2.NAME (0,+1) ep2.emplid (0,+1) . . . . I get the same results with this code: begin-select distinct p2.company (+1,5) on-break level=1 skiplines=2 print=always after=PrintCo_Totals save=$old_company p2.paygroup (0,+1) on-break level=2 skiplines=2 print=never after=PrintPG_Totals save=$old_paygroup a.age_range_high (0,+1) on-break level=3 skiplines=2 print=never before=Print1 after=Printage_Totals save=$old_age p2.location (0,+1) P2.NAME (0,+1) ep2.emplid (0,+1) . . . . Any suggestions. I am running the sqr to a csv file using the following -il:\hr82\sqr\ -fc:\temp\xxx.csv -Oc:\temp\xxx.LOG -ZIFL:\HR82\SQR\PSSQR.INI -PRINTER:Eh -eh_csvonly Thanks in advance for any help! Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 04 14:27:47 2004 From: RHudgins@genencor.com Date: Fri, 4 Jun 2004 15:26:01 -0400 Subject: RE: [sqr-users] on-break problem Thanks - I forgot to include the a.age_range_high in the order by clause. Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com "Bencke, Gina" 06/04/2004 03:06 PM To cc Subject RE: [sqr-users] on-break problem What does the Print1 procedure look like. Does your order by clause include p2.company, p2.paygroup, a.age_range_high in that order? Here is what happens when age_range_high changes 1. Execute After procedures PrintCo_Totals 2. Set Save variables $old_age = &a.age_range_high 3. Execute Before Procedures Print1 4 Clear higher breaks n/a 5 Skiplines executes skip two lines 6 Print - or not a.age_range_high does not print The best thing you can do is to trace your print cursor movement through the above steps. Hope this helps, if not you can reach me Monday by replying to this message or at home using gina@bencke.com. Regards, Gina Bencke -----Original Message----- From: sqr-users-bounces+ginabencke=forestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] On Behalf Of RHudgins@genencor.com Sent: Friday, June 04, 2004 1:51 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] on-break problem I am having trouble using the on=break function. Below is an example of what happens. The first 2 columns print before the on-break activates. This then misaligns the first printed line after the on- break. --------------------------------------------------------------------- GII H16 RCDC Xxxxxx,Xxx 123456 GII H16 RTPC Yyyyyy,Yy 123456 GII H16 Total EE for Age Group = CR Gejrolfuq,Neux 300829 GII H16 CR --------------------------------------------------------------------- Here is the code I am using: begin-select distinct p2.company () on-break level=1 skiplines=2 print=NEVER after=PrintCo_Totals save=$old_company let $company = &p2.company PRINT $company (+1,5) p2.paygroup () on-break level=2 skiplines=2 print=never after=PrintPG_Totals save=$old_paygroup let $PAYGROUP = &P2.PAYGROUP print $paygroup (0,+1) a.age_range_high (0,+1) on-break level=3 skiplines=2 print=never before=Print1 after=Printage_Totals save=$old_age p2.location (0,+1) P2.NAME (0,+1) ep2.emplid (0,+1) . . . . I get the same results with this code: begin-select distinct p2.company (+1,5) on-break level=1 skiplines=2 print=always after=PrintCo_Totals save=$old_company p2.paygroup (0,+1) on-break level=2 skiplines=2 print=never after=PrintPG_Totals save=$old_paygroup a.age_range_high (0,+1) on-break level=3 skiplines=2 print=never before=Print1 after=Printage_Totals save=$old_age p2.location (0,+1) P2.NAME (0,+1) ep2.emplid (0,+1) . . . . Any suggestions. I am running the sqr to a csv file using the following -il:\hr82\sqr\ -fc:\temp\xxx.csv -Oc:\temp\xxx.LOG -ZIFL:\HR82\SQR\PSSQR.INI -PRINTER:Eh -eh_csvonly Thanks in advance for any help! Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com ------------------------------------------------------------------------ -- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ------------------------------------------------------------------------ -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 07 08:37:35 2004 Date: Mon, 7 Jun 2004 06:35:20 -0700 (PDT) From: Darshil Mehta Subject: [sqr-users] Page break issue Hi, I have following requirement; If user enters ALL as corp code, system will display heading as Corp : ALL And If user enters multiple corp code using comma, then system has to display corp description on each page. New corp description will be displayed on new page. I have used New-Page function of SQR. This is giving me proper result. But I always get 1st page blank. Here's my code. Can anyone help? ------------------------------------------------ use-procedure before-page=print_local_headings do main_logic begin-procedure main_logic do write_file_headings do main_query end-procedure !main_logic begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') crmserv.descr &desc=char () on-break level=1 print=never before=comp_proc crmserv.priority &priority crmserv.open &open=NUMBER crmserv.inprogress &inprogress=NUMBER crmserv.pending &pending=NUMBER crmserv.closed &closed=NUMBER crmserv.cancelled &cancelled=NUMBER crmserv.otherstat &otherstat=NUMBER move &desc to $desc move &priority to $priority move &open to $open move &inprogress to $inprogress move &pending to $pending move &closed to $closed move &cancelled to $cancelled move &otherstat to $otherstat add 1 to #llopp add &open to #opentot add &inprogress to #inprogresstot add &pending to #pendingtot add &closed to #closedtot add &cancelled to #cancelledtot add &otherstat to #otherstattot do write_file_detail do print_report_detail from [$from_clause] where 1=1 end-select do write_file_summary end-procedure ! main_query begin-procedure print_local_headings let $col0_label = 'Customer Name: ' || &desc let #col0_column = 2 alter-printer font=3 point-size=8 if $report_section = 'REPORT' let #report_box_width = (#report_width + 3) graphic (0,1,#report_box_width) box #local_heading_height 10 16 evaluate $report_section when = 'REPORT' print $col0_label (1,#col0_column,0) bold print $col1_label (+1,#col1_column,0) print $col2_label (0,#col2_column,0) print $col3_label (0,#col3_column,0) print $col4_label (0,#col4_column,0) print $col5_label (0,#col5_column,0) print $col6_label (0,#col6_column,0) print $col7_label (0,#col7_column,0) break when-other break end-evaluate let #report_start_position = #local_heading_height + 1 position (#report_start_position,1) let #report_box_width = (#report_width + 3) let #main_report_height = 40 - #local_heading_height graphic (0,1,#report_box_width) box #main_report_height 10 1 alter-printer font=3 point-size=8 end-if end-procedure ! local_headings    begin-procedure comp_proc write 1 from 'Company : ' &desc new-page end-procedure !cust_count -------------------------------------------  Thanks in advance.... Darshil __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 07 08:51:02 2004 From: "Bencke, Gina" Date: Mon, 7 Jun 2004 09:43:41 -0400 Subject: RE: [sqr-users] Page break issue Before procedures execute once at the beginning of the execution of the sel= ect statement after retrieving the first row of data. Since you call new-p= age in your before procedure your first page is blank. You could add a fla= g variable to determine if the before procedure is executing for the first. ... if #notfirstRow ! This variable will have a 0 (false) value until you giv= e it some other value new-page move 1 to #notFirstRow ! 1 is true end-if -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-u= sers-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Darshil Me= hta Sent: Monday, June 07, 2004 9:35 AM To: sqr-users@sqrug.org Subject: [sqr-users] Page break issue Hi, I have following requirement; If user enters ALL as corp code, system will display heading as Corp : ALL And If user enters multiple corp code using comma, then system has to display corp description on each page. New corp description will be displayed on new page. I have used New-Page function of SQR. This is giving me proper result. But I always get 1st page blank. Here's my code. Can anyone help?=20 ------------------------------------------------ use-procedure before-page=3Dprint_local_headings do main_logic=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 begin-procedure main_logic=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 do write_file_headings do main_query end-procedure !main_logic begin-select on-error=3Drecord_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') crmserv.descr &desc=3Dchar () on-break level=3D1 print=3Dnever before=3Dcomp_proc=20 crmserv.priority &priority crmserv.open &open=3DNUMBER crmserv.inprogress &inprogress=3DNUMBER crmserv.pending &pending=3DNUMBER crmserv.closed &closed=3DNUMBER crmserv.cancelled &cancelled=3DNUMBER crmserv.otherstat &otherstat=3DNUMBER move &desc to $desc move &priority to $priority move &open to $open move &inprogress to $inprogress move &pending to $pending move &closed to $closed move &cancelled to $cancelled move &otherstat to $otherstat add 1 to #llopp add &open to #opentot add &inprogress to #inprogresstot add &pending to #pendingtot add &closed to #closedtot add &cancelled to #cancelledtot add &otherstat to #otherstattot do write_file_detail do print_report_detail from=20 [$from_clause] where 1=3D1 end-select do write_file_summary end-procedure ! main_query =20=20=20 begin-procedure print_local_headings let $col0_label =3D 'Customer Name: ' || &desc=20 let #col0_column =3D 2 alter-printer font=3D3 point-size=3D8 if $report_section =3D 'REPORT' let #report_box_width =3D (#report_width + 3) graphic (0,1,#report_box_width) box #local_heading_height 10 16=20 evaluate $report_section when =3D 'REPORT' print $col0_label (1,#col0_column,0) bold=20 print $col1_label (+1,#col1_column,0) print $col2_label (0,#col2_column,0) print $col3_label (0,#col3_column,0)=20=20 print $col4_label (0,#col4_column,0) print $col5_label (0,#col5_column,0)=20=20 print $col6_label (0,#col6_column,0) print $col7_label (0,#col7_column,0)=20 break when-other break end-evaluate let #report_start_position =3D #local_heading_height + 1 position (#report_start_position,1) let #report_box_width =3D (#report_width + 3) let #main_report_height =3D 40 - #local_heading_height graphic (0,1,#report_box_width) box #main_report_height 10 1 alter-printer font=3D3 point-size=3D8 end-if end-procedure ! local_headings =A0=A0=20 begin-procedure comp_proc write 1 from 'Company : ' &desc=20 new-page end-procedure !cust_count -------------------------------------------=A0 Thanks in advance.... Darshil =09 =09=09 __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.co= m/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 07 08:54:28 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Page break issue Date: Mon, 7 Jun 2004 07:48:50 -0600 Do a new-page in your main-logic procedure, this will solve your problem. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Darshil Mehta [mailto:darshilm@yahoo.com] Sent: Monday, June 07, 2004 7:35 AM To: sqr-users@sqrug.org Subject: [sqr-users] Page break issue Hi, I have following requirement; If user enters ALL as corp code, system will display heading as Corp : ALL And If user enters multiple corp code using comma, then system has to display corp description on each page. New corp description will be displayed on new page. I have used New-Page function of SQR. This is giving me proper result. But I always get 1st page blank. Here's my code. Can anyone help? ------------------------------------------------ use-procedure before-page=print_local_headings do main_logic begin-procedure main_logic do write_file_headings do main_query end-procedure !main_logic begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') crmserv.descr &desc=char () on-break level=1 print=never before=comp_proc crmserv.priority &priority crmserv.open &open=NUMBER crmserv.inprogress &inprogress=NUMBER crmserv.pending &pending=NUMBER crmserv.closed &closed=NUMBER crmserv.cancelled &cancelled=NUMBER crmserv.otherstat &otherstat=NUMBER move &desc to $desc move &priority to $priority move &open to $open move &inprogress to $inprogress move &pending to $pending move &closed to $closed move &cancelled to $cancelled move &otherstat to $otherstat add 1 to #llopp add &open to #opentot add &inprogress to #inprogresstot add &pending to #pendingtot add &closed to #closedtot add &cancelled to #cancelledtot add &otherstat to #otherstattot do write_file_detail do print_report_detail from [$from_clause] where 1=1 end-select do write_file_summary end-procedure ! main_query begin-procedure print_local_headings let $col0_label = 'Customer Name: ' || &desc let #col0_column = 2 alter-printer font=3 point-size=8 if $report_section = 'REPORT' let #report_box_width = (#report_width + 3) graphic (0,1,#report_box_width) box #local_heading_height 10 16 evaluate $report_section when = 'REPORT' print $col0_label (1,#col0_column,0) bold print $col1_label (+1,#col1_column,0) print $col2_label (0,#col2_column,0) print $col3_label (0,#col3_column,0) print $col4_label (0,#col4_column,0) print $col5_label (0,#col5_column,0) print $col6_label (0,#col6_column,0) print $col7_label (0,#col7_column,0) break when-other break end-evaluate let #report_start_position = #local_heading_height + 1 position (#report_start_position,1) let #report_box_width = (#report_width + 3) let #main_report_height = 40 - #local_heading_height graphic (0,1,#report_box_width) box #main_report_height 10 1 alter-printer font=3 point-size=8 end-if end-procedure ! local_headings begin-procedure comp_proc write 1 from 'Company : ' &desc new-page end-procedure !cust_count ------------------------------------------- Thanks in advance.... Darshil __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 07 09:10:49 2004 Date: Mon, 7 Jun 2004 07:10:07 -0700 (PDT) From: Darshil Mehta Subject: RE: [sqr-users] Page break issue Thanks for the help Gina. What you said is correct. I added following code in comp_proc but didn't work. Can you please suggest where exactly I have to add this code? Thanx again... Darshil --- "Bencke, Gina" wrote: > Before procedures execute once at the beginning of > the execution of the select statement after > retrieving the first row of data. Since you call > new-page in your before procedure your first page is > blank. You could add a flag variable to determine > if the before procedure is executing for the first. > > ... > if #notfirstRow ! This variable will have a 0 > (false) value until you give it some other value > new-page > move 1 to #notFirstRow ! 1 is true > end-if > > -----Original Message----- > From: > sqr-users-bounces+ginabencke=forestcity.net@sqrug.org > [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] > On Behalf Of Darshil Mehta > Sent: Monday, June 07, 2004 9:35 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Page break issue > > > Hi, > > I have following requirement; > > If user enters ALL as corp code, system will display > heading as Corp : ALL > > And If user enters multiple corp code using comma, > then system has to display corp description on each > page. New corp description will be displayed on new > page. > > I have used New-Page function of SQR. This is giving > me proper result. But I always get 1st page blank. > > Here's my code. Can anyone help? > > ------------------------------------------------ > use-procedure before-page=print_local_headings > > do main_logic > > begin-procedure main_logic > do write_file_headings > > do main_query > > end-procedure !main_logic > > begin-select on-error=record_sql_error > ($sql-error,'MAJOR',$sql_report,'main_query') > crmserv.descr &desc=char () on-break > level=1 > print=never before=comp_proc > crmserv.priority &priority > crmserv.open &open=NUMBER > crmserv.inprogress &inprogress=NUMBER > crmserv.pending &pending=NUMBER > crmserv.closed &closed=NUMBER > crmserv.cancelled &cancelled=NUMBER > crmserv.otherstat &otherstat=NUMBER > > move &desc to $desc > move &priority to $priority > move &open to $open > move &inprogress to $inprogress > move &pending to $pending > move &closed to $closed > move &cancelled to $cancelled > move &otherstat to $otherstat > > add 1 to #llopp > > add &open to #opentot > add &inprogress to #inprogresstot > add &pending to #pendingtot > add &closed to #closedtot > add &cancelled to #cancelledtot > add &otherstat to #otherstattot > > do write_file_detail > > do print_report_detail > from > [$from_clause] > where 1=1 > end-select > do write_file_summary > end-procedure ! main_query > > > > begin-procedure print_local_headings > let $col0_label = 'Customer Name: ' || &desc > let #col0_column = 2 > alter-printer font=3 point-size=8 > if $report_section = 'REPORT' > let #report_box_width = (#report_width + 3) > graphic (0,1,#report_box_width) box > #local_heading_height 10 16 > evaluate $report_section > when = 'REPORT' > print $col0_label (1,#col0_column,0) bold > print $col1_label (+1,#col1_column,0) > print $col2_label (0,#col2_column,0) > print $col3_label (0,#col3_column,0) > print $col4_label (0,#col4_column,0) > print $col5_label (0,#col5_column,0) > print $col6_label (0,#col6_column,0) > print $col7_label (0,#col7_column,0) > break > when-other > break > end-evaluate > let #report_start_position = > #local_heading_height > + 1 > position (#report_start_position,1) > let #report_box_width = (#report_width + 3) > let #main_report_height = 40 - > #local_heading_height > graphic (0,1,#report_box_width) box > #main_report_height 10 1 > alter-printer font=3 point-size=8 > end-if > end-procedure ! local_headings > >    > begin-procedure comp_proc > write 1 from 'Company : ' &desc > new-page > end-procedure !cust_count > > -------------------------------------------  > > Thanks in advance.... > > Darshil > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 07 10:07:07 2004 Date: Mon, 7 Jun 2004 08:04:56 -0700 (PDT) From: Darshil Mehta Subject: RE: [sqr-users] Page break issue Thanks again :) Added following code in comp_proc. But still doesn't work. My program produces two type of output files. .XLS and .HTML. In .xls, there is a break after each company desc (without adding this code), but HTML its not coming. Sorry for giving you trouble again and again.... Darshil --- "Bencke, Gina" wrote: > Oops I forgot the = 0 > if #notfirstRow = 0 > write 1 from 'Company : ' &desc > new-page > move 1 to #notFirstRow ! 1 is true > End-if > > This code should be placed in comp_proc > > -----Original Message----- > From: Darshil Mehta [mailto:darshilm@yahoo.com] > Sent: Monday, June 07, 2004 10:10 AM > To: This list is for discussion about the SQR > database reporting language from Hyperion Solutions. > Cc: Bencke, Gina > Subject: RE: [sqr-users] Page break issue > > > Thanks for the help Gina. > > What you said is correct. > > I added following code in comp_proc but didn't work. > Can you please suggest where exactly I have to add > this code? > > Thanx again... > > Darshil > > > --- "Bencke, Gina" > wrote: > > Before procedures execute once at the beginning of > > the execution of the select statement after > > retrieving the first row of data. Since you call > > new-page in your before procedure your first page > is > > blank. You could add a flag variable to determine > > if the before procedure is executing for the > first. > > > > ... > > if #notfirstRow ! This variable will have a 0 > > (false) value until you give it some other value > > new-page > > move 1 to #notFirstRow ! 1 is true > > end-if > > > > -----Original Message----- > > From: > > > sqr-users-bounces+ginabencke=forestcity.net@sqrug.org > > > [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] > > On Behalf Of Darshil Mehta > > Sent: Monday, June 07, 2004 9:35 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Page break issue > > > > > > Hi, > > > > I have following requirement; > > > > If user enters ALL as corp code, system will > display > > heading as Corp : ALL > > > > And If user enters multiple corp code using comma, > > then system has to display corp description on > each > > page. New corp description will be displayed on > new > > page. > > > > I have used New-Page function of SQR. This is > giving > > me proper result. But I always get 1st page blank. > > > > Here's my code. Can anyone help? > > > > ------------------------------------------------ > > use-procedure before-page=print_local_headings > > > > do main_logic > > > > begin-procedure main_logic > > do write_file_headings > > > > do main_query > > > > end-procedure !main_logic > > > > begin-select on-error=record_sql_error > > ($sql-error,'MAJOR',$sql_report,'main_query') > > crmserv.descr &desc=char () on-break > > level=1 > > print=never before=comp_proc > > crmserv.priority &priority > > crmserv.open &open=NUMBER > > crmserv.inprogress &inprogress=NUMBER > > crmserv.pending &pending=NUMBER > > crmserv.closed &closed=NUMBER > > crmserv.cancelled &cancelled=NUMBER > > crmserv.otherstat &otherstat=NUMBER > > > > move &desc to $desc > > move &priority to $priority > > move &open to $open > > move &inprogress to $inprogress > > move &pending to $pending > > move &closed to $closed > > move &cancelled to $cancelled > > move &otherstat to $otherstat > > > > add 1 to #llopp > > > > add &open to #opentot > > add &inprogress to #inprogresstot > > add &pending to #pendingtot > > add &closed to #closedtot > > add &cancelled to #cancelledtot > > add &otherstat to #otherstattot > > > > do write_file_detail > > > > do print_report_detail > > from > > [$from_clause] > > where 1=1 > > end-select > > do write_file_summary > > end-procedure ! main_query > > > > > > > > begin-procedure print_local_headings > > let $col0_label = 'Customer Name: ' || &desc > > let #col0_column = 2 > > alter-printer font=3 point-size=8 > > if $report_section = 'REPORT' > > let #report_box_width = (#report_width + 3) > > graphic (0,1,#report_box_width) box > > #local_heading_height 10 16 > > evaluate $report_section > > when = 'REPORT' > > print $col0_label (1,#col0_column,0) bold > > > print $col1_label (+1,#col1_column,0) > > print $col2_label (0,#col2_column,0) > > print $col3_label (0,#col3_column,0) > > print $col4_label (0,#col4_column,0) > > print $col5_label (0,#col5_column,0) > > print $col6_label (0,#col6_column,0) > > print $col7_label (0,#col7_column,0) > > break > > when-other > > break > > end-evaluate > > let #report_start_position = > > #local_heading_height > > + 1 > > position (#report_start_position,1) > > let #report_box_width = (#report_width + 3) > > let #main_report_height = 40 - > > #local_heading_height > > graphic (0,1,#report_box_width) box > > #main_report_height 10 1 > > alter-printer font=3 point-size=8 > > end-if > > end-procedure ! local_headings > > > >    > > begin-procedure comp_proc > > write 1 from 'Company : ' &desc > > new-page > > end-procedure !cust_count > > > > ------------------------------------------- > > > > Thanks in advance.... > > > > Darshil > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger. > > http://messenger.yahoo.com/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > === message truncated === __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 07 10:09:58 2004 Date: Mon, 7 Jun 2004 08:07:12 -0700 (PDT) From: Darshil Mehta Subject: RE: [sqr-users] Page break issue Thanks for the prompt respose. But where in main-logic I have to add new-page? My program produces two type of outputs. .XLS & .HTML. In .xls, there break comes properly after each customer code but in .html it does not. Thanx in advance.... Darshil --- "Bartlett, Dwain" wrote: > Do a new-page in your main-logic procedure, this > will solve your problem. > > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us > > > -----Original Message----- > From: Darshil Mehta [mailto:darshilm@yahoo.com] > Sent: Monday, June 07, 2004 7:35 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Page break issue > > > Hi, > > I have following requirement; > > If user enters ALL as corp code, system will display > heading as Corp : ALL > > And If user enters multiple corp code using comma, > then system has to display corp description on each > page. New corp description will be displayed on new > page. > > I have used New-Page function of SQR. This is giving > me proper result. But I always get 1st page blank. > > Here's my code. Can anyone help? > > ------------------------------------------------ > use-procedure before-page=print_local_headings > > do main_logic > > begin-procedure main_logic > do write_file_headings > > do main_query > > end-procedure !main_logic > > begin-select on-error=record_sql_error > ($sql-error,'MAJOR',$sql_report,'main_query') > crmserv.descr &desc=char () on-break > level=1 > print=never before=comp_proc > crmserv.priority &priority > crmserv.open &open=NUMBER > crmserv.inprogress &inprogress=NUMBER > crmserv.pending &pending=NUMBER > crmserv.closed &closed=NUMBER > crmserv.cancelled &cancelled=NUMBER > crmserv.otherstat &otherstat=NUMBER > > move &desc to $desc > move &priority to $priority > move &open to $open > move &inprogress to $inprogress > move &pending to $pending > move &closed to $closed > move &cancelled to $cancelled > move &otherstat to $otherstat > > add 1 to #llopp > > add &open to #opentot > add &inprogress to #inprogresstot > add &pending to #pendingtot > add &closed to #closedtot > add &cancelled to #cancelledtot > add &otherstat to #otherstattot > > do write_file_detail > > do print_report_detail > from > [$from_clause] > where 1=1 > end-select > do write_file_summary > end-procedure ! main_query > > > > begin-procedure print_local_headings > let $col0_label = 'Customer Name: ' || &desc > let #col0_column = 2 > alter-printer font=3 point-size=8 > if $report_section = 'REPORT' > let #report_box_width = (#report_width + 3) > graphic (0,1,#report_box_width) box > #local_heading_height 10 16 > evaluate $report_section > when = 'REPORT' > print $col0_label (1,#col0_column,0) bold > print $col1_label (+1,#col1_column,0) > print $col2_label (0,#col2_column,0) > print $col3_label (0,#col3_column,0) > print $col4_label (0,#col4_column,0) > print $col5_label (0,#col5_column,0) > print $col6_label (0,#col6_column,0) > print $col7_label (0,#col7_column,0) > break > when-other > break > end-evaluate > let #report_start_position = > #local_heading_height > + 1 > position (#report_start_position,1) > let #report_box_width = (#report_width + 3) > let #main_report_height = 40 - > #local_heading_height > graphic (0,1,#report_box_width) box > #main_report_height 10 1 > alter-printer font=3 point-size=8 > end-if > end-procedure ! local_headings > > > begin-procedure comp_proc > write 1 from 'Company : ' &desc > new-page > end-procedure !cust_count > > ------------------------------------------- > > Thanks in advance.... > > Darshil > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 06:55:35 2004 From: Rebecca.Barilleaux@anthem.com Date: Tue, 8 Jun 2004 07:49:28 -0400 Subject: [sqr-users] RE: Page break issue Darshil I think you're missing an "else" -- try this: begin-procedure comp_proc if #notfirstRow = 0 ! this will only happen the first time the procedure is executed move 1 to #notFirstRow ! 1 is true else write 1 from 'Company : ' &desc new-page end-if end-procedure !cust_count Rebecca CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 07:06:41 2004 From: jeff_molloy@adp.com Subject: RE: [sqr-users] RE: Creating Menus in SQR 6.1 Date: Tue, 8 Jun 2004 08:05:10 -0400 Is it possible to create a menu system using an input statement? What I am wondering is can you in any way modify the input dialog box to give a menu option instead of just text saying input $text 'Enter blah, blah blah, ex: 1 - HR, 2 - JOB, etc..' What I would like to do is have it such as this. 1 - Hr 2 - Job 3 - Benefits Instead of in a regular text sentence. Hope this makes sense. Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 07:17:31 2004 From: RHudgins@genencor.com Date: Tue, 8 Jun 2004 08:13:16 -0400 Subject: RE: [sqr-users] RE: Creating Menus in SQR 6.1 You could do Show '1. HR' Show '2. ...' Show '3. ...' Input $answer 'Select one of the options above' Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com jeff_molloy@adp.com Sent by: sqr-users-bounces+rhudgins=genencor.com@sqrug.org 06/08/2004 08:05 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To sqr-users@sqrug.org cc Subject RE: [sqr-users] RE: Creating Menus in SQR 6.1 Is it possible to create a menu system using an input statement? What I am wondering is can you in any way modify the input dialog box to give a menu option instead of just text saying input $text 'Enter blah, blah blah, ex: 1 - HR, 2 - JOB, etc..' What I would like to do is have it such as this. 1 - Hr 2 - Job 3 - Benefits Instead of in a regular text sentence. Hope this makes sense. Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 08:50:42 2004 From: Ray Ontko Date: Tue, 8 Jun 2004 08:50:03 -0500 Subject: Re: [sqr-users] RE: Creating Menus in SQR 6.1 Jeff, Rhonda, You may also find these commands helpful: show clear-screen show (5,5) clear-line show (10,1) $prompt If you want to get real fancy, there's also beep, bold, blink, underline, reverse, and normal. Ray On Tue, Jun 08, 2004 at 08:13:16AM -0400, RHudgins@genencor.com wrote: > You could do > > Show '1. HR' > Show '2. ...' > Show '3. ...' > Input $answer 'Select one of the options above' > > > > Thanks! > > Rhonda Hudgins > @}---'----,---- > Genencor International, Inc > office - 585/256-5266 > rhudgins@genencor.com > > > > > jeff_molloy@adp.com > Sent by: sqr-users-bounces+rhudgins=genencor.com@sqrug.org > 06/08/2004 08:05 AM > Please respond to > "This list is for discussion about the SQR database reporting language > from Hyperion Solutions." > > > To > sqr-users@sqrug.org > cc > > Subject > RE: [sqr-users] RE: Creating Menus in SQR 6.1 > > > > > > > Is it possible to create a menu system using an input statement? > > What I am wondering is can you in any way modify the input dialog box to > give a menu option instead of just text saying input $text 'Enter blah, > blah > blah, ex: 1 - HR, 2 - JOB, etc..' > > What I would like to do is have it such as this. > > 1 - Hr > 2 - Job > 3 - Benefits > > Instead of in a regular text sentence. > > Hope this makes sense. > > Jeff > > > > CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, > is for the sole use of the intended recipient(s) and may contain > confidential > and privileged information or otherwise protected by law. Any > unauthorized > review, use, disclosure or distribution is prohibited. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies of the original message. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -------------------------------------------------------------------------- > This message (including any attachments) may contain information > which is confidential or privileged. Use, dissemination, distribution, > or reproduction of this message by unintended recipients is not > authorized and may be unlawful. If you are not the intended > recipient, please advise the sender immediately by reply e-mail and > delete this message and any attachments without retaining a copy. > -------------------------------------------------------------------------- > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 09:36:15 2004 From: jeff_molloy@adp.com Subject: RE: [sqr-users] RE: Creating Menus in SQR 6.1 Date: Tue, 8 Jun 2004 10:33:16 -0400 Ray, Thanks. This is the windows look though and not the dos window that I would want to do a menu on. Jeff Molloy -----Original Message----- From: Ray Ontko [mailto:rayo@ontko.com] Sent: Tuesday, June 08, 2004 9:50 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] RE: Creating Menus in SQR 6.1 Jeff, Rhonda, You may also find these commands helpful: show clear-screen show (5,5) clear-line show (10,1) $prompt If you want to get real fancy, there's also beep, bold, blink, underline, reverse, and normal. Ray _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 10:47:11 2004 From: Ray Ontko Date: Tue, 8 Jun 2004 10:46:37 -0500 Subject: Re: [sqr-users] RE: Creating Menus in SQR 6.1 Jeff, I don't know if it's still out there, but I came across a product that included a number of user defined functions that provided access to a bit of the Windows API. It think it was called SQR Windows. Of course, this only works if you're running SQR on the desktop. I just did a bit of googling and was unable to turn up any references to the library. The basic idea is that someone wrote a collection of user defined functions (ufuncs) for SQR that serve as a bridge to the Windows API. They then distribute this as a modified version of SQR to the desktop. You'd need a MS C compiler and some Windows programming know-how if you wanted to reproduce this effort. Ray On Tue, Jun 08, 2004 at 10:33:16AM -0400, jeff_molloy@adp.com wrote: > Ray, > > Thanks. This is the windows look though and not the dos window that I would > want to do a menu on. > > > > Jeff Molloy > > > -----Original Message----- > From: Ray Ontko [mailto:rayo@ontko.com] > Sent: Tuesday, June 08, 2004 9:50 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] RE: Creating Menus in SQR 6.1 > > Jeff, Rhonda, > > You may also find these commands helpful: > > show clear-screen > show (5,5) clear-line > show (10,1) $prompt > > If you want to get real fancy, there's also beep, bold, blink, > underline, reverse, and normal. > > Ray > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 12:24:22 2004 From: "Ed Kelly" Date: Tue, 08 Jun 2004 17:13:21 +0000 Subject: [sqr-users] RE: on-break problem In looking at your original code, there appears to be a minor issue with your print coordinate. In your first example, you use (0,+1) for your position coordinates following the level 2 break: let $PAYGROUP = &P2.PAYGROUP print $paygroup (0,+1) If the after procedure, PrintPG_Totals, includes any print statements, your cursor position will have moved and the printing of the paygroup information in the next detail line will be relative to where that previous print statement left off. I'm just guessing, but I bet one of the last commands in the after procedure advances the line position, and at the same time moves the cursor back to column 1. For example: Print '' (+1,1) or Position (+1,1) So when control returns from the after procedure, it starts printing relative to column 1. This the first detail line after the break is shifted way over to the left. If I am correct in these assumptions, then an easy correction for this is to use a fixed position for the paygroup column coordinate. For example: let $PAYGROUP = &P2.PAYGROUP print $paygroup (0, 32) ! explicitly move cursor to column 32 before printing paygroup Where the number 32 indicates the column position where all paygroup information should be printed. I hope this is helpful. ------------------------------------------------------ >From: Reply To: "This list is for discussion about >the SQR database reportinglanguage from Hyperion Solutions." > To: "This list is for discussion about the SQR >database reporting languagefrom Hyperion Solutions." >Subject: [sqr-users] on-break problem Sent: Friday, June 4, 2004 5:50 PM >MIME-Version: 1.0 Precedence: list In-Reply-To: ><40C0AAFF.8F5EA3C4@umuc.edu> Message-ID: > >Message: 5 I am having trouble using the on=break function. Below is an >example of what happens. The first 2 columns print before the on-break >activates. This then misaligns the first printed line after the on- break. > >--------------------------------------------------------------------- >GII H16 RCDC Xxxxxx,Xxx 123456 >GII H16 RTPC Yyyyyy,Yy 123456 >GII H16 Total EE for Age Group = CR Gejrolfuq,Neux 300829 >GII H16 CR > >--------------------------------------------------------------------- > >Here is the code I am using: > >begin-select distinct >p2.company () on-break level=1 skiplines=2 print=NEVER >after=PrintCo_Totals save=$old_company > let $company = &p2.company > PRINT $company (+1,5) >p2.paygroup () on-break level=2 skiplines=2 print=never >after=PrintPG_Totals save=$old_paygroup > let $PAYGROUP = &P2.PAYGROUP > print $paygroup (0,+1) > >a.age_range_high (0,+1) on-break level=3 skiplines=2 print=never >before=Print1 after=Printage_Totals save=$old_age >p2.location (0,+1) >P2.NAME (0,+1) >ep2.emplid (0,+1) > >. . . . I get the same results with this code: > >begin-select distinct >p2.company (+1,5) on-break level=1 skiplines=2 print=always >after=PrintCo_Totals save=$old_company >p2.paygroup (0,+1) on-break level=2 skiplines=2 print=never >after=PrintPG_Totals save=$old_paygroup >a.age_range_high (0,+1) on-break level=3 skiplines=2 print=never >before=Print1 after=Printage_Totals save=$old_age >p2.location (0,+1) >P2.NAME (0,+1) >ep2.emplid (0,+1) >. . . . > > >Any suggestions. I am running the sqr to a csv file using the following >-il:\hr82\sqr\ -fc:\temp\xxx.csv -Oc:\temp\xxx.LOG >-ZIFL:\HR82\SQR\PSSQR.INI -PRINTER:Eh -eh_csvonly > >Thanks in advance for any help! > Thanks! > >Rhonda Hudgins >@}---'----,---- >Genencor International, Inc >office - 585/256-5266 >rhudgins@genencor.com > _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 08 23:13:09 2004 Date: Tue, 8 Jun 2004 21:12:34 -0700 (PDT) From: Darshil Mehta Subject: Re: [sqr-users] RE: Page break issue Hey Rebecca, Thanx a ton. Its really working fine now. Thanks Gina for the help. You might want to look @ the modified code. Thanks, Darshil --- Rebecca.Barilleaux@anthem.com wrote: > > Darshil > > I think you're missing an "else" -- try this: > > begin-procedure comp_proc > if #notfirstRow = 0 ! this will only happen the > first time the procedure > is executed > move 1 to #notFirstRow ! 1 is true > else > write 1 from 'Company : ' &desc > new-page > end-if > end-procedure !cust_count > > Rebecca > > > > > CONFIDENTIALITY NOTICE: This e-mail message, > including any attachments, > is for the sole use of the intended recipient(s) and > may contain confidential > and privileged information or otherwise protected by > law. Any unauthorized > review, use, disclosure or distribution is > prohibited. If you are not the > intended recipient, please contact the sender by > reply e-mail and destroy > all copies of the original message. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 00:27:35 2004 Date: Tue, 8 Jun 2004 22:27:01 -0700 (PDT) From: Darshil Mehta Subject: [sqr-users] Printing heading and total at end using On-Break Hi again, I have requirment like this. Cust name: XXXX mar apr may jun Total Cust name: XXXX mar apr may jun Total currently I am using following code !-------------------------------------------- begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') crmserv.descr &desc=char () on-break level=1 print=never before=comp_proc after=write_file_summary crmserv.priority &priority crmserv.open &open=NUMBER crmserv.inprogress &inprogress=NUMBER crmserv.pending &pending=NUMBER crmserv.closed &closed=NUMBER crmserv.cancelled &cancelled=NUMBER crmserv.otherstat &otherstat=NUMBER move &desc to $desc move &priority to $priority move &open to $open move &inprogress to $inprogress move &pending to $pending move &closed to $closed move &cancelled to $cancelled move &otherstat to $otherstat add 1 to #llopp add &open to #opentot add &inprogress to #inprogresstot add &pending to #pendingtot add &closed to #closedtot add &cancelled to #cancelledtot add &otherstat to #otherstattot do write_file_detail do print_report_detail from [$from_clause] where 1=1 end-select end-procedure ! main_query begin-procedure write_file_summary ! Create the output record let $record = ' ' move #opentot to $opentot move #inprogresstot to $inprogresstot move #pendingtot to $pendingtot move #closedtot to $closedtot move #cancelledtot to $cancelledtot move #otherstattot to $otherstattot string 'TOTAL' $opentot $inprogresstot $pendingtot $closedtot $cancelledtot $otherstattot by $tab into $record ! Output the summary record. if ($p_create_xls = 'Y') do write_string_to_ascii_file (#xls_file_number, $record) end-if if ($p_create_pdf = 'Y') do write_string_to_ascii_file (#pdf_file_number, $record) end-if end-procedure ! write_file_summary begin-procedure comp_proc if #notfirstRow = 0 ! this will only happen the first time the procedure is executed move 1 to #notFirstRow ! 1 is true write 1 from 'Company : ' &desc else write 1 from 'Company : ' &desc new-page end-if end-procedure !corp_proc !----------------------------------------------- If I use this code I am getting like Cust name: XXXX mar apr may jun Total Cust name: XXXX mar apr may jun Total But second Total gives total of both customers. While I want total for individual customers. Please suggest where I'm missing something. Thanks in advance.... Darshil __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 08:15:07 2004 Date: Wed, 9 Jun 2004 06:13:52 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Printing heading and total at end using On-Break Darshil, Reset Your Total to 0 once its printed. That should solve all the problems. HTH Datta --- Darshil Mehta wrote: > Hi again, > > I have requirment like this. > > Cust name: XXXX > mar apr may jun > Total > Cust name: XXXX > mar apr may jun > Total > > currently I am using following code > > !-------------------------------------------- > begin-select on-error=record_sql_error > ($sql-error,'MAJOR',$sql_report,'main_query') > crmserv.descr &desc=char () on-break level=1 > print=never before=comp_proc after=write_file_summary > crmserv.priority &priority > crmserv.open &open=NUMBER > crmserv.inprogress &inprogress=NUMBER > crmserv.pending &pending=NUMBER > crmserv.closed &closed=NUMBER > crmserv.cancelled &cancelled=NUMBER > crmserv.otherstat &otherstat=NUMBER > > move &desc to $desc > move &priority to $priority > move &open to $open > move &inprogress to $inprogress > move &pending to $pending > move &closed to $closed > move &cancelled to $cancelled > move &otherstat to $otherstat > > add 1 to #llopp > > add &open to #opentot > add &inprogress to #inprogresstot > add &pending to #pendingtot > add &closed to #closedtot > add &cancelled to #cancelledtot > add &otherstat to #otherstattot > > do write_file_detail > do print_report_detail > > from > [$from_clause] > where 1=1 > end-select > end-procedure ! main_query > > begin-procedure write_file_summary > ! Create the output record > let $record = ' ' > move #opentot to $opentot > move #inprogresstot to $inprogresstot > move #pendingtot to $pendingtot > move #closedtot to $closedtot > move #cancelledtot to $cancelledtot > move #otherstattot to $otherstattot > > string 'TOTAL' $opentot $inprogresstot $pendingtot > $closedtot $cancelledtot $otherstattot by $tab into > $record > > ! Output the summary record. > if ($p_create_xls = 'Y') > do write_string_to_ascii_file (#xls_file_number, > $record) > end-if > > if ($p_create_pdf = 'Y') > do write_string_to_ascii_file (#pdf_file_number, > $record) > end-if > > end-procedure ! write_file_summary > > begin-procedure comp_proc > if #notfirstRow = 0 ! this will only happen the > first time the procedure is executed > move 1 to #notFirstRow ! 1 is true > write 1 from 'Company : ' &desc > else > write 1 from 'Company : ' &desc > new-page > end-if > end-procedure !corp_proc > > !----------------------------------------------- > If I use this code I am getting like > > > Cust name: XXXX > mar apr may jun > Total > Cust name: XXXX > mar apr may jun > Total > > But second Total gives total of both customers. While > I want total for individual customers. > > Please suggest where I'm missing something. > > Thanks in advance.... > > Darshil > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 09:39:53 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Printing heading and total at end using On-Break Date: Wed, 9 Jun 2004 07:37:55 -0700 After you print the totals for one customer, you need to set those variables to zero before adding up the next customer. -----Original Message----- From: Darshil Mehta [mailto:darshilm@yahoo.com] Sent: Tuesday, June 08, 2004 10:27 PM To: sqr-users@sqrug.org Subject: [sqr-users] Printing heading and total at end using On-Break Hi again, I have requirment like this. Cust name: XXXX mar apr may jun Total Cust name: XXXX mar apr may jun Total currently I am using following code !-------------------------------------------- begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') crmserv.descr &desc=char () on-break level=1 print=never before=comp_proc after=write_file_summary crmserv.priority &priority crmserv.open &open=NUMBER crmserv.inprogress &inprogress=NUMBER crmserv.pending &pending=NUMBER crmserv.closed &closed=NUMBER crmserv.cancelled &cancelled=NUMBER crmserv.otherstat &otherstat=NUMBER move &desc to $desc move &priority to $priority move &open to $open move &inprogress to $inprogress move &pending to $pending move &closed to $closed move &cancelled to $cancelled move &otherstat to $otherstat add 1 to #llopp add &open to #opentot add &inprogress to #inprogresstot add &pending to #pendingtot add &closed to #closedtot add &cancelled to #cancelledtot add &otherstat to #otherstattot do write_file_detail do print_report_detail from [$from_clause] where 1=1 end-select end-procedure ! main_query begin-procedure write_file_summary ! Create the output record let $record = ' ' move #opentot to $opentot move #inprogresstot to $inprogresstot move #pendingtot to $pendingtot move #closedtot to $closedtot move #cancelledtot to $cancelledtot move #otherstattot to $otherstattot string 'TOTAL' $opentot $inprogresstot $pendingtot $closedtot $cancelledtot $otherstattot by $tab into $record ! Output the summary record. if ($p_create_xls = 'Y') do write_string_to_ascii_file (#xls_file_number, $record) end-if if ($p_create_pdf = 'Y') do write_string_to_ascii_file (#pdf_file_number, $record) end-if end-procedure ! write_file_summary begin-procedure comp_proc if #notfirstRow = 0 ! this will only happen the first time the procedure is executed move 1 to #notFirstRow ! 1 is true write 1 from 'Company : ' &desc else write 1 from 'Company : ' &desc new-page end-if end-procedure !corp_proc !----------------------------------------------- If I use this code I am getting like Cust name: XXXX mar apr may jun Total Cust name: XXXX mar apr may jun Total But second Total gives total of both customers. While I want total for individual customers. Please suggest where I'm missing something. Thanks in advance.... Darshil __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 11:29:39 2004 From: "saritha ventrapragada" Date: Wed, 09 Jun 2004 12:28:36 -0400 Subject: [sqr-users] on-break Hi, I was trying on-break command. I am using peoplesoft8.8 This is my sample .sqr file A.EMPLID (+2,1,6) B.NAME (,10,20) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=1 SKIPLINES=1 SAVE=$OLDDEPT A.DEPTID (,60,10) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=2 SAVE=$OLDSTART AFTER=TOTALDEPTS C.DESCR (,75,8) A.JOBCODE (,95,6) D.DESCR (,105,6) ADD 1 TO #DEPTCNT ADD 1 TO #GRANDTOT FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 WHERE C.DEPTID = A.DEPTID .......... ........... ........... I was getting these errors. Error on line 40: (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [LOOPS=nn] [ON-ERROR=procedure[(arg1[,argi]...)]] [-DB=database] A.EMPLID (+2,1,6) Error on line 42: (SQR 3704) Missing procedure name. B.NAME &NAME Error on line 45: (SQR 5303) Invalid qualifier 'a.deptid'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target A.DEPTID &DEPTID Error on line 48: (SQR 5303) Invalid qualifier 'c.descr'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target C.DESCR (,75,8) Error on line 49: (SQR 3701) Invalid command. A.JOBCODE (,95,6) Error on line 50: (SQR 3701) Invalid command. D.DESCR (,105,6) Error on line 55: (SQR 3728) SQL expression not ended, perhaps missing &name. FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 (SQR 4407) Referenced variables not defined: &name &deptid Errors were found in the program file. SQR for PeopleSoft: Program Aborting. I would apprecitae if anyone could help me out in solving these problem Thank u saritha _________________________________________________________________ Looking to buy a house? Get informed with the Home Buying Guide from MSN House & Home. http://coldwellbanker.msn.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 11:51:51 2004 From: "Bencke, Gina" Date: Wed, 9 Jun 2004 12:44:44 -0400 Subject: RE: [sqr-users] on-break Unless something is different in SQR for PeopleSoft, the syntax and spacing of your select paragraph is important Begin-select and column names must be flush against the left margin of your.sqr file. SQR commands must be indented. No SQR Commands can be listed between the FROM and the END-SELECT. BEGIN-SELECT Column1 () ... Column2 () ... add 1 to #var1 add 1 to #var2 FROM ... WHERE ... END-SELECT -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of saritha ventrapragada Sent: Wednesday, June 09, 2004 12:29 PM To: sqr-users@sqrug.org Subject: [sqr-users] on-break Hi, I was trying on-break command. I am using peoplesoft8.8 This is my sample .sqr file A.EMPLID (+2,1,6) B.NAME (,10,20) ON-BREAK PRINT=3DCHANGE/TOP-PAGE LEVEL=3D1 SKIPLINES= =3D1=20 SAVE=3D$OLDDEPT A.DEPTID (,60,10) ON-BREAK PRINT=3DCHANGE/TOP-PAGE LEVEL=3D2 SAVE=3D$OLDSTART=20 AFTER=3DTOTALDEPTS C.DESCR (,75,8) A.JOBCODE (,95,6) D.DESCR (,105,6) ADD 1 TO #DEPTCNT ADD 1 TO #GRANDTOT FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C,=20 PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 WHERE C.DEPTID =3D A.DEPTID .......... ........... ........... I was getting these errors. Error on line 40: (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [LOOPS=3Dnn] [ON-ERROR=3Dprocedure[(arg1[,argi]...)]] [-DB=3Ddatabase] A.EMPLID (+2,1,6) Error on line 42: (SQR 3704) Missing procedure name. B.NAME &NAME Error on line 45: (SQR 5303) Invalid qualifier 'a.deptid'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target A.DEPTID &DEPTID Error on line 48: (SQR 5303) Invalid qualifier 'c.descr'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target C.DESCR (,75,8) Error on line 49: (SQR 3701) Invalid command. A.JOBCODE (,95,6) Error on line 50: (SQR 3701) Invalid command. D.DESCR (,105,6) Error on line 55: (SQR 3728) SQL expression not ended, perhaps missing &name. FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C,=20 PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 (SQR 4407) Referenced variables not defined: &name &deptid Errors were found in the program file. SQR for PeopleSoft: Program Aborting. I would apprecitae if anyone could help me out in solving these problem Thank u saritha _________________________________________________________________ Looking to buy a house? Get informed with the Home Buying Guide from MSN House & Home. http://coldwellbanker.msn.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 11:55:12 2004 From: "the dragon" Subject: RE: [sqr-users] on-break Date: Wed, 09 Jun 2004 11:49:30 -0500 Saritha, Send us the whole procedure, but what I suspect, from looking below is that your column names for those columns selected below need to be in column 1 and the everything between the last column selected and the from must be indented and out of column one. hope this helps peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, I was trying on-break command. I am using peoplesoft8.8 This is my sample .sqr file A.EMPLID (+2,1,6) B.NAME (,10,20) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=1 SKIPLINES=1 SAVE=$OLDDEPT A.DEPTID (,60,10) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=2 SAVE=$OLDSTART AFTER=TOTALDEPTS C.DESCR (,75,8) A.JOBCODE (,95,6) D.DESCR (,105,6) ADD 1 TO #DEPTCNT ADD 1 TO #GRANDTOT FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 WHERE C.DEPTID = A.DEPTID .......... ........... ........... I was getting these errors. Error on line 40: (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [LOOPS=nn] [ON-ERROR=procedure[(arg1[,argi]...)]] [-DB=database] A.EMPLID (+2,1,6) Error on line 42: (SQR 3704) Missing procedure name. B.NAME &NAME Error on line 45: (SQR 5303) Invalid qualifier 'a.deptid'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target A.DEPTID &DEPTID Error on line 48: (SQR 5303) Invalid qualifier 'c.descr'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target C.DESCR (,75,8) Error on line 49: (SQR 3701) Invalid command. A.JOBCODE (,95,6) Error on line 50: (SQR 3701) Invalid command. D.DESCR (,105,6) Error on line 55: (SQR 3728) SQL expression not ended, perhaps missing &name. FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 (SQR 4407) Referenced variables not defined: &name &deptid Errors were found in the program file. SQR for PeopleSoft: Program Aborting. I would apprecitae if anyone could help me out in solving these problem Thank u saritha _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 11:58:15 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] on-break Date: Wed, 9 Jun 2004 09:55:18 -0700 The columns (like A.EMPLID) should not be indented. The SQR commands (like ADD) should be indented. -----Original Message----- From: saritha ventrapragada [mailto:sperumudi@hotmail.com] Sent: Wednesday, June 09, 2004 9:29 AM To: sqr-users@sqrug.org Subject: [sqr-users] on-break Hi, I was trying on-break command. I am using peoplesoft8.8 This is my sample .sqr file A.EMPLID (+2,1,6) B.NAME (,10,20) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=1 SKIPLINES=1 SAVE=$OLDDEPT A.DEPTID (,60,10) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=2 SAVE=$OLDSTART AFTER=TOTALDEPTS C.DESCR (,75,8) A.JOBCODE (,95,6) D.DESCR (,105,6) ADD 1 TO #DEPTCNT ADD 1 TO #GRANDTOT FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 WHERE C.DEPTID = A.DEPTID .......... ........... ........... I was getting these errors. Error on line 40: (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [LOOPS=nn] [ON-ERROR=procedure[(arg1[,argi]...)]] [-DB=database] A.EMPLID (+2,1,6) Error on line 42: (SQR 3704) Missing procedure name. B.NAME &NAME Error on line 45: (SQR 5303) Invalid qualifier 'a.deptid'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target A.DEPTID &DEPTID Error on line 48: (SQR 5303) Invalid qualifier 'c.descr'. Valid qualifiers are: bold box center code code-printer edit fill match nop on-break shade underline wrap number money date delay foreground background url font point-size url-target C.DESCR (,75,8) Error on line 49: (SQR 3701) Invalid command. A.JOBCODE (,95,6) Error on line 50: (SQR 3701) Invalid command. D.DESCR (,105,6) Error on line 55: (SQR 3728) SQL expression not ended, perhaps missing &name. FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 (SQR 4407) Referenced variables not defined: &name &deptid Errors were found in the program file. SQR for PeopleSoft: Program Aborting. I would apprecitae if anyone could help me out in solving these problem Thank u saritha _________________________________________________________________ Looking to buy a house? Get informed with the Home Buying Guide from MSN House & Home. http://coldwellbanker.msn.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 12:50:29 2004 From: "Bencke, Gina" Date: Wed, 9 Jun 2004 13:45:17 -0400 Subject: [sqr-users] Differences between SQR w PeopleSoft 8.8 I am working as an SQR developer in the PeopleSoft 8.8 environment, the last time I worked with PeopleSoft was 4 years ago using version 7.5. A lot has changed in the process scheduler, including the use of Report Manager. When I worked with PS 7.5 I typically generated .SPF files that would be stored on my local computer and displayed upon completion of the report, of course that was before PeopleSoft was a WEB based product.=20=20 Can anyone advise me as to the best way to set up Process Request for developing and testing reports. Is it still possible to have the output sent to a local directory and be viewed upon completion? Does one still do the report development using SQRW and then attach it to the PS app once it has been tested. If so what command line flags are recommended to ensure smoothest transition once you are ready to attach to the appropriate PS page. Can anyone recommend a book that would have information about the differences between developing (and running) reports in version 8.x and 7.x?=20 Regards, Gina Bencke ginabencke@forestcity.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 12:59:00 2004 Date: Wed, 09 Jun 2004 13:56:47 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Differences between SQR w PeopleSoft 8.8 You can't send the output to a local directory, but I believe 8.8 Tools all= ows the user to select "Window" as output which opens the output automatica= lly - much like the old way we told SQR to open the SQRVW.exe program in th= e old days. The key is to have the output type something general such as p= df instead of spf where the user would need the app installed locally. Larry Roux Syracuse University lroux@syr.edu >>> GinaBencke@forestcity.net 06/09/04 13:52 PM >>> I am working as an SQR developer in the PeopleSoft 8.8 environment, the las= t time I worked with PeopleSoft was 4 years ago using version 7.5. A lot h= as changed in the process scheduler, including the use of Report Manager. When I worked with PS 7.5 I typically generated .SPF files that wo= uld be stored on my local computer and displayed upon completion of the rep= ort, of course that was before PeopleSoft was a WEB based product.=20=20 Can anyone advise me as to the best way to set up Process Request for devel= oping and testing reports. Is it still possible to have the output sent to= a local directory and be viewed upon completion? Does one still do the re= port development using SQRW and then attach it to the PS app once it has be= en tested. If so what command line flags are recommended to ensure smoothest transition once you are ready to attach to the appropri= ate PS page. Can anyone recommend a book that would have information about the differenc= es between developing (and running) reports in version 8.x and 7.x?=20 Regards, Gina Bencke ginabencke@forestcity.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 16:21:36 2004 From: joe.story@comcast.net Date: Wed, 09 Jun 2004 21:19:06 +0000 Subject: [sqr-users] re:Creating Menus in SQR 6.1 Hi Jeff, You might check this product out. I have been using it for a few years on multiple versions of SQR (4.x - 6.x). It is called 'SQRall' and it allows you to build option box (dynamic or static), message box with Yes/No;OK/Cancel buttons; Progress Bar with Cancel button or Text only; and a number of other features for Input Box. I use the Option box to build "menus" for my users. This is a group of radio buttons that you can build on the fly (based on who logged in or whatever criteria you want) or be static. Check it out. The site is http://www.maxcust.com/html/products.html. I believe they are based in the UK. HTH, Joe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 16:26:36 2004 From: "McCown, Larry" Date: Wed, 9 Jun 2004 14:25:12 -0700 Subject: [sqr-users] How to compensate for poor table design? Greetings all, I have built a report that appears to me to be poor table design, but I am looking for recommendations how to overcome this issue. I need to print out the QuestionID and the Answerrating for a ticket. But being that that each Answerrating is on a different line I receive the ticket number 4 times. I am using the on-break level and then I don't see the ticketnumber more than once but I do get blank lines between each questionID. Hope this makes sense. Thanks so much for you help. Table Ticketnumber Answerrating QuestionID W361062 1 1 W361062 1 2 W361062 2 3 W361062 4 Results: W361062 1 1 2 1 3 2 4 Maximo 4.0.3 SQL Server 7.0 Larry * Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W5 El Segundo, Ca. 90245 Phone (310)628-3939 Fax (310)332-3149 Larry.McCown@NGC.com Words kill, words give life; they're either poison or fruit - you choose. Instead of complaining about the thorns on roses, be thankful for the roses among the thorns. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 09 19:42:36 2004 From: Al H Subject: Re: [sqr-users] Differences between SQR w PeopleSoft 8.8 Date: Wed, 09 Jun 2004 17:40:58 -0700 Developers still have access to SQRW and SQRWV for designing reports on their workstations. Flags aren't much different than in the older SQRW versions. I always use -keep and -s for development and often use -debug---- as needed. Once the report is put to process scheduler, report delivery is done through the report manager on the web page. Once you run the report, the Process Monitor page will have a link to the reports and any log files and data files created by the program. On Wed, 9 Jun 2004 13:45:17 -0400, you wrote: >I am working as an SQR developer in the PeopleSoft 8.8 environment, the >last time I worked with PeopleSoft was 4 years ago using version 7.5. A >lot has changed in the process scheduler, including the use of Report >Manager. When I worked with PS 7.5 I typically generated .SPF files that >would be stored on my local computer and displayed upon completion of >the report, of course that was before PeopleSoft was a WEB based >product.=20=20 > >Can anyone advise me as to the best way to set up Process Request for >developing and testing reports. Is it still possible to have the output >sent to a local directory and be viewed upon completion? Does one still >do the report development using SQRW and then attach it to the PS app >once it has been tested. If so what command line flags are recommended >to ensure smoothest transition once you are ready to attach to the >appropriate PS page. > >Can anyone recommend a book that would have information about the >differences between developing (and running) reports in version 8.x and >7.x?=20 > >Regards, > >Gina Bencke >ginabencke@forestcity.net > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 03:51:34 2004 From: "Stephen Bispham" Date: Thu, 10 Jun 2004 10:47:31 +0200 Subject: [sqr-users] BARCODE 39 controlling x-dimension I am trying to use SQR for Peoplesoft to print asset labels incorporating a BARCODE code 39. The intended printer is a Zebra 90Xi11 with a continuous roll of self adhesive labels 51mm by 32 mm. I can control the height of the barcode but only about 60% of it is being printed within the 51mm label. From earlier entries on the list I gather I need to adjust the x-dimension to control the overall size of the BARCODE but how do I do that. Is it a parameter within SQR or should it be a printer setting. Currently I'm just printing to a standard HP laser printer for testing and am using the following code: begin-setup #include 'setupdb.sqc' ! Database specific setup declare-layout DEFAULT paper-size= (51mm, 32mm) line-height=7pt left-margin=3mm top-margin=1mm bottom-margin=1mm end-declare declare-report DEFAULT layout=DEFAULT printer-type=HP end-declare end-setup begin-procedure Print-Labels alter-printer point-size=8 print 'INVENTORY' (2) alter-printer point-size=6 print &A.DESCR (4,1) LET $SERIAL = 'Serial Number: '||&A.SERIAL_ID print $SERIAL (5,1) !print 'Serial Number: ' (5,1) !print &A.SERIAL_ID (0,16) alter-printer point-size=5 print-bar-code (7,1) type=5 height=0.2 text=&A.TAG_NUMBER caption=&A.TAG_NUMBER NEW-PAGE end-procedure Print-Labels (SQR VerSQR for PeopleSoft/8.42/PC/Windows NT 4.0/ODBC Level 2/Nov 05 2002) Any assistance or suggestions as to how to control the x-dimension would be much appreciated. Thanks Stephen ______________________________________________ Mail Scanned by AntiVirus (Clean Mail) *.#IFAD#.* ______________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 06:42:46 2004 From: "SRI Technologies" Subject: RE: [sqr-users] Differences between SQR w PeopleSoft 8.8 Date: Thu, 10 Jun 2004 21:39:47 +1000 SqrPlus is a comprehensive tool that provides workbench and interactive debugger to develop and debug sqr programs. The web site is: http://www.sritech.com.au -----Original Message----- From: Al H [mailto:maillists@starbuckk.net] Sent: Thursday, June 10, 2004 10:41 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Differences between SQR w PeopleSoft 8.8 Developers still have access to SQRW and SQRWV for designing reports on their workstations. Flags aren't much different than in the older SQRW versions. I always use -keep and -s for development and often use -debug---- as needed. Once the report is put to process scheduler, report delivery is done through the report manager on the web page. Once you run the report, the Process Monitor page will have a link to the reports and any log files and data files created by the program. On Wed, 9 Jun 2004 13:45:17 -0400, you wrote: >I am working as an SQR developer in the PeopleSoft 8.8 environment, the >last time I worked with PeopleSoft was 4 years ago using version 7.5. A >lot has changed in the process scheduler, including the use of Report >Manager. When I worked with PS 7.5 I typically generated .SPF files that >would be stored on my local computer and displayed upon completion of >the report, of course that was before PeopleSoft was a WEB based >product. > >Can anyone advise me as to the best way to set up Process Request for >developing and testing reports. Is it still possible to have the output >sent to a local directory and be viewed upon completion? Does one still >do the report development using SQRW and then attach it to the PS app >once it has been tested. If so what command line flags are recommended >to ensure smoothest transition once you are ready to attach to the >appropriate PS page. > >Can anyone recommend a book that would have information about the >differences between developing (and running) reports in version 8.x and >7.x? > >Regards, > >Gina Bencke >ginabencke@forestcity.net > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 08:45:58 2004 Date: Thu, 10 Jun 2004 06:43:11 -0700 (PDT) From: Upstate Subject: [sqr-users] Locking Out Users By way of SQR, I'm attempting to connect to a databases and lock out specific users. I'm trying to use, for example: alter user unknown account lock alter system kill session However, I'm receiving invalid commands. Can I use the following commands above, if so how, or do I need to have this in a script that I can externally call within SQR? --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 08:50:09 2004 From: "Bencke, Gina" Date: Thu, 10 Jun 2004 09:48:28 -0400 Subject: RE: [sqr-users] Locking Out Users Theoretically, any non-SELECT SQL statement can be issued from within a begin-sql paragraph. -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Upstate Sent: Thursday, June 10, 2004 9:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Locking Out Users By way of SQR, I'm attempting to connect to a databases and lock out specific users. I'm trying to use, for example: alter user unknown account lock alter system kill session=20 However, I'm receiving invalid commands. Can I use the following commands above, if so how, or do I need to have this in a script that I can externally call within SQR? =20 =20 =09=09 --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 09:09:38 2004 Date: Thu, 10 Jun 2004 07:08:19 -0700 (PDT) From: Upstate Subject: RE: [sqr-users] Locking Out Users Thank you. "Bencke, Gina" wrote:Theoretically, any non-SELECT SQL statement can be issued from within a begin-sql paragraph. -----Original Message----- From: sqr-users-bounces+ginabencke=forestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] On Behalf Of Upstate Sent: Thursday, June 10, 2004 9:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Locking Out Users By way of SQR, I'm attempting to connect to a databases and lock out specific users. I'm trying to use, for example: alter user unknown account lock alter system kill session However, I'm receiving invalid commands. Can I use the following commands above, if so how, or do I need to have this in a script that I can externally call within SQR? --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 09:18:28 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] Locking Out Users Date: Thu, 10 Jun 2004 10:15:18 -0400 If you have the database privileges to issues the commands that you referenced, then you can use these commands as part of the begin-sql paragraph. If the privilege is not recognized by the database, then the command will just return an error which you can trap using the on-error part of the begin-sql statement. Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of Upstate Sent: Thursday, June 10, 2004 9:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Locking Out Users By way of SQR, I'm attempting to connect to a databases and lock out specific users. I'm trying to use, for example: alter user unknown account lock alter system kill session However, I'm receiving invalid commands. Can I use the following commands above, if so how, or do I need to have this in a script that I can externally call within SQR? --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 09:32:04 2004 From: "Wunsche, Kathy" Date: Thu, 10 Jun 2004 10:41:51 -0400 Subject: [sqr-users] creating a file to read into Crystal Hi: Does anyone know how to create a file in an SQR program so that I can read the output of my SQR program into a Crystal Reports program? Thank you. Kathy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 09:56:46 2004 Date: Thu, 10 Jun 2004 07:54:02 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] creating a file to read into Crystal Kathy, Depends what kind of format is expected in your Crystal report. SQR can generate tab delimeted CSV Fixed widht etc HTH Datta. --- "Wunsche, Kathy" wrote: > Hi: > > Does anyone know how to create a file in an SQR program so that I > can read the output of my SQR program into a Crystal Reports program? > > > Thank you. > Kathy > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 09:59:42 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] creating a file to read into Crystal Date: Thu, 10 Jun 2004 10:54:18 -0400 Kathy: If Crystal can read an excel file, or some type of text file that may be delimited somehow, then SQR can be used to create it. Other than that, does Crystal have a specific file format that it uses? Its been a while since I used Crystal..... Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of Wunsche, Kathy Sent: Thursday, June 10, 2004 10:42 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] creating a file to read into Crystal Hi: Does anyone know how to create a file in an SQR program so that I can read the output of my SQR program into a Crystal Reports program? Thank you. Kathy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 10:02:21 2004 Date: Thu, 10 Jun 2004 10:55:08 -0400 From: "Everett Carr" Subject: Re: [sqr-users] creating a file to read into Crystal WHY would you ever what to do that??????????????????????????????? Just produce the report in sqr - its reliable, consistent, runs on unix....= all things crystal is not and cannot >>> KWunsche@esboces.org 06/10/04 10:41AM >>> Hi: Does anyone know how to create a file in an SQR program so that I can read the output of my SQR program into a Crystal Reports program?=09 Thank you. Kathy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 10:15:22 2004 From: "Wunsche, Kathy" Date: Thu, 10 Jun 2004 11:24:04 -0400 Subject: [sqr-users] creating a file to read into Crystal Hi: The reason I want to write the report in Crystal is that it has a lot of boxes and lines and many different fonts etc. I find this easier in Crystal. Crystal can read in .dbf, .db, .mdb, and .ddf files. Thanks for answering. Kathy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 10:29:06 2004 From: "Wunsche, Kathy" Date: Thu, 10 Jun 2004 11:39:09 -0400 Subject: [sqr-users] Crystal Hi: Never mind, everybody. I decided to just create a temporary table and then write a Query to read it into Crystal. Sorry if I wasted anybody's time. Kathy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 13:27:03 2004 Date: Thu, 10 Jun 2004 13:52:36 -0400 From: "Vito Campanelli" Subject: [sqr-users] SQR Oracle Drivers Hi, =20 I apologize if this forum is not the correct one for this question. I have just installed Hyperion SQR Developer 8.2. I am trying to create my connection to an Oracle clustered database. When I use the drivers (SQR ODBC Driver for Oracle version 4.20.00.08) that were installed I get the following error message: =20 [DataDirect][ODBC Oracle Wire Protocol driver] Invalid attribute in connection string............... =20 I do have the Oracle Client installed on my winXP machine. Is there a latest version of the SQR drivers? Or should I just use Oracle's drivers? =20 Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 13:51:55 2004 Date: Thu, 10 Jun 2004 20:50:18 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20SQR=20Oracle=20Drivers?= I use Oracle ODBC driver 8.01.06.00 with success and SQR 6.2.1 / windows 20= 00 Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 15:45:43 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] SQR Oracle Drivers Date: Thu, 10 Jun 2004 16:44:35 -0400 Vito: When you define the data direct driver, specify the hostname, port number, and the sid for the database. If any of these are wrong then you will get the error message as you indicated...... Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of Vito Campanelli Sent: Thursday, June 10, 2004 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Oracle Drivers Hi, I apologize if this forum is not the correct one for this question. I have just installed Hyperion SQR Developer 8.2. I am trying to create my connection to an Oracle clustered database. When I use the drivers (SQR ODBC Driver for Oracle version 4.20.00.08) that were installed I get the following error message: [DataDirect][ODBC Oracle Wire Protocol driver] Invalid attribute in connection string............... I do have the Oracle Client installed on my winXP machine. Is there a latest version of the SQR drivers? Or should I just use Oracle's drivers? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 10 23:20:35 2004 Date: Fri, 11 Jun 2004 09:49:46 +0530 From: "Santhanam, Subramanian (Cognizant)" Subject: [sqr-users] SQR - Issue Hi, I am printing a running report. I have a scenario that I should print in the previous page after printing in the current page. Is it possible? =0D Thanks in advance. =0D Regards, Subbu. =0D This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorised review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 05:38:12 2004 Date: Fri, 11 Jun 2004 03:37:18 -0700 (PDT) From: Darshil Mehta Subject: Re: [sqr-users] SQR - Issue Please describe your problem exactly. Do you want a page break ? What exactly you are trying to do? Darshil --- "Santhanam, Subramanian (Cognizant)" wrote: > > Hi, > > I am printing a running report. I have > a scenario that I > should print in the previous page after printing in > the current page. > Is it possible? > > > > Thanks in advance. > > > > Regards, > > Subbu. > > > > > > This e-mail and any files transmitted with it are > for the sole use of the intended recipient(s) and > may contain confidential and privileged information. > If you are not the intended recipient, please > contact the sender by reply e-mail and destroy all > copies of the original message. > Any unauthorised review, use, disclosure, > dissemination, forwarding, printing or copying of > this email or any action taken in reliance on this > e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 08:34:34 2004 Date: Fri, 11 Jun 2004 08:33:38 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] SQR - Issue Subbu, In SQR you can't retroactively reorder the pages of a report. You would have to do something like this: begin-program do select_data_into_array if #cart_before_horse do print_page_2 new-page do print_page_1 else do print_page_1 new-page do print_page_2 end-if end-program Good luck, Eric Santhanam, Subramanian (Cognizant) wrote: > Hi, > > I am printing a running report. I have a scenario that I > should print in the previous page after printing in the current page. > Is it possible? > > > > > Thanks in advance. > > > > > Regards, > > Subbu. > > > > > > > This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. > If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. > > Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly > > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 09:26:56 2004 Date: Fri, 11 Jun 2004 10:23:33 -0400 From: "Vito Campanelli" Subject: [sqr-users] Page Break Hi, This may be a newbie question, but I am really struggling with SQR, and I was hoping to get some advice from the group. I have a report that prints out a student's name and classes he/she is attending. I would like there to be a page break on ever change in student's name and also if the student's name is the same but the class is different. i.e. Student Name: Joe Smith Class: Math ----Page break Student Name: Jane Doe Class: Math ----Page break Student Name: Jane Doe Class: History Can somebody help me with the on-break page commands? Thanks in advance. Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 09:28:40 2004 Subject: RE: [sqr-users] SQR Oracle Drivers Date: Fri, 11 Jun 2004 10:24:48 -0400 From: "Vito Campanelli" Hi, All that information is correct; however I am still getting the error. Can it be because of the clustered database on two servers? Thanks -----Original Message----- From: sqr-users-bounces+vito.campanelli=3Dmcgill.ca@sqrug.org [mailto:sqr-users-bounces+vito.campanelli=3Dmcgill.ca@sqrug.org] On Behalf Of Paul Hoyte Sent: Thursday, June 10, 2004 3:45 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] SQR Oracle Drivers Vito: When you define the data direct driver, specify the hostname, port number, and the sid for the database. If any of these are wrong then you will get the error message as you indicated......=20 Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com =20 -----Original Message----- From: sqr-users-bounces+paul.hoyte=3Dsharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=3Dsharidionne.com@sqrug.org] On Behalf Of Vito Campanelli Sent: Thursday, June 10, 2004 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Oracle Drivers Hi, =20 I apologize if this forum is not the correct one for this question. I have just installed Hyperion SQR Developer 8.2. I am trying to create my connection to an Oracle clustered database. When I use the drivers (SQR ODBC Driver for Oracle version 4.20.00.08) that were installed I get the following error message: =20 [DataDirect][ODBC Oracle Wire Protocol driver] Invalid attribute in connection string............... =20 I do have the Oracle Client installed on my winXP machine. Is there a latest version of the SQR drivers? Or should I just use Oracle's drivers? =20 Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 09:31:30 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Page Break Date: Fri, 11 Jun 2004 08:29:10 -0600 All you need to do it put 'new-page' after every place you want a break. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Vito Campanelli [mailto:vito.campanelli@mcgill.ca] Sent: Friday, June 11, 2004 8:24 AM To: sqr-users@sqrug.org Subject: [sqr-users] Page Break Hi, This may be a newbie question, but I am really struggling with SQR, and I was hoping to get some advice from the group. I have a report that prints out a student's name and classes he/she is attending. I would like there to be a page break on ever change in student's name and also if the student's name is the same but the class is different. i.e. Student Name: Joe Smith Class: Math ----Page break Student Name: Jane Doe Class: Math ----Page break Student Name: Jane Doe Class: History Can somebody help me with the on-break page commands? Thanks in advance. Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 10:01:09 2004 From: "saritha ventrapragada" Subject: RE: [sqr-users] on-break Date: Fri, 11 Jun 2004 10:58:28 -0400 Hi, Thank you very much. I did not know that there are such contraints. For readability I intented table fields. I did try without intending them. This time i was gettting another error. I says syntax of sql statement is wrong. Without using these on-break query worked well. I m not sure where i did wrong. I would appreciate if you could let me know where I can find the rules that should be followed while writing sqr. Thank you very much Saritha >From: "Bencke, Gina" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] on-break >Date: Wed, 9 Jun 2004 12:44:44 -0400 > >Unless something is different in SQR for PeopleSoft, the syntax and >spacing of your select paragraph is important > >Begin-select and column names must be flush against the left margin of >your.sqr file. SQR commands must be indented. No SQR Commands can be >listed between the FROM and the END-SELECT. > >BEGIN-SELECT >Column1 () ... >Column2 () ... > add 1 to #var1 > add 1 to #var2 >FROM ... >WHERE ... >END-SELECT > > >-----Original Message----- >From: sqr-users-bounces+ginabencke=forestcity.net@sqrug.org >[mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] On Behalf >Of saritha ventrapragada >Sent: Wednesday, June 09, 2004 12:29 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] on-break > > >Hi, >I was trying on-break command. I am using peoplesoft8.8 > >This is my sample .sqr file > A.EMPLID (+2,1,6) > B.NAME (,10,20) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=1 SKIPLINES=1 >SAVE=$OLDDEPT > A.DEPTID (,60,10) ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=2 >SAVE=$OLDSTART >AFTER=TOTALDEPTS > C.DESCR (,75,8) > A.JOBCODE (,95,6) > D.DESCR (,105,6) > >ADD 1 TO #DEPTCNT >ADD 1 TO #GRANDTOT > > FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, >PS_DEPT_TBL C, >PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 > WHERE C.DEPTID = A.DEPTID >.......... >........... >........... > > >I was getting these errors. > >Error on line 40: > (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: >BEGIN-SELECT [DISTINCT] [-Cnn] [LOOPS=nn] > [ON-ERROR=procedure[(arg1[,argi]...)]] > [-DB=database] >A.EMPLID (+2,1,6) > >Error on line 42: > (SQR 3704) Missing procedure name. >B.NAME &NAME > >Error on line 45: > (SQR 5303) Invalid qualifier 'a.deptid'. Valid qualifiers are: bold >box center code code-printer edit fill match nop on-break shade >underline wrap number money date delay foreground background url font >point-size url-target A.DEPTID &DEPTID > >Error on line 48: > (SQR 5303) Invalid qualifier 'c.descr'. Valid qualifiers are: bold >box center code code-printer edit fill match nop on-break shade >underline wrap number money date delay foreground background url font >point-size url-target >C.DESCR (,75,8) > >Error on line 49: > (SQR 3701) Invalid command. >A.JOBCODE (,95,6) > >Error on line 50: > (SQR 3701) Invalid command. >D.DESCR (,105,6) > >Error on line 55: > (SQR 3728) SQL expression not ended, perhaps missing &name. FROM >PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_PERSONAL_DATA B, PS_DEPT_TBL C, >PS_SET_CNTRL_REC C2, PS_JOBCODE_TBL D, PS_SET_CNTRL_REC D2 >(SQR 4407) Referenced variables not defined: > > &name > &deptid > >Errors were found in the program file. > >SQR for PeopleSoft: Program Aborting. > > >I would apprecitae if anyone could help me out in solving these problem >Thank u saritha > >_________________________________________________________________ >Looking to buy a house? Get informed with the Home Buying Guide from MSN > >House & Home. http://coldwellbanker.msn.com/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 10:21:33 2004 From: "Joe" Date: Fri, 11 Jun 2004 10:20:00 -0500 Subject: [sqr-users] How to have dynamic column headers based on a select from a table Greetings, I need to select all the COMPANY's from a COMPANY_TBL and use each value as a column header in an SQR report. There are presently 6 companies in COMPANY_TBL. I need to have 6 columns on a report that goes after additional data related to those companies. Select COMPANY >From PS_COMPANY_TBL; Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 I need to create a report that has this (Code values will come from another select): Code Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 Total 34 600.89 100.00 000 00 2000.00 300.00 000.00 3000.89 48 100.00 000.00 050.00 000.00 150.00 000.50 300.50 Totals 700.89 100.00 050.00 2000.00 450.00 000.50 3301.39 Thanks in advance, Joe Johnson jej1216@hotmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 10:39:52 2004 Date: Fri, 11 Jun 2004 17:38:09 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20How=20to=20have=20dyna?==?ISO-8859-1?Q?mic=20column=20headers=20based=20on=20a=20selectfrom=20a?==?ISO-8859-1?Q?=20table?= Here is an example with cumulatives months: (you have to use a sub select) select Site ||';'||Designation ||';'||sum(CumulJanvier) ||';'||sum(CumulFevrier) ||';'||sum(CumulMars) ||';'||sum(CumulAvril) ||';'||sum(CumulMai) ||';'||sum(CumulJuin) ||';'||sum(CumulJuillet) ||';'||sum(CumulAout) ||';'||sum(CumulSeptembre) ||';'||sum(CumulOctobre) ||';'||sum(CumulNovembre) ||';'||sum(CumulDecembre) as Transferts from ( select distinct cli_sit = as Site, replace(ltrim(rtrim(stc_nom_sit)),' ','_') = as Designation, count(distinct decode(to_char(hide_dat_demen,'mm'),'01',prlg_nd,null= ) ) as CumulJanvier, count(distinct decode(to_char(hide_dat_demen,'mm'),'02',prlg_nd,null= ) ) as CumulFevrier, count(distinct decode(to_char(hide_dat_demen,'mm'),'03',prlg_nd,null= ) ) as CumulMars, count(distinct decode(to_char(hide_dat_demen,'mm'),'04',prlg_nd,null= ) ) as CumulAvril, count(distinct decode(to_char(hide_dat_demen,'mm'),'05',prlg_nd,null= ) ) as CumulMai, count(distinct decode(to_char(hide_dat_demen,'mm'),'06',prlg_nd,null= ) ) as CumulJuin, count(distinct decode(to_char(hide_dat_demen,'mm'),'07',prlg_nd,null= ) ) as CumulJuillet, count(distinct decode(to_char(hide_dat_demen,'mm'),'08',prlg_nd,null= ) ) as CumulAout, count(distinct decode(to_char(hide_dat_demen,'mm'),'09',prlg_nd,null= ) ) as CumulSeptembre, count(distinct decode(to_char(hide_dat_demen,'mm'),'10',prlg_nd,null= ) ) as CumulOctobre, count(distinct decode(to_char(hide_dat_demen,'mm'),'11',prlg_nd,null= ) ) as CumulNovembre, count(distinct decode(to_char(hide_dat_demen,'mm'),'12',prlg_nd,null= ) ) as CumulDecembre from rue_commune, adresse_site,=20 noeud cd, noeud prise, prise_logement_contrat, prise_logement, hist_demenagement, client, site_tv_cable, contrat where ruco_comu =3D adr_comu and ruco_riv =3D adr_riv and adr_adr_sit =3D prise.nd_adr_sit and adr_sit =3D prise.nd_sit and cd.nd_nd =3D prise.nd_cd_nd and cd.nd_sit =3D prise.nd_sit and prise.nd_nd =3D prlg_nd and prise.nd_sit =3D prlg_sit and prlc_dat_crea =3D ( select max(plc.prlc_dat_crea) from prise_logement_contrat plc where plc.prlc_dat_inva is not = null and plc.prlc_pris_nd =3D pr= lg_nd and plc.prlc_sit =3D pr= lg_sit group by plc.prlc_sit, plc.prlc= _pris_nd ) and prlc_dat_inva is not null and prlc_pris_nd =3D prlg_nd and prlc_sit =3D prlg_sit and prlg_nd =3D hide_nd_ori and prlg_sit =3D hide_sit and hide_dat_demen =3D ( select max(hd.hide_dat_demen) from hist_demenagement hd where trunc(hd.hide_dat_demen) = between trunc(to_date('01/01/2003','dd/mm/yyyy')) = and trunc(to_date('31/12/2003','dd/mm/yyyy')) and hd.hide_ctrt =3D cont_ctrt and hd.hide_ami =3D cont_ami= =20 and hd.hide_sit =3D cont_sit= =20 group by hd.hide_sit, hd.hide_c= trt, hd.hide_ami ) and hide_ctrt =3D cont_ctrt and hide_ami =3D cont_ami and hide_sit =3D cont_sit and cli_clt =3D cont_clt_ctrt and cli_sit =3D cont_sit and stc_sit =3D hide_sit and ( cont_dat_efft_resl is null or trunc(cont_dat_efft_resl) > trunc(to_date('31/12/2003','dd/mm/= yyyy')) ) and cont_sit in ('801','802','952','AUB','MTG','50= 3','603','201','240','301','401','502','451','CES','452','453','601','602',= '901','953','954') group by cli_sit, stc_nom_sit, to_char(hide_dat_demen,'mm') ) group by Site, Designation order by 1; Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 10:55:57 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] How to have dynamic column headers based on a selectfrom a table Date: Fri, 11 Jun 2004 11:54:48 -0400 Joe: You may want to use the column printing capability of sqr using the use-column/next-column commands. For each company that you select, get the detail and print the detail down the page. Then for the next company, reposition to the first line of the second column after switching to that column, and then start the process over again. If you are using precision printing then don't use the next-listing command since that will reposition you on the next logical page thereby killing the ability to re-position to the starting line for the next column. Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of Joe Sent: Friday, June 11, 2004 11:20 AM To: sqr-users@sqrug.org Subject: [sqr-users] How to have dynamic column headers based on a selectfrom a table Greetings, I need to select all the COMPANY's from a COMPANY_TBL and use each value as a column header in an SQR report. There are presently 6 companies in COMPANY_TBL. I need to have 6 columns on a report that goes after additional data related to those companies. Select COMPANY >From PS_COMPANY_TBL; Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 I need to create a report that has this (Code values will come from another select): Code Comp1 Comp2 Comp3 Comp4 Comp5 Comp6 Total 34 600.89 100.00 000 00 2000.00 300.00 000.00 3000.89 48 100.00 000.00 050.00 000.00 150.00 000.50 300.50 Totals 700.89 100.00 050.00 2000.00 450.00 000.50 3301.39 Thanks in advance, Joe Johnson jej1216@hotmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 11:44:10 2004 Date: Fri, 11 Jun 2004 12:41:42 -0400 From: "George Jansen" Subject: RE: [sqr-users] SQR Oracle Drivers The first thing is to make sure that the SQL*Net layer is OK on your machine. What do you have in the Oracle client install on your machine? At a minimum, there is probably TNSPING (for old versions, TNSPING80). If you tnsping yourdb Can it resolve the name and find the listener? If not, your naming configuration is wrong. If you can TNSPING, then you are at least finding some listener somewhere. At this point you need to find out whether you can reach the proper instance. The simplest way is using SQL*Plus if you have that. If not, use the Network Configuration Assistant and edit your service. Don't make any changes, but at the end indicate that you want to test the connection. If the connection is set up properly, you should either get a success indicator, or an invalid username/password message. If not, you may get a more useful error message. George Jansen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 11:59:50 2004 Subject: RE: [sqr-users] SQR Oracle Drivers Date: Fri, 11 Jun 2004 12:59:03 -0400 From: "Vito Campanelli" Hi George, I am able to TNSPing and connect using SQL*Plus. I can use Oracle Forms successfully on this machine. Thanks -----Original Message----- From: sqr-users-bounces+vito.campanelli=3Dmcgill.ca@sqrug.org [mailto:sqr-users-bounces+vito.campanelli=3Dmcgill.ca@sqrug.org] On Behalf Of George Jansen Sent: Friday, June 11, 2004 11:42 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Oracle Drivers The first thing is to make sure that the SQL*Net layer is OK on your machine. What do you have in the Oracle client install on your machine? At a minimum, there is probably TNSPING (for old versions, TNSPING80). If you tnsping yourdb Can it resolve the name and find the listener? If not, your naming configuration is wrong. If you can TNSPING, then you are at least finding some listener somewhere. At this point you need to find out whether you can reach the proper instance. The simplest way is using SQL*Plus if you have that. If not, use the Network Configuration Assistant and edit your service. Don't make any changes, but at the end indicate that you want to test the connection. If the connection is set up properly, you should either get a success indicator, or an invalid username/password message. If not, you may get a more useful error message. George Jansen=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 14:34:27 2004 Date: Fri, 11 Jun 2004 15:31:40 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Managing large datasets IN SQR I am working with a report which calls a PL/SQL package that inserts the re= porting data to a temp table. Once package exection is completed, the inser= ted row count stands at roughly 250,000. Then my SQR program begin selectin= g each row & prints it in a Detailed layout report.=20 The Select statement is a very simple one: BEGIN-SELECT ON-ERROR=3DSQR_ERROR(1,'Detailed_Section')=20 CITY &city ADVERTISER_NAME &advertiser_name INVOICE_ID &Invoice_ID GROSS_RATE &gross_amt NET_RATE &net_amt Move &city to $city_str=20=20=20=20=20=20=20=20=20 Move &advertiser_name to $advertiser_str=20 Move &Invoice_ID to #Invoice_ID_str Move &gross_amt to $gross_amt_str Move &net_amt to $net_amt_str =20 DO Print_Detailed_Row =20 FROM SCHEMA.TMP_TABLE TMP_TABLE WHERE=20 TMP_TABLE.RUN_ID =3D #rpt_run_id ORDER BY [$Order_By_str] END-SELECT=20 END-PROCEDURE Detailed_Section In doing so, I am getting an error that the SPF file has become corrupt. Th= e following is the error message: I would greatly appreciate your help. Thanks, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 11 17:30:42 2004 From: Ray Ontko Date: Fri, 11 Jun 2004 17:28:38 -0500 Subject: Re: [sqr-users] Managing large datasets IN SQR What's the error message? Ray On Fri, Jun 11, 2004 at 03:31:40PM -0400, Jessie Dickenson wrote: > I am working with a report which calls a PL/SQL package that inserts the reporting data to a temp table. Once package exection is completed, the inserted row count stands at roughly 250,000. Then my SQR program begin selecting each row & prints it in a Detailed layout report. > The Select statement is a very simple one: > > BEGIN-SELECT ON-ERROR=SQR_ERROR(1,'Detailed_Section') > CITY &city > ADVERTISER_NAME &advertiser_name > INVOICE_ID &Invoice_ID > GROSS_RATE &gross_amt > NET_RATE &net_amt > > Move &city to $city_str > Move &advertiser_name to $advertiser_str > Move &Invoice_ID to #Invoice_ID_str > Move &gross_amt to $gross_amt_str > Move &net_amt to $net_amt_str > > DO Print_Detailed_Row > > FROM > SCHEMA.TMP_TABLE TMP_TABLE > WHERE > TMP_TABLE.RUN_ID = #rpt_run_id > ORDER BY > [$Order_By_str] > END-SELECT > END-PROCEDURE Detailed_Section > > > In doing so, I am getting an error that the SPF file has become corrupt. The following is the error message: > > > > I would greatly appreciate your help. > > Thanks, Jessie > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 08:40:50 2004 Date: Mon, 14 Jun 2004 09:37:50 -0400 From: "Jessie Dickenson" Subject: Re: [sqr-users] Managing large datasets IN SQR The error message is: Fatal error in reading SPF file. The SPF file is probably corrupted. Tia. Jessie >>> rayo@ontko.com 06/11/2004 6:28:38 PM >>> What's the error message? Ray On Fri, Jun 11, 2004 at 03:31:40PM -0400, Jessie Dickenson wrote: > I am working with a report which calls a PL/SQL package that inserts the reporting data to a temp table. Once package exection is completed, the inserted row count stands at roughly 250,000. Then my SQR program begin selecting each row & prints it in a Detailed layout report. > The Select statement is a very simple one: > > BEGIN-SELECT ON-ERROR=SQR_ERROR(1,'Detailed_Section') > CITY &city > ADVERTISER_NAME &advertiser_name > INVOICE_ID &Invoice_ID > GROSS_RATE &gross_amt > NET_RATE &net_amt > > Move &city to $city_str > Move &advertiser_name to $advertiser_str > Move &Invoice_ID to #Invoice_ID_str > Move &gross_amt to $gross_amt_str > Move &net_amt to $net_amt_str > > DO Print_Detailed_Row > > FROM > SCHEMA.TMP_TABLE TMP_TABLE > WHERE > TMP_TABLE.RUN_ID = #rpt_run_id > ORDER BY > [$Order_By_str] > END-SELECT > END-PROCEDURE Detailed_Section > > > In doing so, I am getting an error that the SPF file has become corrupt. The following is the error message: > > > > I would greatly appreciate your help. > > Thanks, Jessie > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 11:27:14 2004 From: "Overcashier, Patricia" Date: Mon, 14 Jun 2004 12:24:46 -0400 Subject: [sqr-users] removing all special characters from a string In my sqr, I have a string $inp-email-addr Before processing this string I want to make sure that it only contains alpha (no numerics), an @ sign and periods, and nothing else. ex: john.doe@abcd.com I want to make sure that there are no commas, hyphens, apostrophes, etc. (basically no special characters) What is the easiest way to verify my string before processing it? If there are any of these things, I don't want to replace them with anything, just remove them. Thanks. Patti Overcashier ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 11:34:59 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] removing all special characters from a string Date: Mon, 14 Jun 2004 10:32:56 -0600 Use the translate sqr command. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] Sent: Monday, June 14, 2004 10:25 AM To: Sqr-Users@Sqrug. Org (E-mail) Subject: [sqr-users] removing all special characters from a string In my sqr, I have a string $inp-email-addr Before processing this string I want to make sure that it only contains alpha (no numerics), an @ sign and periods, and nothing else. ex: john.doe@abcd.com I want to make sure that there are no commas, hyphens, apostrophes, etc. (basically no special characters) What is the easiest way to verify my string before processing it? If there are any of these things, I don't want to replace them with anything, just remove them. Thanks. Patti Overcashier ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 13:41:07 2004 From: "saritha ventrapragada" Subject: RE: [sqr-users] removing all special characters from a string Date: Mon, 14 Jun 2004 14:39:56 -0400 I think translate is one option. But with translate function, one should check for all the special characters except the one which are valid in email address. Does SQR doesnot provide any built-in function to check this validation? >From: "Bartlett, Dwain" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] removing all special characters from a string >Date: Mon, 14 Jun 2004 10:32:56 -0600 > >Use the translate sqr command. > >Dwain Bartlett >SABHRS Services Bureau, ITSD >HR Systems Analyst >(406) 444-0418 >dbartlett@state.mt.us > > >-----Original Message----- >From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] >Sent: Monday, June 14, 2004 10:25 AM >To: Sqr-Users@Sqrug. Org (E-mail) >Subject: [sqr-users] removing all special characters from a string > > >In my sqr, I have a string $inp-email-addr >Before processing this string I want to make sure that it only contains >alpha (no numerics), an @ sign and periods, and nothing else. ex: >john.doe@abcd.com >I want to make sure that there are no commas, hyphens, apostrophes, etc. >(basically no special characters) >What is the easiest way to verify my string before processing it? > >If there are any of these things, I don't want to replace them with >anything, just remove them. > >Thanks. > >Patti Overcashier > > > > >********************************************************************** >This email and any files transmitted with it are confidential and >intended solely for the use of the individual or entity to whom they >are addressed. If you have received this email in error please notify >the system manager. > >This footnote also confirms that this email message has been swept by >MIMEsweeper for the presence of computer viruses. > >www.mimesweeper.com >********************************************************************** > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Getting married? Find great tips, tools and the latest trends at MSN Life Events. http://lifeevents.msn.com/category.aspx?cid=married _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 14:15:26 2004 Date: Mon, 14 Jun 2004 14:13:30 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] removing all special characters from a string ... set $valid_chars ... let $invalid_chars = translate($source, $valid_chars, '') let #invalid = length($invalid_chars) if #invalid let $source = translate($source, $invalid_chars, '') end-if On Mon, 14 Jun 2004, saritha ventrapragada wrote: > I think translate is one option. > > But with translate function, one should check for all the special characters > except the one which are valid in email address. > > Does SQR doesnot provide any built-in function to check this validation? > > >From: "Bartlett, Dwain" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] removing all special characters from a string > >Date: Mon, 14 Jun 2004 10:32:56 -0600 > > > >Use the translate sqr command. > > > >Dwain Bartlett > >SABHRS Services Bureau, ITSD > >HR Systems Analyst > >(406) 444-0418 > >dbartlett@state.mt.us > > > > > >-----Original Message----- > >From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] > >Sent: Monday, June 14, 2004 10:25 AM > >To: Sqr-Users@Sqrug. Org (E-mail) > >Subject: [sqr-users] removing all special characters from a string > > > > > >In my sqr, I have a string $inp-email-addr > >Before processing this string I want to make sure that it only contains > >alpha (no numerics), an @ sign and periods, and nothing else. ex: > >john.doe@abcd.com > >I want to make sure that there are no commas, hyphens, apostrophes, etc. > >(basically no special characters) > >What is the easiest way to verify my string before processing it? > > > >If there are any of these things, I don't want to replace them with > >anything, just remove them. > > > >Thanks. > > > >Patti Overcashier > > > > > > > > > >********************************************************************** > >This email and any files transmitted with it are confidential and > >intended solely for the use of the individual or entity to whom they > >are addressed. If you have received this email in error please notify > >the system manager. > > > >This footnote also confirms that this email message has been swept by > >MIMEsweeper for the presence of computer viruses. > > > >www.mimesweeper.com > >********************************************************************** > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Getting married? Find great tips, tools and the latest trends at MSN Life > Events. http://lifeevents.msn.com/category.aspx?cid=married > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 14:21:27 2004 From: "Overcashier, Patricia" Subject: RE: [sqr-users] removing all special characters from a string Date: Mon, 14 Jun 2004 15:20:07 -0400 Thank you! I like this answer the best! It makes perfect sense, since there is an absolute set of valid characters. I am going to code this immediately. -----Original Message----- From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org]On Behalf Of Don Mellen Sent: Monday, June 14, 2004 3:14 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] removing all special characters from a string ... set $valid_chars ... let $invalid_chars = translate($source, $valid_chars, '') let #invalid = length($invalid_chars) if #invalid let $source = translate($source, $invalid_chars, '') end-if On Mon, 14 Jun 2004, saritha ventrapragada wrote: > I think translate is one option. > > But with translate function, one should check for all the special characters > except the one which are valid in email address. > > Does SQR doesnot provide any built-in function to check this validation? > > >From: "Bartlett, Dwain" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] removing all special characters from a string > >Date: Mon, 14 Jun 2004 10:32:56 -0600 > > > >Use the translate sqr command. > > > >Dwain Bartlett > >SABHRS Services Bureau, ITSD > >HR Systems Analyst > >(406) 444-0418 > >dbartlett@state.mt.us > > > > > >-----Original Message----- > >From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] > >Sent: Monday, June 14, 2004 10:25 AM > >To: Sqr-Users@Sqrug. Org (E-mail) > >Subject: [sqr-users] removing all special characters from a string > > > > > >In my sqr, I have a string $inp-email-addr > >Before processing this string I want to make sure that it only contains > >alpha (no numerics), an @ sign and periods, and nothing else. ex: > >john.doe@abcd.com > >I want to make sure that there are no commas, hyphens, apostrophes, etc. > >(basically no special characters) > >What is the easiest way to verify my string before processing it? > > > >If there are any of these things, I don't want to replace them with > >anything, just remove them. > > > >Thanks. > > > >Patti Overcashier > > > > > > > > > >********************************************************************** > >This email and any files transmitted with it are confidential and > >intended solely for the use of the individual or entity to whom they > >are addressed. If you have received this email in error please notify > >the system manager. > > > >This footnote also confirms that this email message has been swept by > >MIMEsweeper for the presence of computer viruses. > > > >www.mimesweeper.com > >********************************************************************** > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Getting married? Find great tips, tools and the latest trends at MSN Life > Events. http://lifeevents.msn.com/category.aspx?cid=married > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 14:39:26 2004 From: "Overcashier, Patricia" Subject: RE: [sqr-users] removing all special characters from a string Date: Mon, 14 Jun 2004 15:36:45 -0400 I just used it and it works like a charm! Thanks again, Don! -----Original Message----- From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org]On Behalf Of Don Mellen Sent: Monday, June 14, 2004 3:14 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] removing all special characters from a string ... set $valid_chars ... let $invalid_chars = translate($source, $valid_chars, '') let #invalid = length($invalid_chars) if #invalid let $source = translate($source, $invalid_chars, '') end-if On Mon, 14 Jun 2004, saritha ventrapragada wrote: > I think translate is one option. > > But with translate function, one should check for all the special characters > except the one which are valid in email address. > > Does SQR doesnot provide any built-in function to check this validation? > > >From: "Bartlett, Dwain" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] removing all special characters from a string > >Date: Mon, 14 Jun 2004 10:32:56 -0600 > > > >Use the translate sqr command. > > > >Dwain Bartlett > >SABHRS Services Bureau, ITSD > >HR Systems Analyst > >(406) 444-0418 > >dbartlett@state.mt.us > > > > > >-----Original Message----- > >From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] > >Sent: Monday, June 14, 2004 10:25 AM > >To: Sqr-Users@Sqrug. Org (E-mail) > >Subject: [sqr-users] removing all special characters from a string > > > > > >In my sqr, I have a string $inp-email-addr > >Before processing this string I want to make sure that it only contains > >alpha (no numerics), an @ sign and periods, and nothing else. ex: > >john.doe@abcd.com > >I want to make sure that there are no commas, hyphens, apostrophes, etc. > >(basically no special characters) > >What is the easiest way to verify my string before processing it? > > > >If there are any of these things, I don't want to replace them with > >anything, just remove them. > > > >Thanks. > > > >Patti Overcashier > > > > > > > > > >********************************************************************** > >This email and any files transmitted with it are confidential and > >intended solely for the use of the individual or entity to whom they > >are addressed. If you have received this email in error please notify > >the system manager. > > > >This footnote also confirms that this email message has been swept by > >MIMEsweeper for the presence of computer viruses. > > > >www.mimesweeper.com > >********************************************************************** > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Getting married? Find great tips, tools and the latest trends at MSN Life > Events. http://lifeevents.msn.com/category.aspx?cid=married > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 14 14:42:14 2004 Date: Mon, 14 Jun 2004 14:39:32 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] SQR - Issue If you're trying to print a few values (such as totals at the top of each column, instead of after) take a look at the "delay" option for the "PRINT" command, and the "SET-DELAY-PRINT" command. On Fri, 11 Jun 2004, Santhanam, Subramanian (Cognizant) wrote: > > Hi, > > I am printing a running report. I have a scenario that I > should print in the previous page after printing in the current page. > Is it possible? > > > > Thanks in advance. > > > > Regards, > > Subbu. > > > > > > This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. > If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 15 09:02:47 2004 From: "Kumar Sosa" Date: Tue, 15 Jun 2004 14:01:36 +0000 Subject: [sqr-users] Output both in PDF and Excel By default I write SQR reports to output in PDF, HTML formats (with print statements). Sometimes user wants them to see in Excel and they select the output file type as CSV and they get the output in excel spread sheet. But all the reports doesn't format very well due to commas, spaces and doble quotes, etc... some report outputs looks very bad. My question is, Is there any way we can produce the reports into all file types with out loosing formatting. (I know how to develop the reports in to Excel, but I need single report to use for multi formats). Thanks in advance, Reddy _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 15 09:49:52 2004 Subject: RE: [sqr-users] Output both in PDF and Excel Date: Tue, 15 Jun 2004 09:48:41 -0500 From: "Lindquist, Maria" I use a semicolon (;) for my separated value in reports where I write to a text file.=20 _____=20=20 Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Kumar Sosa Sent: Tuesday, June 15, 2004 9:02 AM To: sqr-users@sqrug.org Subject: [sqr-users] Output both in PDF and Excel By default I write SQR reports to output in PDF, HTML formats (with print statements). Sometimes user wants them to see in Excel and they select the output file type as CSV and they get the output in excel spread sheet. But all the reports doesn't format very well due to commas, spaces and doble quotes, etc... some report outputs looks very bad. My question is, Is there any way we can produce the reports into all file types with out loosing formatting. (I know how to develop the reports in to Excel, but I need single report to use for multi formats). Thanks in advance, Reddy _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium=20=20=20 http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D10= 34&SU =3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 15 13:23:51 2004 From: joe.story@comcast.net Date: Tue, 15 Jun 2004 18:22:45 +0000 Subject: [sqr-users] set-generations, set-levels, set-members Is anyone using these commands for version 6.x? How are they used? Where is a dimension defined? Thanks, Joe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 15 14:06:58 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] set-generations, set-levels, set-members Date: Tue, 15 Jun 2004 12:05:16 -0700 These commands are for SQR for DDO, to use with multi-dimensional databases (I think SAP R/3 and Essbase). -----Original Message----- From: joe.story@comcast.net [mailto:joe.story@comcast.net] Sent: Tuesday, June 15, 2004 11:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] set-generations, set-levels, set-members Is anyone using these commands for version 6.x? How are they used? Where is a dimension defined? Thanks, Joe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 15 14:11:53 2004 Date: Tue, 15 Jun 2004 15:11:19 -0400 (EDT) From: "Kevin Laroche" Subject: RE: [sqr-users] Output both in PDF and Excel We had exactly the same problem with users getting confused between .csv and .xls and format problems on machines with different regional settings for the list separator. We now write directly to an excel spread sheet using a tab separator having adapted Ray Ontko's csv library. A report now looks like this #define XLS_FILE 2 #define OUT_MAX 500 do setup and other stuff here input $format 'NORMAL for report, XLS for Excel' if isblank($format) let $format = 'NORMAL' end-if if $format = 'XLS' let $out_name = 'C:\WINDOWS\TEMP\CFTS_Report.xls' open $out_name as {XLS_FILE} for-writing record={OUT_MAX}:vary status=#status if #status != 0 let $alert = 'Cannot open xls file' show $alert stop end-if !these are just titles for the report-write the data the same way do csv_set_string('Closed Investigation Files', $line) write {XLS_FILE} from $line do csv_set_string($vYear1, $line) write {XLS_FILE} from $line do csv_set_string('Box', $line) do csv_add_string('File Number', $line) do csv_add_string('Volume', $line) do csv_add_string('Filename', $line) do csv_add_string('Phase', $line) do csv_add_string('Closed Date', $line) write {XLS_FILE} from $line end-if and so on and then we include Ray's modified code here begin-procedure csv_set_string( $s , :$t ) if isnull( $s ) move '' to $t else let $t = $s end-if end-procedure begin-procedure csv_add_string( $s , :$t ) if isnull( $s ) let $t = $t || chr(9) else let $t = $t || chr(9) || $s end-if end-procedure We run the report with the command line flags to write an spf file to the temp directory and the excel file to the same folder and then call excel from oracle forms to open the excel spreadsheet. Kevin LaRoche Oracle Forms Developer Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 15 18:05:08 2004 From: "Ed Kelly" Date: Tue, 15 Jun 2004 23:00:31 +0000 Subject: [sqr-users] removing all special characters from a string I have a variant to translate approach that I use. Not that it is better, just another possibility. Let $Result = RTrim($InputValue, 'valid email characters here') If IsBlank($Result) Show 'Valid address.....' Else Show 'Invalid address....' End-If Of course neither of these approaches account for an address that is formatted incorrectly (such as ekelly@ekellly@ekelly.com). They only check to see if the set of characters used in the string are allowed in an email address. Ed _________________________________________________________________ MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 07:28:21 2004 From: "Gopa, Rajesh" Date: Wed, 16 Jun 2004 08:27:21 -0400 Subject: [sqr-users] Need a trailing space I am generating a space delimited .lis file. Last character should be a space. How can I achieve it in Sqr Version 3.0.7? I used -XTB and -PB but it does not work. I tried to rpad the field and print it ,even it does not work. Any help is appreciated. Thanks, Rajesh DISCLAIMER This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Trading Group may, at its discretion, monitor and review the content of all e-mail communications. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 07:57:32 2004 From: "the dragon" Subject: RE: [sqr-users] Need a trailing space Date: Wed, 16 Jun 2004 07:53:47 -0500 How are you creating your file? With a print, or with a write? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I am generating a space delimited .lis file. Last character should be a space. How can I achieve it in Sqr Version 3.0.7? I used -XTB and -PB but it does not work. I tried to rpad the field and print it ,even it does not work. Any help is appreciated. Thanks, Rajesh DISCLAIMER This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Trading Group may, at its discretion, monitor and review the content of all e-mail communications. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 08:02:11 2004 From: "Gopa, Rajesh" Subject: RE: [sqr-users] Need a trailing space Date: Wed, 16 Jun 2004 08:58:30 -0400 With print. -----Original Message----- From: sqr-users-bounces+rgopa=knighttrading.com@sqrug.org [mailto:sqr-users-bounces+rgopa=knighttrading.com@sqrug.org]On Behalf Of the dragon Sent: Wednesday, June 16, 2004 8:54 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Need a trailing space How are you creating your file? With a print, or with a write? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I am generating a space delimited .lis file. Last character should be a space. How can I achieve it in Sqr Version 3.0.7? I used -XTB and -PB but it does not work. I tried to rpad the field and print it ,even it does not work. Any help is appreciated. Thanks, Rajesh DISCLAIMER This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Trading Group may, at its discretion, monitor and review the content of all e-mail communications. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Trading Group may, at its discretion, monitor and review the content of all e-mail communications. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 09:43:04 2004 Date: Wed, 16 Jun 2004 07:41:43 -0700 (PDT) From: Krishna Subject: [sqr-users] RE: Date Validation Hi all, does anyone have suggestions for validating a set of dates reading from an input data file in SQR. I am looking for faster and less resource intensive method of validating dates when I read from the input file. The input file which I read will have 6 columns of date field and before I use these values in my processing I would like to validate the dates. Size of Input file will have around 2-3 million records. Your input will be very helpfull. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 10:19:32 2004 Subject: RE: [sqr-users] Need a trailing space Date: Wed, 16 Jun 2004 10:18:16 -0500 From: "Hins, Thomas D. \(HSC\)" Have you tried setting a variable to Char 32 and concantenaeting your varia= ble with your data? I have done this with line feed and carraige returns, = personally unless you really have data that space delimited will work with = I would use something like a tilda instead or as a recent post used a semic= olon. I have found data to sometimes contain semicolons so I tend to stick= with tilda.=20 Tom Hins Information Technology - Application Solutions University of Oklahoma Health Sciences Center P.O. Box 26901 Oklahoma City, OK 73190 Phone:(405) 271-2262 Ext. 50213 Fax: (405) 271-2352 (The information transmitted is intended only for the person or entity to w= hich it is addressed and may contain confidential and/or privileged materia= l. If you are not the intended recipient of this message you are hereby not= ified that any use, review, retransmission, dissemination, distribution, re= production or any action taken in reliance upon this message is prohibited.= If you received this in error, please contact the sender and delete the ma= terial from any computer. Any views expressed in this message are those of = the individual sender and may not necessarily reflect the views of the comp= any.) -----Original Message----- From: sqr-users-bounces+thomas-hins=3Douhsc.edu@sqrug.org [mailto:sqr-users-bounces+thomas-hins=3Douhsc.edu@sqrug.org]On Behalf Of Gopa, Rajesh Sent: Wednesday, June 16, 2004 7:59 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Need a trailing space With print. -----Original Message----- From: sqr-users-bounces+rgopa=3Dknighttrading.com@sqrug.org [mailto:sqr-users-bounces+rgopa=3Dknighttrading.com@sqrug.org]On Behalf Of the dragon Sent: Wednesday, June 16, 2004 8:54 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Need a trailing space How are you creating your file? With a print, or with a write? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting you= r=20 services for 40 hours a week, not purchasing your soul. Your time is the= =20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you= =20 can determine how it will be spent. Be careful lest you let other people= =20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I am generating a space delimited .lis file. Last character should be a=20 space. How can I achieve it in Sqr Version 3.0.7? I used -XTB and -PB but it does not work. I tried to rpad the field and print it ,even it does not work. Any help is appreciated. Thanks, Rajesh DISCLAIMER This e-mail, and any attachments thereto, is intended only for use by the= =20 addressee(s) named herein and may contain legally privileged and/or=20 confidential information. If you are not the intended recipient of this=20 e-mail, you are hereby notified that any dissemination, distribution or=20 copying of this e-mail, and any attachments thereto, is strictly prohibited. If you=20 have received this e-mail in error, please immediately notify me and=20 permanently delete the original and any copy of any e-mail and any printout= =20 thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The= =20 sender therefore does not accept liability for any errors or omissions in= =20 the contents of this message which arise as a result of e-mail transmission. NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Trading Group may, at its discretion, monitor and review the content= =20 of all e-mail communications. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER=20 This e-mail, and any attachments thereto, is intended only for use by the a= ddressee(s) named herein and may contain legally privileged and/or confiden= tial information. If you are not the intended recipient of this e-mail, you= are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you ha= ve received this e-mail in error, please immediately notify me and permanen= tly delete the original and any copy of any e-mail and any printout thereof= .=20 E-mail transmission cannot be guaranteed to be secure or error-free. The s= ender therefore does not accept liability for any errors or omissions in th= e contents of this message which arise as a result of e-mail transmission.= =20 NOTICE REGARDING PRIVACY AND CONFIDENTIALITY=20 Knight Trading Group may, at its discretion, monitor and review the content= of all e-mail communications. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 11:16:37 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Date Validation Date: Wed, 16 Jun 2004 09:14:48 -0700 While SQR has some built-in date functions, they "validate" dates by aborting your program. If you have a six digit date, you could do as follows: read 1 into ... $mmddyy:6 ... if translate($mmddyy, '0123456789', '') <> '' show $mmddyy ' has a non-digit character' else let #mm = substr($mmddyy, 1, 2) let #dd = substr($mmddyy, 3, 2) evaluate #mm when < 1 when > 12 show $mmddyy ' has a bad month' when = 2 if #dd < 1 or #dd > 29 show $mmddyy ' has a bad day' end-if if mod(to_number(substr($mmddyy, 5, 2)), 4) > 0 and #dd > 28 show $mmddyy ' has a bad day' end-if when = 4 when = 6 when = 9 when = 11 if #dd < 1 or #dd > 30 show $mmddyy ' has a bad day' end-if when-other if #dd < 1 or #dd > 31 show $mmddyy ' has a bad day' end-if end-evaluate -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Wednesday, June 16, 2004 7:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Hi all, does anyone have suggestions for validating a set of dates reading from an input data file in SQR. I am looking for faster and less resource intensive method of validating dates when I read from the input file. The input file which I read will have 6 columns of date field and before I use these values in my processing I would like to validate the dates. Size of Input file will have around 2-3 million records. Your input will be very helpfull. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 16 11:21:55 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] RE: Date Validation Date: Wed, 16 Jun 2004 11:20:57 -0500 I guess you can also using oracle's to_date function to validate the date too. select to_date('12/55/2004','MM/DD/YYYY') from dual; (this will give you error because of invalid day) put that in a procedure and use on-error to return error messages. that would be the simplest way i think. nicholas -----Original Message----- From: sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org [mailto:sqr-users-bounces+nicholas.chu=redprairie.com@sqrug.org]On Behalf Of Alexander, Steve Sent: Wednesday, June 16, 2004 11:15 AM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation While SQR has some built-in date functions, they "validate" dates by aborting your program. If you have a six digit date, you could do as follows: read 1 into ... $mmddyy:6 ... if translate($mmddyy, '0123456789', '') <> '' show $mmddyy ' has a non-digit character' else let #mm = substr($mmddyy, 1, 2) let #dd = substr($mmddyy, 3, 2) evaluate #mm when < 1 when > 12 show $mmddyy ' has a bad month' when = 2 if #dd < 1 or #dd > 29 show $mmddyy ' has a bad day' end-if if mod(to_number(substr($mmddyy, 5, 2)), 4) > 0 and #dd > 28 show $mmddyy ' has a bad day' end-if when = 4 when = 6 when = 9 when = 11 if #dd < 1 or #dd > 30 show $mmddyy ' has a bad day' end-if when-other if #dd < 1 or #dd > 31 show $mmddyy ' has a bad day' end-if end-evaluate -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Wednesday, June 16, 2004 7:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Hi all, does anyone have suggestions for validating a set of dates reading from an input data file in SQR. I am looking for faster and less resource intensive method of validating dates when I read from the input file. The input file which I read will have 6 columns of date field and before I use these values in my processing I would like to validate the dates. Size of Input file will have around 2-3 million records. Your input will be very helpfull. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 17 09:31:13 2004 From: "Bencke, Gina" Date: Thu, 17 Jun 2004 10:26:32 -0400 Subject: [sqr-users] Export.sqr for ODBC/SQL Server Does anyone have a copy of export.sqr that works for ODBC against a SQL Server database? The version delivered with PeopleSoft 8.8 for this environment is missing a procedure build_odbc_table. Gina Bencke FCE Reports Team email: ginabencke@forestcity.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 17 20:57:45 2004 From: "Sapitan, Mary Ann (MG)" Subject: RE: [sqr-users] RE: Date Validation Date: Thu, 17 Jun 2004 21:44:21 -0400 What methods have you tried so far? Thanks, Ma-an Sapitan -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Wednesday, June 16, 2004 10:42 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Hi all, does anyone have suggestions for validating a set of dates reading from an input data file in SQR. I am looking for faster and less resource intensive method of validating dates when I read from the input file. The input file which I read will have 6 columns of date field and before I use these values in my processing I would like to validate the dates. Size of Input file will have around 2-3 million records. Your input will be very helpfull. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 09:05:27 2004 Date: Fri, 18 Jun 2004 10:04:03 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] Output both in PDF and Excel This was helpful information for me, since I was working on exporting my report to Excel. Thanks for all the information. Actually, I was able to modify a nit of the code to avoid the call to the 2 csv procedures. Thought that I would pass my code along, just in case it benefits some of you. !Variables for the Export operation #DEFINE XLS_FILE 2 #DEFINE OUT_MAX 500 BEGIN-PROCEDURE Export_Excel ENCODE '<009>' INTO $separator !Separator character is TAB Let $blank_col = '' Let $vDateRange = $run_start_date || ' To ' || $run_end_date Let $out_name = 'C:\TEMP\EXCEL_EXPORT.xls' OPEN $out_name as {XLS_FILE} FOR-WRITING RECORD={OUT_MAX}:VARY STATUS=#status IF #status <> 0 Let $alert = 'Cannot OPEN xls file: ' || $out_name #Debug Do Log ($alert) STOP END-IF Let $message = 'BEGIN Export to XLS file - <' || $out_name || '>' #Debug Do Log ($message) Let $line = 'Report Title' WRITE {XLS_FILE} FROM $line Let $line = $vDateRange WRITE {XLS_FILE} FROM $line Let $line = ' ' WRITE {XLS_FILE} FROM $line !Write the data from an already extracted temp table to the xls file. DO Export_Data Let $message = 'COMPLETED Export to XLS file - <' || $out_name || '>' #Debug Do Log ($message) END-PROCEDURE Export_Excel BEGIN-PROCEDURE Export_Data Let $Field_1 = 'Field_1 Name' Let $Field_2 = 'Field_2 Name' Let $Field_3 = 'Field_3 Name' Let $Field_4 = 'Field_4 Name' Let $Field_5 = 'Field_5 Name' Let $Field_6 = 'Field_6 Name' STRING $Field_1 $Field_2 $Field_3 $Field_4 $Field_5 $Field_6 BY $separator INTO $col_hds WRITE {XLS_FILE} FROM $col_hds Let $curr_Field_1_Val = '' Let $prev_Field_1_Val = '' Let #first_advertiser = {TRUE} BEGIN-SELECT Field_1 &Field_1 Field_2 &Field_2 Field_3 &Field_3 Field_5 &Field_5 Field_6 &Field_6 Field_4 &Field_4 Move &Field_1 To $curr_Field_1_Val !To handle the page break between differing advertisers. !I am writing 2 blank rows to reflect the page breaks in the printed report. !This could be any other relevant field in your reports. If #first_advertiser = {TRUE} Let #first_advertiser = {FALSE} Let $prev_Field_1_Val = $curr_Field_1_Val ELSE IF $curr_Field_1_Val <> $prev_Field_1_Val WRITE {XLS_FILE} FROM $blank_col WRITE {XLS_FILE} FROM $blank_col Let $prev_Field_1_Val = $curr_Field_1_Val END-IF END-IF STRING &Field_1 &Field_2 &Field_3 &Field_4 &Field_5 &Field_6 BY $separator INTO $line WRITE {XLS_FILE} FROM $line FROM SCHEMA.TMP_TABLE_NAME WHERE RPT_RUN_ID = #rpt_run_id ORDER BY 1, 2, 3, 4 END-SELECT END-PROCEDURE Export_Data BEGIN-PROCEDURE Log ($Message) LET $LogLine = EDIT(DateNow(),'mm/dd/yyyy hh:mi:ss am') || ' ' || $Message SHOW $LogLine END-PROCEDURE Log Thanks, Jessie >>> bydesign@magma.ca 06/15/2004 3:11:19 PM >>> We had exactly the same problem with users getting confused between .csv and .xls and format problems on machines with different regional settings for the list separator. We now write directly to an excel spread sheet using a tab separator having adapted Ray Ontko's csv library. A report now looks like this #define XLS_FILE 2 #define OUT_MAX 500 do setup and other stuff here input $format 'NORMAL for report, XLS for Excel' if isblank($format) let $format = 'NORMAL' end-if if $format = 'XLS' let $out_name = 'C:\WINDOWS\TEMP\CFTS_Report.xls' open $out_name as {XLS_FILE} for-writing record={OUT_MAX}:vary status=#status if #status != 0 let $alert = 'Cannot open xls file' show $alert stop end-if !these are just titles for the report-write the data the same way do csv_set_string('Closed Investigation Files', $line) write {XLS_FILE} from $line do csv_set_string($vYear1, $line) write {XLS_FILE} from $line do csv_set_string('Box', $line) do csv_add_string('File Number', $line) do csv_add_string('Volume', $line) do csv_add_string('Filename', $line) do csv_add_string('Phase', $line) do csv_add_string('Closed Date', $line) write {XLS_FILE} from $line end-if and so on and then we include Ray's modified code here begin-procedure csv_set_string( $s , :$t ) if isnull( $s ) move '' to $t else let $t = $s end-if end-procedure begin-procedure csv_add_string( $s , :$t ) if isnull( $s ) let $t = $t || chr(9) else let $t = $t || chr(9) || $s end-if end-procedure We run the report with the command line flags to write an spf file to the temp directory and the excel file to the same folder and then call excel from oracle forms to open the excel spreadsheet. Kevin LaRoche Oracle Forms Developer Ottawa Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 09:35:14 2004 Date: Fri, 18 Jun 2004 07:32:57 -0700 (PDT) From: Krishna Subject: [sqr-users] RE: Date Validation Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure. I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 09:39:29 2004 From: Peter Burton Date: Fri, 18 Jun 2004 07:36:31 -0700 Subject: RE: [sqr-users] RE: Date Validation Krishna, You can always write your own user function to work with the LET function. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Krishna Sent: Friday, June 18, 2004 10:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure. I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 10:31:41 2004 From: James Womeldorf Subject: RE: [sqr-users] RE: Date Validation Date: Fri, 18 Jun 2004 10:30:35 -0500 Hi Krishna, If there are a relatively small number of actual dates represented in the file (lots of duplicates) perhaps you could store validated dates in a string which delimits them with some odd character that you would NEVER find in the date field. Then, as a first test use INSTR() to see if a date is in the validated list. If not there, then check using Oracle. It should cut the number of database calls drastically. The only thing you would have to watch is that the validation string length did not exceed the maximum string length for SQR (32767). If the string length would be exceed then just avoid adding any more dates to it. Jim Womeldorf -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Friday, June 18, 2004 9:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure. I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 10:54:09 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Date Validation Date: Fri, 18 Jun 2004 08:52:35 -0700 Krishna, it was unclear whether you said there were 6 dates in each line of the input file or there were six characters in each date and one date one each line of the input file. Also, are the dates within a limited range of time? If the dates are six characters (no century) then there are only 36525 valid values repeated over and over for millions of dates. Unfortuneately, SQR has no built-in date validation function, but there may be programming tricks that are simpler than the code I sent you. What can you tell us about the dates? How are they formatted and is there any restriction to the values? -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, June 18, 2004 8:31 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation Hi Krishna, If there are a relatively small number of actual dates represented in the file (lots of duplicates) perhaps you could store validated dates in a string which delimits them with some odd character that you would NEVER find in the date field. Then, as a first test use INSTR() to see if a date is in the validated list. If not there, then check using Oracle. It should cut the number of database calls drastically. The only thing you would have to watch is that the validation string length did not exceed the maximum string length for SQR (32767). If the string length would be exceed then just avoid adding any more dates to it. Jim Womeldorf -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Friday, June 18, 2004 9:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure. I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 11:29:41 2004 Subject: RE: [sqr-users] RE: Date Validation Date: Fri, 18 Jun 2004 11:28:39 -0500 From: "Knapp, Richard" I haven't been paying much attention to this thread so if I'm repeating something that has already been said, please forgive me.=20=20 If the dates are 6 characters - 2 for the day, 2 for the month and 2 for the year, this is cake. Split up the string and convert the 2 char parts to numbers. If all parts convert without error (no letters or special chars), then test that the day is <=3D 31, test that the month <=3D 12 and forget the year because any value will be OK. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, June 18, 2004 10:53 AM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation=20 Krishna, it was unclear whether you said there were 6 dates in each line of the input file or there were six characters in each date and one date one each line of the input file. Also, are the dates within a limited range of time? If the dates are six characters (no century) then there are only 36525 valid values repeated over and over for millions of dates. Unfortuneately, SQR has no built-in date validation function, but there may be programming tricks that are simpler than the code I sent you. What can you tell us about the dates? How are they formatted and is there any restriction to the values? -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, June 18, 2004 8:31 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation=20 Hi Krishna, If there are a relatively small number of actual dates represented in the file (lots of duplicates) perhaps you could store validated dates in a string which delimits them with some odd character that you would NEVER find in the date field. Then, as a first test use INSTR() to see if a date is in the validated list. If not there, then check using Oracle. It should cut the number of database calls drastically.=20=20 The only thing you would have to watch is that the validation string length did not exceed the maximum string length for SQR (32767). If the string length would be exceed then just avoid adding any more dates to it. Jim Womeldorf -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Friday, June 18, 2004 9:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation=20 Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure.=20 I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file.=20 =09=09 --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 12:34:57 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Date Validation Date: Fri, 18 Jun 2004 10:31:49 -0700 Don't forget that month and day cannot be zero and none of the 2 character strings may include a minus sign or decimal point. Also, testing day against 31 is a good way to catch some invalid dates, but to catch them all, we have to test for the actual last day of each month, including leap year February. I wrote the appropriate code a few days ago. Another possibility is to set up an array or a string of 1231 positions. Map a 0, 1, or 2 into each position based on whether the corresponding date is invalid (May 32 = 532), valid (June 28 = 628), or possibly valid (Feb 29 = 229). Extract the month and day in a single variable, $mmdd, and proceed as follows: move $mmdd to #mmdd if translate($mmdd, '0123456789', '') <> '' or range(#mmdd, 101, 1231) = 0 or valid.day(#mmdd) = 0 or (#mmdd = 229 and mod(#year, 4) > 0) show $mmddyy ' is a bad date' end-if -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, June 18, 2004 9:29 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] RE: Date Validation I haven't been paying much attention to this thread so if I'm repeating something that has already been said, please forgive me. If the dates are 6 characters - 2 for the day, 2 for the month and 2 for the year, this is cake. Split up the string and convert the 2 char parts to numbers. If all parts convert without error (no letters or special chars), then test that the day is <= 31, test that the month <= 12 and forget the year because any value will be OK. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, June 18, 2004 10:53 AM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation Krishna, it was unclear whether you said there were 6 dates in each line of the input file or there were six characters in each date and one date one each line of the input file. Also, are the dates within a limited range of time? If the dates are six characters (no century) then there are only 36525 valid values repeated over and over for millions of dates. Unfortuneately, SQR has no built-in date validation function, but there may be programming tricks that are simpler than the code I sent you. What can you tell us about the dates? How are they formatted and is there any restriction to the values? -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, June 18, 2004 8:31 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation Hi Krishna, If there are a relatively small number of actual dates represented in the file (lots of duplicates) perhaps you could store validated dates in a string which delimits them with some odd character that you would NEVER find in the date field. Then, as a first test use INSTR() to see if a date is in the validated list. If not there, then check using Oracle. It should cut the number of database calls drastically. The only thing you would have to watch is that the validation string length did not exceed the maximum string length for SQR (32767). If the string length would be exceed then just avoid adding any more dates to it. Jim Womeldorf -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Friday, June 18, 2004 9:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure. I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 15:16:47 2004 From: "Miller, Danika" Date: Fri, 18 Jun 2004 16:14:15 -0400 Subject: [sqr-users] On-breaks Problem - I think My run control page asks if the report should be run by either A, B, C, D, or E. A&B share the same select statement (diff. where clause), and C, D, & E share the same select statement (diff. where clause). And there's a radio button asking how the report should be grouped: either by country or start date. There are many possible variances in running this report: A - Group by country A - Group by start date B - Group by country B - Group by start date C, D, E - etc. Would I have to have a different select statement for each and every possible combination? For example, if A and country do select 1 with an on-break on country if A and start date do select 2 with an on-break on start date if B and country do select 3 with an on-break on country if B and start date do select 4 with an on-break on start date Any ideas?????????? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 17:06:24 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] On-breaks Problem - I think Date: Fri, 18 Jun 2004 13:42:46 -0700 This is a reason dynamic variables were created. Any part of your SQL statement can be replaced with a dynamic variable that you can set within the program. The dynamic variable should appear within your SQL in the form [$variable]. Example: let $zip = '12345' let $zipcode = 'and C.ZIPCODE = $zip' begin-select ... from CUSTOMER C where C.STATE = 'MA' [$zipcode] end-select Notice that the text of $zipcode becomes part of a SQL statement and the SQL statement contains a condition that compares the value of a column (C.ZIPCODE) to the value of a variable ($zip). SQR will send a SQL statement to the database manager in the form: select ... from CUSTOMER C where C.STATE = 'MA' and C.ZIPCODE = :1 SQR will also send '12345' as the value of bind variable :1. -----Original Message----- From: Miller, Danika [mailto:MillerD2@ndu.edu] Sent: Friday, June 18, 2004 1:14 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] On-breaks Problem - I think My run control page asks if the report should be run by either A, B, C, D, or E. A&B share the same select statement (diff. where clause), and C, D, & E share the same select statement (diff. where clause). And there's a radio button asking how the report should be grouped: either by country or start date. There are many possible variances in running this report: A - Group by country A - Group by start date B - Group by country B - Group by start date C, D, E - etc. Would I have to have a different select statement for each and every possible combination? For example, if A and country do select 1 with an on-break on country if A and start date do select 2 with an on-break on start date if B and country do select 3 with an on-break on country if B and start date do select 4 with an on-break on start date Any ideas?????????? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jun 18 17:23:41 2004 Date: Fri, 18 Jun 2004 15:22:40 -0700 (PDT) From: Srinivas Amaragani Subject: [sqr-users] Export data into Excel....... Hi, I need to export data into Excel in SQR. Right now we are exporting data into CSV file. Is there anyway to directly export data into .xls file. Please advice me. Thanks, --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jun 19 11:28:40 2004 From: "Edwin Hommes" Subject: Re: [sqr-users] Export data into Excel....... Date: Sat, 19 Jun 2004 18:27:14 +0200 just rename your output file to an xls. Excel will open it as an excel sheet even if it's only a comma delimited file ----- Original Message ----- From: "Srinivas Amaragani" To: Sent: Saturday, 19 June, 2004 00:22 Subject: [sqr-users] Export data into Excel....... > Hi, > I need to export data into Excel in SQR. > Right now we are exporting data into CSV file. Is there anyway to directly export data into .xls file. Please advice me. > > Thanks, > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Jun 20 08:58:35 2004 Date: Sun, 20 Jun 2004 06:56:15 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Export data into Excel....... I think it's not needed, Excel will open csv anyway by default. HTH Datta. --- Edwin Hommes wrote: > just rename your output file to an xls. > Excel will open it as an excel sheet even if it's only a comma > delimited > file > > ----- Original Message ----- > From: "Srinivas Amaragani" > To: > Sent: Saturday, 19 June, 2004 00:22 > Subject: [sqr-users] Export data into Excel....... > > > > Hi, > > I need to export data into Excel in SQR. > > Right now we are exporting data into CSV file. Is there anyway to > directly > export data into .xls file. Please advice me. > > > > Thanks, > > > > > > --------------------------------- > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > > > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Jun 20 21:12:33 2004 From: "Sapitan, Mary Ann (MG)" Subject: RE: [sqr-users] RE: Date Validation Date: Sun, 20 Jun 2004 21:54:50 -0400 This code also checks for leap year; I also added flags you can use in other procedure (when $Valid_Dt_Flag = 'Y', continue processing). I'm just not sure if this will be faster or slower than the other pieces of code everyone has suggested. ******************************************* begin-procedure VALIDATE-DATE move 'Y' to $Valid_Dt_Flag ! Depending on the Date format of your input file, parse the date to the following numeric variables ! #Month, #Day, #Year ! Validate the Month if #Month = 0 or #Month > 12 move 'N' to $Valid_Dt_Flag end-if ! Validate Day of the Month if Month is valid if $Valid_Dt_Flag = 'Y' if #Month = 2 move 28 to #MonthDays if (((mod(#Year,4) = 0) and (mod(#Year,100) != 0)) or ! Leap Year check (mod(#Year,400) = 0)) add 1 to #MonthDays end-if else if #Month = 4 or #Month = 6 or #Month = 9 or #Month = 11 move 30 to #MonthDays else move 31 to #MonthDays end-if end-if end-if if #Day = 0 or #Day > #MonthDays move 'N' to $Valid_Dt_Flag end-if if $Valid_Dt_Flag = 'Y' [Continue Processing] end-if end-procedure VALIDATE-DATE ******************************************* Hope this helps! :) Thanks, Ma-an -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Saturday, June 19, 2004 1:32 AM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation Don't forget that month and day cannot be zero and none of the 2 character strings may include a minus sign or decimal point. Also, testing day against 31 is a good way to catch some invalid dates, but to catch them all, we have to test for the actual last day of each month, including leap year February. I wrote the appropriate code a few days ago. Another possibility is to set up an array or a string of 1231 positions. Map a 0, 1, or 2 into each position based on whether the corresponding date is invalid (May 32 = 532), valid (June 28 = 628), or possibly valid (Feb 29 = 229). Extract the month and day in a single variable, $mmdd, and proceed as follows: move $mmdd to #mmdd if translate($mmdd, '0123456789', '') <> '' or range(#mmdd, 101, 1231) = 0 or valid.day(#mmdd) = 0 or (#mmdd = 229 and mod(#year, 4) > 0) show $mmddyy ' is a bad date' end-if -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, June 18, 2004 9:29 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] RE: Date Validation I haven't been paying much attention to this thread so if I'm repeating something that has already been said, please forgive me. If the dates are 6 characters - 2 for the day, 2 for the month and 2 for the year, this is cake. Split up the string and convert the 2 char parts to numbers. If all parts convert without error (no letters or special chars), then test that the day is <= 31, test that the month <= 12 and forget the year because any value will be OK. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, June 18, 2004 10:53 AM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation Krishna, it was unclear whether you said there were 6 dates in each line of the input file or there were six characters in each date and one date one each line of the input file. Also, are the dates within a limited range of time? If the dates are six characters (no century) then there are only 36525 valid values repeated over and over for millions of dates. Unfortuneately, SQR has no built-in date validation function, but there may be programming tricks that are simpler than the code I sent you. What can you tell us about the dates? How are they formatted and is there any restriction to the values? -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, June 18, 2004 8:31 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] RE: Date Validation Hi Krishna, If there are a relatively small number of actual dates represented in the file (lots of duplicates) perhaps you could store validated dates in a string which delimits them with some odd character that you would NEVER find in the date field. Then, as a first test use INSTR() to see if a date is in the validated list. If not there, then check using Oracle. It should cut the number of database calls drastically. The only thing you would have to watch is that the validation string length did not exceed the maximum string length for SQR (32767). If the string length would be exceed then just avoid adding any more dates to it. Jim Womeldorf -----Original Message----- From: Krishna [mailto:knookula@yahoo.com] Sent: Friday, June 18, 2004 9:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Date Validation Well, currently I am validating all the dates from the input file by sending the dates one at a time to Oracle and checking them whether the dates are valid. If the the date is invalid then I am trapping the invalid date from the ON-ERROR procedure. I am trying to see if there are any other better method of date validations in SQR. Number of records in my input file like I said earlier is 2-3 million. The way I am currently achieving the task is by sending a request to Oracle six times one for each date, since I have to write an error log specifying which date is invalid in the input file for every record read from the input file. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 21 04:55:30 2004 From: vaibhav_jindal@non.agilent.com Date: Mon, 21 Jun 2004 17:52:37 +0800 Subject: [sqr-users] Problem with UNION Clause in SQR( with positional parameters) Hi I want to use UNION in two queries but its not working .. Can someone please guide me why is this not working ? Heres the code that is giving me the prob!!! BEGIN-PROCEDURE QUERY_TOP Print-Direct printer=html '%%ResetBorder' BEGIN-SELECT DISTINCT Alter-Printer Font=903 Point-Size=10 TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) &ORACLE_LINE (15,350) TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550) TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) NEXT-LISTING FROM oe_order_headers_all ooha, oe_order_lines_all oola, oe_order_sources oos, oe_transaction_types_tl ottt, hr_all_organization_units_tl haou WHERE ooha.header_id = oola.header_id AND oola.ship_from_org_id = 128 AND ooha.org_id = haou.organization_id UNION SELECT DISTINCT TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1), ooha.orig_sys_document_ref &LEGACY_ORDER (15,150), CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) &ORACLE_LINE (15,350), TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) NEXT-LISTING FROM oe_order_headers_all ooha, oe_order_lines_all oola, oe_order_sources oos, oe_transaction_types_tl ottt, hr_all_organization_units_tl haou, hr_all_organization_units_tl haou2 WHERE ooha.header_id = oola.header_id AND oola.ship_from_org_id = 128 AND ooha.org_id = haou.organization_id AND haou.LANGUAGE = 'US' AND oola.INTMED_SHIP_TO_ORG_ID = haou2.organization_id (+) End-Select Print-Direct printer=html '%%End-Select' Next-Listing Print-Direct printer=html '%%ResetBorder' End-Procedure The error coming is : (SQR 5528) ORACLE OCIStmtExecute error 923 in cursor 5: ORA-00923: FROM keyword not found where expected SQL: SELECT DISTINCT TO_CHAR(ooha.order_number), ooha.orig_sys_document_ref, CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu mber,'.'))),oola.service_number), TRANSLATE(oos.name,',',' '), TRANSLATE(ottt.name,',',' ') FROM oe_order_headers_all ooha, oe_order_lines_all oola, oe_order_sources oos, oe_transaction_types_tl ottt, hr_all_organization_units_tl haou WHERE ooha.header_id = oola.header_id AND oola.ship_from_org_id = 128 AND ooha.org_id = haou.organization_id UNION SELECT DISTINCT TO_CHAR(ooha.order_number) :1 (15,1), ooha.orig_sys_document_ref :2 (15,150), CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu mber,'.'))),oola.service_number) :3 (15,350), TRANSLATE(oos.name,',',' ') :4 (15,550), TRANSLATE(ottt.name,',',' ') :5 (15,750) NEXT-LISTING FROM oe_order_headers_all ooha, oe_order_lines_all oola, oe_order_sources oos, oe_transaction_types_tl ottt, hr_all_organization_units_tl haou, hr_all_organization_units_tl haou2 WHERE ooha.header_id = oola.header_id AND oola.ship_from_org_id = 128 AND ooha.org_id = haou.organization_id AND haou.LANGUAGE = 'US' AND oola.INTMED_SHIP_TO_ORG_ID = haou2.organization_id (+) Thanks & Regards Vaibhav Gupta Business Intelligence and Enterprise Reporting TCS @ Agilent Technologies _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 21 05:07:35 2004 Date: Mon, 21 Jun 2004 03:05:06 -0700 (PDT) From: Darshil Mehta Subject: Re: [sqr-users] Problem with UNION Clause in SQR( with positional parameters) Vaibhav, I guess you're missing one , in your first query. The line in 1st query " TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550)" should be " TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550)," Please see below : ---------------------------------------------- BEGIN-PROCEDURE QUERY_TOP Print-Direct printer=html '%%ResetBorder' BEGIN-SELECT DISTINCT Alter-Printer Font=903 Point-Size=10 TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) &ORACLE_LINE (15,350) TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) NEXT-LISTING FROM ---------------------------------------------- I hope it works. Darshil --- vaibhav_jindal@non.agilent.com wrote: > Hi > I want to use UNION in two queries but its not > working .. Can someone please guide me why is this > not working ? > Heres the code that is giving me the prob!!! > > BEGIN-PROCEDURE QUERY_TOP > Print-Direct printer=html '%%ResetBorder' > BEGIN-SELECT DISTINCT > Alter-Printer Font=903 Point-Size=10 > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > &ORACLE_LINE (15,350) > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550) > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > NEXT-LISTING > FROM > oe_order_headers_all ooha, > oe_order_lines_all oola, > oe_order_sources oos, > oe_transaction_types_tl ottt, > hr_all_organization_units_tl haou > > WHERE > ooha.header_id = oola.header_id > AND oola.ship_from_org_id = 128 > AND ooha.org_id = haou.organization_id > > > UNION SELECT DISTINCT > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1), > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150), > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > &ORACLE_LINE (15,350), > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > NEXT-LISTING > FROM > oe_order_headers_all ooha, > oe_order_lines_all oola, > oe_order_sources oos, > oe_transaction_types_tl ottt, > hr_all_organization_units_tl haou, > hr_all_organization_units_tl haou2 > > WHERE > ooha.header_id = oola.header_id > AND oola.ship_from_org_id = 128 > AND ooha.org_id = haou.organization_id > AND haou.LANGUAGE = 'US' > AND oola.INTMED_SHIP_TO_ORG_ID = > haou2.organization_id (+) > > End-Select > Print-Direct printer=html '%%End-Select' > Next-Listing > Print-Direct printer=html '%%ResetBorder' > End-Procedure > > > > > The error coming is : > > > (SQR 5528) ORACLE OCIStmtExecute error 923 in cursor > 5: > ORA-00923: FROM keyword not found where expected > SQL: SELECT DISTINCT TO_CHAR(ooha.order_number), > ooha.orig_sys_document_ref, > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu > > mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu > mber,'.'))),oola.service_number), > TRANSLATE(oos.name,',',' '), > TRANSLATE(ottt.name,',',' ') FROM > oe_order_headers_all ooha, > oe_order_lines_all oola, oe_order_sources oos, > oe_transaction_types_tl > ottt, hr_all_organization_units_tl haou WHERE > ooha.header_id = > oola.header_id AND oola.ship_from_org_id = 128 > AND ooha.org_id = > haou.organization_id UNION SELECT DISTINCT > TO_CHAR(ooha.order_number) :1 > (15,1), ooha.orig_sys_document_ref :2 > (15,150), > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu > > mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu > mber,'.'))),oola.service_number) :3 (15,350), > TRANSLATE(oos.name,',',' ') > :4 (15,550), TRANSLATE(ottt.name,',',' ') :5 > (15,750) NEXT-LISTING FROM > oe_order_headers_all ooha, oe_order_lines_all > oola, oe_order_sources > oos, oe_transaction_types_tl ottt, > hr_all_organization_units_tl haou, > hr_all_organization_units_tl haou2 WHERE > ooha.header_id = oola.header_id > AND oola.ship_from_org_id = 128 AND > ooha.org_id = haou.organization_id > AND haou.LANGUAGE = 'US' AND > oola.INTMED_SHIP_TO_ORG_ID = > haou2.organization_id (+) > > Thanks & Regards > > Vaibhav Gupta > Business Intelligence and Enterprise Reporting > TCS @ Agilent Technologies > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 21 07:10:28 2004 From: Ray Ontko Date: Mon, 21 Jun 2004 07:07:15 -0500 Subject: Re: [sqr-users] Problem with UNION Clause in SQR( with positional parameters) Vaibhav, Darshil, The "union" portion of your sql statement should look like a normal SQL statement. It should not use the modified SQR syntax. UNION SELECT DISTINCT TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1), ooha.orig_sys_document_ref &LEGACY_ORDER (15,150), ... Should be: UNION SELECT DISTINCT TO_CHAR(ooha.order_number) , ooha.orig_sys_document_ref ... Ray On Mon, Jun 21, 2004 at 03:05:06AM -0700, Darshil Mehta wrote: > Vaibhav, > > I guess you're missing one , in your first query. The > line in 1st query " TRANSLATE(oos.name,',',' ') > &ORDER_SOURCE (15,550)" should be > > " TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550)," > > Please see below : > ---------------------------------------------- > BEGIN-PROCEDURE QUERY_TOP > Print-Direct printer=html '%%ResetBorder' > BEGIN-SELECT DISTINCT > Alter-Printer Font=903 Point-Size=10 > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > &ORACLE_LINE (15,350) > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > NEXT-LISTING > FROM > ---------------------------------------------- > > I hope it works. > > Darshil > > --- vaibhav_jindal@non.agilent.com wrote: > > Hi > > I want to use UNION in two queries but its not > > working .. Can someone please guide me why is this > > not working ? > > Heres the code that is giving me the prob!!! > > > > BEGIN-PROCEDURE QUERY_TOP > > Print-Direct printer=html '%%ResetBorder' > > BEGIN-SELECT DISTINCT > > Alter-Printer Font=903 Point-Size=10 > > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) > > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > > &ORACLE_LINE (15,350) > > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550) > > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > > NEXT-LISTING > > FROM > > oe_order_headers_all ooha, > > oe_order_lines_all oola, > > oe_order_sources oos, > > oe_transaction_types_tl ottt, > > hr_all_organization_units_tl haou > > > > WHERE > > ooha.header_id = oola.header_id > > AND oola.ship_from_org_id = 128 > > AND ooha.org_id = haou.organization_id > > > > > > UNION SELECT DISTINCT > > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1), > > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150), > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > > &ORACLE_LINE (15,350), > > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), > > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > > NEXT-LISTING > > FROM > > oe_order_headers_all ooha, > > oe_order_lines_all oola, > > oe_order_sources oos, > > oe_transaction_types_tl ottt, > > hr_all_organization_units_tl haou, > > hr_all_organization_units_tl haou2 > > > > WHERE > > ooha.header_id = oola.header_id > > AND oola.ship_from_org_id = 128 > > AND ooha.org_id = haou.organization_id > > AND haou.LANGUAGE = 'US' > > AND oola.INTMED_SHIP_TO_ORG_ID = > > haou2.organization_id (+) > > > > End-Select > > Print-Direct printer=html '%%End-Select' > > Next-Listing > > Print-Direct printer=html '%%ResetBorder' > > End-Procedure > > > > > > > > > > The error coming is : > > > > > > (SQR 5528) ORACLE OCIStmtExecute error 923 in cursor > > 5: > > ORA-00923: FROM keyword not found where expected > > SQL: SELECT DISTINCT TO_CHAR(ooha.order_number), > > ooha.orig_sys_document_ref, > > > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu > > > > > mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu > > mber,'.'))),oola.service_number), > > TRANSLATE(oos.name,',',' '), > > TRANSLATE(ottt.name,',',' ') FROM > > oe_order_headers_all ooha, > > oe_order_lines_all oola, oe_order_sources oos, > > oe_transaction_types_tl > > ottt, hr_all_organization_units_tl haou WHERE > > ooha.header_id = > > oola.header_id AND oola.ship_from_org_id = 128 > > AND ooha.org_id = > > haou.organization_id UNION SELECT DISTINCT > > TO_CHAR(ooha.order_number) :1 > > (15,1), ooha.orig_sys_document_ref :2 > > (15,150), > > > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu > > > > > mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu > > mber,'.'))),oola.service_number) :3 (15,350), > > TRANSLATE(oos.name,',',' ') > > :4 (15,550), TRANSLATE(ottt.name,',',' ') :5 > > (15,750) NEXT-LISTING FROM > > oe_order_headers_all ooha, oe_order_lines_all > > oola, oe_order_sources > > oos, oe_transaction_types_tl ottt, > > hr_all_organization_units_tl haou, > > hr_all_organization_units_tl haou2 WHERE > > ooha.header_id = oola.header_id > > AND oola.ship_from_org_id = 128 AND > > ooha.org_id = haou.organization_id > > AND haou.LANGUAGE = 'US' AND > > oola.INTMED_SHIP_TO_ORG_ID = > > haou2.organization_id (+) > > > > Thanks & Regards > > > > Vaibhav Gupta > > Business Intelligence and Enterprise Reporting > > TCS @ Agilent Technologies > > > > > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 21 08:42:37 2004 Date: Mon, 21 Jun 2004 09:41:11 -0400 From: "George Jansen" Subject: Re: [sqr-users] Problem with UNION Clause in SQR( with positionalparameters) Not really SQR issues, SQL issues, but addressing them could make the SQR problems easier to see: 1. Oracle will already throw away duplicates in a union unless you specify UNION ALL. In other words you don't need to say DISTINCT. See example 1 below. 2. I'm trying but failing to imagine what the UNION practically accomplishes. If you run SELECT * FROM superset UNION SELECT * FROM subset Logically the result must be the same as SELECT * FROM superset. See example 2 below. 3. What is the point of using an outer join when no columns from the outer join find their way into the result set? See example 3 below. EXAMPLE 1: SQL> select * from bogus; AL -- a a a a SQL> select * from bogus 2 union 3 select * from bogus; AL -- a EXAMPLE 2: SQL> GET /tmp/bogoid2 1 SELECT * FROM 2 ( 3 (SELECT e.* 4 FROM emp e, dept d 5 WHERE e.deptno = d.deptno) 6 MINUS 7 (SELECT e.* 8 FROM emp e, dept d 9 WHERE e.deptno = d.deptno 10 UNION 11 SELECT e.* 12 FROM emp e, dept d 13 WHERE e.deptno = d.deptno 14 AND d.loc = 'CHICAGO' 15 ) 16* ) SQL> / no rows selected EXAMPLE 3: SQL> SELECT DEPTNO FROM DEPT MINUS SELECT DEPTNO FROM EMP; DEPTNO ---------- 40 SQL> get /tmp/bogoid3.sql 1 SELECT * FROM 2 ( 3 SELECT e.* 4 FROM emp e, dept d 5 WHERE e.deptno = d.deptno(+) 6 MINUS 7 SELECT e.* 8 FROM emp e, dept d 9 WHERE e.deptno = d.deptno 10* ) SQL> / no rows selected _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 21 15:51:51 2004 Date: Mon, 21 Jun 2004 13:49:25 -0700 (PDT) From: Srinivas Amaragani Subject: Re: [sqr-users] Export data into Excel....... You are right we can rename to .xls when we open CSV file in Excel, but here my requirement is different..let me explain you what we are doing exactly. We are scheduling sqr reports on one scheduler and keeping pdf,csv outputs in brio repositories. For users access we created a EIS Bqy, this bqy is allows access users to pre- runned pdf and csv files from repository. So why i need .xls file ??? Brio EIS section i can format .xls file, but i can't format .csv file. Here we are generating 100's of csv files , there is no chance to change .csv to .xls because everything is automated. Schedule SQR Reports --> After run (Sits out put in Brio Repository) --> Browser(User access reports via EIS Interface or DashBoard). I hope you understand when we export data into .CSV file 1) When file open -- its open in Notepad until we setup path to excel(select file open with Excel, atleast one time) 2) Column length not fit into cell width and can't format bold etc., things. Brio Designer we can format .XLS file using JOOLE Script. I hope now you understand my problem.....thanks for your reply. Srini Edwin Hommes wrote:just rename your output file to an xls. Excel will open it as an excel sheet even if it's only a comma delimited file ----- Original Message ----- From: "Srinivas Amaragani" To: Sent: Saturday, 19 June, 2004 00:22 Subject: [sqr-users] Export data into Excel....... > Hi, > I need to export data into Excel in SQR. > Right now we are exporting data into CSV file. Is there anyway to directly export data into .xls file. Please advice me. > > Thanks, > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 01:43:56 2004 Date: Tue, 22 Jun 2004 12:14:01 +0530 From: sheetalk Subject: [sqr-users] compatibility peopletools 8.15 & SQR 4.00.5000 Hi All, We are working on peoplesoft financials : ps 8 sp2. We have peopletools 8.15, oracle 8.1.7.0.0 & SQR version is 4.00.5000. Are there any compatibility issues for this combination coz i'm facing error ORA-01406 with erratic behavior. Last time Ray suggested about LONGSPACE=32766 and it helped, however, now the error seems to pop again in many sqrs. Thanks in advance for help ! Regards, Sheetal. ********************************************************* Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 05:55:47 2004 From: "Steve Cavill" Subject: RE: [Potential SPAM] RE: [sqr-users] RE: Creating Menus in SQR 6.1 Date: Tue, 22 Jun 2004 20:52:10 +1000 There's no way I can think of using purely SQR, but creating input menu screens in VB, Javascript, jsp or even excel etc is pretty straightforward, and you could then call sqr from the other app. Do you have any other Brio products (Brio.portal or Foundation?) that functionality is built into those products. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org]On Behalf Of jeff_molloy@adp.com Sent: Tuesday, 8 June 2004 10:05 PM To: sqr-users@sqrug.org Subject: [Potential SPAM] RE: [sqr-users] RE: Creating Menus in SQR 6.1 Is it possible to create a menu system using an input statement? What I am wondering is can you in any way modify the input dialog box to give a menu option instead of just text saying input $text 'Enter blah, blah blah, ex: 1 - HR, 2 - JOB, etc..' What I would like to do is have it such as this. 1 - Hr 2 - Job 3 - Benefits Instead of in a regular text sentence. Hope this makes sense. Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 06:09:19 2004 From: vaibhav_jindal@non.agilent.com Subject: RE: [sqr-users] Problem with UNION Clause in SQR( with positional parameters) Date: Tue, 22 Jun 2004 19:08:04 +0800 Ya ray !! U are right ... I got that .. Its running fine the way u told .. Hey darshil ... The problem was not what u told... but still thanks very much for ur interest. Thanks ryo as well.... Bye and keep in touch .. Thanks & Regards Vaibhav Gupta Business Intelligence and Enterprise Reporting TCS @ Agilent Technologies -----Original Message----- From: Ray Ontko [mailto:rayo@ontko.com] Sent: Monday, June 21, 2004 5:37 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Problem with UNION Clause in SQR( with positionalparameters) Vaibhav, Darshil, The "union" portion of your sql statement should look like a normal SQL statement. It should not use the modified SQR syntax. UNION SELECT DISTINCT TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1), ooha.orig_sys_document_ref &LEGACY_ORDER (15,150), ... Should be: UNION SELECT DISTINCT TO_CHAR(ooha.order_number) , ooha.orig_sys_document_ref ... Ray On Mon, Jun 21, 2004 at 03:05:06AM -0700, Darshil Mehta wrote: > Vaibhav, > > I guess you're missing one , in your first query. The > line in 1st query " TRANSLATE(oos.name,',',' ') > &ORDER_SOURCE (15,550)" should be > > " TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550)," > > Please see below : > ---------------------------------------------- > BEGIN-PROCEDURE QUERY_TOP > Print-Direct printer=html '%%ResetBorder' > BEGIN-SELECT DISTINCT > Alter-Printer Font=903 Point-Size=10 > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > &ORACLE_LINE (15,350) > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > NEXT-LISTING > FROM > ---------------------------------------------- > > I hope it works. > > Darshil > > --- vaibhav_jindal@non.agilent.com wrote: > > Hi > > I want to use UNION in two queries but its not > > working .. Can someone please guide me why is this > > not working ? > > Heres the code that is giving me the prob!!! > > > > BEGIN-PROCEDURE QUERY_TOP > > Print-Direct printer=html '%%ResetBorder' > > BEGIN-SELECT DISTINCT > > Alter-Printer Font=903 Point-Size=10 > > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1) > > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150) > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > > &ORACLE_LINE (15,350) > > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550) > > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > > NEXT-LISTING > > FROM > > oe_order_headers_all ooha, > > oe_order_lines_all oola, > > oe_order_sources oos, > > oe_transaction_types_tl ottt, > > hr_all_organization_units_tl haou > > > > WHERE > > ooha.header_id = oola.header_id > > AND oola.ship_from_org_id = 128 > > AND ooha.org_id = haou.organization_id > > > > > > UNION SELECT DISTINCT > > TO_CHAR(ooha.order_number) &ORACLE_ORDER (15,1), > > ooha.orig_sys_document_ref &LEGACY_ORDER (15,150), > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_number,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_number,'.'))),oola.service_number) > > &ORACLE_LINE (15,350), > > TRANSLATE(oos.name,',',' ') &ORDER_SOURCE (15,550), > > TRANSLATE(ottt.name,',',' ') &ORDER_TYPE (15,750) > > NEXT-LISTING > > FROM > > oe_order_headers_all ooha, > > oe_order_lines_all oola, > > oe_order_sources oos, > > oe_transaction_types_tl ottt, > > hr_all_organization_units_tl haou, > > hr_all_organization_units_tl haou2 > > > > WHERE > > ooha.header_id = oola.header_id > > AND oola.ship_from_org_id = 128 > > AND ooha.org_id = haou.organization_id > > AND haou.LANGUAGE = 'US' > > AND oola.INTMED_SHIP_TO_ORG_ID = > > haou2.organization_id (+) > > > > End-Select > > Print-Direct printer=html '%%End-Select' > > Next-Listing > > Print-Direct printer=html '%%ResetBorder' > > End-Procedure > > > > > > > > > > The error coming is : > > > > > > (SQR 5528) ORACLE OCIStmtExecute error 923 in cursor > > 5: > > ORA-00923: FROM keyword not found where expected > > SQL: SELECT DISTINCT TO_CHAR(ooha.order_number), > > ooha.orig_sys_document_ref, > > > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu > > > > > mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu > > mber,'.'))),oola.service_number), > > TRANSLATE(oos.name,',',' '), > > TRANSLATE(ottt.name,',',' ') FROM > > oe_order_headers_all ooha, > > oe_order_lines_all oola, oe_order_sources oos, > > oe_transaction_types_tl > > ottt, hr_all_organization_units_tl haou WHERE > > ooha.header_id = > > oola.header_id AND oola.ship_from_org_id = 128 > > AND ooha.org_id = > > haou.organization_id UNION SELECT DISTINCT > > TO_CHAR(ooha.order_number) :1 > > (15,1), ooha.orig_sys_document_ref :2 > > (15,150), > > > > > CONCAT(CONCAT(CONCAT(CONCAT(oola.line_number,'.'),CONCAT(oola.shipment_nu > > > > > mber,'.')),CONCAT(CONCAT(oola.option_number,'.'),CONCAT(oola.component_nu > > mber,'.'))),oola.service_number) :3 (15,350), > > TRANSLATE(oos.name,',',' ') > > :4 (15,550), TRANSLATE(ottt.name,',',' ') :5 > > (15,750) NEXT-LISTING FROM > > oe_order_headers_all ooha, oe_order_lines_all > > oola, oe_order_sources > > oos, oe_transaction_types_tl ottt, > > hr_all_organization_units_tl haou, > > hr_all_organization_units_tl haou2 WHERE > > ooha.header_id = oola.header_id > > AND oola.ship_from_org_id = 128 AND > > ooha.org_id = haou.organization_id > > AND haou.LANGUAGE = 'US' AND > > oola.INTMED_SHIP_TO_ORG_ID = > > haou2.organization_id (+) > > > > Thanks & Regards > > > > Vaibhav Gupta > > Business Intelligence and Enterprise Reporting > > TCS @ Agilent Technologies > > > > > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 08:03:08 2004 Date: Tue, 22 Jun 2004 15:00:40 +0200 From: edwin.hommes@bluewin.ch Subject: [sqr-users] Re: Export data into Excel....... (Srinivas Amaragani) Srini, I am not sure I completely understand your problem, but if you define your output within the SQR, just name it something.xls However, if you want to do it through the PS process scheduler, you will have to amend the process defenition. In the process defenition, find the "destination" tab (4th tab). There you will see several options, the most important being: destinationsource. Set that to Process defined and the large box becomes available. There you can enter the name of your output file (e.g. something.xls). Hope this helps 3. Re: Export data into Excel....... (Srinivas Amaragani) You are right we can rename to .xls when we open CSV file in Excel, but here my requirement is different..let me explain you what we are doing exactly. We are scheduling sqr reports on one scheduler and keeping pdf,csv outputs in brio repositories. For users access we created a EIS Bqy, this bqy is allows access users to pre- runned pdf and csv files from repository. So why i need .xls file ??? Brio EIS section i can format .xls file, but i can't format .csv file. Here we are generating 100's of csv files , there is no chance to change .csv to .xls because everything is automated. Schedule SQR Reports --> After run (Sits out put in Brio Repository) --> Browser(User access reports via EIS Interface or DashBoard). I hope you understand when we export data into .CSV file 1) When file open -- its open in Notepad until we setup path to excel(select file open with Excel, atleast one time) 2) Column length not fit into cell width and can't format bold etc., things. Brio Designer we can format .XLS file using JOOLE Script. I hope now you understand my problem.....thanks for your reply. Srini _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 08:19:41 2004 From: "Bruce" Date: Tue, 22 Jun 2004 09:17:16 -0500 Subject: [sqr-users] Re: compatibility peopletools 8.15 & SQR 4.00.5000 Sheetal, We had this problem and resolved it by replacing SQRs with App Engine programs. We encountered this error because we are a multilingual environment and have Canadian French accented characters - we would get this error whenever a, for example, DESCR field had all characters filled and the last character was an accented one. This might not be your preferred, or workable solution. Here is what PeopleSoft told us: Resolution 711502 ORA-01406: fetched column value was truncated when running SQR's PROBLEM: Cust is trying to run an SQR report or process and it failed with an ORA-01406: fetched column value was truncated or "ORACLE OCIStmtFetch error 1406 error. Cust has a non-unicode database. RESOLUTION: This is a bug with SQR and Oracle which has been fixed in PT8.14.10 and newer versions. Make sure that the Process Scheduler/Config Manager is pointing to the right version of SQR that corresponds to the PT release, for example, if cust has PT8.15 then SQR is 8.1.5. The SQR 8.14.10 or SQR 8.15 is included on either the primary cd (NT and OS/390 versions) or auxiliary cd (Unix versions). Also make sure that the cust has the following configuration: NLS_LANG=AMERICAN_AMERICA.UTF8 (Registry/ DOS for NT | environment variable for UNIX) ENCODING=UTF8 (This is set in pssqr.unx/ pssqr.ini normally found in /sqr) ENCODING-DATABASE=UTF8 (This is set in pssqr.unx/ pssqr.ini normally found in /sqr) Note: For UNIX environment the file to be edited is pssqr.unx and not pssqr.ini NOTE: Incident T-PSCHWA-FR9UR addresses this issue and it only affects ORACLE platforms. Fixed in PeopleTools 8.14.10, 8.15 and 8.4. Regards, CM Toni Crow Support Analyst PeopleSoft Global Support Center cheers, Bruce >Content-Transfer-Encoding: 7bit >From: sheetalk >Precedence: list >Subject: [sqr-users] compatibility peopletools 8.15 & SQR 4.00.5000 >Date: Tue, 22 Jun 2004 12:14:01 +0530 >To: sqr-users@sqrug.org >Reply-To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >Message-ID: <40D7D531.9B7929CF@mahindrabt.com> >Content-Type: text/plain; > charset=us-ascii >MIME-Version: 1.0 >Message: 4 > > >Hi All, > >We are working on peoplesoft financials : ps 8 sp2. >We have peopletools 8.15, oracle 8.1.7.0.0 & SQR version is 4.00.5000. > >Are there any compatibility issues for this combination coz i'm facing >error ORA-01406 with erratic behavior. > >Last time Ray suggested about LONGSPACE=32766 and it helped, however, >now the error seems to pop again in many sqrs. > >Thanks in advance for help ! > >Regards, >Sheetal. > Sent using cyberus.ca WebMail - http://www.cyberus.ca/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 08:27:07 2004 From: "the dragon" Subject: RE: [sqr-users] Re: Export data into Excel....... (Srinivas Amaragani) Date: Tue, 22 Jun 2004 08:24:44 -0500 naming a file with an xls extension does not an xls (microsoft excel) file make... PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Srini, I am not sure I completely understand your problem, but if you define your output within the SQR, just name it something.xls However, if you want to do it through the PS process scheduler, you will have to amend the process defenition. In the process defenition, find the "destination" tab (4th tab). There you will see several options, the most important being: destinationsource. Set that to Process defined and the large box becomes available. There you can enter the name of your output file (e.g. something.xls). Hope this helps 3. Re: Export data into Excel....... (Srinivas Amaragani) You are right we can rename to .xls when we open CSV file in Excel, but here my requirement is different..let me explain you what we are doing exactly. We are scheduling sqr reports on one scheduler and keeping pdf,csv outputs in brio repositories. For users access we created a EIS Bqy, this bqy is allows access users to pre- runned pdf and csv files from repository. So why i need .xls file ??? Brio EIS section i can format .xls file, but i can't format .csv file. Here we are generating 100's of csv files , there is no chance to change .csv to .xls because everything is automated. Schedule SQR Reports --> After run (Sits out put in Brio Repository) --> Browser(User access reports via EIS Interface or DashBoard). I hope you understand when we export data into .CSV file 1) When file open -- its open in Notepad until we setup path to excel(select file open with Excel, atleast one time) 2) Column length not fit into cell width and can't format bold etc., things. Brio Designer we can format .XLS file using JOOLE Script. I hope now you understand my problem.....thanks for your reply. Srini _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 17:06:43 2004 Date: Tue, 22 Jun 2004 16:04:51 -0600 From: Timm Buchanan Subject: [sqr-users] brain dead? OK, so spent the weekend in NYC for a Bachelor Party and probably killed a few brain cells, but this is getting a little crazy. Please help me prove my sanity.... begin-procedure report let $date1 = '08-NOV-2003' let $date2 = '08-JAN-2004' let $fromdate = '01-JAN-2004' let $thrudate = '31-JAN-2004' end-procedure In my mind: $date1 is < $fromdate $date2 is > $fromdate $date2 is < $thrudate However, running this procedure with some tests show this: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 01-JAN-2004 $thrudate 31-JAN-2004 date 1 >= fromdate date 2 >= fromdate date 1 <= thrudate date 2 <= thrudate What am I missing? I have been writing SQR code for many years now...I think I killed the SQR brain cells this weekend..... Thanks... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 17:11:25 2004 Subject: RE: [sqr-users] brain dead? Date: Tue, 22 Jun 2004 16:09:30 -0600 From: "Jon Alsager" Perhaps your program does not know that they are dates, but is comparing them simply as strings? Jon -----Original Message----- From: sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org] On Behalf Of Timm Buchanan Sent: Tuesday, June 22, 2004 4:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] brain dead? OK, so spent the weekend in NYC for a Bachelor Party and probably killed a few brain cells, but this is getting a little crazy. Please help me prove my sanity.... begin-procedure report let $date1 =3D '08-NOV-2003' let $date2 =3D '08-JAN-2004' let $fromdate =3D '01-JAN-2004' let $thrudate =3D '31-JAN-2004' end-procedure In my mind: $date1 is < $fromdate=20 $date2 is > $fromdate=20 $date2 is < $thrudate However, running this procedure with some tests show this: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 01-JAN-2004 $thrudate 31-JAN-2004 date 1 >=3D fromdate date 2 >=3D fromdate date 1 <=3D thrudate date 2 <=3D thrudate What am I missing? I have been writing SQR code for many years now...I think I killed the SQR brain cells this weekend..... Thanks... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 17:14:07 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] brain dead? Date: Tue, 22 Jun 2004 16:11:12 -0600 What is your actual statements? Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Timm Buchanan [mailto:timmbuck2@gmail.com] Sent: Tuesday, June 22, 2004 4:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] brain dead? OK, so spent the weekend in NYC for a Bachelor Party and probably killed a few brain cells, but this is getting a little crazy. Please help me prove my sanity.... begin-procedure report let $date1 = '08-NOV-2003' let $date2 = '08-JAN-2004' let $fromdate = '01-JAN-2004' let $thrudate = '31-JAN-2004' end-procedure In my mind: $date1 is < $fromdate $date2 is > $fromdate $date2 is < $thrudate However, running this procedure with some tests show this: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 01-JAN-2004 $thrudate 31-JAN-2004 date 1 >= fromdate date 2 >= fromdate date 1 <= thrudate date 2 <= thrudate What am I missing? I have been writing SQR code for many years now...I think I killed the SQR brain cells this weekend..... Thanks... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 22 17:19:21 2004 From: "the dragon" Subject: RE: [sqr-users] brain dead? Date: Tue, 22 Jun 2004 17:16:56 -0500 Timm, You are not comparing dates - you're comparing character strings - unless you declare them as dates or convert them into dates ... let $date1 = '08-NOV-2003' let $date2 = '08-JAN-2004' let $fromdate = '01-JAN-2004' let $thrudate = '31-JAN-2004' 01-JAN-2004 < 08-JAN-2004 < 08-NOV-2003 < 31-JAN-2004 Hope this helps. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- OK, so spent the weekend in NYC for a Bachelor Party and probably killed a few brain cells, but this is getting a little crazy. Please help me prove my sanity.... begin-procedure report let $date1 = '08-NOV-2003' let $date2 = '08-JAN-2004' let $fromdate = '01-JAN-2004' let $thrudate = '31-JAN-2004' end-procedure In my mind: $date1 is < $fromdate $date2 is > $fromdate $date2 is < $thrudate However, running this procedure with some tests show this: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 01-JAN-2004 $thrudate 31-JAN-2004 date 1 >= fromdate date 2 >= fromdate date 1 <= thrudate date 2 <= thrudate What am I missing? I have been writing SQR code for many years now...I think I killed the SQR brain cells this weekend..... Thanks... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 02:33:07 2004 From: vaibhav_jindal@non.agilent.com Date: Wed, 23 Jun 2004 15:32:31 +0800 Subject: [sqr-users] HTML Output Hi Iam using SQR to generate the output of the query in the .csv format.But by default it is generating the HTML output also with the .csv format. Is it possible somehow so that the HTML format is not generated ? Thanks & Regards Vaibhav Gupta Business Intelligence and Enterprise Reporting TCS @ Agilent Technologies _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 08:15:07 2004 Subject: RE: [sqr-users] brain dead? Date: Wed, 23 Jun 2004 09:14:05 -0400 From: "Beller, Jay" As I recall, this is an old "feature" of SQR regarding the late day of the = month. There should be many archived postings. Basically, when you compare dates in SQR the last day of one month is NOT l= ess than the first of the next month - how's that for logic. This is NOT a = problem when the date coparisons are part of your SQL Select Statement. The workaround is to convert dates to YYYYMMDD strings or numbers and then = compare the strings/numbers. -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Timm Buchanan Sent: Tuesday, June 22, 2004 6:05 PM To: sqr-users@sqrug.org Subject: [sqr-users] brain dead? OK, so spent the weekend in NYC for a Bachelor Party and probably killed a few brain cells, but this is getting a little crazy. Please help me prove my sanity.... begin-procedure report let $date1 =3D '08-NOV-2003' let $date2 =3D '08-JAN-2004' let $fromdate =3D '01-JAN-2004' let $thrudate =3D '31-JAN-2004' end-procedure In my mind: $date1 is < $fromdate=20 $date2 is > $fromdate=20 $date2 is < $thrudate However, running this procedure with some tests show this: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 01-JAN-2004 $thrudate 31-JAN-2004 date 1 >=3D fromdate date 2 >=3D fromdate date 1 <=3D thrudate date 2 <=3D thrudate What am I missing? I have been writing SQR code for many years now...I think I killed the SQR brain cells this weekend..... Thanks... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:18:35 2004 Date: Wed, 23 Jun 2004 09:16:45 -0600 From: Timm Buchanan Subject: Re: [sqr-users] brain dead? OK...I am using strtodate, and getting the exact same results.... Actual procedure: begin-procedure report let $date1 = strtodate('20031108', 'YYYYMMDD') let $date2 = strtodate('20040108', 'YYYYMMDD') let $fromdate = strtodate('20040102', 'YYYYMMDD') let $thrudate = strtodate('20040116', 'YYYYMMDD') display '$date1 'noline display $date1 display '$date2 'noline display $date2 display '$fromdate 'noline display $fromdate display '$thrudate 'noline display $thrudate if $date1 >= $fromdate display 'date 1 >= fromdate' end-if if $date2 >= $fromdate display 'date 2 >= fromdate' end-if if $date1 <= $thrudate display 'date 1 <= thrudate' end-if if $date2 <= $thrudate display 'date 2 <= thrudate' end-if if $date1 <= $fromdate display 'date 1 <= fromdate' end-if if $date2 <= $fromdate display 'date 2 <= fromdate' end-if if $date1 >= $thrudate display 'date 1 >= thrudate' end-if if $date2 >= $thrudate display 'date 2 >= thrudate' end-if end-procedure results: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 02-JAN-2004 $thrudate 16-JAN-2004 date 1 >= fromdate date 2 >= fromdate date 1 <= thrudate date 2 <= thrudate _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:22:07 2004 Date: Wed, 23 Jun 2004 10:20:08 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] brain dead? Did you have a ...... DECLARE-VARIABLE DATE $date1 $date2 $fromdate $thrudate END-DECLARE ...in your code? If not, you are *still* comparing strings! On Wed, 23 Jun 2004, Timm Buchanan wrote: > OK...I am using strtodate, and getting the exact same results.... > > Actual procedure: > begin-procedure report > > > let $date1 = strtodate('20031108', 'YYYYMMDD') > let $date2 = strtodate('20040108', 'YYYYMMDD') > let $fromdate = strtodate('20040102', 'YYYYMMDD') > let $thrudate = strtodate('20040116', 'YYYYMMDD') > > > display '$date1 'noline > display $date1 > display '$date2 'noline > display $date2 > display '$fromdate 'noline > display $fromdate > display '$thrudate 'noline > display $thrudate > > > if $date1 >= $fromdate > display 'date 1 >= fromdate' > end-if > > if $date2 >= $fromdate > display 'date 2 >= fromdate' > end-if > > if $date1 <= $thrudate > display 'date 1 <= thrudate' > end-if > > if $date2 <= $thrudate > display 'date 2 <= thrudate' > end-if > > if $date1 <= $fromdate > display 'date 1 <= fromdate' > end-if > > if $date2 <= $fromdate > display 'date 2 <= fromdate' > end-if > > if $date1 >= $thrudate > display 'date 1 >= thrudate' > end-if > > if $date2 >= $thrudate > display 'date 2 >= thrudate' > end-if > > > end-procedure > > > > results: > $date1 08-NOV-2003 > $date2 08-JAN-2004 > $fromdate 02-JAN-2004 > $thrudate 16-JAN-2004 > date 1 >= fromdate > date 2 >= fromdate > date 1 <= thrudate > date 2 <= thrudate > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:25:06 2004 From: "Miller, Danika" Subject: RE: [sqr-users] On-breaks Problem - I think Date: Wed, 23 Jun 2004 11:19:00 -0400 The problem is with the on-break not setting the variables. There are two possible group by options: Country or Start Date Since there are 5 possible selections to run the report, A, B, C, D, and E and there are two different select statements: one for A&B and one for C,D,& E, my problem is do I need a separate select statement with the on-breaks changing for each of the 5 possible selections - A,B,C,D,E. Example: I want to select report type A and I want to group by Country. I would use the first select statement and I need to do an on-break on the country field. Now, I want to select report type B and I want to group by Start date. The same select statement is used except the on-break will now be on the start date field. And there are many possibilities here. A - group by country, A - group by start date, B - group by country, B - group by start date, C - group by country, C - group by start date and so on. My question is how in the world should I do this? Is my only option to have individual select statements for every possible combination? There has to be an easier way. -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, June 18, 2004 4:43 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] On-breaks Problem - I think This is a reason dynamic variables were created. Any part of your SQL statement can be replaced with a dynamic variable that you can set within the program. The dynamic variable should appear within your SQL in the form [$variable]. Example: let $zip = '12345' let $zipcode = 'and C.ZIPCODE = $zip' begin-select ... from CUSTOMER C where C.STATE = 'MA' [$zipcode] end-select Notice that the text of $zipcode becomes part of a SQL statement and the SQL statement contains a condition that compares the value of a column (C.ZIPCODE) to the value of a variable ($zip). SQR will send a SQL statement to the database manager in the form: select ... from CUSTOMER C where C.STATE = 'MA' and C.ZIPCODE = :1 SQR will also send '12345' as the value of bind variable :1. -----Original Message----- From: Miller, Danika [mailto:MillerD2@ndu.edu] Sent: Friday, June 18, 2004 1:14 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] On-breaks Problem - I think My run control page asks if the report should be run by either A, B, C, D, or E. A&B share the same select statement (diff. where clause), and C, D, & E share the same select statement (diff. where clause). And there's a radio button asking how the report should be grouped: either by country or start date. There are many possible variances in running this report: A - Group by country A - Group by start date B - Group by country B - Group by start date C, D, E - etc. Would I have to have a different select statement for each and every possible combination? For example, if A and country do select 1 with an on-break on country if A and start date do select 2 with an on-break on start date if B and country do select 3 with an on-break on country if B and start date do select 4 with an on-break on start date Any ideas?????????? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:28:06 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] brain dead? Date: Wed, 23 Jun 2004 11:23:48 -0400 Use the declare-variable command to declare those variables as dates then move the values into them and then do the compare....you should be fine after that.... Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of Timm Buchanan Sent: Wednesday, June 23, 2004 11:17 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] brain dead? OK...I am using strtodate, and getting the exact same results.... Actual procedure: begin-procedure report let $date1 = strtodate('20031108', 'YYYYMMDD') let $date2 = strtodate('20040108', 'YYYYMMDD') let $fromdate = strtodate('20040102', 'YYYYMMDD') let $thrudate = strtodate('20040116', 'YYYYMMDD') display '$date1 'noline display $date1 display '$date2 'noline display $date2 display '$fromdate 'noline display $fromdate display '$thrudate 'noline display $thrudate if $date1 >= $fromdate display 'date 1 >= fromdate' end-if if $date2 >= $fromdate display 'date 2 >= fromdate' end-if if $date1 <= $thrudate display 'date 1 <= thrudate' end-if if $date2 <= $thrudate display 'date 2 <= thrudate' end-if if $date1 <= $fromdate display 'date 1 <= fromdate' end-if if $date2 <= $fromdate display 'date 2 <= fromdate' end-if if $date1 >= $thrudate display 'date 1 >= thrudate' end-if if $date2 >= $thrudate display 'date 2 >= thrudate' end-if end-procedure results: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 02-JAN-2004 $thrudate 16-JAN-2004 date 1 >= fromdate date 2 >= fromdate date 1 <= thrudate date 2 <= thrudate _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:30:42 2004 Date: Wed, 23 Jun 2004 09:24:52 -0600 From: Timm Buchanan Subject: Re: [sqr-users] brain dead? Argh....just figured that out and tested it. Thanks man! T On Wed, 23 Jun 2004 10:20:08 -0500 (EST), Don Mellen wrote: > > Did you have a ...... > > DECLARE-VARIABLE > DATE $date1 $date2 $fromdate $thrudate > END-DECLARE > > ...in your code? If not, you are *still* comparing strings! > > > On Wed, 23 Jun 2004, Timm Buchanan wrote: > > > OK...I am using strtodate, and getting the exact same results.... > > > > Actual procedure: > > begin-procedure report > > > > > > let $date1 = strtodate('20031108', 'YYYYMMDD') > > let $date2 = strtodate('20040108', 'YYYYMMDD') > > let $fromdate = strtodate('20040102', 'YYYYMMDD') > > let $thrudate = strtodate('20040116', 'YYYYMMDD') > > > > > > display '$date1 'noline > > display $date1 > > display '$date2 'noline > > display $date2 > > display '$fromdate 'noline > > display $fromdate > > display '$thrudate 'noline > > display $thrudate > > > > > > if $date1 >= $fromdate > > display 'date 1 >= fromdate' > > end-if > > > > if $date2 >= $fromdate > > display 'date 2 >= fromdate' > > end-if > > > > if $date1 <= $thrudate > > display 'date 1 <= thrudate' > > end-if > > > > if $date2 <= $thrudate > > display 'date 2 <= thrudate' > > end-if > > > > if $date1 <= $fromdate > > display 'date 1 <= fromdate' > > end-if > > > > if $date2 <= $fromdate > > display 'date 2 <= fromdate' > > end-if > > > > if $date1 >= $thrudate > > display 'date 1 >= thrudate' > > end-if > > > > if $date2 >= $thrudate > > display 'date 2 >= thrudate' > > end-if > > > > > > end-procedure > > > > > > > > results: > > $date1 08-NOV-2003 > > $date2 08-JAN-2004 > > $fromdate 02-JAN-2004 > > $thrudate 16-JAN-2004 > > date 1 >= fromdate > > date 2 >= fromdate > > date 1 <= thrudate > > date 2 <= thrudate > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:33:18 2004 From: James Womeldorf Subject: RE: [sqr-users] brain dead? Date: Wed, 23 Jun 2004 10:25:51 -0500 Hi Timm, We call this procedure: begin-procedure Date-Compare($Date1, $Date2, :$Comparison) !Compares the dates of $Date1 and $Date2 (ignoring the time portion) ! and returns '<', '=', or '>' showing their relationship Declare-variable date $Date1 $Date2 end-declare let $julian_date1 = datetostr($date1,'YYYYDDD') let $julian_date2 = datetostr($date2,'YYYYDDD') if $julian_date1 < $julian_date2 let $Comparison = '<' else if $julian_date1 > $julian_date2 let $Comparison = '>' else let $Comparison = '=' end-if end-if end-procedure Then we check the value of $Comparison. Not the neatest solution in the world, but SQR has an issue with date comparisons of date variables and this works. Jim -----Original Message----- From: Timm Buchanan [mailto:timmbuck2@gmail.com] Sent: Wednesday, June 23, 2004 10:17 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] brain dead? OK...I am using strtodate, and getting the exact same results.... Actual procedure: begin-procedure report let $date1 = strtodate('20031108', 'YYYYMMDD') let $date2 = strtodate('20040108', 'YYYYMMDD') let $fromdate = strtodate('20040102', 'YYYYMMDD') let $thrudate = strtodate('20040116', 'YYYYMMDD') display '$date1 'noline display $date1 display '$date2 'noline display $date2 display '$fromdate 'noline display $fromdate display '$thrudate 'noline display $thrudate if $date1 >= $fromdate display 'date 1 >= fromdate' end-if if $date2 >= $fromdate display 'date 2 >= fromdate' end-if if $date1 <= $thrudate display 'date 1 <= thrudate' end-if if $date2 <= $thrudate display 'date 2 <= thrudate' end-if if $date1 <= $fromdate display 'date 1 <= fromdate' end-if if $date2 <= $fromdate display 'date 2 <= fromdate' end-if if $date1 >= $thrudate display 'date 1 >= thrudate' end-if if $date2 >= $thrudate display 'date 2 >= thrudate' end-if end-procedure results: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 02-JAN-2004 $thrudate 16-JAN-2004 date 1 >= fromdate date 2 >= fromdate date 1 <= thrudate date 2 <= thrudate _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:36:07 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] On-breaks Problem - I think Date: Wed, 23 Jun 2004 11:32:47 -0400 The way to handle this is to use the dynamic query feature of sqr. Your query has to be structured in such a way, that based on the user input the query will be built using the correct on-break columns and variables. Create a procedure that handles the user input and populates the dynamic variables with the correct values. In the begin-select statement you will then have to correct sql statement based on the values that you populate into the variables. Hope this helps. Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of Miller, Danika Sent: Wednesday, June 23, 2004 11:19 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] On-breaks Problem - I think The problem is with the on-break not setting the variables. There are two possible group by options: Country or Start Date Since there are 5 possible selections to run the report, A, B, C, D, and E and there are two different select statements: one for A&B and one for C,D,& E, my problem is do I need a separate select statement with the on-breaks changing for each of the 5 possible selections - A,B,C,D,E. Example: I want to select report type A and I want to group by Country. I would use the first select statement and I need to do an on-break on the country field. Now, I want to select report type B and I want to group by Start date. The same select statement is used except the on-break will now be on the start date field. And there are many possibilities here. A - group by country, A - group by start date, B - group by country, B - group by start date, C - group by country, C - group by start date and so on. My question is how in the world should I do this? Is my only option to have individual select statements for every possible combination? There has to be an easier way. -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, June 18, 2004 4:43 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] On-breaks Problem - I think This is a reason dynamic variables were created. Any part of your SQL statement can be replaced with a dynamic variable that you can set within the program. The dynamic variable should appear within your SQL in the form [$variable]. Example: let $zip = '12345' let $zipcode = 'and C.ZIPCODE = $zip' begin-select ... from CUSTOMER C where C.STATE = 'MA' [$zipcode] end-select Notice that the text of $zipcode becomes part of a SQL statement and the SQL statement contains a condition that compares the value of a column (C.ZIPCODE) to the value of a variable ($zip). SQR will send a SQL statement to the database manager in the form: select ... from CUSTOMER C where C.STATE = 'MA' and C.ZIPCODE = :1 SQR will also send '12345' as the value of bind variable :1. -----Original Message----- From: Miller, Danika [mailto:MillerD2@ndu.edu] Sent: Friday, June 18, 2004 1:14 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] On-breaks Problem - I think My run control page asks if the report should be run by either A, B, C, D, or E. A&B share the same select statement (diff. where clause), and C, D, & E share the same select statement (diff. where clause). And there's a radio button asking how the report should be grouped: either by country or start date. There are many possible variances in running this report: A - Group by country A - Group by start date B - Group by country B - Group by start date C, D, E - etc. Would I have to have a different select statement for each and every possible combination? For example, if A and country do select 1 with an on-break on country if A and start date do select 2 with an on-break on start date if B and country do select 3 with an on-break on country if B and start date do select 4 with an on-break on start date Any ideas?????????? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 10:50:51 2004 From: Al H Subject: Re: [sqr-users] brain dead? Date: Wed, 23 Jun 2004 08:48:49 -0700 The workaround is correct. You must compare dates in YYYYMMDD or Julian format. To further explain, SQR does not recognize dates at all. Dates function properly within begin-sql/end-sql pairs and in where clauses because they are being parsed by the database server, not by SQR. But in SQR, the variable storing the date is a character variable, so it is evaluated under character rules. Therefore 01-JAN-2004 is less than 08-NOV-2003 because character variables are compared left to right. So once the comparison hits the 08 and 01, since 08 is greater than 01, that is the end of the comparison. On Wed, 23 Jun 2004 09:14:05 -0400, you wrote: >As I recall, this is an old "feature" of SQR regarding the late day of the= month. There should be many archived postings. > >Basically, when you compare dates in SQR the last day of one month is NOT = less than the first of the next month - how's that for logic. This is NOT a= problem when the date coparisons are part of your SQL Select Statement. > >The workaround is to convert dates to YYYYMMDD strings or numbers and then= compare the strings/numbers. > > > >-----Original Message----- >From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org >[mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of >Timm Buchanan >Sent: Tuesday, June 22, 2004 6:05 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] brain dead? > > >OK, so spent the weekend in NYC for a Bachelor Party and probably >killed a few brain cells, but this is getting a little crazy. Please >help me prove my sanity.... > > >begin-procedure report > >let $date1 =3D '08-NOV-2003' >let $date2 =3D '08-JAN-2004' >let $fromdate =3D '01-JAN-2004' >let $thrudate =3D '31-JAN-2004' > >end-procedure > > > >In my mind: > >$date1 is < $fromdate=20 >$date2 is > $fromdate=20 >$date2 is < $thrudate > >However, running this procedure with some tests show this: > >$date1 08-NOV-2003 >$date2 08-JAN-2004 >$fromdate 01-JAN-2004 >$thrudate 31-JAN-2004 >date 1 >=3D fromdate >date 2 >=3D fromdate >date 1 <=3D thrudate >date 2 <=3D thrudate > >What am I missing? I have been writing SQR code for many years now...I >think I killed the SQR brain cells this weekend..... > >Thanks... > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 11:30:08 2004 From: James Womeldorf Subject: RE: [sqr-users] brain dead? Date: Wed, 23 Jun 2004 11:29:04 -0500 To demonstrate this problem try running the following code. ($date1 and $date2 are declared as date type): let $date1 = strtodate('20040131', 'YYYYMMDD') let $date2 = strtodate('20040201', 'YYYYMMDD') display '$date1 'noline display $date1 display '$date2 'noline display $date2 if $date1 > $date2 display 'date 1 > date 2' end-if if $date1 < $date2 display 'date 1 < date 2' end-if if $date1 = $date2 display 'EQUAL' end-if Jim -----Original Message----- From: Al H [mailto:maillists@starbuckk.net] Sent: Wednesday, June 23, 2004 10:49 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] brain dead? The workaround is correct. You must compare dates in YYYYMMDD or Julian format. To further explain, SQR does not recognize dates at all. Dates function properly within begin-sql/end-sql pairs and in where clauses because they are being parsed by the database server, not by SQR. But in SQR, the variable storing the date is a character variable, so it is evaluated under character rules. Therefore 01-JAN-2004 is less than 08-NOV-2003 because character variables are compared left to right. So once the comparison hits the 08 and 01, since 08 is greater than 01, that is the end of the comparison. On Wed, 23 Jun 2004 09:14:05 -0400, you wrote: >As I recall, this is an old "feature" of SQR regarding the late day of the month. There should be many archived postings. > >Basically, when you compare dates in SQR the last day of one month is NOT less than the first of the next month - how's that for logic. This is NOT a problem when the date coparisons are part of your SQL Select Statement. > >The workaround is to convert dates to YYYYMMDD strings or numbers and then compare the strings/numbers. > > > >-----Original Message----- >From: sqr-users-bounces+jbeller=lbisoftware.com@sqrug.org >[mailto:sqr-users-bounces+jbeller=lbisoftware.com@sqrug.org]On Behalf Of >Timm Buchanan >Sent: Tuesday, June 22, 2004 6:05 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] brain dead? > > >OK, so spent the weekend in NYC for a Bachelor Party and probably >killed a few brain cells, but this is getting a little crazy. Please >help me prove my sanity.... > > >begin-procedure report > >let $date1 = '08-NOV-2003' >let $date2 = '08-JAN-2004' >let $fromdate = '01-JAN-2004' >let $thrudate = '31-JAN-2004' > >end-procedure > > > >In my mind: > >$date1 is < $fromdate >$date2 is > $fromdate >$date2 is < $thrudate > >However, running this procedure with some tests show this: > >$date1 08-NOV-2003 >$date2 08-JAN-2004 >$fromdate 01-JAN-2004 >$thrudate 31-JAN-2004 >date 1 >= fromdate >date 2 >= fromdate >date 1 <= thrudate >date 2 <= thrudate > >What am I missing? I have been writing SQR code for many years now...I >think I killed the SQR brain cells this weekend..... > >Thanks... > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 11:55:02 2004 Date: Wed, 23 Jun 2004 11:54:32 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] brain dead? On Wed, 23 Jun 2004, Al H wrote: > ... > To further explain, SQR does not recognize dates at all. > ... Incorrect. SQR has recognized Dates since version 4.0 > ... > But in SQR, the variable storing the date is a character variable, so > it is evaluated under character rules. > ... Again, incorrect for 4.0 thru 8.2 (the latest release). You do have to declare date variables; otherwise, they *will* be evaluated as string variables since that is what they would be. > On Wed, 23 Jun 2004 09:14:05 -0400, you wrote: > > >As I recall, this is an old "feature" of SQR regarding the late day of > >the month. There should be many archived postings. > > > >Basically, when you compare dates in SQR the last day of one month is > >NOT less than the first of the next month > >.... There was a problem with version 5 and one or two version 4 releases. Since version 6.0, date comparisons have worked properly whenever I've tested them. I have not tested any of the "special" PeopleSoft SQR versions, but the version PeopleSoft got was SQR 6.2 (for their PeopleSoft 8.x), so when PeopleSoft got it, it was working. ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 23 12:02:09 2004 Date: Wed, 23 Jun 2004 13:00:21 -0400 From: "Everett Carr" Subject: Re: [sqr-users] brain dead? SQR and date handling has always been a little squirrilly.... However I suspect that you need to declare a variable as type date to get t= he comparision to work properly. Another alternative to convert the yyyymmdd string to a number which will c= ompare correctly (assuming the yyyymmdd format). date variables must be declared. They do being with the dollar sign charact= er. This declaration is required to have sqr perform date calculations. And= given a comparision is a form of a data calculation, my assumption (meanin= g I've not tested this) is you need the same declaration for your $datex va= riable comparisions. begin-setup declare-variable date $date1 date $date2...=20 end-declare end-setup >>> timmbuck2@gmail.com 06/23/04 11:16AM >>> OK...I am using strtodate, and getting the exact same results.... Actual procedure: begin-procedure report let $date1 =3D strtodate('20031108', 'YYYYMMDD') let $date2 =3D strtodate('20040108', 'YYYYMMDD') let $fromdate =3D strtodate('20040102', 'YYYYMMDD') let $thrudate =3D strtodate('20040116', 'YYYYMMDD') display '$date1 'noline=20 display $date1=20 display '$date2 'noline=20 display $date2=20 display '$fromdate 'noline=20 display $fromdate=20 display '$thrudate 'noline=20 display $thrudate=20 if $date1 >=3D $fromdate display 'date 1 >=3D fromdate' end-if if $date2 >=3D $fromdate display 'date 2 >=3D fromdate' end-if if $date1 <=3D $thrudate display 'date 1 <=3D thrudate' end-if if $date2 <=3D $thrudate display 'date 2 <=3D thrudate' end-if if $date1 <=3D $fromdate display 'date 1 <=3D fromdate' end-if if $date2 <=3D $fromdate display 'date 2 <=3D fromdate' end-if if $date1 >=3D $thrudate display 'date 1 >=3D thrudate' end-if if $date2 >=3D $thrudate display 'date 2 >=3D thrudate' end-if end-procedure results: $date1 08-NOV-2003 $date2 08-JAN-2004 $fromdate 02-JAN-2004 $thrudate 16-JAN-2004 date 1 >=3D fromdate date 2 >=3D fromdate date 1 <=3D thrudate date 2 <=3D thrudate _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jun 24 15:13:38 2004 From: "Bencke, Gina" Date: Thu, 24 Jun 2004 16:12:29 -0400 Subject: [sqr-users] Garamond Font I am trying to create a report using Garamond font. I have added the following line to my sqr.ini file. I specify font 18 in the declare-printer statement. Why does my output file look like Arial font instead of Garamond? (My little test SQR program is below)=20 Sqr.ini [Fonts] ... 18=3DGaramond,proportional begin-setup =20=20 #define ColR 305 !Column # referenced by Standard Headings #define PAGE_MAX_COLS 325 #define PAGE_MAX_LINES 78=20 =20=20 =20=20 declare-layout DEFAULT paper-size =3D(LEGAL) orientation=3DLANDSCAPE left-margin=3D0.5 top-margin =3D0.5 max-columns=3D{PAGE_MAX_COLS} max-lines =3D{PAGE_MAX_LINES}=20=20=20=20=20=20 line-height=3D7.2 ! 72/printer_point-size char-width =3D2.88 ! points, to handle max cols end-declare declare-printer HP-definition type=3Dhplaserjet symbol-set=3D0U ! ASCII symbol set point-size=3D6=20=20=20=20=20 pitch=3D25=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 font=3D18=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 end-declare =20=20 declare-report DEFAULT layout=3DDEFAULT printer-type=3Dhp end-declare =20=20 end-setup =20=20 begin-program =20=20 do Print-Test-Page end-program =20=20 =20=20 begin-procedure Print-Test-Page while #colDec < {PAGE_MAX_COLS} / 10 let $prtstr =3D $prtstr || edit(#colDec, '0000000009') add 1 to #colDec end-while let $prtstr =3D '0000000000' || ltrim($prtstr, '0') print $prtstr (1,1)=20=20=20=20 print '1234567890' (2, 1, {PAGE_MAX_COLS}) fill let #line =3D 3 next-listing while #line < {PAGE_MAX_LINES} print #line (1,1) edit 99=09=09=09 let #line =3D #line + 1 next-listing end-while =20 end-procedure =20=20 Thanks. Gina Bencke FCE Reports Team FCE office (216) 416-3492 cell phone (440) 479-9961 home office (440) 519-0060 email: ginabencke@forestcity.net;gina@bencke.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 10:30:23 2004 From: "DICKMAN, ERIC C." Date: Mon, 28 Jun 2004 10:29:07 -0500 Subject: [sqr-users] SQR logic in SQL > Hello Everyone, > > I am fairly new to the programming language of SQR. I am attempting to > dynamically populate some SQL values in SQR and when the value does not > exist it creates problems the SQL (returns nothing). Is it possible to > put SQR logic around the SQL. I created an example below of SQR logic in > SQL Is it possible to do something like that or is there another was to > handle this problem in the SQR? The CARYEAR value is '' (no parameter > entered by the user) many times, because the values in passed in from a > Search page. > > I pass in the follow variables: > CARTYPE = ('Mustang','Corvette','Accord','Ranger') > CARYEAR = ('') > > ask {CARTYPE} > ask {CARYEAR} > > move '{CARTYPE}' to $input_car_type > move '{CARYEAR}' to #input_car_year > > SELECT * > FROM CAR C, > YEAR Y, > WHERE C.FAST > 150 > AND C.TYPE IN ([$input_car_type]) > > if $input_car_year <> '' > AND Y.YEAR IN ([#input_car_year]) > end-if > Thanks, Eric NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 10:36:00 2004 Subject: RE: [sqr-users] SQR logic in SQL Date: Mon, 28 Jun 2004 10:34:52 -0500 From: "Knapp, Richard" Putting SQR logic around the SQL is what SQR does. Some examples would make this clear. Do you have any documentation? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu =20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Monday, June 28, 2004 10:29 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR logic in SQL > Hello Everyone, >=20 > I am fairly new to the programming language of SQR. I am attempting to > dynamically populate some SQL values in SQR and when the value does not > exist it creates problems the SQL (returns nothing). Is it possible to > put SQR logic around the SQL. I created an example below of SQR logic in > SQL Is it possible to do something like that or is there another was to > handle this problem in the SQR? The CARYEAR value is '' (no parameter > entered by the user) many times, because the values in passed in from a > Search page.=20 >=20 > I pass in the follow variables: > CARTYPE =3D ('Mustang','Corvette','Accord','Ranger') > CARYEAR =3D ('') >=20 > ask {CARTYPE} > ask {CARYEAR} >=20 > move '{CARTYPE}' to $input_car_type > move '{CARYEAR}' to #input_car_year=20 >=20 > SELECT *=20 > FROM CAR C, > YEAR Y, > WHERE C.FAST > 150 > AND C.TYPE IN ([$input_car_type]) >=20 > if $input_car_year <> ''=20 > AND Y.YEAR IN ([#input_car_year]) > end-if >=20 Thanks, Eric=20 NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 10:43:45 2004 From: "Bencke, Gina" Date: Mon, 28 Jun 2004 11:41:07 -0400 Subject: RE: [sqr-users] SQR logic in SQL Eric, I suggest that you place more of the WHERE clause in your Dynamic SQL Variable. For example: if $input_car_type !=3D '' let $AND =3D ' AND C.TYPE IN (' || $input_car_type || ')' else let $AND =3D '' end-if=20 begin-select [list of columns] FROM CAR C, YEAR Y, WHERE C.FAST > 150 [$AND] end-select =20=20 -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Monday, June 28, 2004 11:29 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR logic in SQL > Hello Everyone, >=20 > I am fairly new to the programming language of SQR. I am attempting=20 > to dynamically populate some SQL values in SQR and when the value does > not exist it creates problems the SQL (returns nothing). Is it=20 > possible to put SQR logic around the SQL. I created an example below=20 > of SQR logic in SQL Is it possible to do something like that or is=20 > there another was to handle this problem in the SQR? The CARYEAR=20 > value is '' (no parameter entered by the user) many times, because the > values in passed in from a Search page. >=20 > I pass in the follow variables: > CARTYPE =3D ('Mustang','Corvette','Accord','Ranger') > CARYEAR =3D ('') >=20 > ask {CARTYPE} > ask {CARYEAR} >=20 > move '{CARTYPE}' to $input_car_type > move '{CARYEAR}' to #input_car_year=20 >=20 > SELECT * > FROM CAR C, > YEAR Y, > WHERE C.FAST > 150 > AND C.TYPE IN ([$input_car_type]) >=20 > if $input_car_year <> ''=20 > AND Y.YEAR IN ([#input_car_year]) > end-if >=20 Thanks, Eric=20 NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has changed its name to the Department of Family and Protective Services(DFPS) resulting in the following e-mail address format change for all employees: firstname.lastname@dfps.state.tx.us=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 10:49:04 2004 Date: Mon, 28 Jun 2004 10:47:11 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] SQR logic in SQL Eric, You can't use SQR in that way, but you can construct dynamic SQL statements (which is what you have between the "[]"). Just do it for a whole clause so it will always evaluate properly, such as.... if isblank('{CARTYPE}') move '' to $car_type_clause else let $car_type_clause = ' AND C.TYPE IN {CARTYPE}' end-if if isblank('{CARYEAR}') move '' to $car_year_clause else let $car_year_clause = ' AND C.YEAR IN {CARYEAR}' end-if SELECT * FROM CAR C, YEAR Y, WHERE C.FAST > 150 [$car_type_clause] [$car_year_clause] ... you'll still need to add a where clause to join the 2 tables to prevent cartesian products, of course. On Mon, 28 Jun 2004, DICKMAN, ERIC C. wrote: > > Hello Everyone, > > > > I am fairly new to the programming language of SQR. I am attempting to > > dynamically populate some SQL values in SQR and when the value does not > > exist it creates problems the SQL (returns nothing). Is it possible to > > put SQR logic around the SQL. I created an example below of SQR logic in > > SQL Is it possible to do something like that or is there another was to > > handle this problem in the SQR? The CARYEAR value is '' (no parameter > > entered by the user) many times, because the values in passed in from a > > Search page. > > > > I pass in the follow variables: > > CARTYPE = ('Mustang','Corvette','Accord','Ranger') > > CARYEAR = ('') > > > > ask {CARTYPE} > > ask {CARYEAR} > > > > move '{CARTYPE}' to $input_car_type > > move '{CARYEAR}' to #input_car_year > > > > SELECT * > > FROM CAR C, > > YEAR Y, > > WHERE C.FAST > 150 > > AND C.TYPE IN ([$input_car_type]) > > > > if $input_car_year <> '' > > AND Y.YEAR IN ([#input_car_year]) > > end-if > > > Thanks, > > Eric > > > NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has > changed its name to the Department of Family and Protective Services(DFPS) > resulting in the following e-mail address format change for all employees: > firstname.lastname@dfps.state.tx.us > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 11:08:14 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] SQR logic in SQL Date: Mon, 28 Jun 2004 09:06:44 -0700 I have to disagree with the advice you've gotten so far. I think you're close to having it right. But, what exactly are you putting on your command line? You should only have the text you want to be inserted into your SQL. Also, you're using both the ask command and the dynamic variable feature. That's redundant. You could just use the ask command, and let the SQR preprocessor place your text within the select clause without dynamic variables. Or you could use the input command, and bypass defined constants. -----Original Message----- From: Don Mellen [mailto:donm@ontko.com] Sent: Monday, June 28, 2004 8:47 AM To: This list is for discussion about the SQR database reporting languagefr om Hyperion Solutions. Subject: Re: [sqr-users] SQR logic in SQL Eric, You can't use SQR in that way, but you can construct dynamic SQL statements (which is what you have between the "[]"). Just do it for a whole clause so it will always evaluate properly, such as.... if isblank('{CARTYPE}') move '' to $car_type_clause else let $car_type_clause = ' AND C.TYPE IN {CARTYPE}' end-if if isblank('{CARYEAR}') move '' to $car_year_clause else let $car_year_clause = ' AND C.YEAR IN {CARYEAR}' end-if SELECT * FROM CAR C, YEAR Y, WHERE C.FAST > 150 [$car_type_clause] [$car_year_clause] ... you'll still need to add a where clause to join the 2 tables to prevent cartesian products, of course. On Mon, 28 Jun 2004, DICKMAN, ERIC C. wrote: > > Hello Everyone, > > > > I am fairly new to the programming language of SQR. I am attempting to > > dynamically populate some SQL values in SQR and when the value does not > > exist it creates problems the SQL (returns nothing). Is it possible to > > put SQR logic around the SQL. I created an example below of SQR logic in > > SQL Is it possible to do something like that or is there another was to > > handle this problem in the SQR? The CARYEAR value is '' (no parameter > > entered by the user) many times, because the values in passed in from a > > Search page. > > > > I pass in the follow variables: > > CARTYPE = ('Mustang','Corvette','Accord','Ranger') > > CARYEAR = ('') > > > > ask {CARTYPE} > > ask {CARYEAR} > > > > move '{CARTYPE}' to $input_car_type > > move '{CARYEAR}' to #input_car_year > > > > SELECT * > > FROM CAR C, > > YEAR Y, > > WHERE C.FAST > 150 > > AND C.TYPE IN ([$input_car_type]) > > > > if $input_car_year <> '' > > AND Y.YEAR IN ([#input_car_year]) > > end-if > > > Thanks, > > Eric > > > NOTE: The Texas Department of Protective and Regulatory Services (TDPRS) has > changed its name to the Department of Family and Protective Services(DFPS) > resulting in the following e-mail address format change for all employees: > firstname.lastname@dfps.state.tx.us > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 12:22:45 2004 Date: Mon, 28 Jun 2004 10:21:34 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] SQR logic in SQL I think all you need to do is loose the parens on the in cartype ie let $CARTYPE = 'Mustang','Corvette','Accord','Ranger' that should do it. HTH Datta. --- "Alexander, Steve" wrote: > I have to disagree with the advice you've gotten so far. I think > you're > close to having it right. But, what exactly are you putting on your > command > line? You should only have the text you want to be inserted into > your SQL. > Also, you're using both the ask command and the dynamic variable > feature. > That's redundant. You could just use the ask command, and let the > SQR > preprocessor place your text within the select clause without dynamic > variables. Or you could use the input command, and bypass defined > constants. > > -----Original Message----- > From: Don Mellen [mailto:donm@ontko.com] > Sent: Monday, June 28, 2004 8:47 AM > To: This list is for discussion about the SQR database reporting > languagefr om Hyperion Solutions. > Subject: Re: [sqr-users] SQR logic in SQL > > > Eric, > > You can't use SQR in that way, but you can construct dynamic SQL > statements (which is what you have between the "[]"). Just do it for > a > whole clause so it will always evaluate properly, such as.... > > if isblank('{CARTYPE}') > move '' to $car_type_clause > else > let $car_type_clause = ' AND C.TYPE IN {CARTYPE}' > end-if > > if isblank('{CARYEAR}') > move '' to $car_year_clause > else > let $car_year_clause = ' AND C.YEAR IN {CARYEAR}' > end-if > > SELECT * > FROM CAR C, > YEAR Y, > WHERE C.FAST > 150 > [$car_type_clause] > [$car_year_clause] > > > ... you'll still need to add a where clause to join the 2 tables to > prevent cartesian products, of course. > > On Mon, 28 Jun 2004, DICKMAN, ERIC C. wrote: > > > > Hello Everyone, > > > > > > I am fairly new to the programming language of SQR. I am > attempting to > > > dynamically populate some SQL values in SQR and when the value > does not > > > exist it creates problems the SQL (returns nothing). Is it > possible to > > > put SQR logic around the SQL. I created an example below of SQR > logic in > > > SQL Is it possible to do something like that or is there another > was to > > > handle this problem in the SQR? The CARYEAR value is '' (no > parameter > > > entered by the user) many times, because the values in passed in > from a > > > Search page. > > > > > > I pass in the follow variables: > > > CARTYPE = ('Mustang','Corvette','Accord','Ranger') > > > CARYEAR = ('') > > > > > > ask {CARTYPE} > > > ask {CARYEAR} > > > > > > move '{CARTYPE}' to $input_car_type > > > move '{CARYEAR}' to #input_car_year > > > > > > SELECT * > > > FROM CAR C, > > > YEAR Y, > > > WHERE C.FAST > 150 > > > AND C.TYPE IN ([$input_car_type]) > > > > > > if $input_car_year <> '' > > > AND Y.YEAR IN ([#input_car_year]) > > > end-if > > > > > Thanks, > > > > Eric > > > > > > NOTE: The Texas Department of Protective and Regulatory Services > (TDPRS) > has > > changed its name to the Department of Family and Protective > Services(DFPS) > > resulting in the following e-mail address format change for all > employees: > > firstname.lastname@dfps.state.tx.us > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - > http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which > exploded" > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 15:51:31 2004 From: RHudgins@genencor.com Date: Mon, 28 Jun 2004 16:48:14 -0400 Subject: [sqr-users] distinct and oracle hint is sqr I would like to do the following begin-SELECT /*+ RULE */ distinct p.company p.paygroup from ... But sqr formats it like this and gives me an error -- invalid column -- because it concatenates the distinct and the first field. SELECT /*+ RULE */ distinctp.company, p.paygroup, I get a error when i move the hint to the same line as the begin-select. Does anyone know how to make this work? Or if it is possible. Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 15:56:14 2004 Subject: RE: [sqr-users] distinct and oracle hint is sqr Date: Mon, 28 Jun 2004 15:53:21 -0500 From: "Kent Schaetzly" Specify the distinct on the BEGIN-SELECT line BEGIN-SELECT DISTINCT -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of RHudgins@genencor.com Sent: Monday, June 28, 2004 3:48 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] distinct and oracle hint is sqr I would like to do the following begin-SELECT=20 /*+ RULE */ distinct p.company p.paygroup from ... But sqr formats it like this and gives me an error -- invalid column --= =20 because it concatenates the distinct and the first field. SELECT /*+ RULE */ distinctp.company, p.paygroup,=20 I get a error when i move the hint to the same line as the begin-select.=20 Does anyone know how to make this work? Or if it is possible. Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution,=20 or reproduction of this message by unintended recipients is not=20 authorized and may be unlawful. If you are not the intended=20 recipient, please advise the sender immediately by reply e-mail and=20 delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 16:06:47 2004 Date: Mon, 28 Jun 2004 16:05:46 -0500 From: Bob.Melosi@edwardjones.com Subject: RE: [sqr-users] distinct and oracle hint is sqr Try Begin-Select --+ rule -----Original Message----- From: RHudgins [mailto:RHudgins@genencor.com] Sent: Monday, June 28, 2004 3:48 PM To: sqr-users Subject: [sqr-users] distinct and oracle hint is sqr I would like to do the following begin-SELECT /*+ RULE */ distinct p.company p.paygroup from ... But sqr formats it like this and gives me an error -- invalid column -- because it concatenates the distinct and the first field. SELECT /*+ RULE */ distinctp.company, p.paygroup, I get a error when i move the hint to the same line as the begin-select. Does anyone know how to make this work? Or if it is possible. Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com ------------------------------------------------------------------------ -- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. ------------------------------------------------------------------------ -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jun 28 22:45:38 2004 Date: Mon, 28 Jun 2004 20:43:08 -0700 (PDT) From: akshara naik Subject: Re: [sqr-users] distinct and oracle hint is sqr Why don't you try begin-SELECT distinct /*+ RULE */ p.company p.paygroup from ... --- RHudgins@genencor.com wrote: > I would like to do the following > > begin-SELECT > /*+ RULE */ distinct > p.company > p.paygroup > > from ... > > But sqr formats it like this and gives me an error > -- invalid column -- > because it concatenates the distinct and the first > field. > > SELECT /*+ RULE */ distinctp.company, p.paygroup, > > > I get a error when i move the hint to the same line > as the begin-select. > Does anyone know how to make this work? Or if it is > possible. > > > Thanks! > > Rhonda Hudgins > @}---'----,---- > Genencor International, Inc > office - 585/256-5266 > rhudgins@genencor.com > > -------------------------------------------------------------------------- > This message (including any attachments) may contain > information > which is confidential or privileged. Use, > dissemination, distribution, > or reproduction of this message by unintended > recipients is not > authorized and may be unlawful. If you are not the > intended > recipient, please advise the sender immediately by > reply e-mail and > delete this message and any attachments without > retaining a copy. > -------------------------------------------------------------------------- > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 29 07:48:12 2004 From: RHudgins@genencor.com Date: Tue, 29 Jun 2004 08:44:58 -0400 Subject: Re: [sqr-users] distinct and oracle hint is sqr Thanks for the help this worked. I thought I had tried every combination, but evidently not. Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com akshara naik Sent by: sqr-users-bounces+rhudgins=genencor.com@sqrug.org 06/28/2004 11:43 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To "This list is for discussion about the SQR database reporting language from Hyperion Solutions." cc Subject Re: [sqr-users] distinct and oracle hint is sqr Why don't you try begin-SELECT distinct /*+ RULE */ p.company p.paygroup from ... --- RHudgins@genencor.com wrote: > I would like to do the following > > begin-SELECT > /*+ RULE */ distinct > p.company > p.paygroup > > from ... > > But sqr formats it like this and gives me an error > -- invalid column -- > because it concatenates the distinct and the first > field. > > SELECT /*+ RULE */ distinctp.company, p.paygroup, > > > I get a error when i move the hint to the same line > as the begin-select. > Does anyone know how to make this work? Or if it is > possible. > > > Thanks! > > Rhonda Hudgins > @}---'----,---- > Genencor International, Inc > office - 585/256-5266 > rhudgins@genencor.com > > -------------------------------------------------------------------------- > This message (including any attachments) may contain > information > which is confidential or privileged. Use, > dissemination, distribution, > or reproduction of this message by unintended > recipients is not > authorized and may be unlawful. If you are not the > intended > recipient, please advise the sender immediately by > reply e-mail and > delete this message and any attachments without > retaining a copy. > -------------------------------------------------------------------------- > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 29 17:26:07 2004 From: "Nabil AICI" Date: Wed, 30 Jun 2004 00:23:28 +0200 Subject: [sqr-users] SQR program for both PDF and CSV output file Hello, I would like to build a program to manage two output files (PDF and CSV for= mat) with only one sqr program (common SQL queries). Do anyone know if it's= possible and how to handle this ? Thanks from Paris. Nabil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jun 29 19:54:59 2004 From: "the dragon" Subject: RE: [sqr-users] SQR program for both PDF and CSV output file Date: Tue, 29 Jun 2004 19:52:22 -0500 Nabil, you create the csv with the write command and you create the html output with print peace from occupied America, clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, I would like to build a program to manage two output files (PDF and CSV format) with only one sqr program (common SQL queries). Do anyone know if it's possible and how to handle this ? Thanks from Paris. Nabil = _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 30 04:00:09 2004 From: "Darshil Mehta" Date: Wed, 30 Jun 2004 14:27:50 +0530 Subject: [sqr-users] Subscription to Exceptions All, I have one SQR report in which I have written following code: if #cnt_total > #temp print 'Exception: Prodline has changed' (1,1) open 'output.properties' as 0 for-append record=32767:vary write 0 from 'exception.default=on' write 0 from 'exception.default.text=Prodline has changes' close 0 else print 'Exception: Prodline has NO changes ' (1,1) open 'output.properties' as 0 for-append record=32767:vary write 0 from 'exception.default=on' write 0 from 'exception.default.text=Prodline has NO changes' close 0 end-if When I publish this report on Brio Portal with option 'Can have exception', I can see proper exceptions on my Brio Portal dashboard. But when I schedule it with email notification, I do not receive any email regarding exception. Can anyone suggest what could be the problem? Thanks in advance. Best regards, Darshil Mehta ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 30 07:23:40 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Subscription to Exceptions Date: Wed, 30 Jun 2004 22:22:48 +1000 Do you get an email if you just subscribe to the report without exceptions? Do any other subscription emails work? You need to see which is failing, the detection of the exception, or the sending of the email. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org]On Behalf Of Darshil Mehta Sent: Wednesday, 30 June 2004 6:58 PM To: sqr-users@sqrug.org Subject: [sqr-users] Subscription to Exceptions All, I have one SQR report in which I have written following code: if #cnt_total > #temp print 'Exception: Prodline has changed' (1,1) open 'output.properties' as 0 for-append record=32767:vary write 0 from 'exception.default=on' write 0 from 'exception.default.text=Prodline has changes' close 0 else print 'Exception: Prodline has NO changes ' (1,1) open 'output.properties' as 0 for-append record=32767:vary write 0 from 'exception.default=on' write 0 from 'exception.default.text=Prodline has NO changes' close 0 end-if When I publish this report on Brio Portal with option 'Can have exception', I can see proper exceptions on my Brio Portal dashboard. But when I schedule it with email notification, I do not receive any email regarding exception. Can anyone suggest what could be the problem? Thanks in advance. Best regards, Darshil Mehta ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 30 08:58:50 2004 Date: Wed, 30 Jun 2004 08:56:52 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] Subscription to Exceptions Also, certain email notifications are ignored if the lifespan of the object is not more than 24 hours. On Wed, 30 Jun 2004, Steve Cavill wrote: > Do you get an email if you just subscribe to the report without exceptions? > Do any other subscription emails work? > You need to see which is failing, the detection of the exception, or the > sending of the email. > Steve. > > > -----Original Message----- > From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org > [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org]On > Behalf Of Darshil Mehta > Sent: Wednesday, 30 June 2004 6:58 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Subscription to Exceptions > > > All, > > I have one SQR report in which I have written following code: > > if #cnt_total > #temp > print 'Exception: Prodline has changed' (1,1) > open 'output.properties' as 0 for-append record=32767:vary > write 0 from 'exception.default=on' > write 0 from 'exception.default.text=Prodline has changes' > close 0 > else > print 'Exception: Prodline has NO changes ' (1,1) > open 'output.properties' as 0 for-append record=32767:vary > write 0 from 'exception.default=on' > write 0 from 'exception.default.text=Prodline has NO changes' > close 0 > end-if > > When I publish this report on Brio Portal with option 'Can have > exception', I can see proper exceptions on my Brio Portal dashboard. But > when I schedule it with email notification, I do not receive any email > regarding exception. > > Can anyone suggest what could be the problem? Thanks in advance. > > > Best regards, > > Darshil Mehta > > > ______________________________________________________________________ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 30 11:48:19 2004 Date: Wed, 30 Jun 2004 09:47:21 -0700 From: Natalie Kovalerchuk Subject: Re: [sqr-users] SQR program for both PDF and CSV output file You could make a set of lines with "print" statements for your report (Pdf) and also write to the file like this ( for a example: write header into output file) let $hdr_line = ('Dept Id'||','||'Dept Name'||','||'EMPLID'||','||'Last Name'||','|| 'First Name'||','||'Hire Dt'||','||'Assgn Dt'||','||'Hrs Wk'||','||'Hrs Avail') write 1 from $hdr_line Natalie nataliek@cwu.edu >>> cybernaboo@yahoo.fr 06/29/04 03:23PM >>> Hello, I would like to build a program to manage two output files (PDF and CSV format) with only one sqr program (common SQL queries). Do anyone know if it's possible and how to handle this ? Thanks from Paris. Nabil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jun 30 17:19:26 2004 Date: Wed, 30 Jun 2004 17:18:49 -0500 From: "Thornton, Robert" Subject: [sqr-users] Brio version 6 failed to create report.htm I have Brio version 6 loaded on a XP machine. When I try to preview a report the htm page fails to create. This works fine on an NT machine. Is this a setting I am over looking or is it an XP issue? Thanks=20 Robert _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users