From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 01 00:00:35 2004 Date: Thu, 1 Jul 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 01 13:56:57 2004 From: "Mark Hall" Date: Thu, 01 Jul 2004 13:54:03 -0500 Subject: [sqr-users] (SQR 5543) Specify the Oracle DLL name in the SQR.INI One of my users ran into the following error running sqrw. (SQR 5543) Specify the Oracle DLL name in the SQR.INI file in (Environment Oracle] section for ORAVLE_DLL entry such as ORACLE_DLL =orant71.dll I found an old thread on sqrug which helped me to solve the problem but the solution, at least the one I found, is not explicitly spelled out in any posting. So in the interest of contributing to the knowledge base I will share my solution. Simply add the path to the oracle binaries on your local machine to your system PATH variable. C:\oracle\ora81\bin Start>Settings>Control Panel>System. Select the Advanced tab on the System Properties dialog box. Click the Environment variables button. Edit the path system variable to include the path to the oracle binaries. C:\oracle\ora81\bin; Mark Hall IS Analyst ERP Team Parkview Health Systems Fort Wayne, IN 260-373-8796 mark.hall@parkview.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 01 15:07:47 2004 Date: Thu, 1 Jul 2004 16:07:00 -0400 From: "Pink, Michael" Subject: [sqr-users] Flat File Limitations Hi, Does anyone know if there is a size limitation for writing flat files in SQR? Mike. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 01 15:46:16 2004 From: Ray Ontko Date: Thu, 1 Jul 2004 15:44:16 -0500 Subject: Re: [sqr-users] Flat File Limitations I'm not aware of any. Are you running into a problem? What operating system? Fixed or varying length records? If fixed, what record size? Ray On Thu, Jul 01, 2004 at 04:07:00PM -0400, Pink, Michael wrote: > Hi, > Does anyone know if there is a size limitation for writing flat files in > SQR? > Mike. > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 01 16:16:35 2004 From: "Lynds,Rick" Subject: RE: [sqr-users] Flat File Limitations Date: Thu, 1 Jul 2004 14:14:04 -0700 I recall some discussion about this a while ago. The result was that the limitations are generally due to limitations in the host operating/file system, rather than the SQR product itself. -----Original Message----- From: Pink, Michael [mailto:Michael.Pink@pgnmail.com] Sent: Thursday, July 01, 2004 1:07 PM To: sqr-users@sqrug.org Subject: [sqr-users] Flat File Limitations Hi, Does anyone know if there is a size limitation for writing flat files in SQR? Mike. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 01 16:26:55 2004 From: "the dragon" Subject: RE: [sqr-users] Flat File Limitations Date: Thu, 01 Jul 2004 16:25:52 -0500 Mike, There are OS level limitations, especially if you are using Unix, you may run into the ulimt restrictions for your user (Usually 1 GB??), or, obviously the amount of available disk space will limit your output file peace, 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---- Hi, Does anyone know if there is a size limitation for writing flat files in SQR? Mike. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 05:57:51 2004 Subject: RE: [sqr-users] Flat File Limitations Date: Fri, 2 Jul 2004 06:54:48 -0400 From: "Pink, Michael" Yeah we are getting a core dump after a certain number of rows are met. The record length is 2098 and on HP unix. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Ray Ontko Sent: Thursday, July 01, 2004 4:44 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Flat File Limitations I'm not aware of any. Are you running into a problem? What operating system? Fixed or varying length records? If fixed, what record size? Ray On Thu, Jul 01, 2004 at 04:07:00PM -0400, Pink, Michael wrote: > Hi, > Does anyone know if there is a size limitation for writing flat files in > SQR? > Mike. >=20 > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 10:04:06 2004 From: Ray Ontko Date: Fri, 2 Jul 2004 10:03:37 -0500 Subject: Re: [sqr-users] Flat File Limitations Is it somewhere near 1024000 records? If so, then you're probably bumping into a 2GB file limit. I'm not sure whether you'll be able to easily get around this. Ray On Fri, Jul 02, 2004 at 06:54:48AM -0400, Pink, Michael wrote: > Yeah we are getting a core dump after a certain number of rows are met. > The record length is 2098 and on HP unix. > > -----Original Message----- > From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > [mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf > Of Ray Ontko > Sent: Thursday, July 01, 2004 4:44 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Flat File Limitations > > > I'm not aware of any. Are you running into a problem? What operating > system? Fixed or varying length records? If fixed, what record size? > > Ray > > On Thu, Jul 01, 2004 at 04:07:00PM -0400, Pink, Michael wrote: > > Hi, > > Does anyone know if there is a size limitation for writing flat files > in > > SQR? > > Mike. > > > > _______________________________________________ > > 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 ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 10:13:33 2004 From: "Raj Srinivasan" Subject: RE: [sqr-users] Flat File Limitations Date: Fri, 2 Jul 2004 10:12:08 -0500 There was a similar problem at one of the big PS shops, and the resolution was to split the file into manageable size and then process sequentially. Thanks!!! Raj -----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 Ray Ontko Sent: Friday, July 02, 2004 10:04 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Flat File Limitations Is it somewhere near 1024000 records? If so, then you're probably bumping into a 2GB file limit. I'm not sure whether you'll be able to easily get around this. Ray On Fri, Jul 02, 2004 at 06:54:48AM -0400, Pink, Michael wrote: > Yeah we are getting a core dump after a certain number of rows are met. > The record length is 2098 and on HP unix. > > -----Original Message----- > From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > [mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf > Of Ray Ontko > Sent: Thursday, July 01, 2004 4:44 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Flat File Limitations > > > I'm not aware of any. Are you running into a problem? What operating > system? Fixed or varying length records? If fixed, what record size? > > Ray > > On Thu, Jul 01, 2004 at 04:07:00PM -0400, Pink, Michael wrote: > > Hi, > > Does anyone know if there is a size limitation for writing flat files > in > > SQR? > > Mike. > > > > _______________________________________________ > > 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 ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 06:19:18 2004 From: "the dragon" Subject: RE: [sqr-users] Flat File Limitations Date: Fri, 02 Jul 2004 06:18:01 -0500 Mike, How large is your output file when the sqr bails? I still think you're running up against an OS size limit; on AIX it would be the ulimit - you should get your system admin involved. 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---- Yeah we are getting a core dump after a certain number of rows are met. The record length is 2098 and on HP unix. -----Original Message----- I'm not aware of any. Are you running into a problem? What operating system? Fixed or varying length records? If fixed, what record size? Ray _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 10:09:39 2004 Subject: RE: [sqr-users] Flat File Limitations Date: Fri, 2 Jul 2004 11:07:31 -0400 From: "Pink, Michael" No the file is actually small, only about 11,000 rows. Less than 25 meg. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Ray Ontko Sent: Friday, July 02, 2004 11:04 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Flat File Limitations Is it somewhere near 1024000 records? If so, then you're probably=20 bumping into a 2GB file limit. I'm not sure whether you'll be able to easily get around this. Ray On Fri, Jul 02, 2004 at 06:54:48AM -0400, Pink, Michael wrote: > Yeah we are getting a core dump after a certain number of rows are met. > The record length is 2098 and on HP unix. >=20 > -----Original Message----- > From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org > [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf > Of Ray Ontko > Sent: Thursday, July 01, 2004 4:44 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Flat File Limitations >=20 >=20 > I'm not aware of any. Are you running into a problem? What operating > system? Fixed or varying length records? If fixed, what record size? >=20 > Ray >=20 > On Thu, Jul 01, 2004 at 04:07:00PM -0400, Pink, Michael wrote: > > Hi, > > Does anyone know if there is a size limitation for writing flat files > in > > SQR? > > Mike. > >=20 > > _______________________________________________ > > 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/ >=20 > _______________________________________________ > 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 > 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 10:21:12 2004 From: "Mark Hall" Date: Fri, 02 Jul 2004 10:18:34 -0500 Subject: RE: [sqr-users] Flat File Limitations If you are running into the 2G file limit you need to process the file in a file system that is "large file enabled." In some file systems I run into this limit when I am doing an export of an Oracle database. But certain file systems are, as I said, "large file enabled" and they except files sizes greater than 2G. Talk to your Unix system administrator. That is, if you are processing this file on a Unix box. It may just be that you need to use a different file system. Mark Hall IS Analyst ERP Team Parkview Health Systems Fort Wayne, IN 260-373-8796 mark.hall@parkview.com >>> raj.srinivasan@hccs.edu 07/02/04 10:12AM >>> There was a similar problem at one of the big PS shops, and the resolution was to split the file into manageable size and then process sequentially. Thanks!!! Raj -----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 Ray Ontko Sent: Friday, July 02, 2004 10:04 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Flat File Limitations Is it somewhere near 1024000 records? If so, then you're probably bumping into a 2GB file limit. I'm not sure whether you'll be able to easily get around this. Ray On Fri, Jul 02, 2004 at 06:54:48AM -0400, Pink, Michael wrote: > Yeah we are getting a core dump after a certain number of rows are met. > The record length is 2098 and on HP unix. > > -----Original Message----- > From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > [mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf > Of Ray Ontko > Sent: Thursday, July 01, 2004 4:44 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Flat File Limitations > > > I'm not aware of any. Are you running into a problem? What operating > system? Fixed or varying length records? If fixed, what record size? > > Ray > > On Thu, Jul 01, 2004 at 04:07:00PM -0400, Pink, Michael wrote: > > Hi, > > Does anyone know if there is a size limitation for writing flat files > in > > SQR? > > Mike. > > > > _______________________________________________ > > 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 ---------------------------------------------------------------------- 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 11:42:40 2004 From: "Bencke, Gina" Date: Fri, 2 Jul 2004 12:41:15 -0400 Subject: [sqr-users] Output variables with SQL Server Stored Procedures First let me say that I know there are many SQRUG postings regarding this topic and I did read and try to apply them. However I cannot get SQL-Server Stored Procedures with output variables to work! declare-variable float #colVariance text $outStr end-declare=20=20 move 'Hotels' to $str execute on-error=3DSQL-Error do=3DPrint-Columns @#storedProcStatus=3D fce_str_parm @entity=3D$str, @outStrVar=3D$outStr OUT into &ENTITY char(30), &ACTUAL float, &PROJECTED float=20 =20=20=20=20 print $outStr (+1,1) show 'Str: <' $outStr '>' =20=20 The above code successfully prints the column values returned from the stored procedure but $outStr is NULL and should not be. While the SQL Analyzer code below works properly, returning a string in @var. declare @var CHAR(30) exec fce_str_parm 'Hotels', @var out select @var The SQR code below fails with an execution error " (SQR 6801) Em2StdString: Null Operand Passed as input" regardless of how I call the stored procedure. The SQL Analyzer code works. move 3.0 to #actual move 5.0 to #projected move 0 to #colVariance execute on-error=3DSQL-Error =20=20=20 @#storedProcStatus=3D fce_calc_var @actual=3D#actual, @projected=3D#projected, @variance=3D#colVariance OUT !fce_calc_var 3, 5, #colVariance OUT=20 =20=20=20=20 !fce_calc_var @actual=3D3, @projected=3D5, @variance=3D#colVar output =20=20=20=20=20 !fce_calc_var 3, 5, #colVar OUT=20 =20 print 'Test 1' (2,1) print #colVar (0, +3) edit 999,999.99 print #storedProcStatus (0, +3) edit 999 declare @var DECIMAL (26,3) exec fce_calc_var 3, 5, @var out select @var Thanks, in advance, for your help. Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 14:44:32 2004 From: matunjt@NU.COM Date: Fri, 2 Jul 2004 15:41:57 -0400 Subject: [sqr-users] Interpreting HTML code in SQR report output We have a field to include in an SQR report that contains HTML code. Is there anyway for SQR to interpret the HTML formatting when printing / rendering the report? Specifically line breaks, bolding, and bullets. We are able to pull all HTML tags from the output, but we would like to keep some of the formatting. Where are using Report Builder 6.2.1 against Oracle 9i. Here is a sample of the field data:
  • Working with purchasing to complete contract
  • Researching issues related to deployment
    • PC equipment
    • Network limitations
  • Signed-off on Phase II contract with vendor
This is the output in the actual application that we would like to come close to: Working with purchasing to complete contract Researching issues related to deployment PC equipment Network limitations Signed-off on Phase II contract with vendor Any suggestions? Thanks, Jon Matunas ********************************************************************** This e-mail, including any files or attachments transmitted with it, is confidential and intended for a specific purpose and for use only by the individual or entity to whom it is addressed. Any disclosure, copying or distribution of this e-mail or the taking of any action based on its contents, other than for its intended purpose, is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it from your system. Any views or opinions expressed in this e-mail are not necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). E-mail transmission cannot be guaranteed to be error-free or secure or free from viruses, and NU disclaims all liability for any resulting damage, errors, or omissions. ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jul 04 01:53:36 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Interpreting HTML code in SQR report output Date: Sun, 4 Jul 2004 16:52:27 +1000 You should be able to use PRINT CODE-PRINTER=HT which will include whatever you ask it to. See the chapter on "Working with HTML" in the SQR developers guide which has an example. 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 matunjt@NU.COM Sent: Saturday, 3 July 2004 5:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] Interpreting HTML code in SQR report output We have a field to include in an SQR report that contains HTML code. Is there anyway for SQR to interpret the HTML formatting when printing / rendering the report? Specifically line breaks, bolding, and bullets. We are able to pull all HTML tags from the output, but we would like to keep some of the formatting. Where are using Report Builder 6.2.1 against Oracle 9i. Here is a sample of the field data:
  • Working with purchasing to complete contract
  • Researching issues related to deployment
    • PC equipment
    • Network limitations
  • Signed-off on Phase II contract with vendor
This is the output in the actual application that we would like to come close to: Working with purchasing to complete contract Researching issues related to deployment PC equipment Network limitations Signed-off on Phase II contract with vendor Any suggestions? Thanks, Jon Matunas ********************************************************************** This e-mail, including any files or attachments transmitted with it, is confidential and intended for a specific purpose and for use only by the individual or entity to whom it is addressed. Any disclosure, copying or distribution of this e-mail or the taking of any action based on its contents, other than for its intended purpose, is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it from your system. Any views or opinions expressed in this e-mail are not necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). E-mail transmission cannot be guaranteed to be error-free or secure or free from viruses, and NU disclaims all liability for any resulting damage, errors, or omissions. ********************************************************************** _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sun Jul 04 19:44:28 2004 From: Ray Ontko Date: Sun, 4 Jul 2004 19:43:59 -0500 Subject: Re: [sqr-users] Interpreting HTML code in SQR report output Jon, (Steve,) If you're only creating HTML output, then Steve's suggestion should work for you. You might need to trim out the and tags. But, I'm guessing that your question has to do with rendering HTML in the context of -printer:pd, -printer:ht, or -printer:ps. If that's the case, then you'll want to _interpret_ the HTML and invoke the appropriate PRINT commands depending on the HTML content. We've developed such an HTML interpreter (that reads a string containing HTML and then executes the equivalent print commands) that also uses our proportional font library. We get pretty good results for a useful subset of HTML. We have a substantial investment in our proportional font and HTML rendering libary. We haven't quite decided on an approach for allowing others to use the library. Contact me at rayo@ontko.com if you'd like to persue this further. Ray On Sun, Jul 04, 2004 at 04:52:27PM +1000, Steve Cavill wrote: > You should be able to use PRINT CODE-PRINTER=HT which will include whatever > you ask it to. See the chapter on "Working with HTML" in the SQR developers > guide which has an example. > 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 matunjt@NU.COM > Sent: Saturday, 3 July 2004 5:42 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Interpreting HTML code in SQR report output > > > > > > > We have a field to include in an SQR report that contains HTML code. Is > there anyway for SQR to interpret the HTML formatting when printing / > rendering the report? Specifically line breaks, bolding, and bullets. We > are able to pull all HTML tags from the output, but we would like to keep > some of the formatting. > > Where are using Report Builder 6.2.1 against Oracle 9i. > > Here is a sample of the field data: > >
    >
  • >
    Working with purchasing to complete contract
  • >
  • >
    Researching issues related to deployment
  • >
      >
    • >
      PC equipment
    • >
    • >
      Network limitations
    >
  • >
    Signed-off on Phase II contract with > vendor
> > This is the output in the actual application that we would like to come > close to: > Working with purchasing to complete contract > Researching issues related to deployment > PC equipment > Network limitations > Signed-off on Phase II contract with vendor > > > Any suggestions? > > Thanks, > Jon Matunas > > > > ********************************************************************** > This e-mail, including any files or attachments transmitted with it, is > confidential and intended for a specific purpose and for use only by the > individual or entity to whom it is addressed. Any disclosure, copying or > distribution of this e-mail or the taking of any action based on its > contents, other than for its intended purpose, is strictly prohibited. If > you have received this e-mail in error, please notify the sender immediately > and delete it from your system. Any views or opinions expressed in this > e-mail are not necessarily those of Northeast Utilities, its subsidiaries > and affiliates (NU). E-mail transmission cannot be guaranteed to be > error-free or secure or free from viruses, and NU disclaims all liability > for any resulting damage, errors, or omissions. > ********************************************************************** > > > _______________________________________________ > 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 ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 02 14:48:12 2004 From: "Bencke, Gina" Date: Fri, 2 Jul 2004 15:46:24 -0400 Subject: RE: [sqr-users] Output variables with SQL Server Stored Procedures -- Partially solved I finally have the fce_calc_var working. The problem was that #storedProcStatus needed to be declared as INTEGER.=20=20 fce_str_parm still returns a NULL string for $outStr. Does anyone know why? Regards, Gina Bencke FCE Office (216) 416-3492 Home Office (440) 519-0060 email: gina.work@bencke.com -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Bencke, Gina Sent: Friday, July 02, 2004 12:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] Output variables with SQL Server Stored Procedures First let me say that I know there are many SQRUG postings regarding this topic and I did read and try to apply them. However I cannot get SQL-Server Stored Procedures with output variables to work! declare-variable float #colVariance text $outStr end-declare=20=20 move 'Hotels' to $str execute on-error=3DSQL-Error do=3DPrint-Columns @#storedProcStatus=3D fce_str_parm @entity=3D$str, @outStrVar=3D$outStr OUT into &ENTITY char(30), &ACTUAL float, &PROJECTED float=20 =20=20=20=20 print $outStr (+1,1) show 'Str: <' $outStr '>' =20=20 The above code successfully prints the column values returned from the stored procedure but $outStr is NULL and should not be. While the SQL Analyzer code below works properly, returning a string in @var. declare @var CHAR(30) exec fce_str_parm 'Hotels', @var out select @var The SQR code below fails with an execution error " (SQR 6801) Em2StdString: Null Operand Passed as input" regardless of how I call the stored procedure. The SQL Analyzer code works. move 3.0 to #actual move 5.0 to #projected move 0 to #colVariance execute on-error=3DSQL-Error =20=20=20 @#storedProcStatus=3D fce_calc_var @actual=3D#actual, @projected=3D#projected, @variance=3D#colVariance OUT !fce_calc_var 3, 5, #colVariance OUT=20 =20=20=20=20 !fce_calc_var @actual=3D3, @projected=3D5, @variance=3D#colVar output =20=20=20=20=20 !fce_calc_var 3, 5, #colVar OUT=20 =20 print 'Test 1' (2,1) print #colVar (0, +3) edit 999,999.99 print #storedProcStatus (0, +3) edit 999 declare @var DECIMAL (26,3) exec fce_calc_var 3, 5, @var out select @var Thanks, in advance, for your help. Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.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+sqrusersarch=sqrug.org@sqrug.org Sat Jul 03 06:06:16 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Brio version 6 failed to create report.htm Date: Sat, 3 Jul 2004 20:43:37 +1000 That's usually a problem with your JRE setup. Does the spf get created? Check the sqr.ini files on both machines and make sure you have the right JRE and environment variables set. 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 Thornton, Robert Sent: Thursday, 1 July 2004 8:19 AM To: sqr-users@sqrug.org 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 Robert _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sat Jul 03 09:28:21 2004 Date: Sat, 3 Jul 2004 07:27:16 -0700 (PDT) From: razeel zaleel Subject: [sqr-users] Printing on 2 diff printer i am trying to print on 2 different printers depending on the criteria in the sqr program, any idea how i can do it in sqr appreciate your help thanx __________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sat Jul 03 13:14:02 2004 From: "the dragon" Subject: RE: [sqr-users] Printing on 2 diff printer Date: Sat, 03 Jul 2004 13:11:30 -0500 using what OS?? 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 trying to print on 2 different printers depending on the criteria in the sqr program, any idea how i can do it in sqr appreciate your help thanx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jul 04 22:40:13 2004 Date: Sun, 4 Jul 2004 20:37:48 -0700 (PDT) From: razeel zaleel Subject: RE: [sqr-users] Printing on 2 diff printer Windows 2000 PS 8 Oracle Thanks zaleel --- the dragon wrote: > using what OS?? > > > > 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 trying to print on 2 different printers > depending on the criteria in the sqr program, any > idea > how i can do it in sqr > > appreciate your help > > thanx > > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 06 10:15:16 2004 Subject: RE: [sqr-users] Brio version 6 failed to create report.htm Date: Tue, 6 Jul 2004 10:13:11 -0500 From: "Thornton, Robert" I have tried the following settings at different times in the [Environment:Common] and [JRE] sections. The report still does not create the htm file. The LOG, SPF, and PDF files get created. Am I overlooking a needed setting or is there a permission issue I am not aware of.=20=20=20 SQR_JRE_VER=3D1.1.7 SQR_JRE_EXE=3DC:\Program Files\Brio\JRE\jre117\bin\jre.exe=20 SQR_JRE_VER=3D1.1.8 SQR_JRE_EXE=3DC:\Program Files\Brio\JRE\jre118\bin\jre.exe SQR_JRE_VER=3D1.1.7 SQR_JRE_EXE=3DC:\Program Files\Oracle\jre\1.1.7\bin\jre.exe Thanks=20 Robert -----Original Message----- From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au]=20 Sent: Saturday, July 03, 2004 4:44 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Brio version 6 failed to create report.htm That's usually a problem with your JRE setup. Does the spf get created? Check the sqr.ini files on both machines and make sure you have the right JRE and environment variables set. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org]On Behalf Of Thornton, Robert Sent: Thursday, 1 July 2004 8:19 AM To: sqr-users@sqrug.org 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 Robert _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 06 17:25:35 2004 From: Peter Burton Date: Tue, 6 Jul 2004 15:24:19 -0700 Subject: RE: [sqr-users] Brio version 6 failed to create report.htm Robert, The most likely reason that HTML is not gentting generated is because the JRE is not compatible with the hardware. Try renaming the file SYMJIT.DLL to SYMJIT.DLL_ORG. This file is located in the JRE's BIN directory. 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 Thornton, Robert > Sent: Tuesday, July 06, 2004 11:13 AM > To: This list is for discussion about the SQR database > reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] Brio version 6 failed to create report.htm > > > I have tried the following settings at different times in the > [Environment:Common] and [JRE] sections. The report still does not > create the htm file. The LOG, SPF, and PDF files get created. Am I > overlooking a needed setting or is there a permission issue I am not > aware of. > > > SQR_JRE_VER=1.1.7 > SQR_JRE_EXE=C:\Program Files\Brio\JRE\jre117\bin\jre.exe > > > SQR_JRE_VER=1.1.8 > SQR_JRE_EXE=C:\Program Files\Brio\JRE\jre118\bin\jre.exe > > > SQR_JRE_VER=1.1.7 > SQR_JRE_EXE=C:\Program Files\Oracle\jre\1.1.7\bin\jre.exe > > > > Thanks > Robert > > > > > -----Original Message----- > From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] > Sent: Saturday, July 03, 2004 4:44 AM > To: This list is for discussion about the SQR database > reportinglanguage > fromHyperion Solutions. > Subject: RE: [sqr-users] Brio version 6 failed to create report.htm > > That's usually a problem with your JRE setup. Does the spf > get created? > Check the sqr.ini files on both machines and make sure you have the > right > JRE and environment variables set. > 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 Thornton, Robert > Sent: Thursday, 1 July 2004 8:19 AM > To: sqr-users@sqrug.org > 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 > > Robert > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 06 17:33:19 2004 From: Peter Burton Date: Tue, 6 Jul 2004 15:30:10 -0700 Subject: RE: [sqr-users] Brio version 6 failed to create report.htm Robert, Correction, the filename is "SYMCJIT.DLL". Peter > -----Original Message----- > From: Peter Burton > Sent: Tuesday, July 06, 2004 6:24 PM > To: 'This list is for discussion about the SQR database reporting > language from Hyperion Solutions.' > Subject: RE: [sqr-users] Brio version 6 failed to create report.htm > > > Robert, > > The most likely reason that HTML is not gentting generated is > because the JRE is not compatible with the hardware. Try > renaming the file SYMJIT.DLL to SYMJIT.DLL_ORG. This file is > located in the JRE's BIN directory. > > 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 Thornton, Robert > > Sent: Tuesday, July 06, 2004 11:13 AM > > To: This list is for discussion about the SQR database > > reportinglanguage > > from Hyperion Solutions. > > Subject: RE: [sqr-users] Brio version 6 failed to create report.htm > > > > > > I have tried the following settings at different times in the > > [Environment:Common] and [JRE] sections. The report still does not > > create the htm file. The LOG, SPF, and PDF files get created. Am I > > overlooking a needed setting or is there a permission issue I am not > > aware of. > > > > > > SQR_JRE_VER=1.1.7 > > SQR_JRE_EXE=C:\Program Files\Brio\JRE\jre117\bin\jre.exe > > > > > > SQR_JRE_VER=1.1.8 > > SQR_JRE_EXE=C:\Program Files\Brio\JRE\jre118\bin\jre.exe > > > > > > SQR_JRE_VER=1.1.7 > > SQR_JRE_EXE=C:\Program Files\Oracle\jre\1.1.7\bin\jre.exe > > > > > > > > Thanks > > Robert > > > > > > > > > > -----Original Message----- > > From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] > > Sent: Saturday, July 03, 2004 4:44 AM > > To: This list is for discussion about the SQR database > > reportinglanguage > > fromHyperion Solutions. > > Subject: RE: [sqr-users] Brio version 6 failed to create report.htm > > > > That's usually a problem with your JRE setup. Does the spf > > get created? > > Check the sqr.ini files on both machines and make sure you have the > > right > > JRE and environment variables set. > > 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 Thornton, Robert > Sent: Thursday, 1 July 2004 8:19 AM > To: sqr-users@sqrug.org > 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 > > Robert > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 05 07:26:02 2004 Subject: RE: [sqr-users] Subscription to Exceptions From: "Darshil Mehta" Date: Mon, 5 Jul 2004 17:56:02 +0530 I checked both. I get emails whenever do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message My object's life is 500 mins. Is there any code that I have write in .sqr file to get email notifications only whenever there is exceptions? Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 30/06/2004 05:52 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 05 22:59:06 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Subscription to Exceptions Date: Tue, 6 Jul 2004 11:49:59 +1000 Now I'm confused. Below you say you are getting the email, but earlier you said you are not getting the email. Do you mean you are getting the email whether there is an exception or not, and that you DO NOT want to get a message UNLESS there is an exception? In which case your setup below looks correct. 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: Monday, 5 July 2004 10:26 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions I checked both. I get emails whenever do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message My object's life is 500 mins. Is there any code that I have write in .sqr file to get email notifications only whenever there is exceptions? Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 30/06/2004 05:52 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 05 23:07:23 2004 Subject: RE: [sqr-users] Subscription to Exceptions From: "Darshil Mehta" Date: Tue, 6 Jul 2004 09:37:39 +0530 Sorry for the confusion !!! Let me put it this way. I do get mails when I do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message If I don't do above action, I don't get mails. And if I do above action, I still get mails even there is no exception. I hope this is more clear. Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 06/07/2004 07:19 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions Now I'm confused. Below you say you are getting the email, but earlier you said you are not getting the email. Do you mean you are getting the email whether there is an exception or not, and that you DO NOT want to get a message UNLESS there is an exception? In which case your setup below looks correct. 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: Monday, 5 July 2004 10:26 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions I checked both. I get emails whenever do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message My object's life is 500 mins. Is there any code that I have write in .sqr file to get email notifications only whenever there is exceptions? Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 30/06/2004 05:52 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 06 03:55:18 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Subscription to Exceptions Date: Tue, 6 Jul 2004 16:33:52 +1000 Your sqr code will ALWAYS generate an exception: 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 The exception is either "Prodline has changes", or "Prodline has NO changes" so I think the portal is working correctly. If one of the above conditions is NOT an exception, then don't create the output.properties file for that condition. 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 Darshil Mehta Sent: Tuesday, 6 July 2004 2:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions Sorry for the confusion !!! Let me put it this way. I do get mails when I do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message If I don't do above action, I don't get mails. And if I do above action, I still get mails even there is no exception. I hope this is more clear. Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 06/07/2004 07:19 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions Now I'm confused. Below you say you are getting the email, but earlier you said you are not getting the email. Do you mean you are getting the email whether there is an exception or not, and that you DO NOT want to get a message UNLESS there is an exception? In which case your setup below looks correct. 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: Monday, 5 July 2004 10:26 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions I checked both. I get emails whenever do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message My object's life is 500 mins. Is there any code that I have write in .sqr file to get email notifications only whenever there is exceptions? Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 30/06/2004 05:52 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 06 05:10:07 2004 Subject: RE: [sqr-users] Subscription to Exceptions From: "Darshil Mehta" Date: Tue, 6 Jul 2004 15:24:31 +0530 A minor correction in code. In else part, I have changed exception.default=off from exception.default=on. 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=off' write 0 from 'exception.default.text=Prodline has NO changes' close 0 end-if Now this code works perfectly on portal. Whenever there is exception, exception dashboard shows exception. Otherwise it does not. But when I do following, I do get mails: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message If I don't do above action, I don't get mails. And if I do above action, I still get mails even there is no exception. Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 06/07/2004 12:03 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions Your sqr code will ALWAYS generate an exception: 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 The exception is either "Prodline has changes", or "Prodline has NO changes" so I think the portal is working correctly. If one of the above conditions is NOT an exception, then don't create the output.properties file for that condition. 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 Darshil Mehta Sent: Tuesday, 6 July 2004 2:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions Sorry for the confusion !!! Let me put it this way. I do get mails when I do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message If I don't do above action, I don't get mails. And if I do above action, I still get mails even there is no exception. I hope this is more clear. Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 06/07/2004 07:19 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions Now I'm confused. Below you say you are getting the email, but earlier you said you are not getting the email. Do you mean you are getting the email whether there is an exception or not, and that you DO NOT want to get a message UNLESS there is an exception? In which case your setup below looks correct. 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: Monday, 5 July 2004 10:26 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions I checked both. I get emails whenever do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message My object's life is 500 mins. Is there any code that I have write in .sqr file to get email notifications only whenever there is exceptions? Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 30/06/2004 05:52 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sat Jul 10 00:34:13 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Subscription to Exceptions Date: Sat, 10 Jul 2004 15:31:29 +1000 Hi Darshil, i don't think exception.default=off is a valid string in your output.properties. If you don't want an exception, don't write to the file. e.g. 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) !don't create output.properties end-if -----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: Tuesday, 6 July 2004 7:55 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions A minor correction in code. In else part, I have changed exception.default=off from exception.default=on. 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=off' write 0 from 'exception.default.text=Prodline has NO changes' close 0 end-if Now this code works perfectly on portal. Whenever there is exception, exception dashboard shows exception. Otherwise it does not. But when I do following, I do get mails: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message If I don't do above action, I don't get mails. And if I do above action, I still get mails even there is no exception. Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 06/07/2004 12:03 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions Your sqr code will ALWAYS generate an exception: 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 The exception is either "Prodline has changes", or "Prodline has NO changes" so I think the portal is working correctly. If one of the above conditions is NOT an exception, then don't create the output.properties file for that condition. 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 Darshil Mehta Sent: Tuesday, 6 July 2004 2:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions Sorry for the confusion !!! Let me put it this way. I do get mails when I do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message If I don't do above action, I don't get mails. And if I do above action, I still get mails even there is no exception. I hope this is more clear. Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 06/07/2004 07:19 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions Now I'm confused. Below you say you are getting the email, but earlier you said you are not getting the email. Do you mean you are getting the email whether there is an exception or not, and that you DO NOT want to get a message UNLESS there is an exception? In which case your setup below looks correct. 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: Monday, 5 July 2004 10:26 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions.; sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org Subject: RE: [sqr-users] Subscription to Exceptions I checked both. I get emails whenever do following: On brio portal, under subscription: - Click subscribe to 'Subscribe to output from ' - Click 'Only subscribe to exception item' - Attach output from to email message My object's life is 500 mins. Is there any code that I have write in .sqr file to get email notifications only whenever there is exceptions? Thanks, Darshil "Steve Cavill" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 30/06/2004 05:52 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 reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Subscription to Exceptions 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 04:24:49 2004 Date: Wed, 7 Jul 2004 11:20:50 +0200 (CEST) From: =?iso-8859-1?q?Nabil?= Subject: [sqr-users] Various printing types in the same program Hi, I got a SQR program writing at the same time in a CSV and in a PDF files. Do you know if it's possible to add a third writing for direct HP printing (while writing the two files on the disk) ? Thanks from Paris. Nabil --------------------------------- Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail Dialoguez en direct avec vos amis grâce à Yahoo! Messenger ! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 06:56:17 2004 From: "the dragon" Subject: RE: [sqr-users] Various printing types in the same program Date: Wed, 07 Jul 2004 06:54:48 -0500 Nabil, I do not believethis to be possible, without running the program twice or cloning it. Why would you need to? The pdf can be printed..... 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of reference ----Original Message Follows---- Hi, I got a SQR program writing at the same time in a CSV and in a PDF files. Do you know if it's possible to add a third writing for direct HP printing (while writing the two files on the disk) ? Thanks from Paris. Nabil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 08:32:27 2004 Date: Wed, 7 Jul 2004 15:30:09 +0200 (CEST) From: =?iso-8859-1?q?Nabil?= Subject: RE: [sqr-users] Various printing types in the same program Thanks Clark. Maybe, I can generate a SPF file which I can transform for direct printing and Pdf as the same time... the dragon wrote: Nabil, I do not believethis to be possible, without running the program twice or cloning it. Why would you need to? The pdf can be printed..... 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of reference ----Original Message Follows---- Hi, I got a SQR program writing at the same time in a CSV and in a PDF files. Do you know if it's possible to add a third writing for direct HP printing (while writing the two files on the disk) ? Thanks from Paris. Nabil --------------------------------- Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail Dialoguez en direct avec vos amis grâce à Yahoo! Messenger ! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 08:27:50 2004 From: "David Ellick" Subject: Re: [sqr-users] Various printing types in the same program Date: Wed, 7 Jul 2004 13:59:04 +0100 Nabil, Try generating the output initially as an SPF. Then you can use the new-report command to close the file and call SQRWP to convert the SPF to any format you want. This definitely works in Windows. Basically, Begin-Program !fred.sqr do some_stuff new-report 'dummy.lis' call system using 'sqrwp.exe fred.spf -printer:pd' #x call system using 'sqrwp.exe fred.spf -printer:hp' #x End-Program You can use this approach to generate any number of output types. Alternatively enclose the SQR in a script and call SQRWP in the script. Whichever will be more supportable in your business. David ----- Original Message ----- From: "Nabil" To: Sent: Wednesday, July 07, 2004 10:20 AM Subject: [sqr-users] Various printing types in the same program > Hi, > > I got a SQR program writing at the same time in a CSV and in a PDF files. Do you know if it's possible to add a third writing for direct HP printing (while writing the two files on the disk) ? > > Thanks from Paris. > > Nabil > > > --------------------------------- > Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! > Créez votre Yahoo! Mail > > Dialoguez en direct avec vos amis grâce à 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 09:22:11 2004 Date: Wed, 07 Jul 2004 10:20:58 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Unable to create SPF file. I encountered a problem yesterday when I was trying to generate an SPF file= .=20 =20 The command I used to make the SQT file was: C:\Program Files\Brio\SQR\ORA\BINW\sqrw.exe C:SQR\6002.SQR user_name/passwo= rd@database_name -rs *nolis I also tried using the flags, -xcb -ziv with the command line. The SQT fi= le gets created allright. But when I run the SQT, instead of getting an SPF= file, a lis file is getting generated. Have I missed something critical wh= ile compiling the SQR program? I would greatly appreciate your help. Thanks= in advance.Jessie =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 09:31:27 2004 From: "the dragon" Subject: RE: [sqr-users] Unable to create SPF file. Date: Wed, 07 Jul 2004 09:30:27 -0500 Jesse, ummmmm try the -keep switch??? when you run it. 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 encountered a problem yesterday when I was trying to generate an SPF file. The command I used to make the SQT file was: C:\Program Files\Brio\SQR\ORA\BINW\sqrw.exe C:SQR\6002.SQR user_name/password@database_name -rs *nolis I also tried using the flags, -xcb -ziv with the command line. The SQT file gets created allright. But when I run the SQT, instead of getting an SPF file, a lis file is getting generated. Have I missed something critical while compiling the SQR program? I would greatly appreciate your help. Thanks in advance.Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 10:02:13 2004 Date: Wed, 07 Jul 2004 11:00:48 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] Unable to create SPF file. Thank you so much. That worked just fine. Actually the whole command that I= used was: sqrwt.exe filename.SQT username/password@databasename -keep *nolis *xcb *z= iv $input_param =20 This way, I suppress the creation of the LIS file & the SPF file comes up, = once the run is over. =20 Thanks again, Jess >>> "the dragon" 07/07/2004 10:30:27 AM >>> Jesse, ummmmm try the -keep switch??? when you run it. 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 encountered a problem yesterday when I was trying to generate an SPF file. The command I used to make the SQT file was: C:\Program Files\Brio\SQR\ORA\BINW\sqrw.exe C:SQR\6002.SQR=20 user_name/password@database_name -rs *nolis I also tried using the flags, -xcb -ziv with the command line. The SQT=20 file gets created allright. But when I run the SQT, instead of getting an= =20 SPF file, a lis file is getting generated. Have I missed something critical= =20 while compiling the SQR program? I would greatly appreciate your help.=20 Thanks in advance.Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 15:26:17 2004 From: CAllo@hinda.com Date: Wed, 7 Jul 2004 15:25:12 -0500 Subject: [sqr-users] Subselect I don't have very detailed information on the begin-select construct and my question is as follows: In SQL, you can do "subselects" like SELECT Date, (Select total From Acct Where...), Name, ..... FROM ..... I am wondering if it is possible to accomplish something of the sort in a begin-select paragraph? Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 15:35:56 2004 Subject: RE: [sqr-users] Subselect Date: Wed, 7 Jul 2004 15:34:52 -0500 From: "Knapp, Richard" Yup.=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of CAllo@hinda.com Sent: Wednesday, July 07, 2004 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] Subselect I don't have very detailed information on the begin-select construct and my question is as follows: In SQL, you can do "subselects" like SELECT Date, (Select total From Acct Where...), Name, ..... FROM ..... I am wondering if it is possible to accomplish something of the sort in a begin-select paragraph? Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 15:58:47 2004 Subject: RE: [sqr-users] Subselect From: CAllo@hinda.com Date: Wed, 7 Jul 2004 15:56:22 -0500 Do you have an example of how this would be accomplished? I greatly appreciate your help. "Knapp, Richard" To Sent by: "This list is for discussion about sqr-users-bounces the SQR database reportinglanguage +callo=hinda.com@ from Hyperion Solutions." sqrug.org cc 07/07/2004 03:34 Subject PM RE: [sqr-users] Subselect Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Yup. -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of CAllo@hinda.com Sent: Wednesday, July 07, 2004 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] Subselect I don't have very detailed information on the begin-select construct and my question is as follows: In SQL, you can do "subselects" like SELECT Date, (Select total From Acct Where...), Name, ..... FROM ..... I am wondering if it is possible to accomplish something of the sort in a begin-select paragraph? Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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 communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 15:48:07 2004 Date: Wed, 07 Jul 2004 16:45:56 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Subselect Yes, just put a variable at the end of the subselect - ie begin-select A.DATE (select ID from TABLE_X where NAME =3D 'FRED') &ID A.ADDRESS_LINE1 show ' Date =3D ' &A.DATE ' ID =3D ' &ID=20 from ADDRESSES A where A.ADDRESS_TYPE =3D 'HOME' end-select Larry Roux Syracuse University lroux@syr.edu >>> CAllo@hinda.com 07/07/04 16:28 PM >>> I don't have very detailed information on the begin-select construct and my question is as follows: In SQL, you can do "subselects" like SELECT Date, (Select total From Acct Where...), Name, ...... FROM ...... I am wondering if it is possible to accomplish something of the sort in a begin-select paragraph? Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 16:20:31 2004 Subject: Re: [sqr-users] Subselect From: CAllo@hinda.com Date: Wed, 7 Jul 2004 16:18:07 -0500 Thanks a bunch. I have tried it and it works as shown, however, the subselect I am trying to do is a "sum" and it looks like SQR doesn't like that. i.e. begin-select A.DATE (select sum(amount) from TABLE_X where NAME = 'FRED') &ID By the way, the reason I'm trying to do this is so that I can ORDER BY A.DATE, &ID. I know I could call separate procedures to go and get this information, but then I am not able to sort the data unless I build some sort of temp table or views. I wanted to be able to just return everything I need in this one select and sort accordingly and then print. Any further thoughts? Christopher Allo PeopleSoft Specialist x-3348 "Larry Roux" Sent by: To sqr-users-bounces +callo=hinda.com@ cc sqrug.org Subject Re: [sqr-users] Subselect 07/07/2004 03:45 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Yes, just put a variable at the end of the subselect - ie begin-select A.DATE (select ID from TABLE_X where NAME = 'FRED') &ID A.ADDRESS_LINE1 show ' Date = ' &A.DATE ' ID = ' &ID from ADDRESSES A where A.ADDRESS_TYPE = 'HOME' end-select Larry Roux Syracuse University lroux@syr.edu >>> CAllo@hinda.com 07/07/04 16:28 PM >>> I don't have very detailed information on the begin-select construct and my question is as follows: In SQL, you can do "subselects" like SELECT Date, (Select total From Acct Where...), Name, ...... FROM ...... I am wondering if it is possible to accomplish something of the sort in a begin-select paragraph? Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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 communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 16:08:40 2004 Subject: RE: [sqr-users] Subselect Date: Wed, 7 Jul 2004 16:07:26 -0500 From: "Knapp, Richard" Just write your sql and enclose the entire paragraph in begin-(select)/end-select and that in begin-procedure/end-procedure. Call this procedure from a begin-program procedure. If it's bonafide SQL, it should work in SQR. Sometimes it is simpler to do the work of a subquery in another paragraph that you call from within the original select: Begin-select A &a_var B &b_var C &c_var do the_other_procedure =46rom some_table Where something =3D somethingelse and etc.... End-select 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 CAllo@hinda.com Sent: Wednesday, July 07, 2004 3:56 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Subselect Do you have an example of how this would be accomplished? I greatly appreciate your help. =20 "Knapp, Richard" To=20 Sent by: "This list is for discussion about=20=20 sqr-users-bounces the SQR database reportinglanguage=20=20 +callo=3Dhinda.com@ from Hyperion Solutions." sqrug.org =20 cc=20 =20 07/07/2004 03:34 Subject=20 PM RE: [sqr-users] Subselect =20 =20 Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." =20 =20 Yup. -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of CAllo@hinda.com Sent: Wednesday, July 07, 2004 3:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] Subselect I don't have very detailed information on the begin-select construct and my question is as follows: In SQL, you can do "subselects" like SELECT Date, (Select total From Acct Where...), Name, ..... FROM ..... I am wondering if it is possible to accomplish something of the sort in a begin-select paragraph? Christopher Allo PeopleSoft Specialist x-3348 This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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 communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 07 17:07:02 2004 From: Peter Burton Date: Wed, 7 Jul 2004 15:02:38 -0700 Subject: RE: [sqr-users] Subselect Christopher, What is the error message? What database? What version of SQR? 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 CAllo@hinda.com > Sent: Wednesday, July 07, 2004 5:18 PM > To: This list is for discussion about the SQR database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] Subselect > > > > > > > > Thanks a bunch. I have tried it and it works as shown, however, the > subselect I am trying to do is a "sum" and it looks like SQR > doesn't like > that. > i.e. > begin-select > A.DATE > (select sum(amount) from TABLE_X where NAME = 'FRED') &ID > > By the way, the reason I'm trying to do this is so that I can ORDER BY > A.DATE, &ID. > > I know I could call separate procedures to go and get this > information, but > then I am not able to sort the data unless I build some sort > of temp table > or views. I wanted to be able to just return everything I > need in this > one select and sort accordingly and then print. > > Any further thoughts? > > Christopher Allo > PeopleSoft Specialist > x-3348 > > > > > "Larry Roux" > > > > Sent by: > To > sqr-users-bounces > > +callo=hinda.com@ > cc > sqrug.org > > > Subject > Re: [sqr-users] > Subselect > 07/07/2004 03:45 > > PM > > > > > > Please respond to > > "This list is for > > discussion about > > the SQR database > > reporting > > language from > > Hyperion > > Solutions." > > > org> > > > > > > > > > > Yes, just put a variable at the end of the subselect - ie > > begin-select > A.DATE > (select ID from TABLE_X where NAME = 'FRED') &ID > A.ADDRESS_LINE1 > show ' Date = ' &A.DATE ' ID = ' &ID > from ADDRESSES A > where A.ADDRESS_TYPE = 'HOME' > end-select > > > > > > > > > Larry Roux > Syracuse University > lroux@syr.edu > > >>> CAllo@hinda.com 07/07/04 16:28 PM >>> > > > > > I don't have very detailed information on the begin-select > construct and my > question is as follows: In SQL, you can do "subselects" like > > SELECT > Date, > (Select total From Acct Where...), > Name, > ...... > FROM > ...... > > > I am wondering if it is possible to accomplish something of > the sort in a > begin-select paragraph? > > Christopher Allo > PeopleSoft Specialist > x-3348 > This communication is for the exclusive use of addressee and > may contain > confidential, proprietary or privileged information which may be used > exclusively for its intended purpose. If you are not the intended > recipient, any use, copying, disclosure, dissemination or > distribution is > strictly prohibited. If you are not the intended recipient, > please notify > the sender immediately by return e-mail, delete this > communication, and > destroy all copies. > > > _______________________________________________ > 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 communication is for the exclusive use of addressee and > may contain > confidential, proprietary or privileged information which may be used > exclusively for its intended purpose. If you are not the intended > recipient, any use, copying, disclosure, dissemination or > distribution is > strictly prohibited. If you are not the intended recipient, > please notify > the sender immediately by return e-mail, delete this > communication, and > destroy all copies. > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 06:51:34 2004 Subject: Re: [sqr-users] Subselect From: Rebecca.Barilleaux@anthem.com Date: Thu, 8 Jul 2004 07:48:43 -0400 Christopher, You can do this exactly the way you have it coded below, but in the "ORDER BY" use the ordinal position of the field you want to sort by. ORDER BY doesn't recognize the aliases (like &ID). Try this: begin-select A.DATE (select sum(amount) from TABLE_X where NAME = 'FRED') &ID do other_stuff FROM TABLE_X A WHERE A.blah = whatever ORDER BY A.DATE, 2 Thanks, Rebecca >Date: Wed, 7 Jul 2004 16:18:07 -0500 >From: CAllo@hinda.com >Subject: Re: [sqr-users] Subselect >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Thanks a bunch. I have tried it and it works as shown, however, the >subselect I am trying to do is a "sum" and it looks like SQR doesn't like >that. >i.e. >begin-select >A.DATE >(select sum(amount) from TABLE_X where NAME = 'FRED') &ID > >By the way, the reason I'm trying to do this is so that I can ORDER BY >A.DATE, &ID. > >I know I could call separate procedures to go and get this information, but >then I am not able to sort the data unless I build some sort of temp table >or views. I wanted to be able to just return everything I need in this >one select and sort accordingly and then print. > >Any further thoughts? > >Christopher Allo >PeopleSoft Specialist >x-3348 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 07:24:19 2004 Date: Thu, 08 Jul 2004 08:22:14 -0400 From: "George Jansen" Subject: Re: [sqr-users] Subselect You could turn your scalar subquery into an in-line view and avoid the problem. The following uses standard Oracle data-dictionary views to query from and runs nicely. Begin-Program Begin-Select T.table_name &tn B.id &id let $id = to_char(&id) let $line = &tn || ' ' || $id show $line >From user_tables t, (SELECT Sum(column_id) AS id FROM user_tab_columns) b End-Select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 10:24:40 2004 From: "Harris, Sam" Subject: RE: [sqr-users] Subselect Date: Thu, 8 Jul 2004 11:23:27 -0400 Does anyone know how one might be removed from this list? I have tried to unsubscribe, but I continue to get these messages. Sam -----Original Message----- From: George Jansen [mailto:GJANSEN@aflcio.org] Sent: Thursday, July 08, 2004 8:22 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Subselect You could turn your scalar subquery into an in-line view and avoid the problem. The following uses standard Oracle data-dictionary views to query from and runs nicely. Begin-Program Begin-Select T.table_name &tn B.id &id let $id = to_char(&id) let $line = &tn || ' ' || $id show $line >From user_tables t, (SELECT Sum(column_id) AS id FROM user_tab_columns) b End-Select _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 11:16:13 2004 Date: Thu, 08 Jul 2004 13:14:54 -0300 From: "PeterG Clark" Subject: RE: [sqr-users] Subselect The link to subscription facilities (including unsubscribing) can be found at the bottom of every message :-) http://www.sqrug.org/mailman/listinfo/sqr-users >>> SVH@CDRH.FDA.GOV 2004/07/08 12:23:27 >>> Does anyone know how one might be removed from this list? I have tried to unsubscribe, but I continue to get these messages. Sam -----Original Message----- From: George Jansen [mailto:GJANSEN@aflcio.org] Sent: Thursday, July 08, 2004 8:22 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Subselect You could turn your scalar subquery into an in-line view and avoid the problem. The following uses standard Oracle data-dictionary views to query from and runs nicely. Begin-Program Begin-Select T.table_name &tn B.id &id let $id = to_char(&id) let $line = &tn || ' ' || $id show $line >From user_tables t, (SELECT Sum(column_id) AS id FROM user_tab_columns) b End-Select _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 05:04:12 2004 From: vaibhav_jindal@non.agilent.com Date: Thu, 8 Jul 2004 18:03:09 +0800 Subject: [sqr-users] Problem with Date Format in .csv Hi I am having some problem in the date formats.The problem is that in the main query iam converting the date in mm/dd/yy hh:mm:ss AM format like this : TO_CHAR(ooha.ordered_date, 'mm/dd/yy HH:MM:SS AM') &ORDERED_DATE (15,3500) and while creating the csv , iam giving : let $brb_csv_data = $brb_csv_data || ',' || '"' || &ORDERED_DATE || '"' as a result, in the html result file .. iam getting the date in the correct format eg : 2/12/02 01:20:03 AM but in the csv that is generated .. it is automatically converting the time into 24 hour format : 3/19/2003 13:03 What I want is that the date in csv format should also come the same as in the html format. Can someone suggest some alternative..... 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 05:22:12 2004 Subject: Re: [sqr-users] Problem with Date Format in .csv From: "Darshil Mehta" Date: Thu, 8 Jul 2004 15:47:39 +0530 Vaibhav, I guess it has nothing to do with your code. This is excel limitation that excel changes the date format according to excel's own setting. Cheers Darshil vaibhav_jindal@non.agilent.com Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 08/07/2004 03:33 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] Problem with Date Format in .csv Hi I am having some problem in the date formats.The problem is that in the main query iam converting the date in mm/dd/yy hh:mm:ss AM format like this : TO_CHAR(ooha.ordered_date, 'mm/dd/yy HH:MM:SS AM') &ORDERED_DATE (15,3500) and while creating the csv , iam giving : let $brb_csv_data = $brb_csv_data || ',' || '"' || &ORDERED_DATE || '"' as a result, in the html result file .. iam getting the date in the correct format eg : 2/12/02 01:20:03 AM but in the csv that is generated .. it is automatically converting the time into 24 hour format : 3/19/2003 13:03 What I want is that the date in csv format should also come the same as in the html format. Can someone suggest some alternative..... 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 06:14:10 2004 Subject: RE: [sqr-users] Problem with Date Format in .csv Date: Thu, 8 Jul 2004 07:04:32 -0400 From: "Pink, Michael" If you add the date with a single quote ' on both sides it should treat the field as text and not format it. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Darshil Mehta Sent: Thursday, July 08, 2004 6:18 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: sqr-users@sqrug.org; sqr-users-bounces+darshil.mehta=3Dlntinfotech.com@sqrug.org Subject: Re: [sqr-users] Problem with Date Format in .csv Vaibhav, I guess it has nothing to do with your code. This is excel limitation that=20 excel changes the date format according to excel's own setting. Cheers Darshil vaibhav_jindal@non.agilent.com Sent by: sqr-users-bounces+darshil.mehta=3Dlntinfotech.com@sqrug.org 08/07/2004 03:33 PM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: sqr-users@sqrug.org cc:=20 Subject: [sqr-users] Problem with Date Format in .csv Hi=20 =20 =20 I am having some problem in the date formats.The problem is that in the=20 main query iam converting the date in mm/dd/yy hh:mm:ss AM format like=20 this : TO_CHAR(ooha.ordered_date, 'mm/dd/yy HH:MM:SS AM') &ORDERED_DATE (15,3500) =20 and while creating the csv , iam giving :=20 let $brb_csv_data =3D $brb_csv_data || ',' || '"' || &ORDERED_DATE || '"' =20 as a result, in the html result file .. iam getting the date in the=20 correct format eg : 2/12/02 01:20:03 AM=20 but in the csv that is generated .. it is automatically converting the=20 time into 24 hour format :=20 3/19/2003 13:03=20 =20 =20 What I want is that the date in csv format should also come the same as in=20 the html format. Can someone suggest some alternative..... =20 Thanks & Regards Vaibhav Gupta Business Intelligence and Enterprise Reporting TCS @ Agilent Technologies =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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 06:46:05 2004 From: "the dragon" Subject: RE: [sqr-users] Problem with Date Format in .csv Date: Thu, 08 Jul 2004 06:42:16 -0500 Vaibhav, Is the date correct in the .csv, when you view it with a **> TEXT EDITOR <** ??? If it is, then MicroShaft excel is doing something to convert it when it reads the .csv file. 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 am having some problem in the date formats.The problem is that in the main query iam converting the date in mm/dd/yy hh:mm:ss AM format like this : TO_CHAR(ooha.ordered_date, 'mm/dd/yy HH:MM:SS AM') &ORDERED_DATE (15,3500) and while creating the csv , iam giving : let $brb_csv_data = $brb_csv_data || ',' || '"' || &ORDERED_DATE || '"' as a result, in the html result file .. iam getting the date in the correct format eg : 2/12/02 01:20:03 AM but in the csv that is generated .. it is automatically converting the time into 24 hour format : 3/19/2003 13:03 What I want is that the date in csv format should also come the same as in the html format. Can someone suggest some alternative..... Thanks & Regards _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 09:14:38 2004 Date: Thu, 8 Jul 2004 07:13:33 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] Problem with Date Format in .csv Vaibhav, Did you Check the CSV in other Editors Like Notepad or some thing? or in unix? Check and see if the Format is being messed up by EXCEL Cell formating, if so then Mike's Suggestion is good create a Text value to retain the Date format. HTH Datta. --- "Pink, Michael" wrote: > If you add the date with a single quote ' on both sides it should > treat > the field as text and not format it. > > -----Original Message----- > From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > [mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On > Behalf > Of Darshil Mehta > Sent: Thursday, July 08, 2004 6:18 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Cc: sqr-users@sqrug.org; > sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org > Subject: Re: [sqr-users] Problem with Date Format in .csv > > > Vaibhav, > > I guess it has nothing to do with your code. This is excel limitation > that > excel changes the date format according to excel's own setting. > > Cheers > > Darshil > > > > > > vaibhav_jindal@non.agilent.com > Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org > 08/07/2004 03:33 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] Problem with Date Format in .csv > > > Hi > > > I am having some problem in the date formats.The problem is that in > the > main query iam converting the date in mm/dd/yy hh:mm:ss AM format > like > this : > TO_CHAR(ooha.ordered_date, 'mm/dd/yy HH:MM:SS AM') &ORDERED_DATE > (15,3500) > > and while creating the csv , iam giving : > let $brb_csv_data = $brb_csv_data || ',' || '"' || &ORDERED_DATE || > '"' > > as a result, in the html result file .. iam getting the date in the > correct format eg : 2/12/02 01:20:03 AM > but in the csv that is generated .. it is automatically converting > the > time into 24 hour format : > 3/19/2003 13:03 > > > What I want is that the date in csv format should also come the same > as > in > the html format. > Can someone suggest some alternative..... > > > 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 > > ______________________________________________________________________ > > > > > ______________________________________________________________________ > > _______________________________________________ > 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 - 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 09:58:03 2004 Date: Thu, 8 Jul 2004 07:57:01 -0700 (PDT) From: Amit Mundra Subject: Re: [sqr-users] Problem with Date Format in .csv Vaibhav, As Darshil mentioned, this is an Excel problem. If you open the csv file in notepad.exe, it should look exactly the same as it does in html. Excel just changes the formatting to what you are seeing now. In fact, if you click on any date cell and look in the formula bar, it will show up as you wanted. In order to change the view in Excel, select the date column, select formatting from right click menu and change the formatting to how you want it. Hope that helps. -Amit Darshil Mehta wrote: > Vaibhav, > > I guess it has nothing to do with your code. This is excel limitation that > excel changes the date format according to excel's own setting. > > Cheers > > Darshil > > > > > > vaibhav_jindal@non.agilent.com > Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org > 08/07/2004 03:33 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] Problem with Date Format in .csv > > > Hi > > > I am having some problem in the date formats.The problem is that in the > main query iam converting the date in mm/dd/yy hh:mm:ss AM format like > this : > TO_CHAR(ooha.ordered_date, 'mm/dd/yy HH:MM:SS AM') &ORDERED_DATE (15,3500) > > and while creating the csv , iam giving : > let $brb_csv_data = $brb_csv_data || ',' || '"' || &ORDERED_DATE || '"' > > as a result, in the html result file .. iam getting the date in the > correct format eg : 2/12/02 01:20:03 AM > but in the csv that is generated .. it is automatically converting the > time into 24 hour format : > 3/19/2003 13:03 > > > What I want is that the date in csv format should also come the same as in > the html format. > Can someone suggest some alternative..... > > > 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 > > ______________________________________________________________________ > > > > > ______________________________________________________________________ > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 17:00:36 2004 From: "Bencke, Gina" Date: Thu, 8 Jul 2004 17:57:57 -0400 Subject: [sqr-users] Using the LET functions Isnull or Nvl with CHAR or VARCHAR database columns Lets assume that I have a need to distinguish between a NULL column value and a column containing an empty string. Has anyone had success using ISNULL or NVL LET functions with CHAR or VARCHAR database column variables. Are these functions truly designed to distinguish between an undefined column variable, a column variable with a NULL value, or an empty string? It seems that SQR treats all three of these identically. It appears as if isnull(&col) always returns 0 whether &col contains a value or not : the database column is not defined (i.e. the select did not return a row) -- 1 is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 1 is what I would expect or the database column is an empty string (i.e. select '' ) -- 0 is what I would expect or the database column has a value (i.e. select 'a' ) -- 0 is what I would expect=20 It appears the nvl(&col, 'NULL') returns 'NULL' regardless of whether the select fails to return a row, the database column is an empty string, or the database column contains a NULL value: the database column is not defined (i.e. the select did not return a row) -- 'NULL' is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 'NULL' is what I would expect or the database column is an empty string (i.e. select '' ) -- I would expect &col or '' to be returned Granted, my examples are simplistic, but the behavior holds true even when the samples are not so. I am running in the following environment: SQL SERVER 8.00.194 (ODBC Sql Server 2000.85.1025.00) SQR for PeopleSoft 8.44.07 Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 17:25:56 2004 From: "the dragon" Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl with CHAR orVARCHAR database columns Date: Thu, 08 Jul 2004 17:23:14 -0500 Gina, I am not certain whether I understand what it is you're trying to do or not, but you can always use if isnull(&column) show 'this value is null' else if isblank(&column) show 'this value is blank' else show 'this column contains value : ' &column end-if end-if 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---- Lets assume that I have a need to distinguish between a NULL column value and a column containing an empty string. Has anyone had success using ISNULL or NVL LET functions with CHAR or VARCHAR database column variables. Are these functions truly designed to distinguish between an undefined column variable, a column variable with a NULL value, or an empty string? It seems that SQR treats all three of these identically. It appears as if isnull(&col) always returns 0 whether &col contains a value or not : the database column is not defined (i.e. the select did not return a row) -- 1 is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 1 is what I would expect or the database column is an empty string (i.e. select '' ) -- 0 is what I would expect or the database column has a value (i.e. select 'a' ) -- 0 is what I would expect It appears the nvl(&col, 'NULL') returns 'NULL' regardless of whether the select fails to return a row, the database column is an empty string, or the database column contains a NULL value: the database column is not defined (i.e. the select did not return a row) -- 'NULL' is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 'NULL' is what I would expect or the database column is an empty string (i.e. select '' ) -- I would expect &col or '' to be returned Granted, my examples are simplistic, but the behavior holds true even when the samples are not so. I am running in the following environment: SQL SERVER 8.00.194 (ODBC Sql Server 2000.85.1025.00) SQR for PeopleSoft 8.44.07 Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 09:56:40 2004 From: "Bencke, Gina" Date: Fri, 9 Jul 2004 10:55:21 -0400 Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl with CHAR orVARCHAR database columns The problem I was running into was not only the ISNULL function, but in the use of EDIT(ISNULL(&ENTITY), '09). Once I made the following changes my results were more acceptable. However I still determined that SQR can not truly distinguish between a column containing an empty string and one containing a NULL value. Obviously I can get around this using the database function ISNULL instead of SQR's function so I shall not dwell on this.=20=20 However, can anyone explain why the below sections of code produce different output??? Originally my code which I thought was printing the appropriate ISNULL results was as follows: let $line3 =3D 'isnull(&ENTITY) expected: 01 actual: <' || edit(isnull(&ENTITY), '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <00>" After receiving 'the dragons' email I suspect the edit function was not working as expected and changed it to: let #null =3D isnull(&ENTITY) let $line3 =3D 'isnull(&ENTITY) expected: 01 actual: <' || edit(#null, '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <01>" Btw - We are using some tables that are not created in PeopleSoft and thus may contain NULL values. Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 08 17:32:46 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl with CHAR orV ARCH AR database columns Date: Thu, 8 Jul 2004 15:29:15 -0700 I can't answer all your questions, but there is one aspect of the Peoplesoft environment you should consider. When Peoplesoft creates a table (at least in Oracle), it sets the "null not allowed" flag. Character fields cannot be null; the "least" they can be is a space. Numeric fields cannot be null; the "least" they can be is 0. -----Original Message----- From: Bencke, Gina [mailto:GinaBencke@forestcity.net] Sent: Thursday, July 08, 2004 2:58 PM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: [sqr-users] Using the LET functions Isnull or Nvl with CHAR orVARCH AR database columns Lets assume that I have a need to distinguish between a NULL column value and a column containing an empty string. Has anyone had success using ISNULL or NVL LET functions with CHAR or VARCHAR database column variables. Are these functions truly designed to distinguish between an undefined column variable, a column variable with a NULL value, or an empty string? It seems that SQR treats all three of these identically. It appears as if isnull(&col) always returns 0 whether &col contains a value or not : the database column is not defined (i.e. the select did not return a row) -- 1 is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 1 is what I would expect or the database column is an empty string (i.e. select '' ) -- 0 is what I would expect or the database column has a value (i.e. select 'a' ) -- 0 is what I would expect It appears the nvl(&col, 'NULL') returns 'NULL' regardless of whether the select fails to return a row, the database column is an empty string, or the database column contains a NULL value: the database column is not defined (i.e. the select did not return a row) -- 'NULL' is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 'NULL' is what I would expect or the database column is an empty string (i.e. select '' ) -- I would expect &col or '' to be returned Granted, my examples are simplistic, but the behavior holds true even when the samples are not so. I am running in the following environment: SQL SERVER 8.00.194 (ODBC Sql Server 2000.85.1025.00) SQR for PeopleSoft 8.44.07 Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 04:33:42 2004 Date: Fri, 9 Jul 2004 11:29:47 +0200 (CEST) From: =?iso-8859-1?q?Nabil?= Subject: [sqr-users] Generate PDF from SPF file inside SQR program Hi, I'd like to generate (using "call system using sqrp") PDF from SPF file inside my SQR program. Everything seems ok but when I try to open the PDF file, I got an error message "file damaged". If I launch manually the "sqrp" command after the sqr program, i can read the PDF without problem. Maybe I got to "close" the spf file before using "sqrp' command or anything else . Any idea ? Nabil --------------------------------- Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail Dialoguez en direct avec vos amis grâce à Yahoo! Messenger ! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 06:27:53 2004 Date: Fri, 09 Jul 2004 06:24:33 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Generate PDF from SPF file inside SQR program Nabil, We do this all the time for a variety of reasons. You need to issue the=20 "new-report" command before you do the "call system using sqrp" command.=20 This completes and closes the SPF file. Don't worry about the new report specified in the "new-report" command. It= =20 will not be generated unless you issue "print" statements after the=20 "new-report". Good Luck, Eric Nabil wrote: > Hi, >=20=20 > I'd like to generate (using "call system using sqrp") PDF from SPF file i= nside my SQR program. Everything seems ok but when I try to open the PDF fi= le, I got an error message "file damaged". >=20=20 > If I launch manually the "sqrp" command after the sqr program, i can read= the PDF without problem. >=20=20 > Maybe I got to "close" the spf file before using "sqrp' command or anythi= ng else . >=20=20 > Any idea ? >=20=20 > Nabil >=20=20 >=20 >=20=09=09 > --------------------------------- > Cr=E9ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! > Cr=E9ez votre Yahoo! Mail >=20 > Dialoguez en direct avec vos amis gr=E2ce =E0 Yahoo! Messenger ! >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 06:32:23 2004 From: "the dragon" Subject: RE: [sqr-users] Generate PDF from SPF file inside SQR program Date: Fri, 09 Jul 2004 06:28:35 -0500 Nabil, Yes, I believe you need to close the spf before you can do anything to it. Try the new-report command before you do the call system. Brio, or whomever they are called this week, has an excellent sqr reference manual you can order on CD, I think, and if you do a search on sqr at www.amazon.com or www.half.com, you can find reference books. 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'd like to generate (using "call system using sqrp") PDF from SPF file inside my SQR program. Everything seems ok but when I try to open the PDF file, I got an error message "file damaged". If I launch manually the "sqrp" command after the sqr program, i can read the PDF without problem. Maybe I got to "close" the spf file before using "sqrp' command or anything else . Any idea ? Nabil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 07:05:02 2004 From: Rebecca.Barilleaux@anthem.com Date: Fri, 9 Jul 2004 08:00:15 -0400 Subject: [sqr-users] Re: Generate PDF from SPF file inside SQR program Nabil, That's right, you need to close the SPF file before you convert it to PDF. I'm not aware of any command that will just close an SPF file, but when you open a new SPF file the prior SPF file gets closed. Here's a procedure I use that works: begin-procedure create_pdf_file display 'making pdf file' new-report 'junk' let $command =3D 'sqrp ' || $sqr-report || ' -PRINTER:PD' call system using $command #statuscode end-procedure ! create_pdf_file Rebecca >Date: Fri, 9 Jul 2004 11:29:47 +0200 (CEST) >From: Nabil >Subject: [sqr-users] Generate PDF from SPF file inside SQR program >To: Sqr >Message-ID: <20040709092947.92646.qmail@web60708.mail.yahoo.com> >Content-Type: text/plain; charset=3Diso-8859-1 > >Hi, > >I'd like to generate (using "call system using sqrp") PDF from SPF file inside my SQR program. Everything seems ok >but when I try to open the PDF file, I got an error message "file damaged". > >If I launch manually the "sqrp" command after the sqr program, i can read the PDF without problem. > >Maybe I got to "close" the spf file before using "sqrp' command or anything else . > >Any idea ? > >Nabil > > > >--------------------------------- >Cr=E9ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! >Cr=E9ez votre Yahoo! Mail > >Dialoguez en direct avec vos amis gr=E2ce =E0 Yahoo! Messenger ! CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,=20 is for the sole use of the intended recipient(s) and may contain confidenti= al 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 07:32:16 2004 Date: Fri, 9 Jul 2004 14:29:13 +0200 (CEST) From: =?iso-8859-1?q?Nabil?= Subject: Re: [sqr-users] Generate PDF from SPF file inside SQR program, Thanks for the advice. It works perfectly with a "new-report" command to close the SPF file. I will be able to leave on holidays tonight in peace. Nabil --------------------------------- Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail Dialoguez en direct avec vos amis grâce à Yahoo! Messenger ! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 08:03:20 2004 Date: Fri, 9 Jul 2004 08:59:23 -0400 From: "White, Denise" Subject: [sqr-users] RE: Using the LET functions Isnull or Nvl with CHAR orVARCH AR database columns Hi Gina, To add to what Steve has said, the only data types that can be null in an O= racle PeopleSoft database are dates (& times) and long character fields. H= owever, you are on SQL Server, and I'm not sure if that allows nulls in cha= racter fields. I am not exactly sure what the definition of 'empty string' is, but in your= third example, you seem to be showing a null value. Perhaps when the mess= age was posted, a space somehow was stripped out, but when I put my cursor = in the string, there is no space between the quotes. That is a null value,= and would be treated as such by the isnull() function. If there was a spa= ce there, then I agree that isnull() should not be true, although isblank()= would. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation 978-749-3281 dewhite@vicr.com ------------------------------ Message: 12 Date: Thu, 8 Jul 2004 15:29:15 -0700=20 From: "Alexander, Steve" Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl with CHAR orV ARCH AR database columns=20 I can't answer all your questions, but there is one aspect of the Peoplesoft environment you should consider. When Peoplesoft creates a table (at least in Oracle), it sets the "null not allowed" flag. Character fields cannot be null; the "least" they can be is a space. Numeric fields cannot be null; the "least" they can be is 0. -----Original Message----- From: Bencke, Gina [mailto:GinaBencke@forestcity.net] Sent: Thursday, July 08, 2004 2:58 PM Subject: [sqr-users] Using the LET functions Isnull or Nvl with CHAR orVARCH AR database columns=20 Lets assume that I have a need to distinguish between a NULL column value and a column containing an empty string. Has anyone had success using ISNULL or NVL LET functions with CHAR or VARCHAR database column variables. Are these functions truly designed to distinguish between an undefined column variable, a column variable with a NULL value, or an empty string? It seems that SQR treats all three of these identically. It appears as if isnull(&col) always returns 0 whether &col contains a value or not : the database column is not defined (i.e. the select did not return a row) -- 1 is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 1 is what I would expect or the database column is an empty string (i.e. select '' ) -- 0 is what I would expect or the database column has a value (i.e. select 'a' ) -- 0 is what I would expect=20 It appears the nvl(&col, 'NULL') returns 'NULL' regardless of whether the select fails to return a row, the database column is an empty string, or the database column contains a NULL value: the database column is not defined (i.e. the select did not return a row) -- 'NULL' is what I would expect or the database column is NULL (i.e. select col from table where col IS NULL) -- 'NULL' is what I would expect or the database column is an empty string (i.e. select '' ) -- I would expect &col or '' to be returned Granted, my examples are simplistic, but the behavior holds true even when the samples are not so. I am running in the following environment: SQL SERVER 8.00.194 (ODBC Sql Server 2000.85.1025.00) SQR for PeopleSoft 8.44.07 Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 08:38:32 2004 Date: Fri, 09 Jul 2004 09:35:22 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Excel Export to a local drive on client's PC - From Citrix environment Hi, One of my requirements is this: The users need an Excel export of the report that is generated as an SPF file. To accomplish this, I have the SQR code that creates the Excel Export successfully - i.e. if I launched the report generation from a client PC. But my users have to go through Citrix to access the Reporting application & then I hit a roadblock. I have 2 specific questions for this group: Is there a way by which I can provide a menu option on the SPF Viewer itself, like "File-Save As Excel Report" or is there any other workaround (any kind of triggers) where I can provide some means by which I can allow the users to select a folder location on their local drives where they can save my Excel export? If this is feasible, then how do I interpret the return values? Saving the excel export to C:\Temp\filname.xls does not work, 'cos this file gets wriiten to the virtual local area of Citrix.If the above is not feasible, then is there any means by which I can pass the right parameters (knowing this would be the key) to force the excel export to a local temp folder on the user's PC, as opposed to the virtual local area within Citrix?I would greatly appreciate your input. Thanks in advance, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 10:13:27 2004 Date: Fri, 09 Jul 2004 11:12:43 -0400 From: "Larry Roux" Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl with CHARorVARCHAR database columns isnull returns true or false - which SHOULD NEVER be confused with 0 or 1 (= even though most software codes it that way). Why not just do: if isnull(&ENTITY) Let $line3 =3D '00' else Let $line3 =3D '01' end-if or better yet: if &ENTITY =3D '' Let $line3 =3D '00' else Let $line3 =3D '01' end-if we usually check for an empty string or null this way: if RTRIM(&ENTITY,' ') =3D '' ... end-if Larry Roux Syracuse University lroux@syr.edu >>> GinaBencke@forestcity.net 07/09/04 10:55AM >>> The problem I was running into was not only the ISNULL function, but in the use of EDIT(ISNULL(&ENTITY), '09). Once I made the following changes my results were more acceptable. However I still determined that SQR can not truly distinguish between a column containing an empty string and one containing a NULL value. Obviously I can get around this using the database function ISNULL instead of SQR's function so I shall not dwell on this.=20=20 However, can anyone explain why the below sections of code produce different output??? Originally my code which I thought was printing the appropriate ISNULL results was as follows: let $line3 =3D 'isnull(&ENTITY) expected: 01 actual: <' || edit(isnull(&ENTITY), '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <00>" After receiving 'the dragons' email I suspect the edit function was not working as expected and changed it to: let #null =3D isnull(&ENTITY) let $line3 =3D 'isnull(&ENTITY) expected: 01 actual: <' || edit(#null, '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <01>" Btw - We are using some tables that are not created in PeopleSoft and thus may contain NULL values. Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 10:32:54 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl withCHARorVAR CHAR database columns Date: Fri, 9 Jul 2004 08:31:22 -0700 I don't think there is a difference between null and "the empty string," which I always called "the null string." Also, I think the isnull() function does return 1 or 0 - try using it in an arithmetic formula. -----Original Message----- From: Larry Roux [mailto:LRoux@syr.edu] Sent: Friday, July 09, 2004 8:13 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl withCHARorVAR CHAR database columns isnull returns true or false - which SHOULD NEVER be confused with 0 or 1 (even though most software codes it that way). Why not just do: if isnull(&ENTITY) Let $line3 = '00' else Let $line3 = '01' end-if or better yet: if &ENTITY = '' Let $line3 = '00' else Let $line3 = '01' end-if we usually check for an empty string or null this way: if RTRIM(&ENTITY,' ') = '' ... end-if Larry Roux Syracuse University lroux@syr.edu >>> GinaBencke@forestcity.net 07/09/04 10:55AM >>> The problem I was running into was not only the ISNULL function, but in the use of EDIT(ISNULL(&ENTITY), '09). Once I made the following changes my results were more acceptable. However I still determined that SQR can not truly distinguish between a column containing an empty string and one containing a NULL value. Obviously I can get around this using the database function ISNULL instead of SQR's function so I shall not dwell on this. However, can anyone explain why the below sections of code produce different output??? Originally my code which I thought was printing the appropriate ISNULL results was as follows: let $line3 = 'isnull(&ENTITY) expected: 01 actual: <' || edit(isnull(&ENTITY), '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <00>" After receiving 'the dragons' email I suspect the edit function was not working as expected and changed it to: let #null = isnull(&ENTITY) let $line3 = 'isnull(&ENTITY) expected: 01 actual: <' || edit(#null, '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <01>" Btw - We are using some tables that are not created in PeopleSoft and thus may contain NULL values. Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 12:11:23 2004 Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl withCHARorVARCHAR database columns Date: Fri, 9 Jul 2004 12:10:30 -0500 From: "Turner, Ivan" isblank() handles null, blank and white space. Consider its use instead. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, July 09, 2004 11:31 AM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl withCHARorVARCHAR database columns I don't think there is a difference between null and "the empty string," which I always called "the null string." Also, I think the isnull() function does return 1 or 0 - try using it in an arithmetic formula. -----Original Message----- From: Larry Roux [mailto:LRoux@syr.edu] Sent: Friday, July 09, 2004 8:13 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Using the LET functions Isnull or Nvl withCHARorVAR CHAR database columns isnull returns true or false - which SHOULD NEVER be confused with 0 or 1 (even though most software codes it that way). Why not just do: if isnull(&ENTITY) Let $line3 =3D '00' else Let $line3 =3D '01' end-if or better yet: if &ENTITY =3D '' Let $line3 =3D '00' else Let $line3 =3D '01' end-if we usually check for an empty string or null this way: if RTRIM(&ENTITY,' ') =3D '' ... end-if Larry Roux Syracuse University lroux@syr.edu >>> GinaBencke@forestcity.net 07/09/04 10:55AM >>> The problem I was running into was not only the ISNULL function, but in the use of EDIT(ISNULL(&ENTITY), '09). Once I made the following changes my results were more acceptable. However I still determined that SQR can not truly distinguish between a column containing an empty string and one containing a NULL value. Obviously I can get around this using the database function ISNULL instead of SQR's function so I shall not dwell on this.=20=20 However, can anyone explain why the below sections of code produce different output??? Originally my code which I thought was printing the appropriate ISNULL results was as follows: let $line3 =3D 'isnull(&ENTITY) expected: 01 actual: <' || edit(isnull(&ENTITY), '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <00>" After receiving 'the dragons' email I suspect the edit function was not working as expected and changed it to: let #null =3D isnull(&ENTITY) let $line3 =3D 'isnull(&ENTITY) expected: 01 actual: <' || edit(#null, '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <01>" Btw - We are using some tables that are not created in PeopleSoft and thus may contain NULL values. Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com _______________________________________________ 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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 09 13:37:14 2004 From: "the dragon" Subject: RE: [sqr-users] Using the LET functions Isnull or NvlwithCHARorVARCHAR database columns Date: Fri, 09 Jul 2004 13:36:10 -0500 Guys, I think part of the confusion was the use of the term "empty string". Evidently, Gina has informed me, in sql-server they have two different constructs - an empty string and a null. I may be wrong, but I do not think this construct of the empty string exists anywhere but sql-server. In Oracle the empty string '' (two ticks side by side) results in the value of null being inserted into the table. If anyone else has any information about this, feel free to send it. 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---- isblank() handles null, blank and white space. Consider its use instead. -----Original Message----- I don't think there is a difference between null and "the empty string," which I always called "the null string." Also, I think the isnull() function does return 1 or 0 - try using it in an arithmetic formula. -----Original Message----- isnull returns true or false - which SHOULD NEVER be confused with 0 or 1 (even though most software codes it that way). Why not just do: if isnull(&ENTITY) Let $line3 = '00' else Let $line3 = '01' end-if or better yet: if &ENTITY = '' Let $line3 = '00' else Let $line3 = '01' end-if we usually check for an empty string or null this way: if RTRIM(&ENTITY,' ') = '' ... end-if Larry Roux Syracuse University lroux@syr.edu >>> GinaBencke@forestcity.net 07/09/04 10:55AM >>> The problem I was running into was not only the ISNULL function, but in the use of EDIT(ISNULL(&ENTITY), '09). Once I made the following changes my results were more acceptable. However I still determined that SQR can not truly distinguish between a column containing an empty string and one containing a NULL value. Obviously I can get around this using the database function ISNULL instead of SQR's function so I shall not dwell on this. However, can anyone explain why the below sections of code produce different output??? Originally my code which I thought was printing the appropriate ISNULL results was as follows: let $line3 = 'isnull(&ENTITY) expected: 01 actual: <' || edit(isnull(&ENTITY), '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <00>" After receiving 'the dragons' email I suspect the edit function was not working as expected and changed it to: let #null = isnull(&ENTITY) let $line3 = 'isnull(&ENTITY) expected: 01 actual: <' || edit(#null, '09') || '>' print $line3 (+1,1) Result "isnull(&ENTITY) expected: 01 actual: <01>" Btw - We are using some tables that are not created in PeopleSoft and thus may contain NULL values. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 12 12:24:26 2004 Date: Mon, 12 Jul 2004 10:23:25 -0700 From: "Vicki Nygren" Subject: [sqr-users] Remote connection Does anyone know how to create a connection from within a PowerBuilder appl= ication to a remote SQR server (version 8.1) on SQLServer 2000. The PowerB= uilder application is on the client pc and SQR is on the remote server. We= need to be able to run SQR programs which can also be viewed from the clie= nt's pc.=20=20 We are trying to upgrade from SQR 4.x to SQR 8.1 and also SQLServer 6.5 to = SQLServer 2000 . We were able to connect to 6.5 using the following code i= n PowerBuilder: // Set up the connection to the server-side object sqrconnect =3D create connection=20=20 sqrconnect.driver =3D "winsock" sqrconnect.application =3D "10099"=20=20 sqrconnect.location =3D "xxx.xxx.xx.x"=20=20 ll_rc =3D sqrconnect.ConnectToServer()=20=20 IF ll_rc <> 0 THEN=09 MessageBox("Server-side Connection failed", ll_rc)=20 end if Any information will be appreciated. Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 12 12:57:43 2004 Date: Mon, 12 Jul 2004 12:57:01 -0500 From: "Turner, Ivan" Subject: [sqr-users] page write attempted while writing current page Has anyone ever seen this one? I have no before or after procedures in the code. (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 12 13:09:33 2004 Subject: RE: [sqr-users] page write attempted while writing current page Date: Mon, 12 Jul 2004 13:08:30 -0500 From: "Hins, Thomas D. \(HSC\)" R u using some kind of header or footer? 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 Turner, Ivan Sent: Monday, July 12, 2004 12:57 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] page write attempted while writing current page Has anyone ever seen this one? I have no before or after procedures in the code. (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 12 13:16:19 2004 From: "Bencke, Gina" Date: Mon, 12 Jul 2004 14:15:05 -0400 Subject: RE: [sqr-users] page write attempted while writing current page I have seen this if in the heading or footing section you attempt to write beyond the last physical line on the page. For example. The third print cannot fit on the current page because SQR only save 2 lines for the footer, the compiler does not catch this error because of the use of relative positioning. Begin-footing 2 print 'line 1' (1,1) print 'line 2' (+1,1) print 'line 3' (+1,1) End-footing Or=20 If #line has a value that is greater 3 the line will simply overwrite a line on the body of the page, However is #line has a value greater than the maximum lines on your page you will receive the "page write..." error. Begin-heading 3 print 'line 1' (#line,1) End-heading Hope this helps! Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Turner, Ivan Sent: Monday, July 12, 2004 1:57 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] page write attempted while writing current page Has anyone ever seen this one? I have no before or after procedures in the code. (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 12 14:59:27 2004 Subject: RE: [sqr-users] page write attempted while writing current page Date: Mon, 12 Jul 2004 14:58:46 -0500 From: "Turner, Ivan" Yes. I believe SQR takes care of headers and footers for the user. I'm using the header below. begin-heading 12=20 #include 'arhdg01.sqc' !print parameters on lines 3 and 4 in heading print 'Business Unit:' (3,1,15) print $Bus_Unit (,16,5) print $include_text (+1,1) evaluate $By_Date_Or_Cycle when =3D 'CYC' print 'Billing Cycle:' (,62,14) print $cycle_id (,77,10) print 'Cycle Occurrence:' (,89,17) print $occur_no (,107,10) break when =3D 'DAT' print 'For Accounting Date' (,63,20) print $From_Dt (,83,11) print 'through' (,95,7) print $To_Dt (,103,11) break when =3D 'PDT' print 'For Post Date' (,67,13) print $From_Dt (,81,11) print 'through' (,93,7) print $To_Dt (,101,11) break when =3D 'ENDT' print 'For Entered Date' (,67,13) print $From_Dt (,81,11) print 'through' (,93,7) print $To_Dt (,101,11) break when =3D 'JDT' print 'For Journal End Date' (,71,21) print $Journal_Dt (,93,11) break when =3D 'JID' print 'For Journal Id' (,67,14) print $Journal_id (,82,10) print 'through' (,93,7) print $Journal_id_end (,101,10) break when-other print ' No Proper Selection Specified' (,73,25) break end-evaluate If $Type =3D ' ' print 'Entry Class:' (+1,1,13) print $Adj (,14,3) print $Occ (,18,3) print $Inv (,22,3) print $Pay (,26,3) else print 'Entry type: ' (+1,1) if $entry_selection =3D 'Multiple' print $include_entry_type_text (,,) else print $Type (,,) end-if print 'Reason Code: ' (+1,1) If $Reason =3D ' ' or $entry_selection =3D 'Multiple' print 'ALL' (,,) else print $Reason (,,) end-if end-if if ($By_Date_Or_Cycle =3D 'JDT' or $By_Date_Or_Cycle =3D 'JID')=20 if ($invoice_date_entered <> ' ') print 'Invoiced Amounts in' (,75,19) print $invoice_date_entered (,95,5) end-if end-if print 'Entry' (+2,#1 ) print 'Entry' (,#2) print 'Entry Type Descr' (,#3 ) print 'Reason' (,#4 ) print 'Grp Id' (,#5 ) print 'Oper Id' (,#5b) print 'Date' (,#6 ) print 'Item no.' (,#6a) print 'AR' (,#6b) print 'Cust ID' (,#7 ) print 'Name ' (,#8 ) print 'PreTax Amt' (,#9 ) print 'Tax Amount' (,#10) print 'Entry Amount' (,#11) =20=20=20=20=20=20=20=20 print 'Class' (+1,#1) print 'Type' (,#2) print 'Code' (,#4) print 'ID' (#6b) print '-----' (+1,#1)=20 print '-----' (,#2)=20 print '-' (,#3,22 ) fill print '-' (,#4,6 ) fill print '-' (,#5,10 ) fill print '-' (,#5b,8 ) fill print '-' (,#6,11 ) fill print '-' (,#6a,18) fill print '-' (,#6b,2) fill print '-' (,#7,9 ) fill print '-' (,#8,10 ) fill print '-' (,#9,18 ) fill print '-' (,#10,18) fill print '-' (,#11,18) fill end-heading -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Hins, Thomas D. (HSC) Sent: Monday, July 12, 2004 2:09 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] page write attempted while writing current page R u using some kind of header or footer? 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 which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company.) -----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 Turner, Ivan Sent: Monday, July 12, 2004 12:57 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] page write attempted while writing current page Has anyone ever seen this one? I have no before or after procedures in the code. (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 12 17:12:00 2004 Subject: RE: [sqr-users] page write attempted while writing current page Date: Mon, 12 Jul 2004 17:11:24 -0500 From: "Turner, Ivan" Thanks Gina. After walking thru the header, I was able to find my error. I'm glad you were able to recognize the error message right away. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Bencke, Gina Sent: Monday, July 12, 2004 2:15 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] page write attempted while writing current page I have seen this if in the heading or footing section you attempt to write beyond the last physical line on the page. For example. The third print cannot fit on the current page because SQR only save 2 lines for the footer, the compiler does not catch this error because of the use of relative positioning. Begin-footing 2 print 'line 1' (1,1) print 'line 2' (+1,1) print 'line 3' (+1,1) End-footing Or=20 If #line has a value that is greater 3 the line will simply overwrite a line on the body of the page, However is #line has a value greater than the maximum lines on your page you will receive the "page write..." error. Begin-heading 3 print 'line 1' (#line,1) End-heading Hope this helps! Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Turner, Ivan Sent: Monday, July 12, 2004 1:57 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] page write attempted while writing current page Has anyone ever seen this one? I have no before or after procedures in the code. (SQR 5400) Second page write attempted while writing current page. Check BEFORE-PAGE, AFTER-PAGE procedures. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 13 15:27:43 2004 From: Kaz.Narayanan@averydennison.com Date: Tue, 13 Jul 2004 13:20:07 -0700 Subject: [sqr-users] Have a doubt in rounding Hi, I am trying to edit a character filed and convert them as numbers. Even thought I give 2 floating points, I still get 5 floating points. Given below is an example: let $RMR04 = $input_file show 'The Last RMR filed is ' $RMR04 let #RMR04 = to_number($RMR04) let #RMR04 = round(#RMR04 ,2) SHOW 'tHE RMR AFTER ROUNDING ' #RMR04 Even though I have rounded my numeric variable in 2 digits, the show statement returns 5 digits. Please let me know If I am making a mistake. Regards KM Narayanan ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jul 13 15:44:15 2004 From: "Bencke, Gina" Date: Tue, 13 Jul 2004 16:43:08 -0400 Subject: RE: [sqr-users] Have a doubt in rounding I doubt you are actually having trouble rounding, instead it is a issue of edit display edit masks. SQR is using the default numeric edit mask to show the value of #RMR04, which unless you changed it has 5 places after the decimal point. The edit mask does not change the value of #RMR04, it simply controls the manner in which the number is displayed or printed. (I am assuming your output is something like 123.45000) Try using and edit mask on the show statement. SHOW 'tHE RMR AFTER ROUNDING ' #RMR04 edit 999.99 Hope this helps, Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Tuesday, July 13, 2004 4:20 PM To: sqr-users@sqrug.org Subject: [sqr-users] Have a doubt in rounding Hi, I am trying to edit a character filed and convert them as numbers. Even thought I give 2 floating points, I still get 5 floating points. Given below is an example: let $RMR04 =3D $input_file show 'The Last RMR filed is ' $RMR04 let #RMR04 =3D to_number($RMR04) let #RMR04 =3D round(#RMR04 ,2) SHOW 'tHE RMR AFTER ROUNDING ' #RMR04 Even though I have rounded my numeric variable in 2 digits, the show statement returns 5 digits. Please let me know If I am making a mistake. Regards KM Narayanan ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 13 16:01:46 2004 Subject: RE: [sqr-users] Have a doubt in rounding From: Kaz.Narayanan@averydennison.com Date: Tue, 13 Jul 2004 13:54:06 -0700 Thanks Gina. That solved the problem. As you mentioned, the problem was with the display mask and not edit. Thanks again. Regards KM Narayanan "Bencke, Gina" @sqrug.org on 07/13/2004 01:43:08 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." cc: Subject: RE: [sqr-users] Have a doubt in rounding I doubt you are actually having trouble rounding, instead it is a issue of edit display edit masks. SQR is using the default numeric edit mask to show the value of #RMR04, which unless you changed it has 5 places after the decimal point. The edit mask does not change the value of #RMR04, it simply controls the manner in which the number is displayed or printed. (I am assuming your output is something like 123.45000) Try using and edit mask on the show statement. SHOW 'tHE RMR AFTER ROUNDING ' #RMR04 edit 999.99 Hope this helps, Gina Bencke Bencke Consulting Corporation Office (440) 519-0060 email: gina.work@bencke.com -----Original Message----- From: sqr-users-bounces+ginabencke=forestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=forestcity.net@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Tuesday, July 13, 2004 4:20 PM To: sqr-users@sqrug.org Subject: [sqr-users] Have a doubt in rounding Hi, I am trying to edit a character filed and convert them as numbers. Even thought I give 2 floating points, I still get 5 floating points. Given below is an example: let $RMR04 = $input_file show 'The Last RMR filed is ' $RMR04 let #RMR04 = to_number($RMR04) let #RMR04 = round(#RMR04 ,2) SHOW 'tHE RMR AFTER ROUNDING ' #RMR04 Even though I have rounded my numeric variable in 2 digits, the show statement returns 5 digits. Please let me know If I am making a mistake. Regards KM Narayanan ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ 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 information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 00:41:56 2004 From: "Shailesh Sugandhi" Date: Wed, 14 Jul 2004 11:10:15 +0530 Subject: [sqr-users] Is INSTR available in SQR? Hi, I have following code. if (($Plant_id = 'DE01') OR ($Plant_id = 'DE02') OR ($Plant_id = 'DE07') OR ($Plant_id = 'DE11') OR ($Plant_id = 'DE12') OR ($Plant_id = 'DE14') OR ($Plant_id = 'DE15') OR ($Plant_id = 'DE16') OR ($Plant_id = 'DE31') OR ($Plant_id = 'DE63') OR ($Plant_id = 'DE64') Or ($Plant_id = 'DE68') OR ($Plant_id = 'DE71')) I want to change this to single line code something like INSTR of Oracle. If $Plant_Id contains DE then process it. Can someone help me regarding this? Thanns in advance. Regards, Shailesh -----Original Message----- From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On Behalf Of sqr-users-request@sqrug.org Sent: Tuesday, July 13, 2004 4:34 PM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 5, Issue 11 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..." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 05:30:10 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Is INSTR available in SQR? Date: Wed, 14 Jul 2004 20:28:27 +1000 yes, the function name is INSTR. 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 Shailesh Sugandhi Sent: Wednesday, 14 July 2004 3:40 PM To: sqr-users@sqrug.org Subject: [sqr-users] Is INSTR available in SQR? Hi, I have following code. if (($Plant_id = 'DE01') OR ($Plant_id = 'DE02') OR ($Plant_id = 'DE07') OR ($Plant_id = 'DE11') OR ($Plant_id = 'DE12') OR ($Plant_id = 'DE14') OR ($Plant_id = 'DE15') OR ($Plant_id = 'DE16') OR ($Plant_id = 'DE31') OR ($Plant_id = 'DE63') OR ($Plant_id = 'DE64') Or ($Plant_id = 'DE68') OR ($Plant_id = 'DE71')) I want to change this to single line code something like INSTR of Oracle. If $Plant_Id contains DE then process it. Can someone help me regarding this? Thanns in advance. Regards, Shailesh -----Original Message----- From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On Behalf Of sqr-users-request@sqrug.org Sent: Tuesday, July 13, 2004 4:34 PM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 5, Issue 11 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..." _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 07:50:17 2004 Date: Wed, 14 Jul 2004 05:48:54 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Is INSTR available in SQR? Hi Shailesh, Here is how the Function looks INSTR Returns the numeric position of sub_value in source_value or zero (0) if not found. The search begins at offset offset_value. This function returns a float value. Syntax: dst_var = instr(source_value, sub_value, offset_value) HTH Datta. --- Shailesh Sugandhi wrote: > Hi, > > I have following code. > > if (($Plant_id = 'DE01') OR ($Plant_id = 'DE02') OR ($Plant_id = > 'DE07') OR > ($Plant_id = 'DE11') OR ($Plant_id = 'DE12') OR ($Plant_id = 'DE14') > OR > ($Plant_id = 'DE15') OR ($Plant_id = 'DE16') OR ($Plant_id = > 'DE31') OR > ($Plant_id = 'DE63') OR ($Plant_id = 'DE64') > Or ($Plant_id = 'DE68') OR ($Plant_id = 'DE71')) > > I want to change this to single line code something like INSTR of > Oracle. If > $Plant_Id contains DE then process it. > > Can someone help me regarding this? > > Thanns in advance. > > Regards, > Shailesh > > > -----Original Message----- > From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org > [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On > Behalf Of sqr-users-request@sqrug.org > Sent: Tuesday, July 13, 2004 4:34 PM > To: sqr-users@sqrug.org > Subject: sqr-users Digest, Vol 5, Issue 11 > > > 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..." > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 11:07:21 2004 From: SandlerA@DFO-MPO.GC.CA Subject: RE: [sqr-users] Is INSTR available in SQR? Date: Wed, 14 Jul 2004 12:04:41 -0400 I believe that the function you are looking for would be the equivalent of the SQL 'IN', not INSTR. As far as I know, there is no equivalent function; however, you could write you own procedure to do this. The procedure would be based on the INSTR function. If you are using Oracle, and retrieving Plant_Id as part of your select, it may be easier to use the DECODE expression in Oracle to create a variable when this condition is met. Aaron Sandler -----Original Message----- From: Shailesh Sugandhi [mailto:shailesh.sugandhi@patni.com] Sent: July 14, 2004 1:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] Is INSTR available in SQR? Hi, I have following code. if (($Plant_id = 'DE01') OR ($Plant_id = 'DE02') OR ($Plant_id = 'DE07') OR ($Plant_id = 'DE11') OR ($Plant_id = 'DE12') OR ($Plant_id = 'DE14') OR ($Plant_id = 'DE15') OR ($Plant_id = 'DE16') OR ($Plant_id = 'DE31') OR ($Plant_id = 'DE63') OR ($Plant_id = 'DE64') Or ($Plant_id = 'DE68') OR ($Plant_id = 'DE71')) I want to change this to single line code something like INSTR of Oracle. If $Plant_Id contains DE then process it. Can someone help me regarding this? Thanns in advance. Regards, Shailesh -----Original Message----- From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On Behalf Of sqr-users-request@sqrug.org Sent: Tuesday, July 13, 2004 4:34 PM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 5, Issue 11 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..." _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 12:39:16 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Is INSTR available in SQR? Date: Wed, 14 Jul 2004 10:35:21 -0700 If the list you gave us is all the IDs that start with DE, you could write: if instr($Plant_id, 'DE', 1) = 1 end-if If you want to exclude 'DE03', for instance, you could write: if instr('DE01 DE02 DE07 ... DE71', $Plant_id, 1) > 0 end-if -----Original Message----- From: SandlerA@DFO-MPO.GC.CA [mailto:SandlerA@DFO-MPO.GC.CA] Sent: Wednesday, July 14, 2004 9:05 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Is INSTR available in SQR? I believe that the function you are looking for would be the equivalent of the SQL 'IN', not INSTR. As far as I know, there is no equivalent function; however, you could write you own procedure to do this. The procedure would be based on the INSTR function. If you are using Oracle, and retrieving Plant_Id as part of your select, it may be easier to use the DECODE expression in Oracle to create a variable when this condition is met. Aaron Sandler -----Original Message----- From: Shailesh Sugandhi [mailto:shailesh.sugandhi@patni.com] Sent: July 14, 2004 1:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] Is INSTR available in SQR? Hi, I have following code. if (($Plant_id = 'DE01') OR ($Plant_id = 'DE02') OR ($Plant_id = 'DE07') OR ($Plant_id = 'DE11') OR ($Plant_id = 'DE12') OR ($Plant_id = 'DE14') OR ($Plant_id = 'DE15') OR ($Plant_id = 'DE16') OR ($Plant_id = 'DE31') OR ($Plant_id = 'DE63') OR ($Plant_id = 'DE64') Or ($Plant_id = 'DE68') OR ($Plant_id = 'DE71')) I want to change this to single line code something like INSTR of Oracle. If $Plant_Id contains DE then process it. Can someone help me regarding this? Thanns in advance. Regards, Shailesh -----Original Message----- From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On Behalf Of sqr-users-request@sqrug.org Sent: Tuesday, July 13, 2004 4:34 PM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 5, Issue 11 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..." _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 10:08:47 2004 From: "John F. Connell Jr." Date: Wed, 14 Jul 2004 11:10:39 -0400 Subject: [sqr-users] Unknown variable type encountered in run-time file: 2097175 I am trying to recompile and register an older report. I can recompile the report and it works fine however I get the following message when the report is registered and run. (SQR 4735) Unknown variable type encountered in run-time file: 2097175 Any help would be appreciated. Regards, John John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 10:42:24 2004 Subject: RE: [sqr-users] Unknown variable type encountered in run-time file:2097175 Date: Wed, 14 Jul 2004 10:39:38 -0500 From: "Knapp, Richard" John, What version of SQR are you using and what version was the old file run under? (Assuming that it used to run under the older version?) 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 John F. Connell Jr. Sent: Wednesday, July 14, 2004 10:11 AM To: sqr-users@sqrug.org Subject: [sqr-users] Unknown variable type encountered in run-time file:2097175 I am trying to recompile and register an older report. I can recompile the report and it works fine however I get the following message when the report is registered and run. =20 (SQR 4735) Unknown variable type encountered in run-time file: 2097175 =20 Any help would be appreciated. =20 Regards, =20 John =20 John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net =20 Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 =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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 10:58:22 2004 Subject: RE: [sqr-users] Unknown variable type encountered in run-time file:2097175 Date: Wed, 14 Jul 2004 11:57:48 -0400 From: "Wes Williams" Maybe you are compiling with one version of SQR and when you register it that application is using a different release SQR\SQRWT.EXE. Make sure both are using the same version. Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of John F. Connell Jr. Sent: Wednesday, July 14, 2004 11:11 AM To: sqr-users@sqrug.org Subject: [sqr-users] Unknown variable type encountered in run-time file:2097175 I am trying to recompile and register an older report. I can recompile the report and it works fine however I get the following message when the report is registered and run. =20 (SQR 4735) Unknown variable type encountered in run-time file: 2097175 =20 Any help would be appreciated. =20 Regards, =20 John =20 John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net =20 Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 =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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 14 12:53:12 2004 From: "John F. Connell Jr." Date: Wed, 14 Jul 2004 13:53:41 -0400 Subject: [sqr-users] Unknown variable type encountered in run-time file: 2097175 I have resolved this issue by uninstalling all versions of SQR from my client and reinstalling the appropriate version. I thank all of you whom pointed me in that direction. Regards, John John F. Connell Jr. JFC & Associates 53 Perch Pond Road Chatham, MA 02633 email - jfc.associates@comcast.net Phone - 1 (508) 945-4191 Fax - 1 (508) 945-1609 Cell - 1 (508) 542-3342 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 15 22:09:03 2004 Date: Thu, 15 Jul 2004 22:07:03 -0500 From: "Paul Gengler" Subject: [sqr-users] Bar Code Label Printing on Zebra Printers I have developed an SQR to print bar code labels on a Zebra printer. Using= Windows to file print, and selecting the Zebra printer, the labels print= just fine. I'm assuming Windows is calling the printer driver associated = with the target print device, and creating a print job in the printer langu= age (ZPL) of the Zebra printer. However, now I am attempting to execute t= he SQR report via a batch file from a wireless handheld, and directing the= output file directly to the Zebra printer. The labels are no longer print= ing correctly. I'm guessing what I need to do is to emulate what happens w= hen I print the labels via Windows. I am at a total loss on how to do that= ?????=20 Paul Gengler General Mills Staff Consultant Supply Chain IS - 16D2 (763) 293-3180 paul.gengler @ genmills.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 16 09:29:27 2004 Subject: RE: [sqr-users] Bar Code Label Printing on Zebra Printers Date: Fri, 16 Jul 2004 09:26:44 -0500 From: "Knapp, Richard" Hi Paul, Does your windows job use call system to send the print job off or does the SQR finish and then you "manually" send the windows print job off? If the Zebra printer is always used either from windows or the handheld, a simple way to print would be to close the output file while the SQR is still running (new-report for print or close # for write) then issue a call to windows to do the printing. This should work in batch or from your desktop. 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 Paul Gengler Sent: Thursday, July 15, 2004 10:07 PM To: sqr-users@sqrug.org Subject: [sqr-users] Bar Code Label Printing on Zebra Printers I have developed an SQR to print bar code labels on a Zebra printer. Using Windows to file print, and selecting the Zebra printer, the labels print just fine. I'm assuming Windows is calling the printer driver associated with the target print device, and creating a print job in the printer language (ZPL) of the Zebra printer. However, now I am attempting to execute the SQR report via a batch file from a wireless handheld, and directing the output file directly to the Zebra printer. The labels are no longer printing correctly. I'm guessing what I need to do is to emulate what happens when I print the labels via Windows. I am at a total loss on how to do that ?????=20 Paul Gengler General Mills Staff Consultant Supply Chain IS - 16D2 (763) 293-3180 paul.gengler @ genmills.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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 16 09:43:37 2004 Subject: RE: [sqr-users] Bar Code Label Printing on Zebra Printers Date: Fri, 16 Jul 2004 09:43:25 -0500 From: "Paul Gengler" Thanks for your response. I'm use the call system to send the print. I've= tried "PRINT", "TYPE", and "COPY". The one thing I did not do is to close= the output file using NEWPAGE. Just as an FYI, let me describe the exact = problem I am having. The only problem I seem to be having is that the Zebr= a printer is not clearing memory in between each barcode printed. So, the= first barcode prints just fine. The second barcode prints the first barco= de again, and then prints the second barcode on top of the first. The thi= rd barcode prints the first two barcodes, and then prints the third barcod= e on top of them. And so on . . . . Do you think closing the output file= would correct this, and which system call would you use - "PRINT", "TYPE= " or "COPY" -----Original Message----- From: sqr-users-bounces+paul.gengler=3Dgenmills.com@sqrug.org [mailto:sqr-users-bounces+paul.gengler=3Dgenmills.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, July 16, 2004 9:27 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Bar Code Label Printing on Zebra Printers Hi Paul, Does your windows job use call system to send the print job off or does the SQR finish and then you "manually" send the windows print job off? If the Zebra printer is always used either from windows or the handheld, a simple way to print would be to close the output file while the SQR is still running (new-report for print or close # for write) then issue a call to windows to do the printing. This should work in batch or from your desktop. 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 Paul Gengler Sent: Thursday, July 15, 2004 10:07 PM To: sqr-users@sqrug.org Subject: [sqr-users] Bar Code Label Printing on Zebra Printers I have developed an SQR to print bar code labels on a Zebra printer. Using Windows to file print, and selecting the Zebra printer, the labels print just fine. I'm assuming Windows is calling the printer driver associated with the target print device, and creating a print job in the printer language (ZPL) of the Zebra printer. However, now I am attempting to execute the SQR report via a batch file from a wireless handheld, and directing the output file directly to the Zebra printer. The labels are no longer printing correctly. I'm guessing what I need to do is to emulate what happens when I print the labels via Windows. I am at a total loss on how to do that ?????=20 Paul Gengler General Mills Staff Consultant Supply Chain IS - 16D2 (763) 293-3180 paul.gengler @ genmills.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 16 10:01:11 2004 Subject: RE: [sqr-users] Bar Code Label Printing on Zebra Printers Date: Fri, 16 Jul 2004 10:00:06 -0500 From: "Knapp, Richard" Paul, It looks as though SQR is overprinting each barcode. New-page will add a formfeed which may be just what you need. New-report (with a dummy file handle) will close the current print file. Multiple new-reports will close multiple open print files (progname.lis, progname_01.lis, progname_02.lis, etc.). 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 Paul Gengler Sent: Friday, July 16, 2004 9:43 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Bar Code Label Printing on Zebra Printers Thanks for your response. I'm use the call system to send the print. I've tried "PRINT", "TYPE", and "COPY". The one thing I did not do is to close the output file using NEWPAGE. Just as an FYI, let me describe the exact problem I am having. The only problem I seem to be having is that the Zebra printer is not clearing memory in between each barcode printed. So, the first barcode prints just fine. The second barcode prints the first barcode again, and then prints the second barcode on top of the first. The third barcode prints the first two barcodes, and then prints the third barcode on top of them. And so on . . . . Do you think closing the output file would correct this, and which system call would you use - "PRINT", "TYPE" or "COPY" -----Original Message----- From: sqr-users-bounces+paul.gengler=3Dgenmills.com@sqrug.org [mailto:sqr-users-bounces+paul.gengler=3Dgenmills.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, July 16, 2004 9:27 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Bar Code Label Printing on Zebra Printers Hi Paul, Does your windows job use call system to send the print job off or does the SQR finish and then you "manually" send the windows print job off? If the Zebra printer is always used either from windows or the handheld, a simple way to print would be to close the output file while the SQR is still running (new-report for print or close # for write) then issue a call to windows to do the printing. This should work in batch or from your desktop. 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 Paul Gengler Sent: Thursday, July 15, 2004 10:07 PM To: sqr-users@sqrug.org Subject: [sqr-users] Bar Code Label Printing on Zebra Printers I have developed an SQR to print bar code labels on a Zebra printer. Using Windows to file print, and selecting the Zebra printer, the labels print just fine. I'm assuming Windows is calling the printer driver associated with the target print device, and creating a print job in the printer language (ZPL) of the Zebra printer. However, now I am attempting to execute the SQR report via a batch file from a wireless handheld, and directing the output file directly to the Zebra printer. The labels are no longer printing correctly. I'm guessing what I need to do is to emulate what happens when I print the labels via Windows. I am at a total loss on how to do that ?????=20 Paul Gengler General Mills Staff Consultant Supply Chain IS - 16D2 (763) 293-3180 paul.gengler @ genmills.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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 16 13:08:38 2004 From: "Orr, Daniel E (Dan) TL26D" Date: Fri, 16 Jul 2004 14:07:46 -0400 Subject: [sqr-users] Using begin-select -DB on the portal All - I've developed a report that uses begin-select with the '-DB' option to run queries against a second database. This works fine when I run on my desktop with PersonalSQR, but when I try to run it on the portal it fails. I think the SQR version on the portal is 6.2 or something like that. I'm pretty sure I have the syntax and the data source name correct. Any ideas? Thanks. Daniel Orr > Cigna Group Insurance Customer Service/Marketing/Reporting Systems Phone: 215 761-1279 (Net 5-1279) Fax: 215-761-5618 Email: daniel.orr@cigna.com CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2004 CIGNA ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jul 17 14:00:08 2004 Date: Sat, 17 Jul 2004 14:59:01 -0400 From: EricRection@aol.com Subject: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT 1. When I last installed PeopleSoft, I ran SQRW.EXE for the first time and there were no flags. Somone told me some neat trick for populating them, and I've forgotten it. Can somebody please remind me of this cunning stunt (Spoonerism alert!) or tell me what flags I need if I'm doing it manually? 2. What does the W in SQRW.EXE stand for, anyway? 3. And how about the T in SQT? The most plausible candidate I can think of is "transaction" and that isn't very plausible at all. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jul 17 14:16:53 2004 From: "the dragon" Subject: RE: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT Date: Sat, 17 Jul 2004 14:15:50 -0500 1) I don't have sqr installed here, but to add flags you do the following. open the icon and choose properties. go to tab 2, with a title of Target: Add the flags after the executable - I can give an example on Monday if you can't figure it out or get other replies. 2) who knows 3) who cares :-p 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---- 1. When I last installed PeopleSoft, I ran SQRW.EXE for the first time and there were no flags. Somone told me some neat trick for populating them, and I've forgotten it. Can somebody please remind me of this cunning stunt (Spoonerism alert!) or tell me what flags I need if I'm doing it manually? 2. What does the W in SQRW.EXE stand for, anyway? 3. And how about the T in SQT? The most plausible candidate I can think of is "transaction" and that isn't very plausible at all. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jul 17 19:37:44 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT Date: Sun, 18 Jul 2004 10:36:33 +1000 1 - I'll let Peoplesoft people answer. 2. W is for windows. SQR executable on every other platform is SQR. But on windows they added the W - a bit annoying really, but that's the way it goes. 3. The T is for execuTe, or maybe runTime. Because the command to run it is SQR -RT, or the alias SQRT, so the file extension is SQT instead of SQR. Maybe Peter Burton can remember the exact reason ;-) Now if only I could work out the T in PST (microsoft outlook) :-) 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 EricRection@aol.com Sent: Sunday, 18 July 2004 4:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT 1. When I last installed PeopleSoft, I ran SQRW.EXE for the first time and there were no flags. Somone told me some neat trick for populating them, and I've forgotten it. Can somebody please remind me of this cunning stunt (Spoonerism alert!) or tell me what flags I need if I'm doing it manually? 2. What does the W in SQRW.EXE stand for, anyway? 3. And how about the T in SQT? The most plausible candidate I can think of is "transaction" and that isn't very plausible at all. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sat Jul 17 19:58:25 2004 Date: Sat, 17 Jul 2004 17:56:04 -0700 (PDT) From: Amit Mundra Subject: Re: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT Eric Since no one else answered the first question, here something that I use. C:\HRMS75SU\sqrbinw\sqrw.exe ? hrdmo/sysadm/sysadm -ZIFc:\hrms75su\sqr\pssqr.ini -ic:\hrms75su\sqr\ -mc:\HRMS75SU\sqr\allmaxes.max -ziv Database is hrdmo for a demo database, sysadm is userid, sysadm is password. You can figure out the remaining flags. Also, when you start sqrw, there is a help button. Pressing on that will give you a list of all flags. Read through it and use the one's you want. Hope that helps. -Amit EricRection@aol.com wrote: > 1. When I last installed PeopleSoft, I ran SQRW.EXE for the first time and there were no flags. Somone told me some neat trick for populating them, and I've forgotten it. Can somebody please remind me of this cunning stunt (Spoonerism alert!) or tell me what flags I need if I'm doing it manually? > 2. What does the W in SQRW.EXE stand for, anyway? > 3. And how about the T in SQT? The most plausible candidate I can think of is "transaction" and that isn't very plausible at all. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Jul 17 20:49:40 2004 From: Peter Burton Date: Sat, 17 Jul 2004 18:33:20 -0700 Subject: RE: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT All, 2) Originally there were two executables under the Windows environment ... sqr - a command line based interface similar to that found under Unix, DOS, VMS, etc. and sqrw - a GUI based interface. When the command line interface was dropped from the Windows distribution the thought was not to mess with customer scripts. What does it matter what the name of the executable it away? Look at Microsoft Word ... why is it called WINWORD.EXE rather than just WORD.EXE? 3) The T is for "SQR Execute" or "SQR Runtime" depending on the company. Originally SQR could be packaged as a complete package or just the runtime component which allowed people to run reports (.SQT) but able to create them from the source (.SQR). Great for turnkey systems and configuration control. SQRWT.EXE is not an alias for "SQRW -RT" but rather a complete executable in itself. It accepts a subset of the command line flags that SQRW.EXE accepts. 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 Steve Cavill > Sent: Saturday, July 17, 2004 8:37 PM > To: This list is for discussion about the SQR database > reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT > > > 1 - I'll let Peoplesoft people answer. > > 2. W is for windows. SQR executable on every other platform > is SQR. But > on windows they added the W - a bit annoying really, but > that's the way it > goes. > > 3. The T is for execuTe, or maybe runTime. Because the > command to run it is > SQR -RT, or the alias SQRT, so the file extension is SQT > instead of SQR. > Maybe Peter Burton can remember the exact reason ;-) > > Now if only I could work out the T in PST (microsoft outlook) :-) > > 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 EricRection@aol.com > Sent: Sunday, 18 July 2004 4:59 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT > > > 1. When I last installed PeopleSoft, I ran SQRW.EXE for the > first time and > there were no flags. Somone told me some neat trick for > populating them, and > I've forgotten it. Can somebody please remind me of this cunning stunt > (Spoonerism alert!) or tell me what flags I need if I'm doing > it manually? > 2. What does the W in SQRW.EXE stand for, anyway? > 3. And how about the T in SQT? The most plausible candidate I > can think of > is "transaction" and that isn't very plausible at all. > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Sat Jul 17 22:13:01 2004 Date: Sun, 18 Jul 2004 08:40:26 +0530 From: Subject: [sqr-users] Output into an Excel Sheet Q) Is there a possibility of getting the output of an SQR program into an EXCEL SHEET. If so ? please let me know. Q) Can we integrate SQR program to peoplesoft? I mean I will pass some values into the SQR program from peoplesoft I need the output based upon the values. For Eg:- I will pass the deptid from the peoplesoft screen. I need to get the output based upon the DEPTID I have passed. Kindly help me out in this. Thanks in advance Best Regards, Ravi Varma. 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+sqrusersarch=sqrug.org@sqrug.org Sun Jul 18 05:40:37 2004 From: "the dragon" Subject: RE: [sqr-users] Output into an Excel Sheet Date: Sun, 18 Jul 2004 05:39:09 -0500 A) Yes 2) Use a run control page. 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---- Q) Is there a possibility of getting the output of an SQR program into an EXCEL SHEET. If so ? please let me know. Q) Can we integrate SQR program to peoplesoft? I mean I will pass some values into the SQR program from peoplesoft I need the output based upon the values. For Eg:- I will pass the deptid from the peoplesoft screen. I need to get the output based upon the DEPTID I have passed. Kindly help me out in this. Thanks in advance Best Regards, Ravi Varma. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jul 18 07:11:24 2004 Date: Sun, 18 Jul 2004 08:07:27 -0400 From: EricRection@aol.com Subject: RE: [sqr-users] Output into an Excel Sheet This one has cropped up loadsa times. To create SQR output that is formatted for Excel, you can either do an sqr that produces symbolic link data, or have a macro that automatically executes when the file is opened. I prefer the macro approach because symbolic link is a pain in the arse. In both cases I see you using CALL-SYSTEM to get the SQR to open Excel and load a file. This stuff is all in the archive. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 19 23:48:21 2004 Date: Mon, 19 Jul 2004 21:47:18 -0700 (PDT) From: Srinivas Amaragani Subject: RE: [sqr-users] Output into an Excel Sheet Hi Eric, Please can you explain clearly....long back i posted same question never get back reply. As you said how can we use with call-system. Thanks, EricRection@aol.com wrote: This one has cropped up loadsa times. To create SQR output that is formatted for Excel, you can either do an sqr that produces symbolic link data, or have a macro that automatically executes when the file is opened. I prefer the macro approach because symbolic link is a pain in the arse. In both cases I see you using CALL-SYSTEM to get the SQR to open Excel and load a file. This stuff is all in the archive. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jul 18 07:15:45 2004 Date: Sun, 18 Jul 2004 08:14:27 -0400 From: EricRection@aol.com Subject: [sqr-users] -rp Flag I'd like to use the -rp flag so an SQR has a file name that is different from the process name in PeopleSoft. I think the syntax is -rp %%%% but I have no access to PeopleSoft at the weekend and all my ex-employers have changed their password on Customer Connection. Bastards. I certainly remember there was some weird shit involving %% on either side of the filename. Who'd like to settle the matter? And thanks to all for the answers about flags, SQTs and SQRW.EXE. I love you carnally. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sun Jul 18 13:28:47 2004 From: "Ed Kelly" Date: Sun, 18 Jul 2004 18:27:42 +0000 Subject: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT Eric, If you want to use the flags that PeopleSoft (Process Scheduler) supplies, run an SQR via the PeopleSoft environment. If you are on version 8.x find the output file label "Message Log". This is the output from an intermediate program, PSSQR.EXE, but it will include the SQR command line that is generated. There are probably more parameters here than you need, but you can use this as your initial template. In general, for PeopleSoft Application that you run from your desktop you will need -i, -o, -f, and -zif and optionally you might want to use -cb and -ziv. I hope this helps. Ed Kelly ================================================== From: Reply To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." To: sqr-users@sqrug.org Subject: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT Sent: Saturday, July 17, 2004 6:59 PM 1. When I last installed PeopleSoft, I ran SQRW.EXE for the first time and there were no flags. Somone told me some neat trick for populating them, and I've forgotten it. Can somebody please remind me of this cunning stunt (Spoonerism alert!) or tell me what flags I need if I'm doing it manually? 2. What does the W in SQRW.EXE stand for, anyway? 3. And how about the T in SQT? The most plausible candidate I can think of is "transaction" and that isn't very plausible at all. _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 19 11:52:41 2004 Date: Mon, 19 Jul 2004 12:51:33 -0400 From: EricRection@aol.com Subject: Re: [sqr-users] Easy Questions: flags, SQRW.EXE, SQT I do believe you cracked it. The problem is very urgent and solving it will help you get to heaven. Many thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 19 08:43:50 2004 From: "Kumar Sosa" Date: Mon, 19 Jul 2004 13:42:46 +0000 Subject: [sqr-users] Does anybody can answer Crystal question? I am developing a crystal report by using query. I have created a runcontrol page with parameters in level 0 and 1. I have to pass these runcontrol parameters to Crystal via query. So I have added 'P :Record(level0).Field :Record(level1).field' in the parameter list tab in the process definition. When running the crystal report it gave the error 'inline bind variable :Record(level1).field not found in the component buffer. It is running okay only with level 0 field. Your help is appreciated. Thanks, Kumar _________________________________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 19 09:15:00 2004 Subject: Re: [sqr-users] Does anybody can answer Crystal question? From: "Darshil Mehta" Date: Mon, 19 Jul 2004 19:45:11 +0530 Kumar, This SQR user forum. Please do not put any other question except SQR. Thanks, Darshil "Kumar Sosa" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 19/07/2004 07:12 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] Does anybody can answer Crystal question? I am developing a crystal report by using query. I have created a runcontrol page with parameters in level 0 and 1. I have to pass these runcontrol parameters to Crystal via query. So I have added 'P :Record(level0).Field :Record(level1).field' in the parameter list tab in the process definition. When running the crystal report it gave the error 'inline bind variable :Record(level1).field not found in the component buffer. It is running okay only with level 0 field. Your help is appreciated. Thanks, Kumar _________________________________________________________________ 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 19 09:49:31 2004 Date: Mon, 19 Jul 2004 07:47:08 -0700 (PDT) From: Jim McKeever Subject: Re: [sqr-users] Does anybody can answer Crystal question? Kumar, Try posting your question to the PeopleSoft User's Group. Go to Yahoo and search in the Groups. Someone there should be able to help you with your question. Darshil Mehta wrote: Kumar, This SQR user forum. Please do not put any other question except SQR. Thanks, Darshil "Kumar Sosa" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 19/07/2004 07:12 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] Does anybody can answer Crystal question? I am developing a crystal report by using query. I have created a runcontrol page with parameters in level 0 and 1. I have to pass these runcontrol parameters to Crystal via query. So I have added 'P :Record(level0).Field :Record(level1).field' in the parameter list tab in the process definition. When running the crystal report it gave the error 'inline bind variable :Record(level1).field not found in the component buffer. It is running okay only with level 0 field. Your help is appreciated. Thanks, Kumar _________________________________________________________________ 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 ______________________________________________________________________ ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Jim McKeever PeopleSoft Applications Administrator, U.S. Nursing Corporation (800) 726-8773 ext. 1973 --------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 19 15:43:42 2004 Date: Mon, 19 Jul 2004 15:37:24 -0500 From: "Pan, Zhen" Subject: [sqr-users] on break help Hi all I am having problem with on break.=20 I was trying to print out some entries and group by operID and Date. Here is the result I have(partial) =20 06/02/04 SCOTE 130160000000 Nr Grad 1 $ 7,435.20 =20 06/02/04 SCOTE 191200000000 Activ Fee 1 $ 7,497.80 =20 total for operator: 2 7,497.80 =20 total for date: 2 7,497.80 =20 for everything else it is correct except the total for operator and total for the date. If within the same date and sme operID there are more than one entries, the first one will be ignored. (Except the very first record, the first entry will be counted) The following is the code and I aslo prined each time when 'subtotal' is called. I found it is not called by when the item changes. Is that a bug or anything I did was wrong? Thanks! =20 begin-procedure SelectData LET #SUBTOTAL=3D0 LET #COUNTER=3D0 LET $OLDpID=3D'' let $oldnm=3D'' let $olddes=3D'' let $olddt=3D'' let #first=3D1=20 BEGIN-SELECT=20=20=20=20 =20 BURSAR_ITM_TYP_NM () on-break print=3Dnever level=3D3 after=3Dsubtotal BURSAR_ITM_TYP_SHRT_DESC=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 TO_CHAR(SF_ITM_POST_DT, 'MM/DD/YY') &SF_ITM_POST_DT () on-break print=3Dnever level=3D1 after=3DDatetotal sum(BURSAR_ITM_LN_AMT) &BURSAR_ITM_LN_AMT PSE_OPR_ID () on-break print=3Dnever level=3D2 after=3DIDtotal =20 =20=20=20=20 LET #BURSAR_ITM_LN_AMT=3D&BURSAR_ITM_LN_AMT =20 if ($oldnm<>&BURSAR_ITM_TYP_NM or $oldpid<>&PSE_OPR_ID or $olddt<>&SF_ITM_POST_DT ) let $oldnm =3D&BURSAR_ITM_TYP_NM let $oldpid =3D&PSE_OPR_ID let $olddes =3D&BURSAR_ITM_TYP_SHRT_DESC let $olddt =3D&SF_ITM_POST_DT=20 let #subtotal=3D&BURSAR_ITM_LN_AMT+#subtotal if #first=3D1 let #counter=3D#counter+1 !paly tricks with the counters of the very first record end-if Do ReportLine if #first=3D1 let #counter=3D#counter - 1 end-if !paly tricks with the counters of the very first record =20=20=20=20=20=20=20=20=20=20=20 let #first=3D0 else=20 if ($oldnm=3D&BURSAR_ITM_TYP_NM and $oldpid=3D&PSE_OPR_ID and $olddt<>&SF_ITM_POST_DT) let #counter=3D#counter+1 let #subtotal=3D&BURSAR_ITM_LN_AMT+#subtotal =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 end-if end-if=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 FROM DSS_RDS.SF_ALL_ITM_GT=20 [$where] and rownum<1790 group by BURSAR_BSNS_UNIT_CD,BURSAR_ITM_TYP_NM,BURSAR_ITM_TYP_SHRT_DESC, SF_ITM_POST_DT,PSE_OPR_ID order BY SF_ITM_POST_DT, PSE_OPR_ID, BURSAR_ITM_TYP_NM =20=20 ! ! ! ! ! Do Data ! ! ! !WHERE 1=3D0 ![$and] ! END-SELECT =20 =20 =20 end-procedure =20 ----------------------------------------------------- BEGIN-PROCEDURE SUBTOTAL !----------------------------------------------------- let #idcounter=3D#counter+#idcounter let #idsubtotal=3D#subtotal+#idsubtotal show 'subtotal' #subtotal=20=20=20=20=20=20=20=20 show 'idsubtotal' #idsubtotal LET #SUBTOTAL=3D0 LET #COUNTER=3D1=20=20=20=20=20 END-PROCEDURE SUBTOTAL =20 !----------------------------------------------------- BEGIN-PROCEDURE IDTOTAL !----------------------------------------------------- show 'idsubtotal' #idsubtotal print 'total for operator: ' (+1, 25) print #idcounter (,60) edit 999 print #idsubtotal (,75) edit 9,999,999,999.00 let #datecounter=3D#datecounter+#idcounter let #datetotal=3D#datetotal+#idsubtotal let #idcounter=3D0=20=20 let #idsubtotal=3D0=20=20=20 END-PROCEDURE IDTOTAL =20 !----------------------------------------------------- BEGIN-PROCEDURE DATETOTAL !----------------------------------------------------- show 'datesubtotal' #datesubtotal!let #dateconunter=3D#datecounter+#idcounter print 'total for date: ' (+1, 25) print #datecounter (,60) edit 999 print #datetotal (,75) edit 9,999,999,999.00 let #datecounter=3D0=20=20=20=20=20 let #datetotal=3D0 END-PROCEDURE DATETOTAL Zhen Pan University Information Technology Services HRMS/SIS Team=20 work (812)856-4566 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jul 20 12:21:45 2004 From: "Bencke, Gina" Date: Tue, 20 Jul 2004 11:27:49 -0400 Subject: RE: [sqr-users] on break help There are some things about on-break which you do not seem to understand.=20=20 First, recognizing that on-break is part of the print command, the statements will be executed in the order that they are positioned physically in your select loop. Programmers often think since they have identified the LEVELS appropriately it should not matter what order the place the statements in the loop. This is not true.=20=20 begin-select ... TO_CHAR(SF_ITM_POST_DT, 'MM/DD/YY') &SF_ITM_POST_DT () on-break print=3Dnever level=3D1 after=3DDatetotal PSE_OPR_ID () on-break print=3Dnever level=3D2 after=3DIDtotal BURSAR_ITM_TYP_NM () on-break print=3Dnever level=3D3 after=3Dsubtotal BURSAR_ITM_TYP_SHRT_DESC=20=20=20=20=20=20=20=20=20=20 sum(BURSAR_ITM_LN_AMT) &BURSAR_ITM_LN_AMT ... end-select Next, make sure your ORDER BY clause lists the level 1 break column first, level 2 second, etc. Note level 1 is the highest level break. In your case I would recommend using positional ordering since your highest level break is a function. ORDER BY 1, PSE_OPR_ID, BURSAR_ITM_TYP_NM=09 I do not think you need to save the old values of your variables, instead use print=3Dchange/top-page to control the printing of the field values. If for some reason you do in fact need the old value of variable, use the save variables to hold the old value of the select field during the execution of your after procedures. SQR will maintain the old value of a select column in a save variable that can then be used in the after procedure. Once the after procedure executes, SQR sets the value of the save variable to the new column value so the $oldpid and &PSE_OPR_ID will have the same value after the AFTER procedure executes. Note the second level 3 break, I am assuming that BURSAR_ITM_TYP_NM and BURSAR_ITM_TYP_SHRT_DESC break simultaneously. begin-select ... TO_CHAR(SF_ITM_POST_DT, 'MM/DD/YY') &SF_ITM_POST_DT (+1,...) on-break print=3Dnever level=3D1 after=3DDatetotal save=3D$olddt PSE_OPR_ID (0,...) on-break print=3Dchange/top-page level=3D2 after=3DIdtotal save=3D$oldpid BURSAR_ITM_TYP_NM (0,...) on-break print=3Dchange/top-page level=3D3 after=3Dsubtotal save=3D$oldnm BURSAR_ITM_TYP_SHRT_DESC (0,...) on-break print=3Dchange/top-page level=3D3 save=3D$olddes=20=20=20=20=20=20=20=20=20 sum(BURSAR_ITM_LN_AMT) &BURSAR_ITM_LN_AMT ... end-select Your if statement is doing the work that should be left for your break statements and SAVE variables. I would recommend using three subtotal variables and three Counter variables. In your select paragraph include lines similar to those given below. Then in your after procedure, print the value of the appropriate variables and then move a 0 to reset them for the next grouping.=20=20 Begin-select ... add &BURSAR_ITM_LN_AMT to #Datesubtotal add &BURSAR_ITM_LN_AMT to #idsubtotal add &BURSAR_ITM_LN_AMT to #NMsubotal add 1 to #DateCounter add 1 to #IDCounter add 1 to #NMCounter ... End-select !----------------------------------------------------- BEGIN-PROCEDURE SUBTOTAL !----------------------------------------------------- print 'Total for Name: ' (+2,...) print #Nmsubotal (0,...) move 0 to #Nmsubotal move 0 to #NmCounter END-PROCEDURE SUBTOTAL After procedures call each other in descending order. For Example lets say your code breaks at the highest level (&SF_ITM_POST_DT), the after procedures will be called in the following order subTotal, IDTotal, DateTotal. Then SQR will clear the lower level breaks so that these procedures are not called again when there print statements are executed. Now your select paragraph ought to look like this: begin-select TO_CHAR(SF_ITM_POST_DT, 'MM/DD/YY') &SF_ITM_POST_DT (+1,...) on-break print=3Dchange/top-page level=3D1 after=3DDatetotal save=3D$olddt PSE_OPR_ID (0,...) on-break print=3Dchange/top-page level=3D2 after=3DIdtotal save=3D$oldpid BURSAR_ITM_TYP_NM (0,...) on-break print=3Dchange/top-page level=3D3 after=3Dsubtotal save=3D$oldnm BURSAR_ITM_TYP_SHRT_DESC (0,...) on-break print=3Dchange/top-page level=3D3 save=3D$olddes=20=20=20=20=20=20=20=20=20 sum(BURSAR_ITM_LN_AMT) &BURSAR_ITM_LN_AMT add &BURSAR_ITM_LN_AMT to #Datesubtotal add &BURSAR_ITM_LN_AMT to #idsubtotal add &BURSAR_ITM_LN_AMT to #NMsubotal add 1 to #DateCounter add 1 to #IDCounter add 1 to #NMCounter end-select While processing the SELECT paragraph, when a break occurs on any column, events occur in the following order: 1. AFTER procedures are processed in descending order from highest LEVEL to the lowest LEVEL of the current ON-BREAK column.=20 2. SAVE variables are set with the new value. 3. BEFORE procedures are processed in ascending from lowest LEVEL to the highest LEVEL of the current ON-BREAK column. 4. Any breaks with the same of higher LEVEL numbers are cleared so they will not break on the next value 5. The current line position is advanced if SKIPLINES is used 6. The value is PRINTed, unless PRINT=3DNEVER To illustrate this, let's look at what happens when &SF_ITM_POST_DT breaks. 1. After procedures are processed (in descending order) subtotal (Level 3)=20 Idtotal (Level 2) Datetotal (Level 1)=20=20 During the processing of the after procedures the save variable, $olddt, has value of the previous column variable. 2. Save variables are given new values The value of &SF_ITM_POST_DT is moved to the save variable $olddt. 3. Before procedures are processed (in ascending order) None are defined 4. Clear higher level breaks The breaks on PSE_OPR_ID, BURSAR_ITM_TYP_NM, and BURSAR_ITM_TYP_SHRT_DESC are cleared.=20=20 This ensures that the before and after procedures, Idtotal and subtotal will not be processed again when the print statement associated with PSE_OPR_ID and BURSAR_ITM_TYP_NM is executed. 5. n/a Skiplines was not used.=20=20 6. Print - or not Since print=3Dchange/top-page is used, the value of &SF_ITM_POST_DT is printed. Hope this Helps! Regards, Gina Bencke FCE Office (216) 416-3492 Home Office (440) 519-0060 email: gina.work@bencke.com -----Original Message----- From: sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org [mailto:sqr-users-bounces+ginabencke=3Dforestcity.net@sqrug.org] On Behalf Of Pan, Zhen Sent: Monday, July 19, 2004 4:37 PM To: sqr-users@sqrug.org Subject: [sqr-users] on break help Hi all I am having problem with on break.=20 I was trying to print out some entries and group by operID and Date. Here is the result I have(partial) =20 06/02/04 SCOTE 130160000000 Nr Grad 1 $ 7,435.20 =20 06/02/04 SCOTE 191200000000 Activ Fee 1 $ 7,497.80 =20 total for operator: 2 7,497.80 =20 total for date: 2 7,497.80 =20 for everything else it is correct except the total for operator and total for the date. If within the same date and sme operID there are more than one entries, the first one will be ignored. (Except the very first record, the first entry will be counted) The following is the code and I aslo prined each time when 'subtotal' is called. I found it is not called by when the item changes. Is that a bug or anything I did was wrong? Thanks! =20 begin-procedure SelectData LET #SUBTOTAL=3D0 LET #COUNTER=3D0 LET $OLDpID=3D'' let $oldnm=3D'' let $olddes=3D'' let $olddt=3D'' let #first=3D1=20 BEGIN-SELECT=20=20=20=20 =20 BURSAR_ITM_TYP_NM () on-break print=3Dnever level=3D3 after=3Dsubtotal BURSAR_ITM_TYP_SHRT_DESC=20=20=20=20=20=20=20=20=20=20 TO_CHAR(SF_ITM_POST_DT, 'MM/DD/YY') &SF_ITM_POST_DT () on-break print=3Dnever level=3D1 after=3DDatetotal sum(BURSAR_ITM_LN_AMT) &BURSAR_ITM_LN_AMT PSE_OPR_ID () on-break print=3Dnever level=3D2 after=3DIDtotal =20 =20=20=20=20 LET #BURSAR_ITM_LN_AMT=3D&BURSAR_ITM_LN_AMT =20 if ($oldnm<>&BURSAR_ITM_TYP_NM or $oldpid<>&PSE_OPR_ID or $olddt<>&SF_ITM_POST_DT ) let $oldnm =3D&BURSAR_ITM_TYP_NM let $oldpid =3D&PSE_OPR_ID let $olddes =3D&BURSAR_ITM_TYP_SHRT_DESC let $olddt =3D&SF_ITM_POST_DT=20 let #subtotal=3D&BURSAR_ITM_LN_AMT+#subtotal if #first=3D1 let #counter=3D#counter+1 !paly tricks with the counters of the very first record end-if Do ReportLine if #first=3D1 let #counter=3D#counter - 1 end-if !paly tricks with the counters of the very first record =20=20=20=20=20=20=20=20=20=20=20 let #first=3D0 else=20 if ($oldnm=3D&BURSAR_ITM_TYP_NM and $oldpid=3D&PSE_OPR_ID and $olddt<>&SF_ITM_POST_DT) let #counter=3D#counter+1 let #subtotal=3D&BURSAR_ITM_LN_AMT+#subtotal =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 end-if end-if=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 FROM DSS_RDS.SF_ALL_ITM_GT=20 [$where] and rownum<1790 group by BURSAR_BSNS_UNIT_CD,BURSAR_ITM_TYP_NM,BURSAR_ITM_TYP_SHRT_DESC, SF_ITM_POST_DT,PSE_OPR_ID order BY SF_ITM_POST_DT, PSE_OPR_ID, BURSAR_ITM_TYP_NM =20=20 ! ! ! ! ! Do Data ! ! ! !WHERE 1=3D0 ![$and] ! END-SELECT =20 =20 =20 end-procedure =20 ----------------------------------------------------- BEGIN-PROCEDURE SUBTOTAL !----------------------------------------------------- let #idcounter=3D#counter+#idcounter let #idsubtotal=3D#subtotal+#idsubtotal show 'subtotal' #subtotal=20=20=20=20=20=20=20=20 show 'idsubtotal' #idsubtotal LET #SUBTOTAL=3D0 LET #COUNTER=3D1=20=20=20=20=20 END-PROCEDURE SUBTOTAL =20 !----------------------------------------------------- BEGIN-PROCEDURE IDTOTAL !----------------------------------------------------- show 'idsubtotal' #idsubtotal print 'total for operator: ' (+1, 25) print #idcounter (,60) edit 999 print #idsubtotal (,75) edit 9,999,999,999.00 let #datecounter=3D#datecounter+#idcounter let #datetotal=3D#datetotal+#idsubtotal let #idcounter=3D0=20=20 let #idsubtotal=3D0=20=20=20 END-PROCEDURE IDTOTAL =20 !----------------------------------------------------- BEGIN-PROCEDURE DATETOTAL !----------------------------------------------------- show 'datesubtotal' #datesubtotal!let #dateconunter=3D#datecounter+#idcounter print 'total for date: ' (+1, 25) print #datecounter (,60) edit 999 print #datetotal (,75) edit 9,999,999,999.00 let #datecounter=3D0=20=20=20=20=20 let #datetotal=3D0 END-PROCEDURE DATETOTAL Zhen Pan University Information Technology Services HRMS/SIS Team=20 work (812)856-4566 =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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 20 14:48:50 2004 Date: Tue, 20 Jul 2004 15:46:13 -0400 From: "Robert K. Foster" Subject: [sqr-users] Re: Bar Code Label Printing on Zebra Printers This is a multi-part message in MIME format... --------------040705000409040209090308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am also working on printing to a Zebra label printer. I've only just received the printer so I haven't gotten very far. In my case I am not using the Windows drivers, I will be printing directly to the printer at a network IP address, so I am starting from scratch and using the native code on the printer. By the way, the "^" character does not indicate an ALT value, you simply include the "^" as a character. Below are some of the codes used in ZPLII, the native code/script of the printer. You can download the manual from the Zebra website at http://www.zebra.com/SS/manuals.htm but they require you to register. I suspect that END_FORMAT is what you want but how to add that between records when using the print driver is unknown to me at this point. Perhaps I misunderstand how you are creating the batch file? Bob. Mid-Michigan MRI, Inc. rkf at radiology.msu.edu ! ! encoded characters specific to ZPL II printer language. ! encode '^' into $ZEBRA_DELIM encode '^XA' into $START_FORMAT encode '^XZ' into $END_FORMAT encode '^FO' into $FIELD_ORIGIN encode '^FD' into $FIELD_DATA encode '^FS' into $FIELD_SEPARATOR encode '^AD' into $FONT_D sqr-users-request@sqrug.org wrote: > -----Original Message----- > >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Paul Gengler >Sent: Thursday, July 15, 2004 10:07 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Bar Code Label Printing on Zebra Printers > > >I have developed an SQR to print bar code labels on a Zebra printer. >Using Windows to file print, and selecting the Zebra printer, the >labels print just fine. I'm assuming Windows is calling the printer >driver associated with the target print device, and creating a print job >in the printer language (ZPL) of the Zebra printer. However, now I am >attempting to execute the SQR report via a batch file from a wireless >handheld, and directing the output file directly to the Zebra printer. >The labels are no longer printing correctly. I'm guessing what I need >to do is to emulate what happens when I print the labels via Windows. I >am at a total loss on how to do that ????? > > >Paul Gengler >General Mills >Staff Consultant >Supply Chain IS - 16D2 >(763) 293-3180 >paul.gengler @ genmills.com > >_______________________________________________ > > > --------------040705000409040209090308 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------040705000409040209090308 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 --------------040705000409040209090308-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jul 20 17:30:32 2004 From: "Grage, Monica" Date: Tue, 20 Jul 2004 15:29:13 -0700 Subject: [sqr-users] Question About the Brio Report Builder I am very new to the group and using the Brio Report Builder 6.1.3 to create a new report. I am using the GUI version, since I am not a coding expert by any stretch of the imagination. I want to create a report variable to print, where the value of variable is based on the contents of a database field. My example below shows Parent_Part as the defined variable. Parent_Part = EQNUM if PARENT is NULL else PARENT I know I can do something similar in Crystal, but cannot quite figure how where to do this with the Brio Report Builder GUI tool. Can someone in this group possibly help me out? I sure do hope so. Thanks in advance for your help. M _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 21 09:09:06 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] Question About the Brio Report Builder Date: Wed, 21 Jul 2004 10:07:46 -0400 Monica: If you are using the GUI tool, then you have the field already selected against which you want to apply the condition. Place your mouse over the field and right click on the field and it will display a menu. Select object properties, then select exceptions, then click on the add button. Select the field from the list on the left and then build the condition for the field. Or you can use the expression builder and build the statement right into the query (using decode for Oracle, or case for DB2 etc) 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 Grage, Monica Sent: Tuesday, July 20, 2004 6:29 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Question About the Brio Report Builder I am very new to the group and using the Brio Report Builder 6.1.3 to create a new report. I am using the GUI version, since I am not a coding expert by any stretch of the imagination. I want to create a report variable to print, where the value of variable is based on the contents of a database field. My example below shows Parent_Part as the defined variable. Parent_Part = EQNUM if PARENT is NULL else PARENT I know I can do something similar in Crystal, but cannot quite figure how where to do this with the Brio Report Builder GUI tool. Can someone in this group possibly help me out? I sure do hope so. Thanks in advance for your help. M _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 14:42:10 2004 From: "Grage, Monica" Subject: RE: [sqr-users] Question About the Brio Report Builder Date: Thu, 22 Jul 2004 12:39:02 -0700 Hi Paul. Thanks for getting back to me with this solution. I have been playing around with the Exception Builder, but am having trouble with getting the conditional formatting expression proper. Do you have an example of a "properly working condition" expression that I could use as a guide? Unfortunately the Brio classroom training manual doesn't have any examples, and neither does the on-line help. There are very good written descriptions, but following those I just cannot seem to make the expression builder work properly. If you wouldn't mind, that would be a huge help. Thanks, M -----Original Message----- From: Paul Hoyte [mailto:paul.hoyte@sharidionne.com] Sent: Wednesday, July 21, 2004 7:08 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] Question About the Brio Report Builder Monica: If you are using the GUI tool, then you have the field already selected against which you want to apply the condition. Place your mouse over the field and right click on the field and it will display a menu. Select object properties, then select exceptions, then click on the add button. Select the field from the list on the left and then build the condition for the field. Or you can use the expression builder and build the statement right into the query (using decode for Oracle, or case for DB2 etc) 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 Grage, Monica Sent: Tuesday, July 20, 2004 6:29 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Question About the Brio Report Builder I am very new to the group and using the Brio Report Builder 6.1.3 to create a new report. I am using the GUI version, since I am not a coding expert by any stretch of the imagination. I want to create a report variable to print, where the value of variable is based on the contents of a database field. My example below shows Parent_Part as the defined variable. Parent_Part = EQNUM if PARENT is NULL else PARENT I know I can do something similar in Crystal, but cannot quite figure how where to do this with the Brio Report Builder GUI tool. Can someone in this group possibly help me out? I sure do hope so. Thanks in advance for your help. M _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 16:27:19 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] Question About the Brio Report Builder Date: Thu, 22 Jul 2004 17:24:09 -0400 Hello Monica: If you send me the expression or condition you are trying to build I can put together a sample program and send it to you...... 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 Grage, Monica Sent: Thursday, July 22, 2004 3:39 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Question About the Brio Report Builder Hi Paul. Thanks for getting back to me with this solution. I have been playing around with the Exception Builder, but am having trouble with getting the conditional formatting expression proper. Do you have an example of a "properly working condition" expression that I could use as a guide? Unfortunately the Brio classroom training manual doesn't have any examples, and neither does the on-line help. There are very good written descriptions, but following those I just cannot seem to make the expression builder work properly. If you wouldn't mind, that would be a huge help. Thanks, M -----Original Message----- From: Paul Hoyte [mailto:paul.hoyte@sharidionne.com] Sent: Wednesday, July 21, 2004 7:08 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] Question About the Brio Report Builder Monica: If you are using the GUI tool, then you have the field already selected against which you want to apply the condition. Place your mouse over the field and right click on the field and it will display a menu. Select object properties, then select exceptions, then click on the add button. Select the field from the list on the left and then build the condition for the field. Or you can use the expression builder and build the statement right into the query (using decode for Oracle, or case for DB2 etc) 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 Grage, Monica Sent: Tuesday, July 20, 2004 6:29 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Question About the Brio Report Builder I am very new to the group and using the Brio Report Builder 6.1.3 to create a new report. I am using the GUI version, since I am not a coding expert by any stretch of the imagination. I want to create a report variable to print, where the value of variable is based on the contents of a database field. My example below shows Parent_Part as the defined variable. Parent_Part = EQNUM if PARENT is NULL else PARENT I know I can do something similar in Crystal, but cannot quite figure how where to do this with the Brio Report Builder GUI tool. Can someone in this group possibly help me out? I sure do hope so. Thanks in advance for your help. M _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 21 10:29:32 2004 Date: Wed, 21 Jul 2004 10:27:01 -0500 From: "Borde, Gopal S" Subject: [sqr-users] Calling a batch file Friends, =20 I have to write a sqr which will run a batch file (edi.bat). =20 I tried using following codes in sqr =20 =20=20 let $file =3D 'C:\Travel\edi\edi.bat' =20=20=20=20 call system using $file #status =20 but it is not working.=20 =20 The edi bat is file delivered by PeopleSoft it reads names of all input files and creates a list file. =20 Alternatively if any one know how to write code for this command will also solve the purpose. =20 =20 Thanks . =20 =20 =20 Gopal Borde ITS Dept =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 21 10:40:03 2004 Subject: RE: [sqr-users] Calling a batch file Date: Wed, 21 Jul 2004 10:37:20 -0500 From: "Knapp, Richard" Call the command interpreter and feed it the file you want it to execute. 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 Borde, Gopal S Sent: Wednesday, July 21, 2004 10:27 AM To: sqr-users@sqrug.org Subject: [sqr-users] Calling a batch file Friends, =20 I have to write a sqr which will run a batch file (edi.bat). =20 I tried using following codes in sqr =20 =20=20 let $file =3D 'C:\Travel\edi\edi.bat' =20=20=20=20 call system using $file #status =20 but it is not working.=20 =20 The edi bat is file delivered by PeopleSoft it reads names of all input files and creates a list file. =20 Alternatively if any one know how to write code for this command will also solve the purpose. =20 =20 Thanks . =20 =20 =20 Gopal Borde ITS Dept =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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 21 10:42:52 2004 From: "Orr, Daniel E (Dan) TL26D" Subject: RE: [sqr-users] Calling a batch file Date: Wed, 21 Jul 2004 11:38:02 -0400 You need to run the batch within a command shell, you can get this by doing the following: let $file = 'C:\Travel\edi\edi.bat' let $command=getenv('COMSPEC')||' /c ' || $file call system using $command #status This will run the file within the command shell. -----Original Message----- From: Borde, Gopal S [mailto:gopal-borde@uiowa.edu] Sent: Wednesday, July 21, 2004 11:27 AM To: sqr-users@sqrug.org Subject: [sqr-users] Calling a batch file Friends, I have to write a sqr which will run a batch file (edi.bat). I tried using following codes in sqr let $file = 'C:\Travel\edi\edi.bat' call system using $file #status but it is not working. The edi bat is file delivered by PeopleSoft it reads names of all input files and creates a list file. Alternatively if any one know how to write code for this command will also solve the purpose. Thanks . Gopal Borde ITS Dept _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users "MMS " made the following annotations. ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2004 CIGNA ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 07:13:52 2004 From: Pamela Lantzy Subject: RE: [sqr-users] Calling a batch file Date: Thu, 22 Jul 2004 08:09:47 -0400 Make sure this is in a location that the process scheduler has access to. If this file is on your harddrive, it will not be able to locate it, when running this through the scheduler. -----Original Message----- From: sqr-users-bounces+plantzy=uamail.albany.edu@sqrug.org [mailto:sqr-users-bounces+plantzy=uamail.albany.edu@sqrug.org] On Behalf Of Borde, Gopal S Sent: Wednesday, July 21, 2004 11:27 AM To: sqr-users@sqrug.org Subject: [sqr-users] Calling a batch file Friends, I have to write a sqr which will run a batch file (edi.bat). I tried using following codes in sqr let $file = 'C:\Travel\edi\edi.bat' call system using $file #status but it is not working. The edi bat is file delivered by PeopleSoft it reads names of all input files and creates a list file. Alternatively if any one know how to write code for this command will also solve the purpose. Thanks . Gopal Borde ITS Dept _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Jul 21 15:25:42 2004 From: bknoch@hinda.com Date: Wed, 21 Jul 2004 15:24:43 -0500 Subject: [sqr-users] Performance issue with aggregates in SQL Server. We're running SQL Server 7 on windows NT. I run the following query in Query Analyzer and it runs in a second or two: BEGIN-SELECT SUBSTRING(STH.ORDER_NO,1,3) COUNT(DISTINCT STH.ORDER_NO) COUNT(STL.ORDER_INT_LINE_NO) SUM(STL.QTY_ORDERED) SUM(ROUND(STL.QTY_ORDERED * PRICE, 2)) FROM PS_ORD_HEADER STH (INDEX=PSAORD_HEADER), PS_ORD_LINE STL WHERE STH.BUSINESS_UNIT = $BUSINESS_UNIT AND STH.ORDER_DATE BETWEEN $FROM_DATE AND $THRU_DATE AND STH.ORDER_STATUS <> 'X' AND STH.BUSINESS_UNIT = STL.BUSINESS_UNIT AND STH.ORDER_NO = STL.ORDER_NO AND STL.ORD_LINE_STATUS <> 'X' GROUP BY SUBSTRING(STH.ORDER_NO,1,3) ORDER BY SUBSTRING(STH.ORDER_NO,1,3) OPTION(FORCE ORDER) However, when I run it through SQR in PeopleSoft, it takes a minute. I redid it by removing the SUM's and COUNT's and using counters to do the work, and it takes around 4 seconds instead of the minute. I'd rather be able to use the COUNT's and SUM's. Does anyone happen to know why I'd get such a large performance hit? Thanks, Brian Knoch This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Jul 21 17:35:56 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Performance issue with aggregates in SQL Server. Date: Wed, 21 Jul 2004 15:32:52 -0700 It may be that the Query Analyzer is using your hints ("INDEX=PSAORD_HEADER" and "OPTION(FORCE ORDER)") but SQR is not. Try running SQR with the "-S" flag on the command line to get the actual text of the SQL commands in your log file. -----Original Message----- From: bknoch@hinda.com [mailto:bknoch@hinda.com] Sent: Wednesday, July 21, 2004 1:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] Performance issue with aggregates in SQL Server. We're running SQL Server 7 on windows NT. I run the following query in Query Analyzer and it runs in a second or two: BEGIN-SELECT SUBSTRING(STH.ORDER_NO,1,3) COUNT(DISTINCT STH.ORDER_NO) COUNT(STL.ORDER_INT_LINE_NO) SUM(STL.QTY_ORDERED) SUM(ROUND(STL.QTY_ORDERED * PRICE, 2)) FROM PS_ORD_HEADER STH (INDEX=PSAORD_HEADER), PS_ORD_LINE STL WHERE STH.BUSINESS_UNIT = $BUSINESS_UNIT AND STH.ORDER_DATE BETWEEN $FROM_DATE AND $THRU_DATE AND STH.ORDER_STATUS <> 'X' AND STH.BUSINESS_UNIT = STL.BUSINESS_UNIT AND STH.ORDER_NO = STL.ORDER_NO AND STL.ORD_LINE_STATUS <> 'X' GROUP BY SUBSTRING(STH.ORDER_NO,1,3) ORDER BY SUBSTRING(STH.ORDER_NO,1,3) OPTION(FORCE ORDER) However, when I run it through SQR in PeopleSoft, it takes a minute. I redid it by removing the SUM's and COUNT's and using counters to do the work, and it takes around 4 seconds instead of the minute. I'd rather be able to use the COUNT's and SUM's. Does anyone happen to know why I'd get such a large performance hit? Thanks, Brian Knoch This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 09:09:41 2004 Subject: RE: [sqr-users] Performance issue with aggregates in SQL Server. From: bknoch@hinda.com Date: Thu, 22 Jul 2004 09:06:50 -0500 -S shows the hints in there. The query runs fast in Query Analyzer whether the hints are in there or not, so they're probably unnecessary. In any case, the query runs fast in SQR when you remove the aggregates, so I'd guess it has something to do with how SQR is processing them. Thanks, Brian Knoch |---------+--------------------------------------------> | | "Alexander, Steve" | | | | | | Sent by: | | | sqr-users-bounces+bknoch=hinda.co| | | m@sqrug.org | | | | | | | | | 07/21/2004 05:32 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 reportinglangu age | | from Hyperion Solutions.'" | | cc: | | Subject: RE: [sqr-users] Performance issue with aggregates in SQL Server. | >----------------------------------------------------------------------------------------------| It may be that the Query Analyzer is using your hints ("INDEX=PSAORD_HEADER" and "OPTION(FORCE ORDER)") but SQR is not. Try running SQR with the "-S" flag on the command line to get the actual text of the SQL commands in your log file. -----Original Message----- From: bknoch@hinda.com [mailto:bknoch@hinda.com] Sent: Wednesday, July 21, 2004 1:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] Performance issue with aggregates in SQL Server. We're running SQL Server 7 on windows NT. I run the following query in Query Analyzer and it runs in a second or two: BEGIN-SELECT SUBSTRING(STH.ORDER_NO,1,3) COUNT(DISTINCT STH.ORDER_NO) COUNT(STL.ORDER_INT_LINE_NO) SUM(STL.QTY_ORDERED) SUM(ROUND(STL.QTY_ORDERED * PRICE, 2)) FROM PS_ORD_HEADER STH (INDEX=PSAORD_HEADER), PS_ORD_LINE STL WHERE STH.BUSINESS_UNIT = $BUSINESS_UNIT AND STH.ORDER_DATE BETWEEN $FROM_DATE AND $THRU_DATE AND STH.ORDER_STATUS <> 'X' AND STH.BUSINESS_UNIT = STL.BUSINESS_UNIT AND STH.ORDER_NO = STL.ORDER_NO AND STL.ORD_LINE_STATUS <> 'X' GROUP BY SUBSTRING(STH.ORDER_NO,1,3) ORDER BY SUBSTRING(STH.ORDER_NO,1,3) OPTION(FORCE ORDER) However, when I run it through SQR in PeopleSoft, it takes a minute. I redid it by removing the SUM's and COUNT's and using counters to do the work, and it takes around 4 seconds instead of the minute. I'd rather be able to use the COUNT's and SUM's. Does anyone happen to know why I'd get such a large performance hit? Thanks, Brian Knoch This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ 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 communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 14:58:48 2004 From: "Miller, Danika" Date: Thu, 22 Jul 2004 15:56:12 -0400 Subject: [sqr-users] Special Characters Has anyone worked with special characters before? =20 I have a last name of G=F3mez Suarez and a last name of Guti=E9rrez Roa. W= hen I order by last name Gutierrez Roa comes first???=20=20 Any ideas?? =20 I have the following code in my program that translates special characters: =20 do translate-characters($final_name, $final_name-fmt) =20 =20 =20 =20 Please help!!! =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 15:15:56 2004 From: Bob Stone Subject: RE: [sqr-users] Special Characters Date: Thu, 22 Jul 2004 15:13:18 -0500 I'm sure the ordering goes down to the ASCII where the special o is listed after the regular o's. although I'm not sure how sqr might handle that. with your function are you ordering by last name with the special chars before the do translate or are you translating first and ordering after? I think you have to make your =F3 look like an o while you order it, and th= en back to the =F3 for display. Perhaps you could have a non-special char name variable that would list G=F3mez as Gomez, then order it and print the actu= al name?=20=20 bob stone -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Miller, Danika Sent: Thursday, July 22, 2004 2:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Special Characters Has anyone worked with special characters before? =20 I have a last name of G=F3mez Suarez and a last name of Guti=E9rrez Roa. W= hen I order by last name Gutierrez Roa comes first???=20=20 Any ideas?? =20 I have the following code in my program that translates special characters: =20 do translate-characters($final_name, $final_name-fmt) =20 =20 =20 =20 Please help!!! =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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 15:20:51 2004 Subject: RE: [sqr-users] Special Characters Date: Thu, 22 Jul 2004 15:19:47 -0500 From: "Knapp, Richard" Two part names can be a problem. What happens when you just use the first = segments of the last names you mention? 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-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Miller, Danika Sent: Thursday, July 22, 2004 2:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Special Characters Has anyone worked with special characters before? =20 I have a last name of G=F3mez Suarez and a last name of Guti=E9rrez Roa. W= hen I order by last name Gutierrez Roa comes first???=20=20 Any ideas?? =20 I have the following code in my program that translates special characters: =20 do translate-characters($final_name, $final_name-fmt) =20 =20 =20 =20 Please help!!! =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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 15:40:40 2004 From: "Miller, Danika" Subject: RE: [sqr-users] Special Characters Date: Thu, 22 Jul 2004 16:36:34 -0400 My code is in the actual print procedure, which is after the order by clause. My procedure is as follows: --------------------------------------------------------------------------- Begin-select=20 a.last_name a.first_name a.middle_name move &a.last_name to $last_name move &a.first_name to $first_name move &a.middle_name to $middle_name do print-data =46rom table Where=20 Order by last name --------------------------------------------------------------------------- Begin-procedure print-data if $middle_name =3D ' ' let $final_name =3D $first_name || ' ' || $last_name else let $final_name =3D $first_name || ' ' || $middle_name || ' ' || $last_name end-if do translate-characters($final_name, $final_name-fmt) print $final_name-fmt =09 end-procedure -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com]=20 Sent: Thursday, July 22, 2004 4:13 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Special Characters I'm sure the ordering goes down to the ASCII where the special o is listed after the regular o's. although I'm not sure how sqr might handle that. with your function are you ordering by last name with the special chars before the do translate or are you translating first and ordering after? I think you have to make your =F3 look like an o while you order it, and th= en back to the =F3 for display. Perhaps you could have a non-special char name variable that would list G=F3mez as Gomez, then order it and print the actu= al name?=20=20 bob stone -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Miller, Danika Sent: Thursday, July 22, 2004 2:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Special Characters Has anyone worked with special characters before? =20 I have a last name of G=F3mez Suarez and a last name of Guti=E9rrez Roa. W= hen I order by last name Gutierrez Roa comes first???=20=20 Any ideas?? =20 I have the following code in my program that translates special characters: =20 do translate-characters($final_name, $final_name-fmt) =20 =20 =20 =20 Please help!!! =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+sqrusersarch=sqrug.org@sqrug.org Thu Jul 22 16:18:22 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Special Characters Date: Thu, 22 Jul 2004 14:16:47 -0700 The problem is that your database sort is by ascii values. You might check on whether there is an option for a dictionary sort, and if so, how it works. A dictionary sort might just be case-insensitive, or it might be accent-mark insensitive. If there isn't a sort option that helps, you might create another field on the table (or use a view) that has only unaccented letters. Or you could read the (almost) sorted data into an array, translate the name to another field, removing the accents, and go through the array doing a "touch-up" sort that shouldn't take very long. -----Original Message----- From: Miller, Danika [mailto:MillerD2@ndu.edu] Sent: Thursday, July 22, 2004 1:37 PM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] Special Characters My code is in the actual print procedure, which is after the order by clause. My procedure is as follows: --------------------------------------------------------------------------- Begin-select=20 a.last_name a.first_name a.middle_name move &a.last_name to $last_name move &a.first_name to $first_name move &a.middle_name to $middle_name do print-data =46rom table Where=20 Order by last name --------------------------------------------------------------------------- Begin-procedure print-data if $middle_name =3D ' ' let $final_name =3D $first_name || ' ' || $last_name else let $final_name =3D $first_name || ' ' || $middle_name || ' ' || $last_name end-if do translate-characters($final_name, $final_name-fmt) print $final_name-fmt =09 end-procedure -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com]=20 Sent: Thursday, July 22, 2004 4:13 PM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Special Characters I'm sure the ordering goes down to the ASCII where the special o is listed after the regular o's. although I'm not sure how sqr might handle that. with your function are you ordering by last name with the special chars before the do translate or are you translating first and ordering after? I think you have to make your =F3 look like an o while you order it, and th= en back to the =F3 for display. Perhaps you could have a non-special char name variable that would list G=F3mez as Gomez, then order it and print the actu= al name?=20=20 bob stone -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Miller, Danika Sent: Thursday, July 22, 2004 2:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Special Characters Has anyone worked with special characters before? =20 I have a last name of G=F3mez Suarez and a last name of Guti=E9rrez Roa. W= hen I order by last name Gutierrez Roa comes first???=20=20 Any ideas?? =20 I have the following code in my program that translates special characters: =20 do translate-characters($final_name, $final_name-fmt) =20 =20 =20 =20 Please help!!! =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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 09:50:43 2004 Date: Fri, 23 Jul 2004 10:49:26 -0400 From: "George Jansen" Subject: Re: [sqr-users] Special Characters You should be able to handle this by locale within your database. If you are using Oracle, have a look at the National Language Support manuals. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 07:55:41 2004 Date: Fri, 23 Jul 2004 08:51:52 -0400 From: Scotty Barnes Subject: [sqr-users] TOC fonts I have created a TOC for a report I with the output in PDF. The reports main pages come out in the correct font and char width, but the TOC looks like it is in Courier. How do I change the font in the TOC? thanks ---------- My begin setup looks like thisBegin-Setup declare-layout default Orientation=Landscape max-columns=149 max-lines=49 !sab char-width=6 left-margin=0 top-margin= 0 end-declare declare-printer default-hp font = 5 point-size= 8 end-declare declare-report crse toc=top_of_report layout=default printer-type=hp end-declare declare-toc top_of_report for-reports=(all) !dot-leader=yes indentation=2 end-declare end-setup Scott A Barnes Programmer/Analyst Wesleyan University North College 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 08:13:31 2004 From: "Sudeep Vaidya" Date: Fri, 23 Jul 2004 18:40:24 +0530 Subject: [sqr-users] Printing Data Vertically using SQR Hi All, Has someone ever done printing of data Vertically on a page. Ok, let me explain this.. We are supposed to print the Timecards for employees.All the data is printed Left to Right ( Just as we would expect it to print). Besides the data being printed Left to Right, we are also supposed to print the Employee ID. The employee Id is to be printed in the Left Margin of the page, from Bottom to Top. For example the number is 1300 , it would print like --------> (left to right) when printed horizontally. I want to print this like ^ | | | such that 1 appears on the bottom, with 3 on top, with 0 and the other 0 on the top. Basically, the text has to be rotated by 90 degrees. This is required to print the Employee Code in a bigger font . The cards are stacked Vertically, and hence this number would appear horizontal (in a bigger, readable font) to any one looking for his card. Because the mail group does not allow attachments, I can't send any to you. If you have an idea how to rotate the data by 90 degree, please let me know , and I can send you a scanned image. Thanks in advance, Sudeep _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 14:55:43 2004 From: Peter Burton Date: Fri, 23 Jul 2004 12:54:29 -0700 Subject: RE: [sqr-users] Printing Data Vertically using SQR Sudeep, Report: Begin-Report Move 1300 To #E Let $E = Edit(Edit(#E, '9999'), 'R') Print $E (5,1) Wrap 1 4 End-Report Produces: 0 0 3 1 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 Sudeep Vaidya > Sent: Friday, July 23, 2004 9:10 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Printing Data Vertically using SQR > > > Hi All, > > > Has someone ever done printing of data Vertically on a page. > Ok, let me explain this.. > > We are supposed to print the Timecards for employees.All the > data is printed > Left to Right ( Just as we would expect it to print). > Besides the data being printed Left to Right, we are also > supposed to print > the Employee ID. > The employee Id is to be printed in the Left Margin of the > page, from Bottom > to Top. > > For example the number is 1300 , it would print like > --------> (left to > right) when printed horizontally. > I want to print this like > > ^ > | > | > | > such that 1 appears on the bottom, with 3 on top, with 0 and > the other 0 on > the top. > Basically, the text has to be rotated by 90 degrees. This is > required to > print the Employee Code in a bigger font . The cards are > stacked Vertically, > and hence this number would appear horizontal (in a bigger, > readable font) > to any one looking for his card. > > Because the mail group does not allow attachments, I can't > send any to you. > If you have an idea how to rotate the data by 90 degree, > please let me know > , and I can send you a scanned image. > > Thanks in advance, > > Sudeep > > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 26 00:10:33 2004 From: "Sudeep Vaidya" Subject: RE: [sqr-users] Printing Data Vertically using SQR Date: Mon, 26 Jul 2004 10:37:52 +0530 Peter, This solution is fine, but the text is still not rotated .. The text here is to be rotated by 90 degrees, so that the employee would be able to read his number horizontally, when the cards are stacked in their bins. The number would be read from bottom to top, in the left margin of the card. ^ | 0 | 0 | 3 | 1 Using your suggestion, I can Wrap and break the text, but how to rotate it by 90 degrees ? The digits have to rotated , so as to make the number readable from Bottom to Top. If you have any solution to this , please let me know.I can send you the required output in an image to your Id. Thanks, Sudeep -----Original Message----- From: sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org [mailto:sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org]On Behalf Of Peter Burton Sent: Saturday, July 24, 2004 1:24 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Printing Data Vertically using SQR Sudeep, Report: Begin-Report Move 1300 To #E Let $E = Edit(Edit(#E, '9999'), 'R') Print $E (5,1) Wrap 1 4 End-Report Produces: 0 0 3 1 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 Sudeep Vaidya > Sent: Friday, July 23, 2004 9:10 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Printing Data Vertically using SQR > > > Hi All, > > > Has someone ever done printing of data Vertically on a page. > Ok, let me explain this.. > > We are supposed to print the Timecards for employees.All the > data is printed > Left to Right ( Just as we would expect it to print). > Besides the data being printed Left to Right, we are also > supposed to print > the Employee ID. > The employee Id is to be printed in the Left Margin of the > page, from Bottom > to Top. > > For example the number is 1300 , it would print like > --------> (left to > right) when printed horizontally. > I want to print this like > > ^ > | > | > | > such that 1 appears on the bottom, with 3 on top, with 0 and > the other 0 on > the top. > Basically, the text has to be rotated by 90 degrees. This is > required to > print the Employee Code in a bigger font . The cards are > stacked Vertically, > and hence this number would appear horizontal (in a bigger, > readable font) > to any one looking for his card. > > Because the mail group does not allow attachments, I can't > send any to you. > If you have an idea how to rotate the data by 90 degree, > please let me know > , and I can send you a scanned image. > > Thanks in advance, > > Sudeep > > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 26 08:38:53 2004 Date: Mon, 26 Jul 2004 08:38:03 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Printing Data Vertically using SQR Sudeep, I just posted an example of what I believe you are trying to do. This uses PostScript to rotate and move the text around. We then converted the PS to PDF using GhostScript. Check out: http://www.ontko.com/sqr/ Look for "Examples" about 1/2 way down the page. Hope this helps, Eric Sudeep Vaidya wrote: > Peter, > > This solution is fine, but the text is still not rotated .. > The text here is to be rotated by 90 degrees, so that the employee would be > able to read his number horizontally, when the cards are stacked in their > bins. > > The number would be read from bottom to top, in the left margin of the card. > > ^ > | 0 > | 0 > | 3 > | 1 > > Using your suggestion, I can Wrap and break the text, but how to rotate it > by 90 degrees ? > The digits have to rotated , so as to make the number readable from Bottom > to Top. > If you have any solution to this , please let me know.I can send you the > required output in an image to your Id. > > Thanks, > > Sudeep > > > > > -----Original Message----- > From: sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org > [mailto:sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org]On Behalf Of > Peter Burton > Sent: Saturday, July 24, 2004 1:24 AM > To: 'This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions.' > Subject: RE: [sqr-users] Printing Data Vertically using SQR > > > Sudeep, > > Report: > > > Begin-Report > Move 1300 To #E > Let $E = Edit(Edit(#E, '9999'), 'R') > Print $E (5,1) Wrap 1 4 > End-Report > > > Produces: > > > 0 > 0 > 3 > 1 > > > 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 Sudeep Vaidya >>Sent: Friday, July 23, 2004 9:10 AM >>To: sqr-users@sqrug.org >>Subject: [sqr-users] Printing Data Vertically using SQR >> >> >>Hi All, >> >> >>Has someone ever done printing of data Vertically on a page. >>Ok, let me explain this.. >> >>We are supposed to print the Timecards for employees.All the >>data is printed >>Left to Right ( Just as we would expect it to print). >>Besides the data being printed Left to Right, we are also >>supposed to print >>the Employee ID. >>The employee Id is to be printed in the Left Margin of the >>page, from Bottom >>to Top. >> >>For example the number is 1300 , it would print like >>--------> (left to >>right) when printed horizontally. >>I want to print this like >> >>^ >>| >>| >>| >>such that 1 appears on the bottom, with 3 on top, with 0 and >>the other 0 on >>the top. >>Basically, the text has to be rotated by 90 degrees. This is >>required to >>print the Employee Code in a bigger font . The cards are >>stacked Vertically, >>and hence this number would appear horizontal (in a bigger, >>readable font) >>to any one looking for his card. >> >>Because the mail group does not allow attachments, I can't >>send any to you. >>If you have an idea how to rotate the data by 90 degree, >>please let me know >>, and I can send you a scanned image. >> >>Thanks in advance, >> >>Sudeep >> >> >> >>_______________________________________________ >>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 > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Jul 26 05:17:37 2004 From: Peter Burton Date: Mon, 26 Jul 2004 03:15:50 -0700 Subject: RE: [sqr-users] Printing Data Vertically using SQR Sudeep, Rotation of fonts is dependant on the printer format being generated. You will need to look at the desired printer language documentation to see what "PRINT CODE" values need to be issued to accomplish this. I know HP/PCL and Adobe/PostScript supports text rotation. Peter -----Original Message----- From: Sudeep Vaidya [mailto:sudeep.vaidya@patni.com] Sent: Monday, July 26, 2004 1:08 AM To: sqr-users@sqrug.org Cc: Peter Burton Subject: RE: [sqr-users] Printing Data Vertically using SQR Peter, This solution is fine, but the text is still not rotated .. The text here is to be rotated by 90 degrees, so that the employee would be able to read his number horizontally, when the cards are stacked in their bins. The number would be read from bottom to top, in the left margin of the card. ^ | 0 | 0 | 3 | 1 Using your suggestion, I can Wrap and break the text, but how to rotate it by 90 degrees ? The digits have to rotated , so as to make the number readable from Bottom to Top. If you have any solution to this , please let me know.I can send you the required output in an image to your Id. Thanks, Sudeep -----Original Message----- From: sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org [mailto:sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org]On Behalf Of Peter Burton Sent: Saturday, July 24, 2004 1:24 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Printing Data Vertically using SQR Sudeep, Report: Begin-Report Move 1300 To #E Let $E = Edit(Edit(#E, '9999'), 'R') Print $E (5,1) Wrap 1 4 End-Report Produces: 0 0 3 1 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 Sudeep Vaidya > Sent: Friday, July 23, 2004 9:10 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Printing Data Vertically using SQR > > > Hi All, > > > Has someone ever done printing of data Vertically on a page. > Ok, let me explain this.. > > We are supposed to print the Timecards for employees.All the data is > printed Left to Right ( Just as we would expect it to print). > Besides the data being printed Left to Right, we are also supposed to > print the Employee ID. > The employee Id is to be printed in the Left Margin of the page, from > Bottom to Top. > > For example the number is 1300 , it would print like > --------> (left to > right) when printed horizontally. > I want to print this like > > ^ > | > | > | > such that 1 appears on the bottom, with 3 on top, with 0 and the other > 0 on the top. > Basically, the text has to be rotated by 90 degrees. This is required > to print the Employee Code in a bigger font . The cards are stacked > Vertically, and hence this number would appear horizontal (in a > bigger, readable font) to any one looking for his card. > > Because the mail group does not allow attachments, I can't send any > to you. > If you have an idea how to rotate the data by 90 degree, please let me > know , and I can send you a scanned image. > > Thanks in advance, > > Sudeep > > > > _______________________________________________ > 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 ************************************************************************ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 09:08:49 2004 Date: Fri, 23 Jul 2004 10:08:01 -0400 From: "Pink, Michael" Subject: [sqr-users] Bolding a line in a CSV file Has anyone been able to send a cell command to Excel through a CSV file to bold the cell or entire row? Can this be done? Mike. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 16:46:59 2004 From: Ray Ontko Date: Fri, 23 Jul 2004 16:44:53 -0500 Subject: Re: [sqr-users] Bolding a line in a CSV file Mike, > Has anyone been able to send a cell command to Excel through a CSV file > to bold the cell or entire row? Can this be done? You can't do it with a CSV file, but you can do it with a SYLK file, which is also supported by most spreadsheet programs. James Womeldorf recently contributed a very nice library of routines, sylk.sqc, to make it easier to create generate output from SQR that can be loaded into an Excel spreadsheet and contain formatted cell content, formulas, etc. Visit: https://www.ontko.com/sqr/sylk.html Ray ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Mon Jul 26 08:42:19 2004 Subject: RE: [sqr-users] Bolding a line in a CSV file Date: Mon, 26 Jul 2004 09:37:10 -0400 From: "Pink, Michael" Thanks, that should work fine. Mike. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Ray Ontko Sent: Friday, July 23, 2004 5:45 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Bolding a line in a CSV file Mike, > Has anyone been able to send a cell command to Excel through a CSV file > to bold the cell or entire row? Can this be done? You can't do it with a CSV file, but you can do it with a SYLK file,=20 which is also supported by most spreadsheet programs. James Womeldorf recently contributed a very nice library of=20 routines, sylk.sqc, to make it easier to create generate output=20 from SQR that can be loaded into an Excel spreadsheet and contain=20 formatted cell content, formulas, etc. Visit: https://www.ontko.com/sqr/sylk.html Ray ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 16:53:55 2004 Date: Fri, 23 Jul 2004 16:51:34 -0500 From: "Pan, Zhen" Subject: [sqr-users] oracle hint in sqr Hi, I am using SQR Developer 8.1. I wanted to use hint in my sqr =20 BEGIN-SELECT distinct=20=20 /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &A.STU_NSLDS_LOAN_YR1=20=20 ........... =20 when I compile it, it says Error on line 284: (SQR 7740) Invalid &pseudonym or 'TYPE=3D' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER =20 if &A.ACAD_LOAD_IND=3D'F' (SQR 4407) Referenced variables not defined: =20 &a.acad_load_ind =20 This query runs fine in Toad. I inititally thought it was because the spaces in front of the hint, but it gave me errors too. If I run it under Unix box it won't complain but it will run forever. (I suspect it is not taking the hint) Any idea? Thanks a bunch! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 17:06:51 2004 Subject: RE: [sqr-users] oracle hint in sqr Date: Fri, 23 Jul 2004 17:06:19 -0500 From: "Pan, Zhen" I delete the & A.STU_NSLDS_LOAN_YR and it is still not working....=20 -----Original Message----- From: sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org] On Behalf Of Krishna Chennamaneni Sent: Friday, July 23, 2004 5:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr Try this BEGIN-SELECT distinct=20=20 /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &StuLoan It should work fine. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=3Djhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=3Djhuapl.edu@sqrug.org]On Behalf Of Pan, Zhen Sent: Friday, July 23, 2004 5:52 PM To: sqr-users@sqrug.org Subject: [sqr-users] oracle hint in sqr Hi, I am using SQR Developer 8.1. I wanted to use hint in my sqr =20 BEGIN-SELECT distinct=20=20 /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &A.STU_NSLDS_LOAN_YR1=20=20 ........... =20 when I compile it, it says Error on line 284: (SQR 7740) Invalid &pseudonym or 'TYPE=3D' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER =20 if &A.ACAD_LOAD_IND=3D'F' (SQR 4407) Referenced variables not defined: =20 &a.acad_load_ind =20 This query runs fine in Toad. I inititally thought it was because the spaces in front of the hint, but it gave me errors too. If I run it under Unix box it won't complain but it will run forever. (I suspect it is not taking the hint) Any idea? Thanks a bunch! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 17:14:16 2004 Date: Fri, 23 Jul 2004 15:11:44 -0700 (PDT) From: Jim McKeever Subject: RE: [sqr-users] oracle hint in sqr Where are you defining &A.ACAD_LOAD_IND? It's not in the select you showed.... "Pan, Zhen" wrote:I delete the & A.STU_NSLDS_LOAN_YR and it is still not working.... -----Original Message----- From: sqr-users-bounces+zhpan=indiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=indiana.edu@sqrug.org] On Behalf Of Krishna Chennamaneni Sent: Friday, July 23, 2004 5:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr Try this BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &StuLoan It should work fine. 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 Pan, Zhen Sent: Friday, July 23, 2004 5:52 PM To: sqr-users@sqrug.org Subject: [sqr-users] oracle hint in sqr Hi, I am using SQR Developer 8.1. I wanted to use hint in my sqr BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &A.STU_NSLDS_LOAN_YR1 ........... when I compile it, it says Error on line 284: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER if &A.ACAD_LOAD_IND='F' (SQR 4407) Referenced variables not defined: &a.acad_load_ind This query runs fine in Toad. I inititally thought it was because the spaces in front of the hint, but it gave me errors too. If I run it under Unix box it won't complain but it will run forever. (I suspect it is not taking the hint) Any idea? Thanks a bunch! _______________________________________________ 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 Jim McKeever PeopleSoft Applications Administrator, U.S. Nursing Corporation (800) 726-8773 ext. 1973 --------------------------------- Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 17:17:05 2004 Date: Fri, 23 Jul 2004 18:22:20 -0400 From: Krishna Chennamaneni Subject: RE: [sqr-users] oracle hint in sqr Are you sure about the comments on /*+ index_join(FA_STU_TERM_STI1)*/ ? In Begin-Select statement, We generally comment the fields by placing -- before that field. -----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 Pan, Zhen Sent: Friday, July 23, 2004 6:06 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr I delete the & A.STU_NSLDS_LOAN_YR and it is still not working.... -----Original Message----- From: sqr-users-bounces+zhpan=indiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=indiana.edu@sqrug.org] On Behalf Of Krishna Chennamaneni Sent: Friday, July 23, 2004 5:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr Try this BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &StuLoan It should work fine. 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 Pan, Zhen Sent: Friday, July 23, 2004 5:52 PM To: sqr-users@sqrug.org Subject: [sqr-users] oracle hint in sqr Hi, I am using SQR Developer 8.1. I wanted to use hint in my sqr BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &A.STU_NSLDS_LOAN_YR1 ........... when I compile it, it says Error on line 284: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER if &A.ACAD_LOAD_IND='F' (SQR 4407) Referenced variables not defined: &a.acad_load_ind This query runs fine in Toad. I inititally thought it was because the spaces in front of the hint, but it gave me errors too. If I run it under Unix box it won't complain but it will run forever. (I suspect it is not taking the hint) Any idea? Thanks a bunch! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 16:59:25 2004 Date: Fri, 23 Jul 2004 18:08:09 -0400 From: Krishna Chennamaneni Subject: RE: [sqr-users] oracle hint in sqr Try this BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &StuLoan It should work fine. 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 Pan, Zhen Sent: Friday, July 23, 2004 5:52 PM To: sqr-users@sqrug.org Subject: [sqr-users] oracle hint in sqr Hi, I am using SQR Developer 8.1. I wanted to use hint in my sqr BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &A.STU_NSLDS_LOAN_YR1 ........... when I compile it, it says Error on line 284: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER if &A.ACAD_LOAD_IND='F' (SQR 4407) Referenced variables not defined: &a.acad_load_ind This query runs fine in Toad. I inititally thought it was because the spaces in front of the hint, but it gave me errors too. If I run it under Unix box it won't complain but it will run forever. (I suspect it is not taking the hint) Any idea? Thanks a bunch! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 17:25:26 2004 Subject: RE: [sqr-users] oracle hint in sqr Date: Fri, 23 Jul 2004 17:23:23 -0500 From: "Pan, Zhen" /*+ index_join(FA_STU_TERM_STI1)*/ is a hint in my SQL so that it could run faster, and it is not comment. To answer Jim, it was a typo, it should be &A.STU_NSLDS_LOAN_YR1 Thanks! -----Original Message----- From: sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org] On Behalf Of Krishna Chennamaneni Sent: Friday, July 23, 2004 5:22 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr Are you sure about the comments on /*+ index_join(FA_STU_TERM_STI1)*/ ? In Begin-Select statement, We generally comment the fields by placing -- before that field. -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=3Djhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=3Djhuapl.edu@sqrug.org]On Behalf Of Pan, Zhen Sent: Friday, July 23, 2004 6:06 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr I delete the & A.STU_NSLDS_LOAN_YR and it is still not working.... -----Original Message----- From: sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org] On Behalf Of Krishna Chennamaneni Sent: Friday, July 23, 2004 5:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] oracle hint in sqr Try this BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &StuLoan It should work fine. Krishna -----Original Message----- From: sqr-users-bounces+krishna.chennamaneni=3Djhuapl.edu@sqrug.org [mailto:sqr-users-bounces+krishna.chennamaneni=3Djhuapl.edu@sqrug.org]On Behalf Of Pan, Zhen Sent: Friday, July 23, 2004 5:52 PM To: sqr-users@sqrug.org Subject: [sqr-users] oracle hint in sqr Hi, I am using SQR Developer 8.1. I wanted to use hint in my sqr BEGIN-SELECT distinct /*+ index_join(FA_STU_TERM_STI1)*/ A.PRSN_UNIV_ID a.prsn_prm_full_nm A.ACAD_TERM_CD A.STU_NSLDS_LOAN_YR &A.STU_NSLDS_LOAN_YR1 ........... when I compile it, it says Error on line 284: (SQR 7740) Invalid &pseudonym or 'TYPE=3D' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER if &A.ACAD_LOAD_IND=3D'F' (SQR 4407) Referenced variables not defined: &a.acad_load_ind This query runs fine in Toad. I inititally thought it was because the spaces in front of the hint, but it gave me errors too. If I run it under Unix box it won't complain but it will run forever. (I suspect it is not taking the hint) Any idea? Thanks a bunch! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 23 16:57:42 2004 From: Ray Ontko Date: Fri, 23 Jul 2004 16:55:44 -0500 Subject: [sqr-users] SYLK library available SQR Enthusiasts, Jim Womeldorf and Fastenal Company have recently agreed to distribute their SQR library for creating SYLK files under the terms of the GNU Public License. SYLK (Symbolic Link) files are used by various spreadsheet programs as a means to exchange formatted information. You can use the SYLK library to create output from your SQR program that loads into Microsoft Excel with bolding, italics and other cell formatting, just the way you want it. For information about sylk.sqc, visit: http://www.ontko.com/sqr/sylk.html For other tools, documents, and resources related to SQR, visit: http://www.ontko.com/sqr/ Thanks, Jim and Fastenal, for contributing such a useful tool. We're pleased to host it at the Ray Ontko & Co. website. Ray ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 27 08:14:40 2004 Date: Tue, 27 Jul 2004 15:11:16 +0200 (CEST) From: =?iso-8859-1?q?Nabil?= Subject: [sqr-users] CSV output ftom SQR program Hello, I currently have an Unix SQR program (SQR for PeopleSoft V8.42) that generates CSV output file (done with write commands). When I open this file from Peoplesoft process scheduler, it opens perfectly (semicolomn for delimiter) in Internet Explorer (with Excel plug-in). 1) When I save it to my PC local hard disk and try to double-click, Excel starts but doesn't open it correctly. It seems looking for comma as delimiter without asking any choice. Is anyone aware about this stuff ? 2) Othwerwise, I'd like to know if it's possible to convert an SPF file to a CSV file ? I tried with SQRP but I'm not lucky. I'd appreciate any help. Cheers. Nabil --------------------------------- Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici ! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jul 27 08:44:50 2004 Date: Tue, 27 Jul 2004 09:35:44 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] CSV output ftom SQR program Nabil, Excel is confused by what you're doing. CSV stands for comma-separated values, so Excel will only accept a comma as the delimiter.=20=20 If you want Excel to just open the file without any problems, use comma for a delimiter (and .CSV for the extension) or use tab as a delimiter and use .XLS as the extension (that's what I do - Excel opens it just fine).=20=20 You could also look into SYLK (I think) - that is a better solution but more complicated. But I don't know much about it. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> cybernaboo@yahoo.fr 7/27/2004 9:11:16 AM >>> Hello, =20 I currently have an Unix SQR program (SQR for PeopleSoft V8.42) that generates CSV output file (done with write commands). =20 When I open this file from Peoplesoft process scheduler, it opens perfectly (semicolomn for delimiter) in Internet Explorer (with Excel plug-in). =20 1) When I save it to my PC local hard disk and try to double-click, Excel starts but doesn't open it correctly. It seems looking for comma as delimiter without asking any choice. Is anyone aware about this stuff ? =20 2) Othwerwise, I'd like to know if it's possible to convert an SPF file to a CSV file ? I tried with SQRP but I'm not lucky. I'd appreciate any help. =20 Cheers. =20 Nabil=20 =09=09 --------------------------------- Cr=E9ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Cr=E9ez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arriv=E9 ! D=E9couvrez toutes les nouveaut=E9s pour dialoguer instantan=E9ment avec vos amis.T=E9l=E9chargez GRATUITEMENT ici ! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 27 08:20:15 2004 Date: Tue, 27 Jul 2004 15:20:44 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20CSV=20output=20ftom=20?==?ISO-8859-1?Q?SQR=20program?= Excel does not open correctly .csv file with double-click on it ! You have to open Excel, then whith file/open menu, search for=20 your .csv file to open it; then Excel does open it correctly !!! Anyone should report it to microsoft, i'm to angry for doing so=20 >:-( 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+sqrusersarch=sqrug.org@sqrug.org Tue Jul 27 08:42:13 2004 From: "Lu, Clint" Subject: =?iso-8859-1?Q?RE=3A_R=E9p=2E_=3A_=5Bsqr-users=5D_CSV_output_f?= =?iso-8859-1?Q?tom_SQR_program?= Date: Tue, 27 Jul 2004 08:32:41 -0500 I have no problem to open correctly .csv file from explore. -----Original Message----- From: LEBLANC Philippe FTC [mailto:p.leblanc@francetelecom.com] Sent: Tuesday, July 27, 2004 8:21 AM To: sqr-users@sqrug.org Subject: R=E9p. : [sqr-users] CSV output ftom SQR program Excel does not open correctly .csv file with double-click on it ! You have to open Excel, then whith file/open menu, search for=20 your .csv file to open it; then Excel does open it correctly !!! Anyone should report it to microsoft, i'm to angry for doing so=20 >:-( 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Jul 27 14:29:26 2004 From: "Bryan Brown" Date: Tue, 27 Jul 2004 11:28:16 -0800 Subject: [sqr-users] Round Function Error in SQRW 3 and Oracle 7.3 hi All, I know that this is in the archives, but I can't seem to locate it. Can anyone confirm a problem with the round function when using SQRW 3 and Oracle 7.3? We have a case where a simple round statement returns two different values. round(#Aetna_Ded_Emp_Prem,2) In SQRW 3 / Oracle 7.3: 32.345 = 32.34. round(#Aetna_Ded_Emp_Prem,2) In SQRW 6.2 / Oracle 9i: 32.345 = 32.35 Any insight? Thanks, Bryan bryan_brown@vantageis.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Jul 29 09:27:24 2004 Date: Thu, 29 Jul 2004 16:26:16 +0200 (CEST) From: =?iso-8859-1?q?Nabil?= Subject: [sqr-users] Bold left using spf mode Hi all, Before, I got my sqr program (SQR for PeopleSoft 8.42) creating pdf output file using process scheculer options (WEB/PDF). Now I use SPF option (WEB/SPF) ouput file to generate "manually" pdf output file using commands : - $SQRDIR/sqrp -printer:PD myfile.spf - lp -c -d myfile.spf.lis After this modification, all works perfectly but I left bold attributes. Any idea ? Cheers Nabil --------------------------------- Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici ! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 30 16:12:55 2004 Date: Fri, 30 Jul 2004 17:11:48 -0400 From: "MacLellan, David" Subject: [sqr-users] SQR 4.3.4 and ORA 9i Does anyone have info on the compatability between SQR 4.3.4 and Oracle 9i...I get the following login error. =20 SQR V4.3.4 Copyright (C) SQRIBE Technologies, 1994-99. All Worldwide Rights Reserved. =20 (SQR 5528) ORACLE ORLON error -3113 in cursor 0: ORA-03113: end-of-file on communication channel (SQR 4701) Cannot logon to the database. =20 I'm certain the the user/pwd is valid...I can connect via SQLPlus during the same host session. =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Jul 30 16:25:20 2004 Subject: RE: [sqr-users] SQR 4.3.4 and ORA 9i Date: Fri, 30 Jul 2004 16:22:49 -0500 From: "Knapp, Richard" 9i requires encryption. Make sure you are encrypting (the same) on both ends. 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 MacLellan, David Sent: Friday, July 30, 2004 4:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR 4.3.4 and ORA 9i Does anyone have info on the compatability between SQR 4.3.4 and Oracle 9i...I get the following login error. =20 SQR V4.3.4 Copyright (C) SQRIBE Technologies, 1994-99. All Worldwide Rights Reserved. =20 (SQR 5528) ORACLE ORLON error -3113 in cursor 0: ORA-03113: end-of-file on communication channel (SQR 4701) Cannot logon to the database. =20 I'm certain the the user/pwd is valid...I can connect via SQLPlus during the same host session. =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+sqrusersarch=sqrug.org@sqrug.org Fri Jul 30 16:36:18 2004 From: Peter Burton Date: Fri, 30 Jul 2004 14:35:10 -0700 Subject: RE: [sqr-users] SQR 4.3.4 and ORA 9i David, SQR 4.3.x is only certified to Ocacle 8.1.6. You might be able to connect to Oracle9i but you would have to relink with Oracle 9i libraries which will require that you modify the "sqrmake" script. I would strongly suggest upgrading to a version that is certified with Oracle9i. 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 MacLellan, David > Sent: Friday, July 30, 2004 5:12 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] SQR 4.3.4 and ORA 9i > > > Does anyone have info on the compatability between SQR 4.3.4 > and Oracle > 9i...I get the following login error. > > SQR V4.3.4 > > Copyright (C) SQRIBE Technologies, 1994-99. All Worldwide Rights > Reserved. > > > > (SQR 5528) ORACLE ORLON error -3113 in cursor 0: > > ORA-03113: end-of-file on communication channel > > (SQR 4701) Cannot logon to the database. > > > I'm certain the the user/pwd is valid...I can connect via > SQLPlus during > the same host session. > > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Sun Aug 01 00:00:38 2004 Date: Sun, 1 Aug 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+sqrusersarch=sqrug.org@sqrug.org Sun Aug 01 10:44:02 2004 From: "Krist Dewilde" Date: Sun, 1 Aug 2004 17:52:18 +0200 Subject: [sqr-users] eps Image in PCL file Hi, =20 We=92re currently looking for a possibility to print eps image on a LIS File. The goal is that we geneate lis (PCL) files which are put on a UNIX machine. There are 3 types of finalization possible with these files: * Automatically Print on preprinted (image is already on it) stationery * Automatically Email : in this scenario the PCL file is converted into a PDF file * Automatically Fax: in this scenario the PCL file is converted into a PDF file The problem now is that I do not manage to get an eps file into the PCL. I get a shaded box. Our printer is a HP Laserjet 4200. =20 The only way that I=92m currently succeeding in putting a logo on the PCL is by generating a hpg file and printing that on the PCL. The problem here is that it=92s of a poor quality. =20 Maybe somebody has done this already and can give me some ideas=85 =20 Thanks for the help, =20 Krist Dewilde Mobile +32 (0) 477 612 668 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 02 09:10:51 2004 From: "Sudeep Vaidya" Date: Mon, 2 Aug 2004 18:54:14 +0530 Subject: [sqr-users] Changing Font-Sizes in SQR Hi All, Can someone please tell me how can I reduce the font-size in a SQR output ? Is it must to declare the Printer in the LayOut section to achieve this ? I want to reduce the font-size to print certain cards and lables, which otherwise, do not fit on the paper in the allocated space. Can someone tell me how can I do this ? Thanks in Advance Sudeep _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 02 09:19:43 2004 Subject: Re: [sqr-users] Changing Font-Sizes in SQR From: "Darshil Mehta" Date: Mon, 2 Aug 2004 19:49:56 +0530 Sudeep, In the beginning of program you have to define begin-program alter-printer font=3 point-size=8 This way you can change the font size. Best regards, Darshil Mehta "Sudeep Vaidya" Sent by: sqr-users-bounces+darshil.mehta=lntinfotech.com@sqrug.org 02/08/2004 06:54 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: cc: Subject: [sqr-users] Changing Font-Sizes in SQR Hi All, Can someone please tell me how can I reduce the font-size in a SQR output ? Is it must to declare the Printer in the LayOut section to achieve this ? I want to reduce the font-size to print certain cards and lables, which otherwise, do not fit on the paper in the allocated space. Can someone tell me how can I do this ? Thanks in Advance Sudeep _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 12:02:06 2004 Date: Tue, 3 Aug 2004 10:59:18 -0600 From: "Thompson, Carla" Subject: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) SQR/6.2/UNIX Sun/SunOS 5.6/Oracle 8.1.7/Oct 29 2001 We have an SQR Report that generates separate .pdf files for a Group. We u= se New-Report to specify the new report name to be used when the Group Numb= er Changes.=20 =20=20 I've added "Begin-Header" to create Headers at each page Break, however, th= e reports are not "Breaking" properly. The reports are being generated, ho= wever, the .pdf file name is for Group #1, and the Detail within the report= is for Group #2.=20 I can't figure out how to keep the output file name and internal data infor= mation in sync. Suggestions welcomed... code below. Carla L. Thompson=20 E-mail Carla.Thompson@gwl.com Begin-Program Do Get_Group_Level End-Program BEGIN-PROCEDURE Get_Group_Level ! Select Group Level Information BEGIN-SELECT DISTINCT T_GROUP_EXTRACT_KEY &group_extract_key () on-break print=3Dnever LET $report_name =3D '/reports/grp_ins_by_pol_' || &group_number || '_' ||= datetostr(strtodate(&rpt_end_date,'Month DD, YYYY'),'YYYYMMDD') || '.pdf' New-Report $report_name Do Get_Detail T_GROUP_NUMBER &group_number T_GROUP_USER_DESC &group_user_desc T_GROUP_POLICY_DATE &group_policy_date T_GROUP_DESC &group_desc T_RPT_END_DATE &rpt_end_date FROM TEMP_INS_TABLE END-SELECT END-PROCEDURE !Get_Group_Level BEGIN-PROCEDURE Get_Detail LET #tot_death_benefit =3D 0 LET #tot_cash_value =3D 0 LET #tot_surrender_value =3D 0 LET #tot_prem_paid_to_date =3D 0 BEGIN-SELECT ! Select Detail Records for Group and Total Money Fields Alter-Printer Font=3D4 Point-Size=3D10 T_CONTRACT &policy_number (+10,5,15) T_INSURED_NAME &insured_name (+,69,35) T_DEATH_BENEFIT &death_benefit (,248) edit 9,999,999,99= 9,999.99pf LET #tot_death_benefit =3D #tot_death_benefit + &death_benefit T_TOTAL_ACCT_VAL &cash_value (,350) edit 9,999,999,99= 9,999.99pf LET #tot_cash_value =3D #tot_cash_value + &cash_value T_CASH_SURRENDER &surrender_value (,452) edit 9,999,999,99= 9,999.99pf LET #tot_surrender_value =3D #tot_surrender_value + &surrender_value T_TOTAL_DEPOSITS &prem_paid_to_date (,554) edit 9,999,999,99= 9,999.99pf LET #tot_prem_paid_to_date =3D #tot_prem_paid_to_date + &prem_paid_to_da= te FROM TEMP_INS_TABLE WHERE T_GROUP_EXTRACT_KEY =3D &group_extract_key END-SELECT Do Print_Group_Totals END-PROCEDURE !Get_Detail BEGIN-HEADING 216 !Display_Page_Headers Do Display_Group Do Heading_1 Do Heading_2 END-HEADING !Display_Page_Headers _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 12:20:47 2004 Date: Tue, 3 Aug 2004 12:18:31 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) Is the detail wrong or is the heading wrong? It sounds to me like you are using "&" variables in your heading procedures, but by the time it fires (the heading fires at new-page and when the report is "closed") those values are for the *next* key. Try saving the values you use in the heading to "$" and "#" variables (remember to declare any that are dates) after the "New-Report". Then use those variables in your heading procedures instead of the "&" versions. HTH, Don On Tue, 3 Aug 2004, Thompson, Carla wrote: > SQR/6.2/UNIX Sun/SunOS 5.6/Oracle 8.1.7/Oct 29 2001 > > We have an SQR Report that generates separate .pdf files for a Group. > We use New-Report to specify the new report name to be used when the > Group Number Changes. > > I've added "Begin-Header" to create Headers at each page Break, however, > the reports are not "Breaking" properly. The reports are being > generated, however, the .pdf file name is for Group #1, and the Detail > within the report is for Group #2. > > I can't figure out how to keep the output file name and internal data > information in sync. > > Suggestions welcomed... code below. > > Carla L. Thompson > E-mail Carla.Thompson@gwl.com > > Begin-Program > Do Get_Group_Level > End-Program > > > BEGIN-PROCEDURE Get_Group_Level > > ! Select Group Level Information > BEGIN-SELECT DISTINCT > T_GROUP_EXTRACT_KEY &group_extract_key () on-break print=never > LET $report_name = '/reports/grp_ins_by_pol_' || &group_number || '_' || datetostr(strtodate(&rpt_end_date,'Month DD, YYYY'),'YYYYMMDD') || '.pdf' > New-Report $report_name > Do Get_Detail > T_GROUP_NUMBER &group_number > T_GROUP_USER_DESC &group_user_desc > T_GROUP_POLICY_DATE &group_policy_date > T_GROUP_DESC &group_desc > T_RPT_END_DATE &rpt_end_date > FROM TEMP_INS_TABLE > END-SELECT > > END-PROCEDURE !Get_Group_Level > > > BEGIN-PROCEDURE Get_Detail > > LET #tot_death_benefit = 0 > LET #tot_cash_value = 0 > LET #tot_surrender_value = 0 > LET #tot_prem_paid_to_date = 0 > > BEGIN-SELECT > ! Select Detail Records for Group and Total Money Fields > Alter-Printer Font=4 Point-Size=10 > T_CONTRACT &policy_number (+10,5,15) > T_INSURED_NAME &insured_name (+,69,35) > T_DEATH_BENEFIT &death_benefit (,248) edit 9,999,999,999,999.99pf > LET #tot_death_benefit = #tot_death_benefit + &death_benefit > T_TOTAL_ACCT_VAL &cash_value (,350) edit 9,999,999,999,999.99pf > LET #tot_cash_value = #tot_cash_value + &cash_value > T_CASH_SURRENDER &surrender_value (,452) edit 9,999,999,999,999.99pf > LET #tot_surrender_value = #tot_surrender_value + &surrender_value > T_TOTAL_DEPOSITS &prem_paid_to_date (,554) edit 9,999,999,999,999.99pf > LET #tot_prem_paid_to_date = #tot_prem_paid_to_date + &prem_paid_to_date > FROM TEMP_INS_TABLE > WHERE T_GROUP_EXTRACT_KEY = &group_extract_key > END-SELECT > > Do Print_Group_Totals > > END-PROCEDURE !Get_Detail > > BEGIN-HEADING 216 !Display_Page_Headers > Do Display_Group > Do Heading_1 > Do Heading_2 > END-HEADING !Display_Page_Headers > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 14:22:38 2004 Subject: RE: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) Date: Tue, 3 Aug 2004 13:19:40 -0600 From: "Thompson, Carla" (continued)... The File Name is always One Group Number ahead of the (Heading & Detail) in= formation contained in the report. So, I agree, I would need to do a new-r= eport before the first break, but how do I do that when SQR controls when t= he first row of the Select is extracted?=20 Also, if the report has multiple pages, (ie. 3 pages)... the Group Number c= hanges on the last page to the *Next* Group but the detail of the previous = group hasn't finished printing yet.=20 I'm not sure how to capture the "Group Number". I saw the SAVE verb of the= On-Break... but I don't Break on the Group Number. :/=20 I'm not sure how to control when the Headers are Printed and when the next = Group Number is Read or when the New-Report is generated.=20=20 Suggestions welcomed. Thank you! -----Original Message----- From: sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org [mailto:sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org]On Behalf Of Bartlett, Dwain Sent: Tuesday, August 03, 2004 11:05 AM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) You need to do a new-report $report-name before the first break. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Thompson, Carla [mailto:carla.thompson@gwl.com] Sent: Tuesday, August 03, 2004 10:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) SQR/6.2/UNIX Sun/SunOS 5.6/Oracle 8.1.7/Oct 29 2001 We have an SQR Report that generates separate .pdf files for a Group. We use New-Report to specify the new report name to be used when the Group Number Changes.=20 =20=20 I've added "Begin-Header" to create Headers at each page Break, however, the reports are not "Breaking" properly. The reports are being generated, however, the .pdf file name is for Group #1, and the Detail within the report is for Group #2.=20 I can't figure out how to keep the output file name and internal data information in sync. Suggestions welcomed... code below. Carla L. Thompson=20 E-mail Carla.Thompson@gwl.com Begin-Program Do Get_Group_Level End-Program BEGIN-PROCEDURE Get_Group_Level ! Select Group Level Information BEGIN-SELECT DISTINCT T_GROUP_EXTRACT_KEY &group_extract_key () on-break print=3Dnever LET $report_name =3D '/reports/grp_ins_by_pol_' || &group_number || '_' || datetostr(strtodate(&rpt_end_date,'Month DD, YYYY'),'YYYYMMDD') || '.pdf' New-Report $report_name Do Get_Detail T_GROUP_NUMBER &group_number T_GROUP_USER_DESC &group_user_desc T_GROUP_POLICY_DATE &group_policy_date T_GROUP_DESC &group_desc T_RPT_END_DATE &rpt_end_date FROM TEMP_INS_TABLE END-SELECT END-PROCEDURE !Get_Group_Level BEGIN-PROCEDURE Get_Detail LET #tot_death_benefit =3D 0 LET #tot_cash_value =3D 0 LET #tot_surrender_value =3D 0 LET #tot_prem_paid_to_date =3D 0 BEGIN-SELECT ! Select Detail Records for Group and Total Money Fields Alter-Printer Font=3D4 Point-Size=3D10 T_CONTRACT &policy_number (+10,5,15) T_INSURED_NAME &insured_name (+,69,35) T_DEATH_BENEFIT &death_benefit (,248) edit 9,999,999,999,999.99pf LET #tot_death_benefit =3D #tot_death_benefit + &death_benefit T_TOTAL_ACCT_VAL &cash_value (,350) edit 9,999,999,999,999.99pf LET #tot_cash_value =3D #tot_cash_value + &cash_value T_CASH_SURRENDER &surrender_value (,452) edit 9,999,999,999,999.99pf LET #tot_surrender_value =3D #tot_surrender_value + &surrender_value T_TOTAL_DEPOSITS &prem_paid_to_date (,554) edit 9,999,999,999,999.99pf LET #tot_prem_paid_to_date =3D #tot_prem_paid_to_date + &prem_paid_to_da= te FROM TEMP_INS_TABLE WHERE T_GROUP_EXTRACT_KEY =3D &group_extract_key END-SELECT Do Print_Group_Totals END-PROCEDURE !Get_Detail BEGIN-HEADING 216 !Display_Page_Headers Do Display_Group Do Heading_1 Do Heading_2 END-HEADING !Display_Page_Headers _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 12:05:15 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Multiple Reports: Begin-Header not Breaking Prope rly (Using New-Reports) Date: Tue, 3 Aug 2004 11:04:34 -0600 You need to do a new-report $report-name before the first break. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Thompson, Carla [mailto:carla.thompson@gwl.com] Sent: Tuesday, August 03, 2004 10:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) SQR/6.2/UNIX Sun/SunOS 5.6/Oracle 8.1.7/Oct 29 2001 We have an SQR Report that generates separate .pdf files for a Group. We use New-Report to specify the new report name to be used when the Group Number Changes. I've added "Begin-Header" to create Headers at each page Break, however, the reports are not "Breaking" properly. The reports are being generated, however, the .pdf file name is for Group #1, and the Detail within the report is for Group #2. I can't figure out how to keep the output file name and internal data information in sync. Suggestions welcomed... code below. Carla L. Thompson E-mail Carla.Thompson@gwl.com Begin-Program Do Get_Group_Level End-Program BEGIN-PROCEDURE Get_Group_Level ! Select Group Level Information BEGIN-SELECT DISTINCT T_GROUP_EXTRACT_KEY &group_extract_key () on-break print=never LET $report_name = '/reports/grp_ins_by_pol_' || &group_number || '_' || datetostr(strtodate(&rpt_end_date,'Month DD, YYYY'),'YYYYMMDD') || '.pdf' New-Report $report_name Do Get_Detail T_GROUP_NUMBER &group_number T_GROUP_USER_DESC &group_user_desc T_GROUP_POLICY_DATE &group_policy_date T_GROUP_DESC &group_desc T_RPT_END_DATE &rpt_end_date FROM TEMP_INS_TABLE END-SELECT END-PROCEDURE !Get_Group_Level BEGIN-PROCEDURE Get_Detail LET #tot_death_benefit = 0 LET #tot_cash_value = 0 LET #tot_surrender_value = 0 LET #tot_prem_paid_to_date = 0 BEGIN-SELECT ! Select Detail Records for Group and Total Money Fields Alter-Printer Font=4 Point-Size=10 T_CONTRACT &policy_number (+10,5,15) T_INSURED_NAME &insured_name (+,69,35) T_DEATH_BENEFIT &death_benefit (,248) edit 9,999,999,999,999.99pf LET #tot_death_benefit = #tot_death_benefit + &death_benefit T_TOTAL_ACCT_VAL &cash_value (,350) edit 9,999,999,999,999.99pf LET #tot_cash_value = #tot_cash_value + &cash_value T_CASH_SURRENDER &surrender_value (,452) edit 9,999,999,999,999.99pf LET #tot_surrender_value = #tot_surrender_value + &surrender_value T_TOTAL_DEPOSITS &prem_paid_to_date (,554) edit 9,999,999,999,999.99pf LET #tot_prem_paid_to_date = #tot_prem_paid_to_date + &prem_paid_to_date FROM TEMP_INS_TABLE WHERE T_GROUP_EXTRACT_KEY = &group_extract_key END-SELECT Do Print_Group_Totals END-PROCEDURE !Get_Detail BEGIN-HEADING 216 !Display_Page_Headers Do Display_Group Do Heading_1 Do Heading_2 END-HEADING !Display_Page_Headers _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 14:26:40 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Multiple Reports: Begin-Header not Breaking Prope rly (Using New-Reports) Date: Tue, 3 Aug 2004 13:26:02 -0600 You may want to put in break logic and not use on-break. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Thompson, Carla [mailto:carla.thompson@gwl.com] Sent: Tuesday, August 03, 2004 1:20 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) (continued)... The File Name is always One Group Number ahead of the (Heading & Detail) information contained in the report. So, I agree, I would need to do a new-report before the first break, but how do I do that when SQR controls when the first row of the Select is extracted? Also, if the report has multiple pages, (ie. 3 pages)... the Group Number changes on the last page to the *Next* Group but the detail of the previous group hasn't finished printing yet. I'm not sure how to capture the "Group Number". I saw the SAVE verb of the On-Break... but I don't Break on the Group Number. :/ I'm not sure how to control when the Headers are Printed and when the next Group Number is Read or when the New-Report is generated. Suggestions welcomed. Thank you! -----Original Message----- From: sqr-users-bounces+carla.thompson=gwl.com@sqrug.org [mailto:sqr-users-bounces+carla.thompson=gwl.com@sqrug.org]On Behalf Of Bartlett, Dwain Sent: Tuesday, August 03, 2004 11:05 AM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) You need to do a new-report $report-name before the first break. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Thompson, Carla [mailto:carla.thompson@gwl.com] Sent: Tuesday, August 03, 2004 10:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports: Begin-Header not Breaking Properly (Using New-Reports) SQR/6.2/UNIX Sun/SunOS 5.6/Oracle 8.1.7/Oct 29 2001 We have an SQR Report that generates separate .pdf files for a Group. We use New-Report to specify the new report name to be used when the Group Number Changes. I've added "Begin-Header" to create Headers at each page Break, however, the reports are not "Breaking" properly. The reports are being generated, however, the .pdf file name is for Group #1, and the Detail within the report is for Group #2. I can't figure out how to keep the output file name and internal data information in sync. Suggestions welcomed... code below. Carla L. Thompson E-mail Carla.Thompson@gwl.com Begin-Program Do Get_Group_Level End-Program BEGIN-PROCEDURE Get_Group_Level ! Select Group Level Information BEGIN-SELECT DISTINCT T_GROUP_EXTRACT_KEY &group_extract_key () on-break print=never LET $report_name = '/reports/grp_ins_by_pol_' || &group_number || '_' || datetostr(strtodate(&rpt_end_date,'Month DD, YYYY'),'YYYYMMDD') || '.pdf' New-Report $report_name Do Get_Detail T_GROUP_NUMBER &group_number T_GROUP_USER_DESC &group_user_desc T_GROUP_POLICY_DATE &group_policy_date T_GROUP_DESC &group_desc T_RPT_END_DATE &rpt_end_date FROM TEMP_INS_TABLE END-SELECT END-PROCEDURE !Get_Group_Level BEGIN-PROCEDURE Get_Detail LET #tot_death_benefit = 0 LET #tot_cash_value = 0 LET #tot_surrender_value = 0 LET #tot_prem_paid_to_date = 0 BEGIN-SELECT ! Select Detail Records for Group and Total Money Fields Alter-Printer Font=4 Point-Size=10 T_CONTRACT &policy_number (+10,5,15) T_INSURED_NAME &insured_name (+,69,35) T_DEATH_BENEFIT &death_benefit (,248) edit 9,999,999,999,999.99pf LET #tot_death_benefit = #tot_death_benefit + &death_benefit T_TOTAL_ACCT_VAL &cash_value (,350) edit 9,999,999,999,999.99pf LET #tot_cash_value = #tot_cash_value + &cash_value T_CASH_SURRENDER &surrender_value (,452) edit 9,999,999,999,999.99pf LET #tot_surrender_value = #tot_surrender_value + &surrender_value T_TOTAL_DEPOSITS &prem_paid_to_date (,554) edit 9,999,999,999,999.99pf LET #tot_prem_paid_to_date = #tot_prem_paid_to_date + &prem_paid_to_date FROM TEMP_INS_TABLE WHERE T_GROUP_EXTRACT_KEY = &group_extract_key END-SELECT Do Print_Group_Totals END-PROCEDURE !Get_Detail BEGIN-HEADING 216 !Display_Page_Headers Do Display_Group Do Heading_1 Do Heading_2 END-HEADING !Display_Page_Headers _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 15:54:49 2004 Date: Tue, 3 Aug 2004 13:53:39 -0700 (PDT) From: subrahmanyam Uppuganti Subject: [sqr-users] Use of Arrays All, Iam having some questions in using the Arrays,would greatly appreciate if some one can clarify the same.I have 11(Eleven) Input files in an sqr and needs to validate the values in the input files with that from the Peoplesoft tables, Iam thinking of using temp tables as I used that before but I need to create 11 temp tables, so is it wise to create 11 Arrays instead? if some can some one tell me the syntax. My program needs to read all the flat files,and needs to validate the values with the data base tables... Ur help is greatly appreciated... Thanks Subbu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 16:01:21 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Use of Arrays Date: Tue, 3 Aug 2004 14:59:12 -0600 You need to clarify more. Are all of the input files the same format? Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: subrahmanyam Uppuganti [mailto:u_subbu_2004@yahoo.com] Sent: Tuesday, August 03, 2004 2:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Use of Arrays All, Iam having some questions in using the Arrays,would greatly appreciate if some one can clarify the same.I have 11(Eleven) Input files in an sqr and needs to validate the values in the input files with that from the Peoplesoft tables, Iam thinking of using temp tables as I used that before but I need to create 11 temp tables, so is it wise to create 11 Arrays instead? if some can some one tell me the syntax. My program needs to read all the flat files,and needs to validate the values with the data base tables... Ur help is greatly appreciated... Thanks Subbu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 16:39:15 2004 Date: Tue, 3 Aug 2004 14:36:34 -0700 (PDT) From: subrahmanyam Uppuganti Subject: RE: [sqr-users] Use of Arrays Yes, they are all of the same format with .dat extension... subbu "Bartlett, Dwain" wrote: You need to clarify more. Are all of the input files the same format? Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: subrahmanyam Uppuganti [mailto:u_subbu_2004@yahoo.com] Sent: Tuesday, August 03, 2004 2:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Use of Arrays All, Iam having some questions in using the Arrays,would greatly appreciate if some one can clarify the same.I have 11(Eleven) Input files in an sqr and needs to validate the values in the input files with that from the Peoplesoft tables, Iam thinking of using temp tables as I used that before but I need to create 11 temp tables, so is it wise to create 11 Arrays instead? if some can some one tell me the syntax. My program needs to read all the flat files,and needs to validate the values with the data base tables... Ur help is greatly appreciated... Thanks Subbu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ 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 - 100MB free storage! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 16:13:45 2004 Subject: RE: [sqr-users] Use of Arrays Date: Tue, 3 Aug 2004 16:02:38 -0500 From: "Sengupta, Rajib \(Contractor\)" You have to first create the array by using CREATE-ARRAY - e.g: create-array name=3Dbill_by_flds size=3D100=20 field=3Dfld:char=20=20=20=20 then you can use different array coomands like array-add, array-subtract e= tc. Any SQR reference book should have details on the syntax. Thanks, Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems Phone: 402-595-5749 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 16:54:00 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Use of Arrays Date: Tue, 3 Aug 2004 15:53:18 -0600 Then I would use arrays. Here is an example of how to build an array. let #f = 0 while #f < #fund-max get $array-fund from fund-totals(#f) fund if $gls9002-fund = $array-fund array-add #gls9002-amt to fund-totals(#f) amount break else if $array-fund = ' ' put $gls9002-fund #gls9002-amt into fund-totals(#f) fund amount break end-if end-if let #f = #f + 1 end-while Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: subrahmanyam Uppuganti [mailto:u_subbu_2004@yahoo.com] Sent: Tuesday, August 03, 2004 3:37 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Use of Arrays Yes, they are all of the same format with .dat extension... subbu "Bartlett, Dwain" wrote: You need to clarify more. Are all of the input files the same format? Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: subrahmanyam Uppuganti [mailto:u_subbu_2004@yahoo.com] Sent: Tuesday, August 03, 2004 2:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Use of Arrays All, Iam having some questions in using the Arrays,would greatly appreciate if some one can clarify the same.I have 11(Eleven) Input files in an sqr and needs to validate the values in the input files with that from the Peoplesoft tables, Iam thinking of using temp tables as I used that before but I need to create 11 temp tables, so is it wise to create 11 Arrays instead? if some can some one tell me the syntax. My program needs to read all the flat files,and needs to validate the values with the data base tables... Ur help is greatly appreciated... Thanks Subbu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ 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 - 100MB free storage! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 03 18:37:15 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Use of Arrays Date: Tue, 3 Aug 2004 16:34:12 -0700 Arrays are great, but using them is more complicated than not using them, so consider whether you really need them. If you are checking the input from files against database tables, you may want to use load-lookup on the tables. But do you need to keep each line of the file in memory after you've checked it? If not, don't put it in an array. -----Original Message----- From: Bartlett, Dwain [mailto:dbartlett@state.mt.us] Sent: Tuesday, August 03, 2004 2:53 PM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] Use of Arrays Then I would use arrays. Here is an example of how to build an array. let #f = 0 while #f < #fund-max get $array-fund from fund-totals(#f) fund if $gls9002-fund = $array-fund array-add #gls9002-amt to fund-totals(#f) amount break else if $array-fund = ' ' put $gls9002-fund #gls9002-amt into fund-totals(#f) fund amount break end-if end-if let #f = #f + 1 end-while Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: subrahmanyam Uppuganti [mailto:u_subbu_2004@yahoo.com] Sent: Tuesday, August 03, 2004 3:37 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Use of Arrays Yes, they are all of the same format with .dat extension... subbu "Bartlett, Dwain" wrote: You need to clarify more. Are all of the input files the same format? Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: subrahmanyam Uppuganti [mailto:u_subbu_2004@yahoo.com] Sent: Tuesday, August 03, 2004 2:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Use of Arrays All, Iam having some questions in using the Arrays,would greatly appreciate if some one can clarify the same.I have 11(Eleven) Input files in an sqr and needs to validate the values in the input files with that from the Peoplesoft tables, Iam thinking of using temp tables as I used that before but I need to create 11 temp tables, so is it wise to create 11 Arrays instead? if some can some one tell me the syntax. My program needs to read all the flat files,and needs to validate the values with the data base tables... Ur help is greatly appreciated... Thanks Subbu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ 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 - 100MB free storage! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 14:01:26 2004 Date: Wed, 4 Aug 2004 13:58:44 -0500 From: "Borde, Gopal S" Subject: [sqr-users] Unix command in SQR Friends, =20 I am trying to issue following UNIX command in SQR to list names of all *.txt files in a folder. ------ let $com1 =3D'find /ora10/inbound/evoucher -name "*.txt" -exec basename '{' || '}' ";" > /ora10/inbound/evoucher/dan.lis' =20=20 call system using $com1 #s wait =20 However program erred with following message =20 =20 Error on line 49: (SQR 4707) No value found for substitution variable: {} let $com1 =3D'find /ora10/inbound/evoucher -name "*.txt" -exec basename '{}' ";" > /ora10/inbound/evoucher/dan.lis' =20 Error on line 49: (SQR 4008) Unknown function or variable in expression: {}' let $com1 =3D'find /ora10/inbound/evoucher -name "*.txt" -exec basename '{}' ";" > /ora10/inbound/evoucher/dan.lis' =20 Any suggestion to run this command will be appreciated. =20 Thanks. =20 =20 =20 =20 =20 Gopal Borde ITS Dept =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 14:21:08 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Unix command in SQR Date: Wed, 4 Aug 2004 12:18:18 -0700 I think you're missing a quote mark or two, but the immediate problem is the curly brackets { and } on the same line. The compiler looks for curly brackets on the same line before anything else compiles. It will try to substitute text regardless of quote marks. It's looking for a defined constant called ' || ' (including the quotes). -----Original Message----- From: Borde, Gopal S [mailto:gopal-borde@uiowa.edu] Sent: Wednesday, August 04, 2004 11:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Unix command in SQR Friends, I am trying to issue following UNIX command in SQR to list names of all *.txt files in a folder. ------ let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec basename '{' || '}' ";" > /ora10/inbound/evoucher/dan.lis' call system using $com1 #s wait However program erred with following message Error on line 49: (SQR 4707) No value found for substitution variable: {} let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec basename '{}' ";" > /ora10/inbound/evoucher/dan.lis' Error on line 49: (SQR 4008) Unknown function or variable in expression: {}' let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec basename '{}' ";" > /ora10/inbound/evoucher/dan.lis' Any suggestion to run this command will be appreciated. Thanks. Gopal Borde ITS Dept _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 09:13:09 2004 Date: Thu, 5 Aug 2004 07:12:01 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] Unix command in SQR Gopal, Did you run this command on the Unix command line? I think you are also missing a '\' before the ";" HTH Datta. --- "Alexander, Steve" wrote: > I think you're missing a quote mark or two, but the immediate problem > is the > curly brackets { and } on the same line. The compiler looks for > curly > brackets on the same line before anything else compiles. It will try > to > substitute text regardless of quote marks. It's looking for a > defined > constant called ' || ' (including the quotes). > > -----Original Message----- > From: Borde, Gopal S [mailto:gopal-borde@uiowa.edu] > Sent: Wednesday, August 04, 2004 11:59 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Unix command in SQR > > > Friends, > > > > I am trying to issue following UNIX command in SQR to list names of > all > *.txt files in a folder. > > ------ > > let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec basename > '{' || '}' ";" > /ora10/inbound/evoucher/dan.lis' > > > > call system using $com1 #s wait > > > > However program erred with following message > > > > > > Error on line 49: > > (SQR 4707) No value found for substitution variable: {} > > let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec basename > '{}' ";" > /ora10/inbound/evoucher/dan.lis' > > > > Error on line 49: > > (SQR 4008) Unknown function or variable in expression: {}' > > let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec basename > '{}' ";" > /ora10/inbound/evoucher/dan.lis' > > > > Any suggestion to run this command will be appreciated. > > > > Thanks. > > > > > > > > > > > > Gopal Borde > > ITS Dept > > > > _______________________________________________ > 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!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 09:58:31 2004 Date: Thu, 5 Aug 2004 07:55:21 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] Unix command in SQR Hi Gopal, Did some digging and here is what I came up with the problem is {} are creating an issue. Please see the enclosed sample program I created as a work around. ================== Sample ========================================== begin-program encode <123> into $open encode <125> into $close let $cmd = 'find . -name "*.sqr" -exec basename ' || $open || $close || ' \; > /tmp/tp_out' show $cmd call system using $cmd #s wait end-program ================================================================= this worked like a Charm and when I cat /tmp/tp_out file I have the file names of the sqr files in the current directory. Hope I have answered the question. Datta. --- Dattatraya Shetty wrote: > Gopal, > Did you run this command on the Unix command line? > > I think you are also missing a '\' before the ";" > > HTH > Datta. > --- "Alexander, Steve" wrote: > > > I think you're missing a quote mark or two, but the immediate > problem > > is the > > curly brackets { and } on the same line. The compiler looks for > > curly > > brackets on the same line before anything else compiles. It will > try > > to > > substitute text regardless of quote marks. It's looking for a > > defined > > constant called ' || ' (including the quotes). > > > > -----Original Message----- > > From: Borde, Gopal S [mailto:gopal-borde@uiowa.edu] > > Sent: Wednesday, August 04, 2004 11:59 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Unix command in SQR > > > > > > Friends, > > > > > > > > I am trying to issue following UNIX command in SQR to list names of > > all > > *.txt files in a folder. > > > > ------ > > > > let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec > basename > > '{' || '}' ";" > /ora10/inbound/evoucher/dan.lis' > > > > > > > > call system using $com1 #s wait > > > > > > > > However program erred with following message > > > > > > > > > > > > Error on line 49: > > > > (SQR 4707) No value found for substitution variable: {} > > > > let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec > basename > > '{}' ";" > /ora10/inbound/evoucher/dan.lis' > > > > > > > > Error on line 49: > > > > (SQR 4008) Unknown function or variable in expression: {}' > > > > let $com1 ='find /ora10/inbound/evoucher -name "*.txt" -exec > basename > > '{}' ";" > /ora10/inbound/evoucher/dan.lis' > > > > > > > > Any suggestion to run this command will be appreciated. > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > > > Gopal Borde > > > > ITS Dept > > > > > > > > _______________________________________________ > > 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!? > Y! Messenger - Communicate in real time. Download now. > http://messenger.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 15:11:47 2004 From: "Chu, Nicholas" Date: Wed, 4 Aug 2004 15:09:43 -0500 Subject: [sqr-users] SQR report performance I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=250 EXPRESSIONSPACE=2048 SQLSIZE=14096 I wonder what parameters and how much would take care of my problem. Thanks!! Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 15:40:17 2004 Subject: RE: [sqr-users] SQR report performance Date: Wed, 4 Aug 2004 15:39:12 -0500 From: "Knapp, Richard" Report tuning is, in my experience, not that simple. The SQL queries themselves need to be well tuned. The code needs to be efficient, streamlined, well organized. Don't do anything in a loop 100,000 times that only needs to be done once. That sort of thing. There is no substitute for review of the code by an experienced person. Boilerplate code by novice programmers can get the job done but can almost always be improved. The judicious use of arrays can help big time. 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 Chu, Nicholas Sent: Wednesday, August 04, 2004 3:10 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR report performance I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using=20 SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=3D250 EXPRESSIONSPACE=3D2048 SQLSIZE=3D14096 I wonder what parameters and how much would take care of my problem. 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 15:51:29 2004 From: Peter Burton Date: Wed, 4 Aug 2004 13:45:08 -0700 Subject: RE: [sqr-users] SQR report performance Nicholas, With that version of SQR I would avoid using LET commands which are doing the same thing as the primitive commands: ADD, SUBTRACT, MULTIPLY, DIVIDE, MOVE. The primitive commands are significantly faster. LET might look prettier but there is significant overhead with that functionality. 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 Chu, Nicholas > Sent: Wednesday, August 04, 2004 4:10 PM > To: 'sqr-users@sqrug.org' > Subject: [sqr-users] SQR report performance > > > I was wondering if anybody can let me know what parameters in > SQR can be > expanded to let it run faster? > > We have SQR reports that is taking almost 20mins to run > depending on the > size on the shipment. > We are accessing Oracle 9i using > > SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All > Worldwide Rights > Reserved. > > These are the only 3 that we've set: > SUBVARS=250 > EXPRESSIONSPACE=2048 > SQLSIZE=14096 > > I wonder what parameters and how much would take care of my problem. > Thanks!! > > Nicholas > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 10:49:41 2004 From: "Bryson, Steven" Subject: RE: [sqr-users] SQR report performance Date: Thu, 5 Aug 2004 11:48:14 -0400 Richard, you mention that use of arrays would help performance. How is their performance in comparison to temp tables or is there none? -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, August 04, 2004 4:39 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR report performance Report tuning is, in my experience, not that simple. The SQL queries themselves need to be well tuned. The code needs to be efficient, streamlined, well organized. Don't do anything in a loop 100,000 times that only needs to be done once. That sort of thing. There is no substitute for review of the code by an experienced person. Boilerplate code by novice programmers can get the job done but can almost always be improved. The judicious use of arrays can help big time. 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 Chu, Nicholas Sent: Wednesday, August 04, 2004 3:10 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR report performance I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=250 EXPRESSIONSPACE=2048 SQLSIZE=14096 I wonder what parameters and how much would take care of my problem. 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 "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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 11:23:50 2004 Subject: RE: [sqr-users] SQR report performance Date: Thu, 5 Aug 2004 11:22:40 -0500 From: "Knapp, Richard" I haven't timed the differences so my claim is based on theory and the fact that I have been able to get very good response from arrays. An array is a data structure in memory; a table, temporary or otherwise, is a file structure. Databases (and table accesses) are pretty fast these days but there is always some overhead related to the db structure and file i/o. Often, though, the real table access burden is due to location of the table on a remote machine and the network overhead involved in transferring the data. In truth, some disk i/o (swapping) may be involved with the use of arrays if they are large or not accessed all at once. This last point is something I always pay attention to. If I can load and/or access the array all in one fell swoop, I do. Not always possible. If your program is being executed on a server, even an array will experience network data transfer costs. Kind of tweaky but fun, no? Another reason programmers need to know how it all works. Best, 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 Bryson, Steven Sent: Thursday, August 05, 2004 10:48 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] SQR report performance Richard, you mention that use of arrays would help performance. How is their performance in comparison to temp tables or is there none? -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, August 04, 2004 4:39 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR report performance Report tuning is, in my experience, not that simple. The SQL queries themselves need to be well tuned. The code needs to be efficient, streamlined, well organized. Don't do anything in a loop 100,000 times that only needs to be done once. That sort of thing. There is no substitute for review of the code by an experienced person. Boilerplate code by novice programmers can get the job done but can almost always be improved. The judicious use of arrays can help big time. 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 Chu, Nicholas Sent: Wednesday, August 04, 2004 3:10 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR report performance I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using=20 SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=3D250 EXPRESSIONSPACE=3D2048 SQLSIZE=3D14096 I wonder what parameters and how much would take care of my problem. 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 "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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 11:30:46 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] SQR report performance Date: Thu, 5 Aug 2004 10:30:09 -0600 I two have had success with arrays. I have been programming more year then most of you are old. I have done PeopleSoft and Sqr 7+ years. I had one sqr that took over two hours to run if I looped thru the tables. I was able to create arrays and only go thru the tables once and cut the time to less than 2 min. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Thursday, August 05, 2004 10:23 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR report performance I haven't timed the differences so my claim is based on theory and the fact that I have been able to get very good response from arrays. An array is a data structure in memory; a table, temporary or otherwise, is a file structure. Databases (and table accesses) are pretty fast these days but there is always some overhead related to the db structure and file i/o. Often, though, the real table access burden is due to location of the table on a remote machine and the network overhead involved in transferring the data. In truth, some disk i/o (swapping) may be involved with the use of arrays if they are large or not accessed all at once. This last point is something I always pay attention to. If I can load and/or access the array all in one fell swoop, I do. Not always possible. If your program is being executed on a server, even an array will experience network data transfer costs. Kind of tweaky but fun, no? Another reason programmers need to know how it all works. Best, 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 Bryson, Steven Sent: Thursday, August 05, 2004 10:48 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] SQR report performance Richard, you mention that use of arrays would help performance. How is their performance in comparison to temp tables or is there none? -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, August 04, 2004 4:39 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR report performance Report tuning is, in my experience, not that simple. The SQL queries themselves need to be well tuned. The code needs to be efficient, streamlined, well organized. Don't do anything in a loop 100,000 times that only needs to be done once. That sort of thing. There is no substitute for review of the code by an experienced person. Boilerplate code by novice programmers can get the job done but can almost always be improved. The judicious use of arrays can help big time. 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 Chu, Nicholas Sent: Wednesday, August 04, 2004 3:10 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR report performance I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=250 EXPRESSIONSPACE=2048 SQLSIZE=14096 I wonder what parameters and how much would take care of my problem. 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 "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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 12:04:10 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] SQR report performance Date: Thu, 5 Aug 2004 10:00:41 -0700 I agree with Richard and Dwaine, but there is another point to remember - the time you take to load the arrays. Certainly, reading the same thing over and over from an array is faster than reading it over and over again from a networked disk drive. But are you reading the same thing over and over? Or are you reading each thing once, but inefficiently? The slowest part of most SQRs, and the area with the greatest potential for improvement, is the SQL statements. You should strive to to execute the fewest, simplest SQL statements possible. The advantage of an array, or a load-lookup statement, is that you can replace 100,000 single row selections with one selection of 100,000 rows. We could probably give you all sorts of specific advice if you tell us more about the program. -----Original Message----- From: Bartlett, Dwain [mailto:dbartlett@state.mt.us] Sent: Thursday, August 05, 2004 9:30 AM To: 'This list is for discussion about the SQR database reporting languagef rom Hyperion Solutions.' Subject: RE: [sqr-users] SQR report performance I two have had success with arrays. I have been programming more year then most of you are old. I have done PeopleSoft and Sqr 7+ years. I had one sqr that took over two hours to run if I looped thru the tables. I was able to create arrays and only go thru the tables once and cut the time to less than 2 min. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Thursday, August 05, 2004 10:23 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR report performance I haven't timed the differences so my claim is based on theory and the fact that I have been able to get very good response from arrays. An array is a data structure in memory; a table, temporary or otherwise, is a file structure. Databases (and table accesses) are pretty fast these days but there is always some overhead related to the db structure and file i/o. Often, though, the real table access burden is due to location of the table on a remote machine and the network overhead involved in transferring the data. In truth, some disk i/o (swapping) may be involved with the use of arrays if they are large or not accessed all at once. This last point is something I always pay attention to. If I can load and/or access the array all in one fell swoop, I do. Not always possible. If your program is being executed on a server, even an array will experience network data transfer costs. Kind of tweaky but fun, no? Another reason programmers need to know how it all works. Best, 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 Bryson, Steven Sent: Thursday, August 05, 2004 10:48 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] SQR report performance Richard, you mention that use of arrays would help performance. How is their performance in comparison to temp tables or is there none? -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, August 04, 2004 4:39 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR report performance Report tuning is, in my experience, not that simple. The SQL queries themselves need to be well tuned. The code needs to be efficient, streamlined, well organized. Don't do anything in a loop 100,000 times that only needs to be done once. That sort of thing. There is no substitute for review of the code by an experienced person. Boilerplate code by novice programmers can get the job done but can almost always be improved. The judicious use of arrays can help big time. 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 Chu, Nicholas Sent: Wednesday, August 04, 2004 3:10 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQR report performance I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=250 EXPRESSIONSPACE=2048 SQLSIZE=14096 I wonder what parameters and how much would take care of my problem. 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 "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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 12:52:55 2004 Subject: Re: [sqr-users] SQR report performance From: bknoch@hinda.com Date: Thu, 5 Aug 2004 12:50:25 -0500 More information would probably help. Is it a single sql statement taking 20 minutes, or several ones? Perhaps one running in a fraction of a second but with several hundred thousand iterations? Is the report returning massive amounts of data? Are your indexes good? Are the statistics updated on the tables? Is the optimizer choosing the right indexes? |---------+--------------------------------------------> | | "Chu, Nicholas" | | | | | | Sent by: | | | sqr-users-bounces+bknoch=hinda.co| | | m@sqrug.org | | | | | | | | | 08/04/2004 03:09 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] SQR report performance | >----------------------------------------------------------------------------------------------| I was wondering if anybody can let me know what parameters in SQR can be expanded to let it run faster? We have SQR reports that is taking almost 20mins to run depending on the size on the shipment. We are accessing Oracle 9i using SQR V6.1.4 Copyright (C) Brio Technology 1994-2000. All Worldwide Rights Reserved. These are the only 3 that we've set: SUBVARS=250 EXPRESSIONSPACE=2048 SQLSIZE=14096 I wonder what parameters and how much would take care of my problem. Thanks!! Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 15:48:01 2004 Date: Wed, 4 Aug 2004 15:45:15 -0500 From: "Penny J. Heeren" Subject: [sqr-users] PDF Files created by SQR We are creating several PDF files from various SQR programs with the following code section: declare-report report7 ! Image file report .pdf format printer-type=3Dpd layout=3Dlayout7 end-declare This file is then picked up by another process, and emailed to a recipient. Occasionally, the file received by the user is unable to be opened by Adobe Reader, with an error "Unable to open file, file has been corrupted". If we rerun the SQR program to generate the file again, the emailed file works this time. Since my manager has handled this in the past and not gotten me involved, I haven't had a chance to look at the file before it gets rewritten to see if it's corrupted on our server before it goes out in the email or if it's corrupted by the email/by sending the email/by receiving the email. I've made sure he knows that I want to see the file before it's replaced the next time this happens, as it's entirely possible this isn't an SQR issue, but an email issue... however, he wanted me to ask for feedback from the user group in case someone else has encountered this. Additionally, if the recipient has a Yahoo mail account, that software treats the attached file as part of the body and displays the binary data in the body of the file. I'm 99.9% certain that has nothing to do with SQR nor the content of the file, but the way the file is attached. It's been a problem for some other email programs, but, for example, works fine consistently on Hotmail. The program that actually identifies that there is a file to be emailed and generates the email is a custom application built by a coworker using ASP running on Windows 2000, and interfaces with Microsoft Exchange to create the email from data stored in a flat text file that contains sender, recipient, subject, body, and if there is an attachment, the file path for the attachment file. SQR version is 8.0, running on RedHat Advanced Server Linux box. Has anyone else had issues like this or any ideas of a better way to do this?=20 Penny Heeren DBA/Programmer Analyst Newton Manufacturing Co e-mail: pheeren@newtonmfg.com phone: 641-791-4242 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 15:55:04 2004 Subject: RE: [sqr-users] PDF Files created by SQR Date: Wed, 4 Aug 2004 15:51:16 -0500 From: "Knapp, Richard" Is the file being sent as an attachment to all destinations/mailers? 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 Penny J. Heeren Sent: Wednesday, August 04, 2004 3:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] PDF Files created by SQR We are creating several PDF files from various SQR programs with the following code section: declare-report report7 ! Image file report .pdf format printer-type=3Dpd layout=3Dlayout7 end-declare This file is then picked up by another process, and emailed to a recipient. Occasionally, the file received by the user is unable to be opened by Adobe Reader, with an error "Unable to open file, file has been corrupted". If we rerun the SQR program to generate the file again, the emailed file works this time. Since my manager has handled this in the past and not gotten me involved, I haven't had a chance to look at the file before it gets rewritten to see if it's corrupted on our server before it goes out in the email or if it's corrupted by the email/by sending the email/by receiving the email. I've made sure he knows that I want to see the file before it's replaced the next time this happens, as it's entirely possible this isn't an SQR issue, but an email issue... however, he wanted me to ask for feedback from the user group in case someone else has encountered this. Additionally, if the recipient has a Yahoo mail account, that software treats the attached file as part of the body and displays the binary data in the body of the file. I'm 99.9% certain that has nothing to do with SQR nor the content of the file, but the way the file is attached. It's been a problem for some other email programs, but, for example, works fine consistently on Hotmail. The program that actually identifies that there is a file to be emailed and generates the email is a custom application built by a coworker using ASP running on Windows 2000, and interfaces with Microsoft Exchange to create the email from data stored in a flat text file that contains sender, recipient, subject, body, and if there is an attachment, the file path for the attachment file. SQR version is 8.0, running on RedHat Advanced Server Linux box. Has anyone else had issues like this or any ideas of a better way to do this?=20 Penny Heeren DBA/Programmer Analyst Newton Manufacturing Co e-mail: pheeren@newtonmfg.com phone: 641-791-4242 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 16:00:01 2004 Subject: RE: [sqr-users] PDF Files created by SQR Date: Wed, 4 Aug 2004 15:58:53 -0500 From: "Hins, Thomas D. \(HSC\)" I just wrote an SQR and from Unix I email files to different users. The tr= ouble is I hardcoded the email addresses, I didn't like that but I would ha= ve liked to make a small table and load the filename, email address to rece= ive it and retrieve it from there each time but didn't take the time to do = that. That way I could just update the table and not change the sqr, add r= ecepients if I want etc. Here is the email code I used. I'll probably change it in the future to us= e a table to get who receives the different files. You are also suppose to= be able to have a subj line, etc and I found I could have a subject line a= nd no attachment or an attachment and no subject line, played around for aw= hile and couldn't get both to work if someone else has experience and wants= to share that would be appreciated. Positive changes are also invited, cod= e below is subject to your own testing for your environment...=20=20=20 Begin-REPORT do Init-DateTime do Get-Current-DateTime do STDAPI-Init Let $ReportID =3D 'OUFNDCK' do Open-File-Logic do Init-REPORT do Get-Rpt-Dates do Process-Main do stdapi-term=20=20=20=20=20 Display $Asoftoday Close 10=20=20 Close 20 Close 30 Do Email-File do Reset end-REPORT begin-procedure Init-Report ! Let $filedate =3D SUBSTR($Asoftoday,1,2)||substr($Asoftoday,4,3)||substr= ($Asoftoday,8,4) Let $File1 =3D $ftpout||'badsprd.dat' let $File2 =3D $ftpout||'Badempearns.dat' let $File3 =3D $ftpout||'Badgrants.dat' #debug display $file1 SHOW 'OUTFILE IS ' $FILE1 Open $File1 as 10 for-writing record =3D 120:vary=20 Open $File2 as 20 for-writing record =3D 187:vary Open $File3 as 30 for-writing record =3D 187:vary =20=20=20 if $prcs_process_instance =3D '' ! No Prompt end-if =20=20 =20=20 end-procedure Begin-Procedure Email-File IF #Inactivated > 0 let $system =3D 'uuencode '|| $FILE1 ||' '|| $FILE1 ||'| mail xxx1@x= xxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status=20 let $system =3D 'uuencode '|| $FILE1 ||' '|| $FILE1 ||'| mail xxx2@= xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status=20 End-if IF #BAD_EMP_EARNS > 0 let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx1@x= xxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx2@x= xxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx3@= xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx4@= xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status End-if=20 IF #Bad_Emp_Grants > 0 let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx1@x= xxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx2@x= xxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx3@x= xxx@ouhsc.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx4@= xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status End-if=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 Penny J. Heeren Sent: Wednesday, August 04, 2004 3:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] PDF Files created by SQR We are creating several PDF files from various SQR programs with the following code section: declare-report report7 ! Image file report .pdf format printer-type=3Dpd layout=3Dlayout7 end-declare This file is then picked up by another process, and emailed to a recipient. Occasionally, the file received by the user is unable to be opened by Adobe Reader, with an error "Unable to open file, file has been corrupted". If we rerun the SQR program to generate the file again, the emailed file works this time. Since my manager has handled this in the past and not gotten me involved, I haven't had a chance to look at the file before it gets rewritten to see if it's corrupted on our server before it goes out in the email or if it's corrupted by the email/by sending the email/by receiving the email. I've made sure he knows that I want to see the file before it's replaced the next time this happens, as it's entirely possible this isn't an SQR issue, but an email issue... however, he wanted me to ask for feedback from the user group in case someone else has encountered this. Additionally, if the recipient has a Yahoo mail account, that software treats the attached file as part of the body and displays the binary data in the body of the file. I'm 99.9% certain that has nothing to do with SQR nor the content of the file, but the way the file is attached. It's been a problem for some other email programs, but, for example, works fine consistently on Hotmail. The program that actually identifies that there is a file to be emailed and generates the email is a custom application built by a coworker using ASP running on Windows 2000, and interfaces with Microsoft Exchange to create the email from data stored in a flat text file that contains sender, recipient, subject, body, and if there is an attachment, the file path for the attachment file. SQR version is 8.0, running on RedHat Advanced Server Linux box. Has anyone else had issues like this or any ideas of a better way to do this?=20 Penny Heeren DBA/Programmer Analyst Newton Manufacturing Co e-mail: pheeren@newtonmfg.com phone: 641-791-4242 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 22:14:49 2004 Date: Wed, 04 Aug 2004 20:13:12 -0700 From: "Meenu Jhigan" Subject: RE: [sqr-users] PDF Files created by SQR This is a multi-part message in MIME format... --=_Part_46678f13$c76a$4e4f$876c$5db3e5d5e2fb Content-Type: text/plain I use a table to store email addresses amongst other fields on the table and use an application engine program that has peoplecode to generate emails for everyone in the table. This table is part of certain process and is deleted and filled with new rows everytime we run the process. Peoplecode uses sendmail function that allows you to enter from , to , subject, text ,attachment - everything that an email has. This procedure also requires SMTP settings on the Unix and NT servers. This is a bit different approach from using sqr but is a good one to use if your aim is to just send emails with some details. We are using this for almost 3 years now and it runs a few times in a week and works great. Hope this helps. Meenu >>> Thomas-Hins@ouhsc.edu 8/4/2004 1:58:53 PM >>> I just wrote an SQR and from Unix I email files to different users. The trouble is I hardcoded the email addresses, I didn't like that but I would have liked to make a small table and load the filename, email address to receive it and retrieve it from there each time but didn't take the time to do that. That way I could just update the table and not change the sqr, add recepients if I want etc. Here is the email code I used. I'll probably change it in the future to use a table to get who receives the different files. You are also suppose to be able to have a subj line, etc and I found I could have a subject line and no attachment or an attachment and no subject line, played around for awhile and couldn't get both to work if someone else has experience and wants to share that would be appreciated. Positive changes are also invited, code below is subject to your own testing for your environment... Begin-REPORT do Init-DateTime do Get-Current-DateTime do STDAPI-Init Let $ReportID = 'OUFNDCK' do Open-File-Logic do Init-REPORT do Get-Rpt-Dates do Process-Main do stdapi-term Display $Asoftoday Close 10 Close 20 Close 30 Do Email-File do Reset end-REPORT begin-procedure Init-Report ! Let $filedate = SUBSTR($Asoftoday,1,2)||substr($Asoftoday,4,3)||substr($Asoftoday,8,4) Let $File1 = $ftpout||'badsprd.dat' let $File2 = $ftpout||'Badempearns.dat' let $File3 = $ftpout||'Badgrants.dat' #debug display $file1 SHOW 'OUTFILE IS ' $FILE1 Open $File1 as 10 for-writing record = 120:vary Open $File2 as 20 for-writing record = 187:vary Open $File3 as 30 for-writing record = 187:vary if $prcs_process_instance = '' ! No Prompt end-if end-procedure Begin-Procedure Email-File IF #Inactivated > 0 let $system = 'uuencode '|| $FILE1 ||' '|| $FILE1 ||'| mail xxx1@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE1 ||' '|| $FILE1 ||'| mail xxx2@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status End-if IF #BAD_EMP_EARNS > 0 let $system = 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx1@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx2@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx3@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx4@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status End-if IF #Bad_Emp_Grants > 0 let $system = 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx1@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx2@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx3@xxxx@ouhsc.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status let $system = 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx4@xxxx.edu' show 'system variable is ' $system CALL SYSTEM USING $system #unix_status End-if 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 which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company.) -----Original Message----- This message scanned for viruses and SPAM by GWGuardian at SCU (MGW1) --=_Part_46678f13$c76a$4e4f$876c$5db3e5d5e2fb Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was an embedded message of 'message/rfc822' MIME type. It has been automatically discarded before sending the whole message to the list, since it didn't contain any(more) textual part. --=_Part_46678f13$c76a$4e4f$876c$5db3e5d5e2fb 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 --=_Part_46678f13$c76a$4e4f$876c$5db3e5d5e2fb-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 08:23:58 2004 Subject: Re: [sqr-users] PDF Files created by SQR From: bknoch@hinda.com Date: Thu, 5 Aug 2004 08:22:43 -0500 We've been having some problems with the PDF output from SQR as well. In our case, we generate a PDF file, then our fax software converts it to a TIF format and faxes it out. In some cases, the conversion fails even though we can open the PDF file in Adobe and view it. My coworker ran the PDF through some kind of optimizer, and then the TIF file could be generated. We think there are some extra characters or some kind of funky ones inside the PDF that causes this. |---------+--------------------------------------------> | | "Penny J. Heeren" | | | | | | Sent by: | | | sqr-users-bounces+bknoch=hinda.co| | | m@sqrug.org | | | | | | | | | 08/04/2004 03:45 PM | | | Please respond to "This list is | | | for discussion about the SQR | | | database reporting language | | | from Hyperion Solutions." | | | | |---------+--------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] PDF Files created by SQR | >----------------------------------------------------------------------------------------------| We are creating several PDF files from various SQR programs with the following code section: declare-report report7 ! Image file report .pdf format printer-type=pd layout=layout7 end-declare This file is then picked up by another process, and emailed to a recipient. Occasionally, the file received by the user is unable to be opened by Adobe Reader, with an error "Unable to open file, file has been corrupted". If we rerun the SQR program to generate the file again, the emailed file works this time. Since my manager has handled this in the past and not gotten me involved, I haven't had a chance to look at the file before it gets rewritten to see if it's corrupted on our server before it goes out in the email or if it's corrupted by the email/by sending the email/by receiving the email. I've made sure he knows that I want to see the file before it's replaced the next time this happens, as it's entirely possible this isn't an SQR issue, but an email issue... however, he wanted me to ask for feedback from the user group in case someone else has encountered this. Additionally, if the recipient has a Yahoo mail account, that software treats the attached file as part of the body and displays the binary data in the body of the file. I'm 99.9% certain that has nothing to do with SQR nor the content of the file, but the way the file is attached. It's been a problem for some other email programs, but, for example, works fine consistently on Hotmail. The program that actually identifies that there is a file to be emailed and generates the email is a custom application built by a coworker using ASP running on Windows 2000, and interfaces with Microsoft Exchange to create the email from data stored in a flat text file that contains sender, recipient, subject, body, and if there is an attachment, the file path for the attachment file. SQR version is 8.0, running on RedHat Advanced Server Linux box. Has anyone else had issues like this or any ideas of a better way to do this? Penny Heeren DBA/Programmer Analyst Newton Manufacturing Co e-mail: pheeren@newtonmfg.com phone: 641-791-4242 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 11:10:48 2004 Date: Thu, 05 Aug 2004 11:08:26 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] PDF Files created by SQR Penny and others in this thread, Your problems sound similar to one I had quite a while ago. They are tricky to debug because the symptom only happens occasionally. If I recall correctly, the problem was that our automatic processing of the PDF started before SQR was completely done generating the file. If you are running the SQR with the "-printer:pd" the final rendering of the PDF file seems to happen asynchronously. Try running the SQR with the "-nolis" option and then explicitly calling sqrp to generate the PDF file. Hope this helps, Eric Penny J. Heeren wrote: > We are creating several PDF files from various SQR programs with the > following code section: > > declare-report report7 ! Image file report .pdf format > printer-type=pd > layout=layout7 > end-declare > > This file is then picked up by another process, and emailed to a > recipient. Occasionally, the file received by the user is unable to be > opened by Adobe Reader, with an error "Unable to open file, file has > been corrupted". If we rerun the SQR program to generate the file again, > the emailed file works this time. Since my manager has handled this in > the past and not gotten me involved, I haven't had a chance to look at > the file before it gets rewritten to see if it's corrupted on our server > before it goes out in the email or if it's corrupted by the email/by > sending the email/by receiving the email. I've made sure he knows that I > want to see the file before it's replaced the next time this happens, as > it's entirely possible this isn't an SQR issue, but an email issue... > however, he wanted me to ask for feedback from the user group in case > someone else has encountered this. > > Additionally, if the recipient has a Yahoo mail account, that software > treats the attached file as part of the body and displays the binary > data in the body of the file. I'm 99.9% certain that has nothing to do > with SQR nor the content of the file, but the way the file is attached. > It's been a problem for some other email programs, but, for example, > works fine consistently on Hotmail. The program that actually identifies > that there is a file to be emailed and generates the email is a custom > application built by a coworker using ASP running on Windows 2000, and > interfaces with Microsoft Exchange to create the email from data stored > in a flat text file that contains sender, recipient, subject, body, and > if there is an attachment, the file path for the attachment file. > > SQR version is 8.0, running on RedHat Advanced Server Linux box. > > Has anyone else had issues like this or any ideas of a better way to do > this? > > Penny Heeren > DBA/Programmer Analyst > Newton Manufacturing Co > e-mail: pheeren@newtonmfg.com > phone: 641-791-4242 > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 16:10:14 2004 From: Kaz.Narayanan@averydennison.com Date: Wed, 4 Aug 2004 14:01:59 -0700 Subject: [sqr-users] Fetch out of sequence in an SQR Hi All, I get a ORA-01002: fetch out of sequence error in an SQR program. Apparently this happens because, there is a rollback statement inside a begin-select loop. Is it possible to avoid this error? Thanks Regards KM Narayanan ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 16:17:40 2004 Date: Wed, 04 Aug 2004 16:17:05 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Fetch out of sequence in an SQR KM Narayanan, You can't have a commit or rollback statement inside a begin-select loop. The begin-select loop opens an Oracle cursor. Commit and rollback close all open cursors on that connection. You may have to select the data you need into a temporary file or array if you really need to do commits/rollbacks while processing. Hope this helps, Eric Kaz.Narayanan@averydennison.com wrote: > > Hi All, > > I get a > > ORA-01002: fetch out of sequence > > error in an SQR program. Apparently this happens because, there is a > rollback statement inside a > begin-select loop. > > Is it possible to avoid this error? > > Thanks > > Regards > KM Narayanan > > > > ----------------------------------------- > The information transmitted is intended only for the person or entity > to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of, or taking of any action in reliance upon, this > information by persons or entities other than the intended recipient > is prohibited. If you received this in error, please contact the > sender and delete the material from any computer. > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 04 16:32:10 2004 From: "the dragon" Subject: RE: [sqr-users] Fetch out of sequence in an SQR Date: Wed, 04 Aug 2004 16:29:39 -0500 take out the rollback?? 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 get a ORA-01002: fetch out of sequence error in an SQR program. Apparently this happens because, there is a rollback statement inside a begin-select loop. Is it possible to avoid this error? Thanks Regards KM Narayanan ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 08:29:48 2004 Subject: FW: [sqr-users] PDF Files created by SQR Date: Thu, 5 Aug 2004 08:28:46 -0500 From: "Penny J. Heeren" Actually this is pretty similar to how we USED to send our emails using UUENCODE. We didn't have anything hard-coded, but would instead populate everything from various values in tables or based on certain logic. However, we were having issues when the attachments weren't always getting the 'close' (crlf . crlf ?) indication, so the recipients email server kept waiting for the last piece of the email to indicate that it had the whole file and would time out. Wouldn't happen all of the time, but about 10% of the time we would get a response back from the other email server that the email 'timed out' and did not get delivered after a couple of days. Since then, we simply created a text file with the header and body of the email and a line 'attachement file:' with it's path. And the ASP email program we're using opens the file, and creates the email with the attachment and sends it. Now we've got about a 99% success rate with only a few issues with a 'corrupt' PDF. -----Original Message----- From: Hins, Thomas D. (HSC) [mailto:Thomas-Hins@ouhsc.edu]=20 Sent: Wednesday, August 04, 2004 3:59 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] PDF Files created by SQR I just wrote an SQR and from Unix I email files to different users. The trouble is I hardcoded the email addresses, I didn't like that but I would have liked to make a small table and load the filename, email address to receive it and retrieve it from there each time but didn't take the time to do that. That way I could just update the table and not change the sqr, add recepients if I want etc. Here is the email code I used. I'll probably change it in the future to use a table to get who receives the different files. You are also suppose to be able to have a subj line, etc and I found I could have a subject line and no attachment or an attachment and no subject line, played around for awhile and couldn't get both to work if someone else has experience and wants to share that would be appreciated. Positive changes are also invited, code below is subject to your own testing for your environment...=20=20=20 Begin-REPORT do Init-DateTime do Get-Current-DateTime do STDAPI-Init Let $ReportID =3D 'OUFNDCK' do Open-File-Logic do Init-REPORT do Get-Rpt-Dates do Process-Main do stdapi-term=20=20=20=20=20 Display $Asoftoday Close 10=20=20 Close 20 Close 30 Do Email-File do Reset end-REPORT begin-procedure Init-Report ! Let $filedate =3D SUBSTR($Asoftoday,1,2)||substr($Asoftoday,4,3)||substr($Asoftoday,8,4) Let $File1 =3D $ftpout||'badsprd.dat' let $File2 =3D $ftpout||'Badempearns.dat' let $File3 =3D $ftpout||'Badgrants.dat' #debug display $file1 SHOW 'OUTFILE IS ' $FILE1 Open $File1 as 10 for-writing record =3D 120:vary=20 Open $File2 as 20 for-writing record =3D 187:vary Open $File3 as 30 for-writing record =3D 187:vary =20=20=20 if $prcs_process_instance =3D '' ! No Prompt end-if =20=20 =20=20 end-procedure Begin-Procedure Email-File IF #Inactivated > 0 let $system =3D 'uuencode '|| $FILE1 ||' '|| $FILE1 ||'| mail xxx1@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status=20 let $system =3D 'uuencode '|| $FILE1 ||' '|| $FILE1 ||'| mail xxx2@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status=20 End-if IF #BAD_EMP_EARNS > 0 let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx1@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx2@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx3@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE2 ||' '|| $FILE2 || '| mail xxx4@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status End-if=20 IF #Bad_Emp_Grants > 0 let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx1@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx2@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx3@xxxx@ouhsc.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status let $system =3D 'uuencode '|| $FILE3 ||' '|| $FILE3 || '| mail xxx4@xxxx.edu' show 'system variable is ' $system=20 CALL SYSTEM USING $system #unix_status End-if=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 which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company.) -----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 Penny J. Heeren Sent: Wednesday, August 04, 2004 3:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] PDF Files created by SQR We are creating several PDF files from various SQR programs with the following code section: declare-report report7 ! Image file report .pdf format printer-type=3Dpd layout=3Dlayout7 end-declare This file is then picked up by another process, and emailed to a recipient. Occasionally, the file received by the user is unable to be opened by Adobe Reader, with an error "Unable to open file, file has been corrupted". If we rerun the SQR program to generate the file again, the emailed file works this time. Since my manager has handled this in the past and not gotten me involved, I haven't had a chance to look at the file before it gets rewritten to see if it's corrupted on our server before it goes out in the email or if it's corrupted by the email/by sending the email/by receiving the email. I've made sure he knows that I want to see the file before it's replaced the next time this happens, as it's entirely possible this isn't an SQR issue, but an email issue... however, he wanted me to ask for feedback from the user group in case someone else has encountered this. Additionally, if the recipient has a Yahoo mail account, that software treats the attached file as part of the body and displays the binary data in the body of the file. I'm 99.9% certain that has nothing to do with SQR nor the content of the file, but the way the file is attached. It's been a problem for some other email programs, but, for example, works fine consistently on Hotmail. The program that actually identifies that there is a file to be emailed and generates the email is a custom application built by a coworker using ASP running on Windows 2000, and interfaces with Microsoft Exchange to create the email from data stored in a flat text file that contains sender, recipient, subject, body, and if there is an attachment, the file path for the attachment file. SQR version is 8.0, running on RedHat Advanced Server Linux box. Has anyone else had issues like this or any ideas of a better way to do this?=20 Penny Heeren DBA/Programmer Analyst Newton Manufacturing Co e-mail: pheeren@newtonmfg.com phone: 641-791-4242 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 08:32:58 2004 Subject: FW: [sqr-users] PDF Files created by SQR Date: Thu, 5 Aug 2004 08:32:02 -0500 From: "Penny J. Heeren" We are creating individual emails containing order confirmation, or request for approval for an order, or acknowledgement of receiving approval for an order, or even invoices for orders via email. We create the PDF for an attachment, then create the text file containing the file and path and send it to the specific recipient for that file. We create approximately 250 individual emails throughout the day. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Wednesday, August 04, 2004 3:51 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] PDF Files created by SQR Is the file being sent as an attachment to all destinations/mailers? 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 Penny J. Heeren Sent: Wednesday, August 04, 2004 3:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] PDF Files created by SQR We are creating several PDF files from various SQR programs with the following code section: declare-report report7 ! Image file report .pdf format printer-type=3Dpd layout=3Dlayout7 end-declare This file is then picked up by another process, and emailed to a recipient. Occasionally, the file received by the user is unable to be opened by Adobe Reader, with an error "Unable to open file, file has been corrupted". If we rerun the SQR program to generate the file again, the emailed file works this time. Since my manager has handled this in the past and not gotten me involved, I haven't had a chance to look at the file before it gets rewritten to see if it's corrupted on our server before it goes out in the email or if it's corrupted by the email/by sending the email/by receiving the email. I've made sure he knows that I want to see the file before it's replaced the next time this happens, as it's entirely possible this isn't an SQR issue, but an email issue... however, he wanted me to ask for feedback from the user group in case someone else has encountered this. Additionally, if the recipient has a Yahoo mail account, that software treats the attached file as part of the body and displays the binary data in the body of the file. I'm 99.9% certain that has nothing to do with SQR nor the content of the file, but the way the file is attached. It's been a problem for some other email programs, but, for example, works fine consistently on Hotmail. The program that actually identifies that there is a file to be emailed and generates the email is a custom application built by a coworker using ASP running on Windows 2000, and interfaces with Microsoft Exchange to create the email from data stored in a flat text file that contains sender, recipient, subject, body, and if there is an attachment, the file path for the attachment file. SQR version is 8.0, running on RedHat Advanced Server Linux box. Has anyone else had issues like this or any ideas of a better way to do this?=20 Penny Heeren DBA/Programmer Analyst Newton Manufacturing Co e-mail: pheeren@newtonmfg.com phone: 641-791-4242 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 08:57:07 2004 Date: Thu, 05 Aug 2004 09:54:17 -0400 From: "Jessie Dickenson" Subject: [sqr-users] UI component to open a File dialog. I have a specific requirement for my users. My reporting application is run through a Citrix server & the users want to export the report to an excel spreadsheet. I have the code that does the excel export. But since I hard-code the path (& I absolutely detest hard-coding) to point to C:, the file is getting written to the Citrix server's virtual local drive. Is it at all possible to provide some sort of an UI component that would enable me to provide a File-dialog? That way, they can choose where the export needs to go to. If you know any other workaround to this problem, I would appreciate your help. Thanks in advance. Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 10:23:59 2004 Date: Thu, 5 Aug 2004 10:21:18 -0500 From: "Hlavenka, Mark" Subject: [sqr-users] DB Link problem I've created a database link to another database and am trying to pull data from that database in my SQR. My syntax is: begin-select a.po_id a.resource_id from PS_BSC_CLD_TBL@FTEST8 a end-select When I run this, I get the following error: (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 6: ORA-03113: end-of-file on communication channel Error on line 328: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE I can run this select statement just fine via a SQL query tool. Anyone have any suggestions? Thanks for your help. Mark Hlavenka _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 10:30:29 2004 Subject: RE: [sqr-users] DB Link problem Date: Thu, 5 Aug 2004 10:29:26 -0500 From: "Hins, Thomas D. \(HSC\)" Does your link name include @FTEST8? Whenever I have had a link to another= database I can just call the table name as described in the link and it wo= rks fine. For example our HR has links to Financials but we named the tabl= e OU_FIN_Ledger_KK the Fin telling us it is from Financials. I am guessing = the @ may be messing up when ran from SQL.=20=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 Hlavenka, Mark Sent: Thursday, August 05, 2004 10:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] DB Link problem I've created a database link to another database and am trying to pull data from that database in my SQR. My syntax is: begin-select a.po_id a.resource_id from PS_BSC_CLD_TBL@FTEST8 a end-select When I run this, I get the following error: (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 6: ORA-03113: end-of-file on communication channel Error on line 328: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE I can run this select statement just fine via a SQL query tool. Anyone have any suggestions? Thanks for your help. Mark Hlavenka _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 10:42:53 2004 Subject: Re: [sqr-users] DB Link problem From: Kaz.Narayanan@averydennison.com Date: Thu, 5 Aug 2004 08:36:27 -0700 Hi, Ensure that the SYSADM password for the both instances are same. Thanks Regards KM Narayanan "Hlavenka, Mark" @sqrug.org on 08/05/2004 08:21:18 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org To: cc: Subject: [sqr-users] DB Link problem I've created a database link to another database and am trying to pull data from that database in my SQR. My syntax is: begin-select a.po_id a.resource_id from PS_BSC_CLD_TBL@FTEST8 a end-select When I run this, I get the following error: (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 6: ORA-03113: end-of-file on communication channel Error on line 328: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE I can run this select statement just fine via a SQL query tool. Anyone have any suggestions? Thanks for your help. Mark Hlavenka _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ----------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 14:28:10 2004 From: "Miller, Danika" Date: Thu, 5 Aug 2004 15:25:36 -0400 Subject: [sqr-users] Oracle/SQR Error?? Hello - I have an SQR report that is executed by entering specific input values on a run control page. The report has many possible variations of input variables. The report runs fine with certain input variables and not for others. This is the error that appears when the report isn't working properly. (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 4: ORA-01406: fetched column value was truncated Error on line 574: (SQR 3725) Bad return fetching row from database. SQR for PeopleSoft: Program Aborting. What exactly does this error mean? What do my input variables have to do with this error? And how can I avoid receiving this error again? 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 14:33:15 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] Oracle/SQR Error?? Date: Thu, 5 Aug 2004 13:32:36 -0600 Can you send the statements, I think I know what is wrong, but without the statements I am not sure. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Miller, Danika [mailto:MillerD2@ndu.edu] Sent: Thursday, August 05, 2004 1:26 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Oracle/SQR Error?? Hello - I have an SQR report that is executed by entering specific input values on a run control page. The report has many possible variations of input variables. The report runs fine with certain input variables and not for others. This is the error that appears when the report isn't working properly. (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 4: ORA-01406: fetched column value was truncated Error on line 574: (SQR 3725) Bad return fetching row from database. SQR for PeopleSoft: Program Aborting. What exactly does this error mean? What do my input variables have to do with this error? And how can I avoid receiving this error again? 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 05 14:36:06 2004 Subject: RE: [sqr-users] Oracle/SQR Error?? Date: Thu, 5 Aug 2004 15:33:16 -0400 From: "Pink, Michael" If you add -s to your sqr flags if will show you all the cursors and you can see which field it is having a problem with. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Miller, Danika Sent: Thursday, August 05, 2004 3:26 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Oracle/SQR Error?? Hello - =20 I have an SQR report that is executed by entering specific input values on a run control page. The report has many possible variations of input variables. The report runs fine with certain input variables and not for others. This is the error that appears when the report isn't working properly. =20 (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 4: ORA-01406: fetched column value was truncated =20 Error on line 574: (SQR 3725) Bad return fetching row from database. =20 SQR for PeopleSoft: Program Aborting. =20 =20 What exactly does this error mean? What do my input variables have to do with this error? And how can I avoid receiving this error again?=20=20 =20 =20 Any help would be greatly appreciated!!!! =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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 09 13:48:20 2004 From: "Dinesh Bhandary" Date: Mon, 9 Aug 2004 11:46:33 -0700 Subject: [sqr-users] -printer:HP versus printer printer:WP Hi All, I am having a slight problem using -printer command. when I use -printer:HP command the output file( PCL file) is printed fine. But when I run the same report with -printer:WP or -ZIV option it seems like it's adding a few blank lines on the top of the page. Please let me know why it's doing this. thanks a lot dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 10 00:29:46 2004 From: "Syed Husain" Date: Tue, 10 Aug 2004 01:36:16 -0400 Subject: [sqr-users] Difference between SQR Process and SQR report Can anyone tell me the difference between SQR process and SQR report.? Syed Husain _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 10 05:38:48 2004 From: "the dragon" Subject: RE: [sqr-users] Difference between SQR Process and SQR report Date: Tue, 10 Aug 2004 05:34:28 -0500 I beleive an sqr process just does stuff in the database - DML, whereas an sqr report creates printed output. 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---- Can anyone tell me the difference between SQR process and SQR report.? Syed Husain _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 10 08:06:36 2004 Date: Tue, 10 Aug 2004 09:03:10 -0400 From: "White, Denise" Subject: [sqr-users] RE: Difference between SQR Process and SQR report What the Dragon says makes logical sense, but my advice would be to use the= SQR Report process type for any SQRs you develop, whether they produce a r= eport or just do updating. I haven't delved into the details of why, but u= sing SQR Process usually ends in error; the parameters used are different. = If you really want to know the difference, just examine the process type d= efinitions. (BTW, for those who don't know what this is about, it's PeopleSoft stuff) Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 3 Date: Tue, 10 Aug 2004 05:34:28 -0500 From: "the dragon" Subject: RE: [sqr-users] Difference between SQR Process and SQR report To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; format=3Dflowed I beleive an sqr process just does stuff in the database - DML, whereas an= =20 sqr report creates printed output. 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---- Can anyone tell me the difference between SQR process and SQR report.? Syed Husain _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 11 08:01:43 2004 Date: Wed, 11 Aug 2004 08:00:44 -0500 From: David Ward Subject: [sqr-users] Re: sqr-users Digest, Vol 6, Issue 8 Denise - We use 'SQR Report' exclusively. I don't see any reason to used 'SQR Process' over 'SQR Report', but there are several reasons to use 'SQR Report'. The main reason being that if you use 'SQR Process', the Process Scheduler will not pass the Operator Id or Run Control ID to the program, and things will not work properly. Also, I've noticed that when using 'SQR Process', the API(application Program interface) stuff(ie. process instance, etc...) is not made available in the program. David. At 06:01 AM 8/11/2004 -0500, you wrote: >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. RE: Difference between SQR Process and SQR report (White, Denise) > >From: "White, Denise" >Precedence: list >Subject: [sqr-users] RE: Difference between SQR Process and SQR report >Date: Tue, 10 Aug 2004 09:03:10 -0400 >To: "SQR Users Group (E-mail)" >Reply-To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >Message-ID: ><3B835DA57619AF47B4FC6D1F94F357D1E7BBBF@25exch1.vicorpower.vicr.com> >Content-Type: text/plain; > charset="iso-8859-1" >MIME-Version: 1.0 >Message: 1 > >What the Dragon says makes logical sense, but my advice would be to use >the SQR Report process type for any SQRs you develop, whether they produce >a report or just do updating. I haven't delved into the details of why, >but using SQR Process usually ends in error; the parameters used are >different. If you really want to know the difference, just examine the >process type definitions. > >(BTW, for those who don't know what this is about, it's PeopleSoft stuff) > >Denise M. White >Sr. Software Engineer >HR/Payroll Systems >Vicor Corporation >------------------------------ > >Message: 3 >Date: Tue, 10 Aug 2004 05:34:28 -0500 >From: "the dragon" >Subject: RE: [sqr-users] Difference between SQR Process and SQR report >To: sqr-users@sqrug.org >Message-ID: >Content-Type: text/plain; format=flowed > >I beleive an sqr process just does stuff in the database - DML, whereas an >sqr report creates printed output. > >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---- > >Can anyone tell me the difference between SQR process and SQR report.? > >Syed Husain > > > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users David Ward Technology & Information Resources UW-Whitewater 800 W. Main St. Whitewater, WI 53190 262-472-1039 Fax: 262-472-5733 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 11 09:26:40 2004 From: "Dinesh Bhandary" Date: Wed, 11 Aug 2004 07:24:57 -0700 Subject: [sqr-users] alter-printer commnad on pcl file Hi All, How do I change the font size for PCL files? The alter-printer command does not seem to work. dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 12 08:54:22 2004 Date: Thu, 12 Aug 2004 09:51:12 -0400 From: "White, Denise" Subject: [sqr-users] RE: Difference between SQR Process and SQR report I don't see any reason to use SQR Process either. I thought that's what I = said. Sorry if I wasn't clear. I use SQR Report for all SQR jobs I develo= p. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ---------------------------------------------------------------------- Message: 1 Date: Wed, 11 Aug 2004 08:00:44 -0500 From: David Ward Subject: [sqr-users] Re: sqr-users Digest, Vol 6, Issue 8 To: sqr-users@sqrug.org Denise - We use 'SQR Report' exclusively. I don't see any reason to used 'SQR=20 Process' over 'SQR Report', but there are several reasons to use 'SQR=20 Report'. The main reason being that if you use 'SQR Process', the Process= =20 Scheduler will not pass the Operator Id or Run Control ID to the program,= =20 and things will not work properly. Also, I've noticed that when using 'SQR Process', the API(application=20 Program interface) stuff(ie. process instance, etc...) is not made=20 available in the program. David. At 06:01 AM 8/11/2004 -0500, you wrote: > >From: "White, Denise" >Precedence: list >Subject: [sqr-users] RE: Difference between SQR Process and SQR report >Date: Tue, 10 Aug 2004 09:03:10 -0400 >To: "SQR Users Group (E-mail)" > >What the Dragon says makes logical sense, but my advice would be to use=20 >the SQR Report process type for any SQRs you develop, whether they produce= =20 >a report or just do updating. I haven't delved into the details of why,= =20 >but using SQR Process usually ends in error; the parameters used are=20 >different. If you really want to know the difference, just examine the=20 >process type definitions. > >(BTW, for those who don't know what this is about, it's PeopleSoft stuff) > >Denise M. White >Sr. Software Engineer >HR/Payroll Systems >Vicor Corporation >------------------------------ > >Message: 3 >Date: Tue, 10 Aug 2004 05:34:28 -0500 >From: "the dragon" >Subject: RE: [sqr-users] Difference between SQR Process and SQR report >To: sqr-users@sqrug.org >Message-ID: >Content-Type: text/plain; format=3Dflowed > >I beleive an sqr process just does stuff in the database - DML, whereas an >sqr report creates printed output. > >peace. >clark 'the dragon' willis > > > >PSA: Salary <> Slavery. If you earn a salary, your employer is renting yo= ur >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---- > >Can anyone tell me the difference between SQR process and SQR report.? > >Syed Husain _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 12 09:28:32 2004 Subject: Re: [sqr-users] RE: Difference between SQR Process and SQR report From: cedric.jozon@accord.finances.gouv.fr Date: Thu, 12 Aug 2004 16:30:23 +0200 Hello, I use SQR_Process and SQR_Report in my job. Because, SQR_Process is better if you just have to handle data without=20 any report. Neither as the SQR_Report who can be use for printing Report and API. In fact you can distribut Report to one Server and Process to an Other. C=E9dric JOZON "White, Denise" =20 Envoy=E9 par :=20 sqr-users-bounces+cedric.jozon=3Daccord.finances.gouv.fr@sqrug.org 12/08/2004 15:51 Veuillez r=E9pondre =E0 "This list is for discussion about the SQR database reporting language=20 from Hyperion Solutions." A "SQR Users Group (E-mail)" cc Objet [sqr-users] RE: Difference between SQR Process and SQR report I don't see any reason to use SQR Process either. I thought that's what I= =20 said. Sorry if I wasn't clear. I use SQR Report for all SQR jobs I=20 develop. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ---------------------------------------------------------------------- Message: 1 Date: Wed, 11 Aug 2004 08:00:44 -0500 From: David Ward Subject: [sqr-users] Re: sqr-users Digest, Vol 6, Issue 8 To: sqr-users@sqrug.org Denise - We use 'SQR Report' exclusively. I don't see any reason to used 'SQR Process' over 'SQR Report', but there are several reasons to use 'SQR Report'. The main reason being that if you use 'SQR Process', the Process Scheduler will not pass the Operator Id or Run Control ID to the program, and things will not work properly. Also, I've noticed that when using 'SQR Process', the API(application Program interface) stuff(ie. process instance, etc...) is not made available in the program. David. At 06:01 AM 8/11/2004 -0500, you wrote: > >From: "White, Denise" >Precedence: list >Subject: [sqr-users] RE: Difference between SQR Process and SQR report >Date: Tue, 10 Aug 2004 09:03:10 -0400 >To: "SQR Users Group (E-mail)" > >What the Dragon says makes logical sense, but my advice would be to use >the SQR Report process type for any SQRs you develop, whether they=20 produce >a report or just do updating. I haven't delved into the details of why, >but using SQR Process usually ends in error; the parameters used are >different. If you really want to know the difference, just examine the >process type definitions. > >(BTW, for those who don't know what this is about, it's PeopleSoft stuff) > >Denise M. White >Sr. Software Engineer >HR/Payroll Systems >Vicor Corporation >------------------------------ > >Message: 3 >Date: Tue, 10 Aug 2004 05:34:28 -0500 >From: "the dragon" >Subject: RE: [sqr-users] Difference between SQR Process and SQR report >To: sqr-users@sqrug.org >Message-ID: >Content-Type: text/plain; format=3Dflowed > >I beleive an sqr process just does stuff in the database - DML, whereas=20 an >sqr report creates printed output. > >peace. >clark 'the dragon' willis > > > >PSA: Salary <> Slavery. If you earn a salary, your employer is renting=20 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=20 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---- > >Can anyone tell me the difference between SQR process and SQR report.? > >Syed Husain _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 12 13:20:18 2004 Date: Thu, 12 Aug 2004 14:19:07 -0400 From: "Pink, Michael" Subject: [sqr-users] Selecting a JPG Image I am trying to select a JPG image from a PeopleSoft table that is stored in PeopleSoft/Oracle as a "LONG RAW" field. When I do the sqr errors out on me. Can anyone tell how to select a field that is stored as a Long Raw ? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Sat Aug 14 03:10:26 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Selecting a JPG Image Date: Sat, 14 Aug 2004 18:07:55 +1000 SQR only supports standard numeric and char data (not blobs or long raw etc). One way I know of is to call an external sql script with the call system using SQR command, the external script can select the image and write it to a file, which your SQR program can then access. 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 Pink, Michael Sent: Friday, 13 August 2004 4:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] Selecting a JPG Image I am trying to select a JPG image from a PeopleSoft table that is stored in PeopleSoft/Oracle as a "LONG RAW" field. When I do the sqr errors out on me. Can anyone tell how to select a field that is stored as a Long Raw ? _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sun Aug 15 23:27:34 2004 From: Ray Ontko Date: Sun, 15 Aug 2004 23:26:52 -0500 Subject: Re: [sqr-users] Selecting a JPG Image Michael, Actually, I have accessed both LONG RAW and CLOB data using SQR, but there are some limitations. LONG RAW shows up as a hexadecimal string in SQR. On some versions of SQR on some platforms, the maximum string length is 32K, so the longest number of bytes represented by a 32K string would be a 16K LONG RAW. You'd have to write a routine that converted the the hex to integer values, and write these to a binary file, byte-by_byte. With CLOB, the story is different. What I have done here is to use PL/SQL code to retreive the CLOB and break it into smaller pieces, which I return to SQR as separate variables. I then assemble these into a bigger string, up to 32K. Due to a limitation in SQR, I think I was limited to 1999 characters at a time, so I had to pass the value in 17 variables, but it worked fine. If the data were stored in a BLOB instead of a CLOB, you could probably blend the two approaches: use PL/SQL code to get the values and convert the BLOB into a hex string, pass it in pieces to SQR, and then convert from hex to binary to write a file. There are probably easier ways with PL/SQL to tell oracle to write a blob or clob or long raw to a file. Ray On Thu, Aug 12, 2004 at 02:19:07PM -0400, Pink, Michael wrote: > I am trying to select a JPG image from a PeopleSoft table that is stored > in PeopleSoft/Oracle as a "LONG RAW" field. When I do the sqr errors out > on me. Can anyone tell how to select a field that is stored as a Long > Raw ? > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 12 16:14:20 2004 Date: Thu, 12 Aug 2004 16:12:42 -0500 From: "Brooke Funk" Subject: [sqr-users] On-Break Question I wondered if anyone had any idea how to get a report to break and start a = new page when the first letter of the lastname changes (IE. A changes to B = changes to C). Can you do that with an ON-Break statement? NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 12 16:20:24 2004 Subject: RE: [sqr-users] On-Break Question Date: Thu, 12 Aug 2004 16:16:55 -0500 From: "Kent Schaetzly" If the last name is in a separate field, use substr(last_name,1,1) on-break= . Don't forget to order by last_name. -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of Brooke Funk Sent: Thursday, August 12, 2004 4:13 PM To: sqr-users@sqrug.org Subject: [sqr-users] On-Break Question I wondered if anyone had any idea how to get a report to break and start a = new page when the first letter of the lastname changes (IE. A changes to B = changes to C). Can you do that with an ON-Break statement? NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 12 16:24:24 2004 From: "Genady Sosnovsky" Subject: Re: [sqr-users] On-Break Question Date: Thu, 12 Aug 2004 16:21:44 -0500 in Oracle you can try the following: begin-select substr(lastname,1,1) () on-break after=start_new_page lastname firstname from ... order by 1, 2 begin-procedure start_new_page new-page end-procedure hope it helps Genady genadys@ontko.com > I wondered if anyone had any idea how to get a report to break and start a new page when the first letter of the lastname changes (IE. A changes to B changes to C). Can you do that with an ON-Break statement? > > > > NOTICE: This e-mail is intended solely for the use of the > individual to whom it is addressed and may contain information > that is privileged, confidential or otherwise exempt from > disclosure. If the reader of this e-mail is not the intended > recipient or the employee or agent responsible for delivering > the message to the intended recipient, you are hereby notified > that any dissemination, distribution, or copying of this > communication is strictly prohibited. If you have received this > communication in error, please immediately notify us by replying > to the original message at the listed e-mail address. > > Thank you. > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Sun Aug 15 08:54:31 2004 Date: Thu, 12 Aug 2004 17:44:45 -0700 From: "Nguyen Anh" Subject: [sqr-users] SQL - Multiple Reports First, I'd like to thanks in advance for your help!! =20 I'm writing an SQR that output 2 different reports. I declared the report layout in begin-set up.=20 Also, in the Process Scheduler =3D> Processes, on Override Options tab, I appended -MP 2 in Command Line. (or even tested for -MR 3) However when I run the report from the RUN CONTROL, I got the error message. (Note: the same SQR file run successfully on my work-station and produce 2 reports) If I don't append -MR 2 on Override tab, I got one output file in my SQR directory, and one in Process Monitor!! Below are my codes and attached of error log. I'm very appreciate for your help!!=20 Thanks. Anna begin-setup Declare-Layout REJECTION-REP paper-size=3D(11,8.5) orientation=3DLandscape line-height=3D9 ! 72/printer_point-size char-width=3D4.32 ! points, to handle max cols left-margin=3D.05 right-margin=3D.05 End-Declare Declare-Layout ELIGIBLE-REP paper-size=3D(8.5,11) orientation=3DPortrait line-height=3D9 ! 72/printer_point-size char-width=3D4.32 ! points, to handle max cols left-margin=3D.30 right-margin=3D.05 End-Declare Declare-Report REJECTION-REP Layout =3D REJECTION-REP printer-type=3DHP End-Declare Declare-Report ELIGIBLE-REP Layout =3D ELIGIBLE-REP printer-type=3DHP End-Declare #include 'ptset02.sqc' ! Database specific setup end-setup ERROR MESSAGE LOG:=20 PeopleTools 8 - PSSQR Copyright (c) 1988-2003 PeopleSoft, Inc. All Rights Reserved Invalid database type=20 Usage: pssqr -CT Values: DB2|DB2400|DB2UNIX|INFORMIX|MICROSFT|ORACLE|SYBASE -CS =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=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 -CD =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=20=20=20=20=20=20=20= =20=20=20 -CA [Encrypted by PeopleSoft]=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 -CAP [Encrypted by PeopleSoft]=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 -RP =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=20=20=20=20=20=20=20= =20=20=20=20 -I =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=20=20=20=20=20=20= =20 -R =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=20=20=20=20=20=20=20= =20=20 -CO =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=20=20=20=20=20=20=20=20= =20=20=20=20 -COWN (OS/390 only)=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 -OT =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=20=20=20=20=20=20=20=20= =20=20=20=20 2 (FILE)=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=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 3 (PRINTER)=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=20=20=20=20=20=20=20=20= =20=20=20=20=20 4 (WINDOW)=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=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 5 (EMAIL)=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=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 6 (WEB)=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=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 -OF (column headings refer to -OT setting)=20=20= =20=20 FILE PRINTER WINDOW EMAIL WEB BROWSER=20 ---------- ---------- ---------- -------- -----------=20 2 (PDF) 4 (HP) 13 (SPF) 2 (PDF) 2 (PDF)=20=20= =20=20 3 (CSV) 6 (LP) 3 (CSV) 3 (CSV)=20=20= =20=20 4 (HP) 10 (PS) 4 (HP) 4 (HP)=20=20= =20=20=20 5 (HTML) 15 (Other) 5 (HTML) 5 (HTML)=20=20= =20 6 (LP) 6 (LP) 6 (LP)=20=20= =20=20=20 10 (PS) 10 (PS) 10 (PS)=20=20= =20=20=20 13 (SPF) 13 (SPF) 13 (SPF)=20=20= =20=20 15 (Other)=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=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=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=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -OP =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=20=20=20=20=20 -PP <"prepend parameters">=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=20 -AP <"append parameters">=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=20=20 -FILE =20 -EF =20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -EL 0 (Exclude Log and Trace files from email)=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 1 (Include Log and Trace files in email)=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 -MR Values: #(max 99)=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 09:17:26 2004 From: "Darshil Mehta" Date: Fri, 13 Aug 2004 16:52:39 +0530 Subject: [sqr-users] Problem with output Hi all, I am generating a report with appox. 60 input parameters. When I execute this report on Brio Portal, I do not get output. But when I use the same query in database, I do get around 20,000 rows. What could be the reason? Thanx 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+sqrusersarch=sqrug.org@sqrug.org Sat Aug 14 03:07:00 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Problem with output Date: Sat, 14 Aug 2004 18:05:45 +1000 You need to check the database connection is the same and the parameters are the same. The easiest way to check this is to turn on job factory debugging (set jf_debug=true in the startup script). Then the job factory will keep the sqr command it used to run the report. This is kept in the .../server/JFxxxxxxx/tmp directory. You might either see the problem straight away, or you can rerun the SQR command (sqrexec.bat or sqrexec.sh) outside portal and debug that way. 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: Friday, 13 August 2004 9:23 PM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with output Hi all, I am generating a report with appox. 60 input parameters. When I execute this report on Brio Portal, I do not get output. But when I use the same query in database, I do get around 20,000 rows. What could be the reason? Thanx 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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 07:45:54 2004 Date: Fri, 13 Aug 2004 08:44:30 -0400 From: "White, Denise" Subject: [sqr-users] Re: On-Break Question I agree with the way you are using substr() with the on-break, except that = you should also use print=3Dnever or it will print that character at the cu= rrent position. Also, the column names you are selecting must start in col= umn 1 and not be indented, as you show them. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 6 Date: Thu, 12 Aug 2004 16:21:44 -0500 From: "Genady Sosnovsky" Subject: Re: [sqr-users] On-Break Question To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: <18f301c480b2$5e4aa220$61a5a4c7@BARTICUS> Content-Type: text/plain; charset=3D"iso-8859-1" in Oracle you can try the following: begin-select substr(lastname,1,1) () on-break after=3Dstart_new_page lastname firstname from ... order by 1, 2 begin-procedure start_new_page new-page end-procedure hope it helps Genady genadys@ontko.com > I wondered if anyone had any idea how to get a report to break and start a new page when the first letter of the lastname changes (IE. A changes to B changes to C). Can you do that with an ON-Break statement? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 09:31:12 2004 From: "Genady Sosnovsky" Subject: Re: [sqr-users] Re: On-Break Question Date: Fri, 13 Aug 2004 09:29:06 -0500 Denise, Your comments are correct, with my example I meant just to explained an approach. Thanks-Genady genadys@ontko.com > I agree with the way you are using substr() with the on-break, except that you should also use print=never or it will print that character at the current position. Also, the column names you are selecting must start in column 1 and not be indented, as you show them. > > Denise M. White > Sr. Software Engineer > HR/Payroll Systems > Vicor Corporation > ------------------------------ > > Message: 6 > Date: Thu, 12 Aug 2004 16:21:44 -0500 > From: "Genady Sosnovsky" > Subject: Re: [sqr-users] On-Break Question > To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > Message-ID: <18f301c480b2$5e4aa220$61a5a4c7@BARTICUS> > Content-Type: text/plain; charset="iso-8859-1" > > in Oracle you can try the following: > begin-select > substr(lastname,1,1) () on-break after=start_new_page > lastname > firstname > from ... > order by 1, 2 > > begin-procedure start_new_page > new-page > end-procedure > > hope it helps > > Genady > genadys@ontko.com > > > > I wondered if anyone had any idea how to get a report to break and start a > new page when the first letter of the lastname changes (IE. A changes to B > changes to C). Can you do that with an ON-Break statement? > > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 09:35:24 2004 Date: Fri, 13 Aug 2004 09:32:22 -0500 From: "Brooke Funk" Subject: Re: [sqr-users] Re: On-Break Question Thank you all for your help. Your substr worked and I got what I needed. = I'm surprised I didn't think of it. >>> genadys@ontko.com 08/13/04 09:29AM >>> Denise, Your comments are correct, with my example I meant just to explained an approach. Thanks-Genady genadys@ontko.com=20 > I agree with the way you are using substr() with the on-break, except that you should also use print=3Dnever or it will print that character at the cu= rrent position. Also, the column names you are selecting must start in column 1 = and not be indented, as you show them. > > Denise M. White > Sr. Software Engineer > HR/Payroll Systems > Vicor Corporation > ------------------------------ > > Message: 6 > Date: Thu, 12 Aug 2004 16:21:44 -0500 > From: "Genady Sosnovsky" > Subject: Re: [sqr-users] On-Break Question > To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > Message-ID: <18f301c480b2$5e4aa220$61a5a4c7@BARTICUS> > Content-Type: text/plain; charset=3D"iso-8859-1" > > in Oracle you can try the following: > begin-select > substr(lastname,1,1) () on-break after=3Dstart_new_page > lastname > firstname > from ... > order by 1, 2 > > begin-procedure start_new_page > new-page > end-procedure > > hope it helps > > Genady > genadys@ontko.com=20 > > > > I wondered if anyone had any idea how to get a report to break and star= t a > new page when the first letter of the lastname changes (IE. A changes to B > changes to C). Can you do that with an ON-Break statement? > > > > _______________________________________________ > 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 NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 15:42:48 2004 From: "Ed Kelly" Date: Fri, 13 Aug 2004 20:39:51 +0000 Subject: [sqr-users] RE: Difference between SQR Process and SQR Report I don't know if this was answered completely or not, but the answer varies depending upon your PeopleSoft Tools release. If you are on Tools release 7.5x or earlier, both type definitions called the SQR compiler directly, but the type definition for SQR Processes did not include the parameters Operator ID and Run Control ID (it was left up to the individual process definition to determine if they were necessary); the type definition for SQR Reports did. As of version 8.x, both type definitions call the utility program PSSQR.EXE (not the compiler) and the two definitions are identical, with both containing the Operator ID and Run Control ID parameters. So as of version 8.x, it makes absolutely no difference which one you use, you will get the exact same result. From a Philosophical perspective, SQR Report should be use for any type of report program that you create, whereas SQR Process should be used for any type of interface or database update program. I hope this is helpful. Ed Kelly _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 16:09:15 2004 Date: Fri, 13 Aug 2004 17:03:14 -0400 From: "Jamie Harris" Subject: [sqr-users] RE: Difference between SQR Process and SQR Report I can think of one small difference: In Peoplesoft 8 land, particularly at the following page: Home > PeopleTools > Process Scheduler Manager > Use > Server Definitions You can set how many concurrent tasks of each type are allowed by the process scheduler. SQR Process, SQR Report and SQR Report for WF Delivery are all separate entries, so you could have SQR Reports running at max capacity and an SQR process could still run (or vice versa). You can also set the priority level of each process type, so that could theoretically be different between the three types. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> ed_kelly@hotmail.com 8/13/2004 4:39:51 PM >>> I don't know if this was answered completely or not, but the answer varies depending upon your PeopleSoft Tools release. If you are on Tools release 7.5x or earlier, both type definitions called the SQR compiler directly, but the type definition for SQR Processes did not include the parameters Operator ID and Run Control ID (it was left up to the individual process definition to determine if they were necessary); the type definition for SQR Reports did. As of version 8.x, both type definitions call the utility program PSSQR.EXE (not the compiler) and the two definitions are identical, with both containing the Operator ID and Run Control ID parameters. So as of version 8.x, it makes absolutely no difference which one you use, you will get the exact same result. From a Philosophical perspective, SQR Report should be use for any type of report program that you create, whereas SQR Process should be used for any type of interface or database update program. I hope this is helpful. Ed Kelly _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 13 16:39:27 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Difference between SQR Process and SQR Report Date: Fri, 13 Aug 2004 14:37:47 -0700 You could also create your own process definition types and use them to differentiate programs; scheduled programs versus user initiated, HR's programs versus Payroll's, Peoplesoft-delivered versus in-house developed, etc. Then the process scheduler's filter can be selected to show one group of programs or another. -----Original Message----- From: Jamie Harris [mailto:JHarris@frederick.edu] Sent: Friday, August 13, 2004 2:03 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Difference between SQR Process and SQR Report I can think of one small difference: In Peoplesoft 8 land, particularly at the following page: Home > PeopleTools > Process Scheduler Manager > Use > Server Definitions You can set how many concurrent tasks of each type are allowed by the process scheduler. SQR Process, SQR Report and SQR Report for WF Delivery are all separate entries, so you could have SQR Reports running at max capacity and an SQR process could still run (or vice versa). You can also set the priority level of each process type, so that could theoretically be different between the three types. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> ed_kelly@hotmail.com 8/13/2004 4:39:51 PM >>> I don't know if this was answered completely or not, but the answer varies depending upon your PeopleSoft Tools release. If you are on Tools release 7.5x or earlier, both type definitions called the SQR compiler directly, but the type definition for SQR Processes did not include the parameters Operator ID and Run Control ID (it was left up to the individual process definition to determine if they were necessary); the type definition for SQR Reports did. As of version 8.x, both type definitions call the utility program PSSQR.EXE (not the compiler) and the two definitions are identical, with both containing the Operator ID and Run Control ID parameters. So as of version 8.x, it makes absolutely no difference which one you use, you will get the exact same result. From a Philosophical perspective, SQR Report should be use for any type of report program that you create, whereas SQR Process should be used for any type of interface or database update program. I hope this is helpful. Ed Kelly _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 17 19:15:48 2004 Date: Wed, 18 Aug 2004 10:14:27 +1000 From: "Ian Mills" Subject: [sqr-users] DEBUG error Hi, We are in the process of upgrading from SQR v6 to SQR v8.2.1. In the past, I have always used the #debugt flag to track the progress of my reports when in test. I am using #debugt with , SHOW, PRINT & WRITE commands and none of the commands are processing. Normally the SHOW commands write to the report LOG file but it is now empty. When in the Developer tool, I use the command line flags -debugt and -s. At least the -s still works. Has anyone come across this problem? If so, was there a workaround? Thanks in advance, Ian Mills _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 19 06:01:10 2004 From: "Steve Cavill" Subject: RE: [sqr-users] DEBUG error Date: Thu, 19 Aug 2004 20:57:15 +1000 Hi Ian, -debug flag doesn't work with developer 8.x there's an open enhancement request for it. It will work on command line. 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 Ian Mills Sent: Wednesday, 18 August 2004 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] DEBUG error Hi, We are in the process of upgrading from SQR v6 to SQR v8.2.1. In the past, I have always used the #debugt flag to track the progress of my reports when in test. I am using #debugt with , SHOW, PRINT & WRITE commands and none of the commands are processing. Normally the SHOW commands write to the report LOG file but it is now empty. When in the Developer tool, I use the command line flags -debugt and -s. At least the -s still works. Has anyone come across this problem? If so, was there a workaround? Thanks in advance, Ian Mills _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:27:53 2004 Date: Wed, 18 Aug 2004 11:25:02 -0700 (PDT) From: subrahmanyam Uppuganti Subject: [sqr-users] question on rownum Hi all, Does the following syntax work in sqr..else can some suggest me an alternative, I need to get only the first row Thanks subbu Begin-Select lvl.DeptId lvl.DM_Dept_Lvl >From PS_dept-tbl lvl where effdt = (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =lvl.deptid and effdt<= Sysdate) and lvl.DM_dept_lvl < = '11' and rownum = 1 <-----??????????? End-Select --------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:31:07 2004 From: EricRection@aol.com Date: Wed, 18 Aug 2004 15:28:37 EDT Subject: Re: [sqr-users] question on rownum It's not a question of whether it works on SQR, it's whether it works on your DB platform. Oracle has ROWNUM, DB2 (makes sign of the cross and spits) and SQLServer don't. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:34:22 2004 Subject: RE: [sqr-users] question on rownum Date: Wed, 18 Aug 2004 15:31:07 -0400 From: "Pink, Michael" I don't know if that will work or not but you can code: Begin-Select loops =3D 1 -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of subrahmanyam Uppuganti Sent: Wednesday, August 18, 2004 2:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] question on rownum Hi all, Does the following syntax work in sqr..else can some suggest me an alternative, I need to get only the first row Thanks subbu =20 Begin-Select lvl.DeptId lvl.DM_Dept_Lvl >From PS_dept-tbl lvl where effdt =3D (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =3Dlvl.deptid and effdt<=3D Sysdate) and lvl.DM_dept_lvl < =3D '11' and rownum =3D 1 <-----??????????? End-Select =20 =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 From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:37:24 2004 From: "the dragon" Subject: RE: [sqr-users] question on rownum Date: Wed, 18 Aug 2004 14:33:50 -0500 if you're using oracle, it does I believe. 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, Does the following syntax work in sqr..else can some suggest me an alternative, I need to get only the first row Thanks subbu Begin-Select lvl.DeptId lvl.DM_Dept_Lvl >From PS_dept-tbl lvl where effdt = (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =lvl.deptid and effdt<= Sysdate) and lvl.DM_dept_lvl < = '11' and rownum = 1 <-----??????????? End-Select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:40:31 2004 From: EricRection@aol.com Date: Wed, 18 Aug 2004 15:36:19 EDT Subject: Re: [sqr-users] question on rownum ...but since you're using SQR, why not just use: let #x=1 while #x<100 let #x=#x+1 end-while Make sure the data is sorted and set #x back to one when you get to a new group of data, in this case a new deptid. You'd have to do this in a Begin-Select rather than a Begin-SQL clause, which is normally bad news, but you seem to be doing that anyway. The last time I had the misfortune to work on a DB2 (rolls eyes and looks down nose) site, I asked an old hand what you do without rownum, and he said you just have to take it on a case by case basis. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:43:38 2004 From: Bob Stone Subject: RE: [sqr-users] question on rownum Date: Wed, 18 Aug 2004 14:41:06 -0500 the rownum line wont work, i'm pretty sure. the 'and rownum < 2' is oracle syntax, and sqr is database independant. so the solution you should use is Begin-SELECT loops=1 lvl.DeptId lvl.DM_Dept_Lvl FROM PS_dept-tbl lvl WHERE effdt = (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =lvl.deptid and effdt<= Sysdate) AND lvl.DM_dept_lvl < = '11' End-Select ...but make sure that you do an ORDER BY to grab the one you want, or be sure that there's only one row. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of subrahmanyam Uppuganti Sent: Wednesday, August 18, 2004 1:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] question on rownum Hi all, Does the following syntax work in sqr..else can some suggest me an alternative, I need to get only the first row Thanks subbu Begin-Select lvl.DeptId lvl.DM_Dept_Lvl >From PS_dept-tbl lvl where effdt = (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =lvl.deptid and effdt<= Sysdate) and lvl.DM_dept_lvl < = '11' and rownum = 1 <-----??????????? End-Select --------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 18 14:48:29 2004 Subject: RE: [sqr-users] question on rownum Date: Wed, 18 Aug 2004 15:45:55 -0400 From: "Pink, Michael" You can also use exit-select once you get the row you need. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Bob Stone Sent: Wednesday, August 18, 2004 3:41 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] question on rownum the rownum line wont work, i'm pretty sure. the 'and rownum < 2' is oracle syntax, and sqr is database independant. so the solution you should use is Begin-SELECT loops=3D1 lvl.DeptId lvl.DM_Dept_Lvl FROM PS_dept-tbl lvl WHERE effdt =3D (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =3Dlvl.deptid and effdt<=3D Sysdate) AND lvl.DM_dept_lvl < =3D '11' End-Select ...but make sure that you do an ORDER BY to grab the one you want, or be sure that there's only one row.=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of subrahmanyam Uppuganti Sent: Wednesday, August 18, 2004 1:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] question on rownum Hi all, Does the following syntax work in sqr..else can some suggest me an alternative, I need to get only the first row Thanks subbu =20 Begin-Select lvl.DeptId lvl.DM_Dept_Lvl >From PS_dept-tbl lvl where effdt =3D (Select Max(Effdt) from PS_Dept_tbl lvl2 where lvl2.deptid =3Dlvl.deptid and effdt<=3D Sysdate) and lvl.DM_dept_lvl < =3D '11' and rownum =3D 1 <-----??????????? End-Select =20 =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 From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 20 18:03:11 2004 Date: Fri, 20 Aug 2004 18:02:15 -0500 From: "Turner, Ivan" Subject: [sqr-users] Date logic question Hello out there, I have another process writing an entry date to a table. I need to determine if 10 days have passed from that date before I can take action. Will the code below tell me if 10 days have passed using oracle? Will my "WHERE" clause work for an oracle db? LET #TIME_FRAME =3D 10 !--------------------------------------------------------------- ! Proc: 4050-check-grace-pd-expiration ! Desc: Determine grace period has expired before sending ! a disco message to the bus and disconnecting. !--------------------------------------------------------------- Begin-Procedure 4050-check-grace-pd-expiration Let $grace_expired =3D 'N' BEGIN-SELECT 'X' LET $grace_expired =3D 'Y' FROM DUAL where SYSDATE >=3D TO_DATE(&ENTRY_DT) + #TIME_FRAME END-SELECT End-Procedure 4050-check-grace-pd-expiration _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 20 18:16:07 2004 Date: Fri, 20 Aug 2004 18:13:37 -0500 From: Bob.Melosi@edwardjones.com Subject: RE: [sqr-users] Date logic question You will need to add the date format like below: TO_DATE(&ENTRY_DT,'dd-mon-yyyy') or what ever format your date is in. -----Original Message----- From: Ivan.Turner [mailto:Ivan.Turner@qwest.com] Sent: Friday, August 20, 2004 6:02 PM To: sqr-users Subject: [sqr-users] Date logic question Hello out there, I have another process writing an entry date to a table. I need to determine if 10 days have passed from that date before I can take action. Will the code below tell me if 10 days have passed using oracle? Will my "WHERE" clause work for an oracle db? LET #TIME_FRAME = 10 !--------------------------------------------------------------- ! Proc: 4050-check-grace-pd-expiration ! Desc: Determine grace period has expired before sending ! a disco message to the bus and disconnecting. !--------------------------------------------------------------- Begin-Procedure 4050-check-grace-pd-expiration Let $grace_expired = 'N' BEGIN-SELECT 'X' LET $grace_expired = 'Y' FROM DUAL where SYSDATE >= TO_DATE(&ENTRY_DT) + #TIME_FRAME END-SELECT End-Procedure 4050-check-grace-pd-expiration _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 20 18:21:26 2004 Date: Fri, 20 Aug 2004 18:20:24 -0500 From: Bob.Melosi@edwardjones.com Subject: RE: [sqr-users] Date logic question I take that back....You need to add the date format like 'dd-mon-yyyy' or 'dd-mm-yyyy' if your native db date format does not match &ENTRY_DT. -------------------------------------------------- You will need to add the date format like below: TO_DATE(&ENTRY_DT,'dd-mon-yyyy') or what ever format your date is in. -----Original Message----- From: Ivan.Turner [mailto:Ivan.Turner@qwest.com] Sent: Friday, August 20, 2004 6:02 PM To: sqr-users Subject: [sqr-users] Date logic question Hello out there, I have another process writing an entry date to a table. I need to determine if 10 days have passed from that date before I can take action. Will the code below tell me if 10 days have passed using oracle? Will my "WHERE" clause work for an oracle db? LET #TIME_FRAME = 10 !--------------------------------------------------------------- ! Proc: 4050-check-grace-pd-expiration ! Desc: Determine grace period has expired before sending ! a disco message to the bus and disconnecting. !--------------------------------------------------------------- Begin-Procedure 4050-check-grace-pd-expiration Let $grace_expired = 'N' BEGIN-SELECT 'X' LET $grace_expired = 'Y' FROM DUAL where SYSDATE >= TO_DATE(&ENTRY_DT) + #TIME_FRAME END-SELECT End-Procedure 4050-check-grace-pd-expiration _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 20 18:25:37 2004 Subject: RE: [sqr-users] Date logic question Date: Fri, 20 Aug 2004 18:24:57 -0500 From: "Turner, Ivan" Won't it all just default to the native db format? -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Bob.Melosi@edwardjones.com Sent: Friday, August 20, 2004 7:20 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Date logic question I take that back....You need to add the date format like 'dd-mon-yyyy'=20 or 'dd-mm-yyyy' if your native db date format does not match &ENTRY_DT. -------------------------------------------------- You will need to add the date format like below: TO_DATE(&ENTRY_DT,'dd-mon-yyyy') or what ever format your date is in. -----Original Message----- From: Ivan.Turner [mailto:Ivan.Turner@qwest.com] Sent: Friday, August 20, 2004 6:02 PM To: sqr-users Subject: [sqr-users] Date logic question Hello out there, I have another process writing an entry date to a table. I need to determine if 10 days have passed from that date before I can take action. Will the code below tell me if 10 days have passed using oracle? Will my "WHERE" clause work for an oracle db? LET #TIME_FRAME =3D 10 !--------------------------------------------------------------- ! Proc: 4050-check-grace-pd-expiration ! Desc: Determine grace period has expired before sending ! a disco message to the bus and disconnecting. !--------------------------------------------------------------- Begin-Procedure 4050-check-grace-pd-expiration Let $grace_expired =3D 'N' BEGIN-SELECT 'X' LET $grace_expired =3D 'Y' FROM DUAL where SYSDATE >=3D TO_DATE(&ENTRY_DT) + #TIME_FRAME END-SELECT End-Procedure 4050-check-grace-pd-expiration _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 20 18:29:46 2004 Date: Fri, 20 Aug 2004 18:28:43 -0500 From: Bob.Melosi@edwardjones.com Subject: RE: [sqr-users] Date logic question Yes, I thought your variable &ENTRY_DT was a string, but I now see it is a db variable. Sorry -----Original Message----- From: Ivan.Turner [mailto:Ivan.Turner@qwest.com] Sent: Friday, August 20, 2004 6:25 PM To: sqr-users Subject: RE: [sqr-users] Date logic question Won't it all just default to the native db format? -----Original Message----- From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of Bob.Melosi@edwardjones.com Sent: Friday, August 20, 2004 7:20 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Date logic question I take that back....You need to add the date format like 'dd-mon-yyyy' or 'dd-mm-yyyy' if your native db date format does not match &ENTRY_DT. -------------------------------------------------- You will need to add the date format like below: TO_DATE(&ENTRY_DT,'dd-mon-yyyy') or what ever format your date is in. -----Original Message----- From: Ivan.Turner [mailto:Ivan.Turner@qwest.com] Sent: Friday, August 20, 2004 6:02 PM To: sqr-users Subject: [sqr-users] Date logic question Hello out there, I have another process writing an entry date to a table. I need to determine if 10 days have passed from that date before I can take action. Will the code below tell me if 10 days have passed using oracle? Will my "WHERE" clause work for an oracle db? LET #TIME_FRAME = 10 !--------------------------------------------------------------- ! Proc: 4050-check-grace-pd-expiration ! Desc: Determine grace period has expired before sending ! a disco message to the bus and disconnecting. !--------------------------------------------------------------- Begin-Procedure 4050-check-grace-pd-expiration Let $grace_expired = 'N' BEGIN-SELECT 'X' LET $grace_expired = 'Y' FROM DUAL where SYSDATE >= TO_DATE(&ENTRY_DT) + #TIME_FRAME END-SELECT End-Procedure 4050-check-grace-pd-expiration _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 09:43:35 2004 Date: Mon, 23 Aug 2004 10:40:53 -0400 From: "George Jansen" Subject: Re: [sqr-users] Date logic question Why not in your superior select Begin-Select ... entry_dt Trunc(Sysdate - entry_dt) days_elapsed .. End-Select and then just use &days_elapsed? >>> Ivan.Turner@qwest.com 08/20/04 07:02PM >>> Hello out there, I have another process writing an entry date to a table. I need to determine if 10 days have passed from that date before I can take action. Will the code below tell me if 10 days have passed using oracle? Will my "WHERE" clause work for an oracle db? LET #TIME_FRAME = 10 !--------------------------------------------------------------- ! Proc: 4050-check-grace-pd-expiration ! Desc: Determine grace period has expired before sending ! a disco message to the bus and disconnecting. !--------------------------------------------------------------- Begin-Procedure 4050-check-grace-pd-expiration Let $grace_expired = 'N' BEGIN-SELECT 'X' LET $grace_expired = 'Y' FROM DUAL where SYSDATE >= TO_DATE(&ENTRY_DT) + #TIME_FRAME END-SELECT End-Procedure 4050-check-grace-pd-expiration _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 10:54:13 2004 From: Scott Eubank Date: Mon, 23 Aug 2004 11:51:10 -0400 Subject: [sqr-users] What has happened to Tony Delia? Has anyone see or heard from him ?!? His last post to his website was in 2001 =================================================================== NOTICE - CONFIDENTIAL AND PRIVILEGED - This e-mail may contain privileged and confidential information and is intended only for the addressee named above. If you received this message in error, please immediately notify the sender by return e-mail and delete the original message; any distribution, copying or use of this e-mail by you is strictly prohibited and may be unlawful. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 12:43:06 2004 Date: Mon, 23 Aug 2004 10:40:53 -0700 From: "Pierce, Bob \(DHS-PCFH-GDB-ITS\)" Subject: [sqr-users] UNION clause question Here is a code snippet using the union clause. It has a few problems. When compiling the SQR, the variables aliased as CU and DU are not defined.= They are listed below the UNION clause and I'm trying to reference them i= n the Begin-Select. The field names are the same for the tables aliased as C and CU, but are di= fferent for D and DU. I was told the &record command could be used to tell the SQR which select s= tatement to reference.=20=20 That does not seem to work. Can anyone help? We have 3 SQR books onsite and the UNION clause is not do= cumented in any of them.=20=20=20 begin-select A.GD_ENTITY_ID A.GD_ENTITY_OID A.GD_ENTITY_CLASS A.GD_EFFDT A.GD_ATTN_TO A.ADDRESS3 A.ADDRESS4 A.STATE A.CITY A.POSTAL B.GDB_PLB_NUM B.GDB_PLB_LTR_ID B.GDB_PLB_PERIOD B.GDB_PLB_TYPE C.GDB_LAST_BILL_DT D.AMOUNT let $GD_ENTITY_ID =3D &A.GD_ENTITY_ID let $GD_ENTITY_OID =3D &A.GD_ENTITY_OID let $GD_ENTITY_CLASS =3D upper(&A.GD_ENTITY_CLASS) let $GD_EFFDT =3D &A.GD_EFFDT let $GD_ATTN_TO =3D &A.GD_ATTN_TO let $ADDRESS3 =3D &A.ADDRESS3 let $ADDRESS4 =3D &A.ADDRESS4 let $STATE =3D &A.STATE let $CITY =3D &A.CITY let $POSTAL =3D &A.POSTAL let #GDB_PLB_NUM =3D &B.GDB_PLB_NUM let $GDB_PLB_LTR_ID =3D &B.GDB_PLB_LTR_ID let $GDB_PLB_PERIOD =3D &B.GDB_PLB_PERIOD let $GDB_PLB_TYPE =3D &B.GDB_PLB_TYPE if &record =3D 1 let $GDB_LAST_BILL_DT =3D &C.GDB_LAST_BILL_DT let #AMOUNT =3D &D.AMOUNT else let $GDB_LAST_BILL_DT =3D &CU.GDB_LAST_BILL_DT let #AMOUNT =3D &DU.GDB_AMOUNT end-if if $GD_ENTITY_OID <> $Previous_Facility or #GDB_PLB_NUM <> #Previous_Invoice if not isnull($Previous_Facility) let $Previous_Invoice =3D edit(#Previous_Invoice, '999999999999= 9999') let $Total_Amount =3D edit(#Total_Amount, '9,999,99= 9.99') do Write-Detail-Record let #Total_Amount =3D 0 if $GD_ENTITY_OID <> $Previous_Facility add 1 to #Facilities end-if end-if end-if if $Program <> $Previous_Program if &record =3D 1 let $Bill_Date =3D substr(&C.GDB_LAST_BILL_DT, 1, 10) else let $Bill_Date =3D substr(&CU.GDB_LAST_BILL_DT, 1, 10) end-if let $Previous_Program =3D $Program do Write-Program-Record add 1 to #Programs_Summarized end-if if $GD_ENTITY_CLASS <> $Previous_Class do Write-Entity-Class-Record add 1 to #Entity_Classes end-if let $Previous_Class =3D $GD_ENTITY_CLASS let $Previous_Facility =3D $GD_ENTITY_OID let $Previous_Period =3D $GDB_PLB_PERIOD let $Previous_City =3D $CITY let #Previous_Invoice =3D #GDB_PLB_NUM add #AMOUNT to #Total_Amount add 1 to #Detail_Records_Summarized from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_CASE C , PS_GDB_CASE_LINE D where A.GD_ENTITY_CLASS like 'Kaiser%' and C.GDB_ACCESSION_NUM like $Program_Prefix and A.GD_ADDR_CLASS =3D $Address_Class and A.GD_ENTITY_ID =3D B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD =3D $Target_PLB_Period and C.GDB_PLB_NUM =3D B.GDB_PLB_NUM and D.GDB_ACCESSION_NUM =3D C.GDB_ACCESSION_NUM and D.GDB_BILLABLE_STAT =3D 'Y' =20=20=20 UNION SELECT A.GD_ENTITY_ID, A.GD_ENTITY_OID, A.GD_ENTITY_CLASS, A.GD_EFFDT, A.GD_ATTN_TO, A.ADDRESS3, A.ADDRESS4, A.STATE, A.CITY, A.POSTAL, B.GDB_PLB_NUM, B.GDB_PLB_LTR_ID, B.GDB_PLB_PERIOD, B.GDB_PLB_TYPE, CU.GDB_LAST_BILL_DT, DU.GDB_AMOUNT =20 from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_EVENT CU , PS_GDB_EVENT_LINE DU where A.GD_ENTITY_CLASS like 'Kaiser%' and A.GD_ADDR_CLASS =3D $Address_Class and A.GD_ENTITY_ID =3D B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD =3D $Target_PLB_Period and (B.GDB_PLB_NUM =3D CU.GDB_PLB_NUM and CU.GDB_EVENT_ID =3D DU.GDB_EVENT_ID) =20=20=20=20 order by A.GD_ENTITY_CLASS , A.GD_ENTITY_OID , A.CITY end-select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 12:49:44 2004 From: James Womeldorf Subject: RE: [sqr-users] UNION clause question Date: Mon, 23 Aug 2004 12:46:33 -0500 I believe when using a UNION all the sqr references must be made to the select that precedes the first UNION. Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Pierce, Bob (DHS-PCFH-GDB-ITS) Sent: Monday, August 23, 2004 12:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] UNION clause question Here is a code snippet using the union clause. It has a few problems. When compiling the SQR, the variables aliased as CU and DU are not defined. They are listed below the UNION clause and I'm trying to reference them in the Begin-Select. The field names are the same for the tables aliased as C and CU, but are different for D and DU. I was told the &record command could be used to tell the SQR which select statement to reference. That does not seem to work. Can anyone help? We have 3 SQR books onsite and the UNION clause is not documented in any of them. begin-select A.GD_ENTITY_ID A.GD_ENTITY_OID A.GD_ENTITY_CLASS A.GD_EFFDT A.GD_ATTN_TO A.ADDRESS3 A.ADDRESS4 A.STATE A.CITY A.POSTAL B.GDB_PLB_NUM B.GDB_PLB_LTR_ID B.GDB_PLB_PERIOD B.GDB_PLB_TYPE C.GDB_LAST_BILL_DT D.AMOUNT let $GD_ENTITY_ID = &A.GD_ENTITY_ID let $GD_ENTITY_OID = &A.GD_ENTITY_OID let $GD_ENTITY_CLASS = upper(&A.GD_ENTITY_CLASS) let $GD_EFFDT = &A.GD_EFFDT let $GD_ATTN_TO = &A.GD_ATTN_TO let $ADDRESS3 = &A.ADDRESS3 let $ADDRESS4 = &A.ADDRESS4 let $STATE = &A.STATE let $CITY = &A.CITY let $POSTAL = &A.POSTAL let #GDB_PLB_NUM = &B.GDB_PLB_NUM let $GDB_PLB_LTR_ID = &B.GDB_PLB_LTR_ID let $GDB_PLB_PERIOD = &B.GDB_PLB_PERIOD let $GDB_PLB_TYPE = &B.GDB_PLB_TYPE if &record = 1 let $GDB_LAST_BILL_DT = &C.GDB_LAST_BILL_DT let #AMOUNT = &D.AMOUNT else let $GDB_LAST_BILL_DT = &CU.GDB_LAST_BILL_DT let #AMOUNT = &DU.GDB_AMOUNT end-if if $GD_ENTITY_OID <> $Previous_Facility or #GDB_PLB_NUM <> #Previous_Invoice if not isnull($Previous_Facility) let $Previous_Invoice = edit(#Previous_Invoice, '9999999999999999') let $Total_Amount = edit(#Total_Amount, '9,999,999.99') do Write-Detail-Record let #Total_Amount = 0 if $GD_ENTITY_OID <> $Previous_Facility add 1 to #Facilities end-if end-if end-if if $Program <> $Previous_Program if &record = 1 let $Bill_Date = substr(&C.GDB_LAST_BILL_DT, 1, 10) else let $Bill_Date = substr(&CU.GDB_LAST_BILL_DT, 1, 10) end-if let $Previous_Program = $Program do Write-Program-Record add 1 to #Programs_Summarized end-if if $GD_ENTITY_CLASS <> $Previous_Class do Write-Entity-Class-Record add 1 to #Entity_Classes end-if let $Previous_Class = $GD_ENTITY_CLASS let $Previous_Facility = $GD_ENTITY_OID let $Previous_Period = $GDB_PLB_PERIOD let $Previous_City = $CITY let #Previous_Invoice = #GDB_PLB_NUM add #AMOUNT to #Total_Amount add 1 to #Detail_Records_Summarized from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_CASE C , PS_GDB_CASE_LINE D where A.GD_ENTITY_CLASS like 'Kaiser%' and C.GDB_ACCESSION_NUM like $Program_Prefix and A.GD_ADDR_CLASS = $Address_Class and A.GD_ENTITY_ID = B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD = $Target_PLB_Period and C.GDB_PLB_NUM = B.GDB_PLB_NUM and D.GDB_ACCESSION_NUM = C.GDB_ACCESSION_NUM and D.GDB_BILLABLE_STAT = 'Y' UNION SELECT A.GD_ENTITY_ID, A.GD_ENTITY_OID, A.GD_ENTITY_CLASS, A.GD_EFFDT, A.GD_ATTN_TO, A.ADDRESS3, A.ADDRESS4, A.STATE, A.CITY, A.POSTAL, B.GDB_PLB_NUM, B.GDB_PLB_LTR_ID, B.GDB_PLB_PERIOD, B.GDB_PLB_TYPE, CU.GDB_LAST_BILL_DT, DU.GDB_AMOUNT from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_EVENT CU , PS_GDB_EVENT_LINE DU where A.GD_ENTITY_CLASS like 'Kaiser%' and A.GD_ADDR_CLASS = $Address_Class and A.GD_ENTITY_ID = B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD = $Target_PLB_Period and (B.GDB_PLB_NUM = CU.GDB_PLB_NUM and CU.GDB_EVENT_ID = DU.GDB_EVENT_ID) order by A.GD_ENTITY_CLASS , A.GD_ENTITY_OID , A.CITY end-select _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 12:52:48 2004 Date: Mon, 23 Aug 2004 13:47:39 -0400 From: "Larry Roux" Subject: Re: [sqr-users] UNION clause question You used the alias A and B multiple times. Try making sure you only use an alias once and see if the CU/DU issue goes away. Larry Roux Syracuse University lroux@syr.edu >>> BPierce@dhs.ca.gov 8/23/2004 1:40:53 PM >>> Here is a code snippet using the union clause. It has a few problems. When compiling the SQR, the variables aliased as CU and DU are not defined. They are listed below the UNION clause and I'm trying to reference them in the Begin-Select. The field names are the same for the tables aliased as C and CU, but are different for D and DU. I was told the &record command could be used to tell the SQR which select statement to reference. That does not seem to work. Can anyone help? We have 3 SQR books onsite and the UNION clause is not documented in any of them. begin-select A.GD_ENTITY_ID A.GD_ENTITY_OID A.GD_ENTITY_CLASS A.GD_EFFDT A.GD_ATTN_TO A.ADDRESS3 A.ADDRESS4 A.STATE A.CITY A.POSTAL B.GDB_PLB_NUM B.GDB_PLB_LTR_ID B.GDB_PLB_PERIOD B.GDB_PLB_TYPE C.GDB_LAST_BILL_DT D.AMOUNT let $GD_ENTITY_ID = &A.GD_ENTITY_ID let $GD_ENTITY_OID = &A.GD_ENTITY_OID let $GD_ENTITY_CLASS = upper(&A.GD_ENTITY_CLASS) let $GD_EFFDT = &A.GD_EFFDT let $GD_ATTN_TO = &A.GD_ATTN_TO let $ADDRESS3 = &A.ADDRESS3 let $ADDRESS4 = &A.ADDRESS4 let $STATE = &A.STATE let $CITY = &A.CITY let $POSTAL = &A.POSTAL let #GDB_PLB_NUM = &B.GDB_PLB_NUM let $GDB_PLB_LTR_ID = &B.GDB_PLB_LTR_ID let $GDB_PLB_PERIOD = &B.GDB_PLB_PERIOD let $GDB_PLB_TYPE = &B.GDB_PLB_TYPE if &record = 1 let $GDB_LAST_BILL_DT = &C.GDB_LAST_BILL_DT let #AMOUNT = &D.AMOUNT else let $GDB_LAST_BILL_DT = &CU.GDB_LAST_BILL_DT let #AMOUNT = &DU.GDB_AMOUNT end-if if $GD_ENTITY_OID <> $Previous_Facility or #GDB_PLB_NUM <> #Previous_Invoice if not isnull($Previous_Facility) let $Previous_Invoice = edit(#Previous_Invoice, '9999999999999999') let $Total_Amount = edit(#Total_Amount, '9,999,999.99') do Write-Detail-Record let #Total_Amount = 0 if $GD_ENTITY_OID <> $Previous_Facility add 1 to #Facilities end-if end-if end-if if $Program <> $Previous_Program if &record = 1 let $Bill_Date = substr(&C.GDB_LAST_BILL_DT, 1, 10) else let $Bill_Date = substr(&CU.GDB_LAST_BILL_DT, 1, 10) end-if let $Previous_Program = $Program do Write-Program-Record add 1 to #Programs_Summarized end-if if $GD_ENTITY_CLASS <> $Previous_Class do Write-Entity-Class-Record add 1 to #Entity_Classes end-if let $Previous_Class = $GD_ENTITY_CLASS let $Previous_Facility = $GD_ENTITY_OID let $Previous_Period = $GDB_PLB_PERIOD let $Previous_City = $CITY let #Previous_Invoice = #GDB_PLB_NUM add #AMOUNT to #Total_Amount add 1 to #Detail_Records_Summarized from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_CASE C , PS_GDB_CASE_LINE D where A.GD_ENTITY_CLASS like 'Kaiser%' and C.GDB_ACCESSION_NUM like $Program_Prefix and A.GD_ADDR_CLASS = $Address_Class and A.GD_ENTITY_ID = B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD = $Target_PLB_Period and C.GDB_PLB_NUM = B.GDB_PLB_NUM and D.GDB_ACCESSION_NUM = C.GDB_ACCESSION_NUM and D.GDB_BILLABLE_STAT = 'Y' UNION SELECT A.GD_ENTITY_ID, A.GD_ENTITY_OID, A.GD_ENTITY_CLASS, A.GD_EFFDT, A.GD_ATTN_TO, A.ADDRESS3, A.ADDRESS4, A.STATE, A.CITY, A.POSTAL, B.GDB_PLB_NUM, B.GDB_PLB_LTR_ID, B.GDB_PLB_PERIOD, B.GDB_PLB_TYPE, CU.GDB_LAST_BILL_DT, DU.GDB_AMOUNT from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_EVENT CU , PS_GDB_EVENT_LINE DU where A.GD_ENTITY_CLASS like 'Kaiser%' and A.GD_ADDR_CLASS = $Address_Class and A.GD_ENTITY_ID = B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD = $Target_PLB_Period and (B.GDB_PLB_NUM = CU.GDB_PLB_NUM and CU.GDB_EVENT_ID = DU.GDB_EVENT_ID) order by A.GD_ENTITY_CLASS , A.GD_ENTITY_OID , A.CITY end-select _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 13:27:02 2004 Date: Mon, 23 Aug 2004 14:23:52 -0400 From: "Jessie Dickenson" Subject: Re: [sqr-users] UNION clause question 1. I believe the ORDER BY Clause cannot refer to column names, in a UNION select - I could be wrong. So use the ordinal references instead. 2. Try using explicit column variables. So, your select could look like: BEGIN-SELECT TABLE_NAME1.COLUMN_1 &col_1 TABLE_NAME1.COLUMN_2 &col_2 TABLE_NAME1.COLUMN_3 &col_3 UNION SELECT TABLE_NAME1.COLUMN_1 TABLE_NAME1.COLUMN_2 TABLE_NAME1.COLUMN_3 FROM SCHEMA_1.TABLE_NAME1 TABLE_NAME1 WHERE UNION SELECT TABLE_NAME1.COLUMN_1 TABLE_NAME1.COLUMN_2 TABLE_NAME1.COLUMN_3 FROM SCHEMA_1.TABLE_NAME1 TABLE_NAME1 WHERE ORDER BY 3, 4 Hope this helps. Thanks, Jessie >>> BPierce@dhs.ca.gov 8/23/2004 1:40:53 PM >>> Here is a code snippet using the union clause. It has a few problems. When compiling the SQR, the variables aliased as CU and DU are not defined. They are listed below the UNION clause and I'm trying to reference them in the Begin-Select. The field names are the same for the tables aliased as C and CU, but are different for D and DU. I was told the &record command could be used to tell the SQR which select statement to reference. That does not seem to work. Can anyone help? We have 3 SQR books onsite and the UNION clause is not documented in any of them. begin-select A.GD_ENTITY_ID A.GD_ENTITY_OID A.GD_ENTITY_CLASS A.GD_EFFDT A.GD_ATTN_TO A.ADDRESS3 A.ADDRESS4 A.STATE A.CITY A.POSTAL B.GDB_PLB_NUM B.GDB_PLB_LTR_ID B.GDB_PLB_PERIOD B.GDB_PLB_TYPE C.GDB_LAST_BILL_DT D.AMOUNT let $GD_ENTITY_ID = &A.GD_ENTITY_ID let $GD_ENTITY_OID = &A.GD_ENTITY_OID let $GD_ENTITY_CLASS = upper(&A.GD_ENTITY_CLASS) let $GD_EFFDT = &A.GD_EFFDT let $GD_ATTN_TO = &A.GD_ATTN_TO let $ADDRESS3 = &A.ADDRESS3 let $ADDRESS4 = &A.ADDRESS4 let $STATE = &A.STATE let $CITY = &A.CITY let $POSTAL = &A.POSTAL let #GDB_PLB_NUM = &B.GDB_PLB_NUM let $GDB_PLB_LTR_ID = &B.GDB_PLB_LTR_ID let $GDB_PLB_PERIOD = &B.GDB_PLB_PERIOD let $GDB_PLB_TYPE = &B.GDB_PLB_TYPE if &record = 1 let $GDB_LAST_BILL_DT = &C.GDB_LAST_BILL_DT let #AMOUNT = &D.AMOUNT else let $GDB_LAST_BILL_DT = &CU.GDB_LAST_BILL_DT let #AMOUNT = &DU.GDB_AMOUNT end-if if $GD_ENTITY_OID <> $Previous_Facility or #GDB_PLB_NUM <> #Previous_Invoice if not isnull($Previous_Facility) let $Previous_Invoice = edit(#Previous_Invoice, '9999999999999999') let $Total_Amount = edit(#Total_Amount, '9,999,999.99') do Write-Detail-Record let #Total_Amount = 0 if $GD_ENTITY_OID <> $Previous_Facility add 1 to #Facilities end-if end-if end-if if $Program <> $Previous_Program if &record = 1 let $Bill_Date = substr(&C.GDB_LAST_BILL_DT, 1, 10) else let $Bill_Date = substr(&CU.GDB_LAST_BILL_DT, 1, 10) end-if let $Previous_Program = $Program do Write-Program-Record add 1 to #Programs_Summarized end-if if $GD_ENTITY_CLASS <> $Previous_Class do Write-Entity-Class-Record add 1 to #Entity_Classes end-if let $Previous_Class = $GD_ENTITY_CLASS let $Previous_Facility = $GD_ENTITY_OID let $Previous_Period = $GDB_PLB_PERIOD let $Previous_City = $CITY let #Previous_Invoice = #GDB_PLB_NUM add #AMOUNT to #Total_Amount add 1 to #Detail_Records_Summarized from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_CASE C , PS_GDB_CASE_LINE D where A.GD_ENTITY_CLASS like 'Kaiser%' and C.GDB_ACCESSION_NUM like $Program_Prefix and A.GD_ADDR_CLASS = $Address_Class and A.GD_ENTITY_ID = B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD = $Target_PLB_Period and C.GDB_PLB_NUM = B.GDB_PLB_NUM and D.GDB_ACCESSION_NUM = C.GDB_ACCESSION_NUM and D.GDB_BILLABLE_STAT = 'Y' UNION SELECT A.GD_ENTITY_ID, A.GD_ENTITY_OID, A.GD_ENTITY_CLASS, A.GD_EFFDT, A.GD_ATTN_TO, A.ADDRESS3, A.ADDRESS4, A.STATE, A.CITY, A.POSTAL, B.GDB_PLB_NUM, B.GDB_PLB_LTR_ID, B.GDB_PLB_PERIOD, B.GDB_PLB_TYPE, CU.GDB_LAST_BILL_DT, DU.GDB_AMOUNT from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_EVENT CU , PS_GDB_EVENT_LINE DU where A.GD_ENTITY_CLASS like 'Kaiser%' and A.GD_ADDR_CLASS = $Address_Class and A.GD_ENTITY_ID = B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD = $Target_PLB_Period and (B.GDB_PLB_NUM = CU.GDB_PLB_NUM and CU.GDB_EVENT_ID = DU.GDB_EVENT_ID) order by A.GD_ENTITY_CLASS , A.GD_ENTITY_OID , A.CITY end-select _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 14:15:51 2004 Subject: RE: [sqr-users] UNION clause question Date: Mon, 23 Aug 2004 14:12:06 -0500 From: "Kent Schaetzly" CU and DU references are not available. All reference variables are for th= e first select of a unioned query, in your case A, B, C, and D. I have had= an occasion where I needed to differentiate which query produced the data = in the column and coded around this by including a constant in the query, u= sually 1 for the first query and 2 for the second, referenced as query_num. -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of Pierce, Bob (DHS-PCFH-GDB-ITS) Sent: Monday, August 23, 2004 12:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] UNION clause question Here is a code snippet using the union clause. It has a few problems. When compiling the SQR, the variables aliased as CU and DU are not defined.= They are listed below the UNION clause and I'm trying to reference them i= n the Begin-Select. The field names are the same for the tables aliased as C and CU, but are di= fferent for D and DU. I was told the &record command could be used to tell the SQR which select s= tatement to reference.=20=20 That does not seem to work. Can anyone help? We have 3 SQR books onsite and the UNION clause is not do= cumented in any of them.=20=20=20 begin-select A.GD_ENTITY_ID A.GD_ENTITY_OID A.GD_ENTITY_CLASS A.GD_EFFDT A.GD_ATTN_TO A.ADDRESS3 A.ADDRESS4 A.STATE A.CITY A.POSTAL B.GDB_PLB_NUM B.GDB_PLB_LTR_ID B.GDB_PLB_PERIOD B.GDB_PLB_TYPE C.GDB_LAST_BILL_DT D.AMOUNT let $GD_ENTITY_ID =3D &A.GD_ENTITY_ID let $GD_ENTITY_OID =3D &A.GD_ENTITY_OID let $GD_ENTITY_CLASS =3D upper(&A.GD_ENTITY_CLASS) let $GD_EFFDT =3D &A.GD_EFFDT let $GD_ATTN_TO =3D &A.GD_ATTN_TO let $ADDRESS3 =3D &A.ADDRESS3 let $ADDRESS4 =3D &A.ADDRESS4 let $STATE =3D &A.STATE let $CITY =3D &A.CITY let $POSTAL =3D &A.POSTAL let #GDB_PLB_NUM =3D &B.GDB_PLB_NUM let $GDB_PLB_LTR_ID =3D &B.GDB_PLB_LTR_ID let $GDB_PLB_PERIOD =3D &B.GDB_PLB_PERIOD let $GDB_PLB_TYPE =3D &B.GDB_PLB_TYPE if &record =3D 1 let $GDB_LAST_BILL_DT =3D &C.GDB_LAST_BILL_DT let #AMOUNT =3D &D.AMOUNT else let $GDB_LAST_BILL_DT =3D &CU.GDB_LAST_BILL_DT let #AMOUNT =3D &DU.GDB_AMOUNT end-if if $GD_ENTITY_OID <> $Previous_Facility or #GDB_PLB_NUM <> #Previous_Invoice if not isnull($Previous_Facility) let $Previous_Invoice =3D edit(#Previous_Invoice, '999999999999= 9999') let $Total_Amount =3D edit(#Total_Amount, '9,999,99= 9.99') do Write-Detail-Record let #Total_Amount =3D 0 if $GD_ENTITY_OID <> $Previous_Facility add 1 to #Facilities end-if end-if end-if if $Program <> $Previous_Program if &record =3D 1 let $Bill_Date =3D substr(&C.GDB_LAST_BILL_DT, 1, 10) else let $Bill_Date =3D substr(&CU.GDB_LAST_BILL_DT, 1, 10) end-if let $Previous_Program =3D $Program do Write-Program-Record add 1 to #Programs_Summarized end-if if $GD_ENTITY_CLASS <> $Previous_Class do Write-Entity-Class-Record add 1 to #Entity_Classes end-if let $Previous_Class =3D $GD_ENTITY_CLASS let $Previous_Facility =3D $GD_ENTITY_OID let $Previous_Period =3D $GDB_PLB_PERIOD let $Previous_City =3D $CITY let #Previous_Invoice =3D #GDB_PLB_NUM add #AMOUNT to #Total_Amount add 1 to #Detail_Records_Summarized from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_CASE C , PS_GDB_CASE_LINE D where A.GD_ENTITY_CLASS like 'Kaiser%' and C.GDB_ACCESSION_NUM like $Program_Prefix and A.GD_ADDR_CLASS =3D $Address_Class and A.GD_ENTITY_ID =3D B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD =3D $Target_PLB_Period and C.GDB_PLB_NUM =3D B.GDB_PLB_NUM and D.GDB_ACCESSION_NUM =3D C.GDB_ACCESSION_NUM and D.GDB_BILLABLE_STAT =3D 'Y' =20=20=20 UNION SELECT A.GD_ENTITY_ID, A.GD_ENTITY_OID, A.GD_ENTITY_CLASS, A.GD_EFFDT, A.GD_ATTN_TO, A.ADDRESS3, A.ADDRESS4, A.STATE, A.CITY, A.POSTAL, B.GDB_PLB_NUM, B.GDB_PLB_LTR_ID, B.GDB_PLB_PERIOD, B.GDB_PLB_TYPE, CU.GDB_LAST_BILL_DT, DU.GDB_AMOUNT =20 from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_EVENT CU , PS_GDB_EVENT_LINE DU where A.GD_ENTITY_CLASS like 'Kaiser%' and A.GD_ADDR_CLASS =3D $Address_Class and A.GD_ENTITY_ID =3D B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD =3D $Target_PLB_Period and (B.GDB_PLB_NUM =3D CU.GDB_PLB_NUM and CU.GDB_EVENT_ID =3D DU.GDB_EVENT_ID) =20=20=20=20 order by A.GD_ENTITY_CLASS , A.GD_ENTITY_OID , A.CITY end-select _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 23 14:18:48 2004 Subject: RE: [sqr-users] UNION clause question Date: Mon, 23 Aug 2004 14:14:03 -0500 From: "Turner, Ivan" Note the commas in the attributes associated with the select in the union. begin-select BUSINESS_UNIT &BUSINESS_UNIT CUST_ID &CUST_ID ITEM &ITEM ENTRY_TYPE &ENTRY_TYPE ENTRY_REASON &ENTRY_REASON ENTRY_AMT &ENTRY_AMT ENTRY_CURRENCY &ENTRY_CURRENCY ENTRY_AMT_BASE &ENTRY_AMT_BASE PAYMENT_SEQ_NUM=20 ... FROM PS_ITEM_ACTIVITY WHERE DEPOSIT_BU =3D $deposit_bu AND DEPOSIT_ID =3D $deposit_id AND PAYMENT_SEQ_NUM =3D #payment_seq_num UNION ALL SELECT BUSINESS_UNIT, CUST_ID, ITEM, ENTRY_TYPE, ENTRY_REASON, ENTRY_AMT, ENTRY_CURRENCY, ENTRY_AMT_BASE, PAYMENT_SEQ_NUM FROM PS_ITEM_ACT_ARCH_L WHERE DEPOSIT_BU =3D $deposit_bu AND DEPOSIT_ID =3D $deposit_id AND PAYMENT_SEQ_NUM =3D #payment_seq_num ORDER BY 9 end-select -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Jessie Dickenson Sent: Monday, August 23, 2004 2:24 PM To: BPierce@dhs.ca.gov; sqr-users@sqrug.org Subject: Re: [sqr-users] UNION clause question 1. I believe the ORDER BY Clause cannot refer to column names, in a UNION select - I could be wrong. So use the ordinal references instead. 2. Try using explicit column variables. So, your select could look like: BEGIN-SELECT TABLE_NAME1.COLUMN_1 &col_1 TABLE_NAME1.COLUMN_2 &col_2 TABLE_NAME1.COLUMN_3 &col_3 UNION SELECT TABLE_NAME1.COLUMN_1=20=20=20=20=20=20 TABLE_NAME1.COLUMN_2=20=20=20=20=20=20 TABLE_NAME1.COLUMN_3 FROM SCHEMA_1.TABLE_NAME1 TABLE_NAME1 WHERE UNION SELECT TABLE_NAME1.COLUMN_1 TABLE_NAME1.COLUMN_2 TABLE_NAME1.COLUMN_3 FROM SCHEMA_1.TABLE_NAME1 TABLE_NAME1 WHERE =20 ORDER BY 3, 4 Hope this helps. Thanks, Jessie >>> BPierce@dhs.ca.gov 8/23/2004 1:40:53 PM >>> Here is a code snippet using the union clause. It has a few problems. When compiling the SQR, the variables aliased as CU and DU are not defined. They are listed below the UNION clause and I'm trying to reference them in the Begin-Select. The field names are the same for the tables aliased as C and CU, but are different for D and DU. I was told the &record command could be used to tell the SQR which select statement to reference.=20=20 That does not seem to work. Can anyone help? We have 3 SQR books onsite and the UNION clause is not documented in any of them.=20=20=20 begin-select A.GD_ENTITY_ID A.GD_ENTITY_OID A.GD_ENTITY_CLASS A.GD_EFFDT A.GD_ATTN_TO A.ADDRESS3 A.ADDRESS4 A.STATE A.CITY A.POSTAL B.GDB_PLB_NUM B.GDB_PLB_LTR_ID B.GDB_PLB_PERIOD B.GDB_PLB_TYPE C.GDB_LAST_BILL_DT D.AMOUNT let $GD_ENTITY_ID =3D &A.GD_ENTITY_ID let $GD_ENTITY_OID =3D &A.GD_ENTITY_OID let $GD_ENTITY_CLASS =3D upper(&A.GD_ENTITY_CLASS) let $GD_EFFDT =3D &A.GD_EFFDT let $GD_ATTN_TO =3D &A.GD_ATTN_TO let $ADDRESS3 =3D &A.ADDRESS3 let $ADDRESS4 =3D &A.ADDRESS4 let $STATE =3D &A.STATE let $CITY =3D &A.CITY let $POSTAL =3D &A.POSTAL let #GDB_PLB_NUM =3D &B.GDB_PLB_NUM let $GDB_PLB_LTR_ID =3D &B.GDB_PLB_LTR_ID let $GDB_PLB_PERIOD =3D &B.GDB_PLB_PERIOD let $GDB_PLB_TYPE =3D &B.GDB_PLB_TYPE if &record =3D 1 let $GDB_LAST_BILL_DT =3D &C.GDB_LAST_BILL_DT let #AMOUNT =3D &D.AMOUNT else let $GDB_LAST_BILL_DT =3D &CU.GDB_LAST_BILL_DT let #AMOUNT =3D &DU.GDB_AMOUNT end-if if $GD_ENTITY_OID <> $Previous_Facility or #GDB_PLB_NUM <> #Previous_Invoice if not isnull($Previous_Facility) let $Previous_Invoice =3D edit(#Previous_Invoice, '9999999999999999') let $Total_Amount =3D edit(#Total_Amount,=20=20=20=20=20=20= =20=20 '9,999,999.99') do Write-Detail-Record let #Total_Amount =3D 0 if $GD_ENTITY_OID <> $Previous_Facility add 1 to #Facilities end-if end-if end-if if $Program <> $Previous_Program if &record =3D 1 let $Bill_Date =3D substr(&C.GDB_LAST_BILL_DT, 1, 10) else let $Bill_Date =3D substr(&CU.GDB_LAST_BILL_DT, 1, 10) end-if let $Previous_Program =3D $Program do Write-Program-Record add 1 to #Programs_Summarized end-if if $GD_ENTITY_CLASS <> $Previous_Class do Write-Entity-Class-Record add 1 to #Entity_Classes end-if let $Previous_Class =3D $GD_ENTITY_CLASS let $Previous_Facility =3D $GD_ENTITY_OID let $Previous_Period =3D $GDB_PLB_PERIOD let $Previous_City =3D $CITY let #Previous_Invoice =3D #GDB_PLB_NUM add #AMOUNT to #Total_Amount add 1 to #Detail_Records_Summarized from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_CASE C , PS_GDB_CASE_LINE D where A.GD_ENTITY_CLASS like 'Kaiser%' and C.GDB_ACCESSION_NUM like $Program_Prefix and A.GD_ADDR_CLASS =3D $Address_Class and A.GD_ENTITY_ID =3D B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD =3D $Target_PLB_Period and C.GDB_PLB_NUM =3D B.GDB_PLB_NUM and D.GDB_ACCESSION_NUM =3D C.GDB_ACCESSION_NUM and D.GDB_BILLABLE_STAT =3D 'Y' =20=20=20 UNION SELECT A.GD_ENTITY_ID, A.GD_ENTITY_OID, A.GD_ENTITY_CLASS, A.GD_EFFDT, A.GD_ATTN_TO, A.ADDRESS3, A.ADDRESS4, A.STATE, A.CITY, A.POSTAL, B.GDB_PLB_NUM, B.GDB_PLB_LTR_ID, B.GDB_PLB_PERIOD, B.GDB_PLB_TYPE, CU.GDB_LAST_BILL_DT, DU.GDB_AMOUNT =20 from PS_GD_LTR_ALL_VW A , PS_GDB_PRVDR_BILL B , PS_GDB_EVENT CU , PS_GDB_EVENT_LINE DU where A.GD_ENTITY_CLASS like 'Kaiser%' and A.GD_ADDR_CLASS =3D $Address_Class and A.GD_ENTITY_ID =3D B.GDB_PLB_LTR_ID and B.GDB_PLB_PERIOD =3D $Target_PLB_Period and (B.GDB_PLB_NUM =3D CU.GDB_PLB_NUM and CU.GDB_EVENT_ID =3D DU.GDB_EVENT_ID) =20=20=20=20 order by A.GD_ENTITY_CLASS , A.GD_ENTITY_OID , A.CITY end-select _______________________________________________ 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 24 14:31:43 2004 Date: Tue, 24 Aug 2004 12:30:39 -0700 (PDT) From: Krishna Subject: [sqr-users] RE: Generating a Report Hello there, Can anyone please tell me why is SQR when running in Report Builder generates a report using the layout declared in the Declare-Layout section of the code, but when I copy the same code to unix Sun Server and execute the report on the sun box, the report gets generated but the data is not formatted and on the other hand it does not print any graphics like horizontal and veritcal lines that I am drawing in the report. Your immediate input is highly appreciated. I looked into the manuals, and could not find anything which could help me out. I am sure that some users may have faced the same problem, your solution is greatly appreciated. Thank You Kris --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 24 16:54:14 2004 From: CAllo@hinda.com Date: Tue, 24 Aug 2004 16:51:16 -0500 Subject: [sqr-users] Problem Creating Postscript output Hi all Does anyone have an example of the setup portion of an sqr that creates postscript output? I am trying to convert one of my sqrs from PDF to PS and I'm having an issue where the output is shrunk and up in top left corner of the page and I'm just wondering if anyone has any pointers on using postscript or switching to postscript from pdf. Chris This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 24 21:55:50 2004 Date: Tue, 24 Aug 2004 19:53:17 -0700 (PDT) From: Enrique Munoz Subject: [sqr-users] Error Fonts SQR 8.2 and Linux Red Hat 8 Hi gurus, I have trouble with fonts in SQR 8.2 for Oracle on Linux Red Hat 8 The special characters in spanish isn't showing on the output file. By example, the text 'CATÁLOGO' appers on the output file like 'CATLOGO'. The sqr is "eating" theses characters ñ,á,é,í,ó,ú,Á,É,Í,Ó,Ú. Any ideas? Thanks !! _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 00:17:53 2004 From: "RITTER, Philippe" Subject: RE : [sqr-users] Error Fonts SQR 8.2 and Linux Red Hat 8 Date: Wed, 25 Aug 2004 07:16:44 +0200 Hello, Look in your SQR.INI. You have to define this characters. They are commented by default. Regards Philippe RITTER -----Message d'origine----- De : Enrique Munoz [mailto:ryhen2000@yahoo.com]=20 Envoy=E9 : mercredi, 25. ao=FBt 2004 04:53 =C0 : sqr-users@sqrug.org Objet : [sqr-users] Error Fonts SQR 8.2 and Linux Red Hat 8 Hi gurus, I have trouble with fonts in SQR 8.2 for Oracle on Linux Red Hat 8 The special characters in spanish isn't showing on the output file.=20 By example, the text 'CAT=C1LOGO' appers on the output file like 'CATLOGO'.=20 The sqr is "eating" theses characters =F1,=E1,=E9,=ED,=F3,=FA,=C1,=C9,=CD,=D3,=DA.=20 Any ideas? Thanks !! =09=09 _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 10:19:50 2004 Date: Wed, 25 Aug 2004 08:17:16 -0700 (PDT) From: Enrique Munoz Subject: RE : [sqr-users] Error Fonts SQR 8.2 and Linux Red Hat 8 Hello Philippe, Thank you for your answer, but I am a rookie in sqr, Can you tell me more details about it? How can I do it? Thanks in advance Enrique --- sqr-users-request@sqrug.org wrote: > From: "RITTER, Philippe" > Subject: RE : [sqr-users] Error Fonts SQR 8.2 and > Linux Red Hat 8 > Date: Wed, 25 Aug 2004 07:16:44 +0200 > To: "'This list is for discussion about the SQR > database reporting language > from Hyperion Solutions.'" > > Hello, > > Look in your SQR.INI. You have to define this > characters. They are commented > by default. > > Regards > Philippe RITTER > > -----Message d'origine----- > De : Enrique Munoz [mailto:ryhen2000@yahoo.com] > Envoyé : mercredi, 25. août 2004 04:53 > À : sqr-users@sqrug.org > Objet : [sqr-users] Error Fonts SQR 8.2 and Linux > Red Hat 8 > > > Hi gurus, > > I have trouble with fonts in SQR 8.2 for Oracle on > Linux Red Hat 8 > > The special characters in spanish isn't showing on > the > output file. > > By example, the text 'CATÁLOGO' appers on the output > file like 'CATLOGO'. > > The sqr is "eating" theses characters > ñ,á,é,í,ó,ú,Á,É,Í,Ó,Ú. > > Any ideas? > > Thanks !! > __________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 10:25:48 2004 From: "Miller, Danika" Subject: RE: RE : [sqr-users] Error Fonts SQR 8.2 and Linux Red Hat 8 Date: Wed, 25 Aug 2004 11:21:34 -0400 Actually, I just had this same exact problem. If you edit your pssqr.ini file (or sqr.ini), the following line of code, it will work: Look for: [Environment:Oracle] SQR_DB_DATE_FORMAT=3DDD-MON-YYYY ENCODING-DATABASE=3DUTF8 <----------- this line is defaulted to being commented out. Take the semicolon off of the front ;ENCODING-CONSOLE=3DSJIS -----Original Message----- From: Enrique Munoz [mailto:ryhen2000@yahoo.com]=20 Sent: Wednesday, August 25, 2004 11:17 AM To: sqr-users@sqrug.org Subject: RE : [sqr-users] Error Fonts SQR 8.2 and Linux Red Hat 8 Hello Philippe, Thank you for your answer, but I am a rookie in sqr, Can you tell me more details about it? How can I do it? Thanks in advance Enrique --- sqr-users-request@sqrug.org wrote: > From: "RITTER, Philippe" > Subject: RE : [sqr-users] Error Fonts SQR 8.2 and > Linux Red Hat 8 > Date: Wed, 25 Aug 2004 07:16:44 +0200 > To: "'This list is for discussion about the SQR > database reporting language > from Hyperion Solutions.'" >=20 > Hello, >=20 > Look in your SQR.INI. You have to define this > characters. They are commented > by default. >=20 > Regards > Philippe RITTER >=20 > -----Message d'origine----- > De : Enrique Munoz [mailto:ryhen2000@yahoo.com] > Envoy=E9 : mercredi, 25. ao=FBt 2004 04:53 > =C0 : sqr-users@sqrug.org > Objet : [sqr-users] Error Fonts SQR 8.2 and Linux > Red Hat 8 >=20 >=20 > Hi gurus, >=20 > I have trouble with fonts in SQR 8.2 for Oracle on > Linux Red Hat 8 >=20 > The special characters in spanish isn't showing on > the > output file. >=20 > By example, the text 'CAT=C1LOGO' appers on the output > file like 'CATLOGO'. >=20 > The sqr is "eating" theses characters > =F1,=E1,=E9,=ED,=F3,=FA,=C1,=C9,=CD,=D3,=DA. >=20 > Any ideas? >=20 > Thanks !! >=20 =09=09 __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail=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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 15:03:47 2004 Date: Wed, 25 Aug 2004 13:02:33 -0700 (PDT) From: Yuri Lakef Subject: [sqr-users] check datetime stamp on file Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 10:10:31 2004 Date: Mon, 30 Aug 2004 08:05:17 -0700 (PDT) From: Yuri Lakef Subject: Re: [sqr-users] check datetime stamp on file RESEND: Anyone know how to determine datetime of a file programmatically? Yuri Lakef wrote:Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 11:26:09 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] check datetime stamp on file Date: Mon, 30 Aug 2004 09:22:39 -0700 There is no SQR function to get the datetime of a file. You have to use "call system" to pipe an "ls -l" command into a file, then read and parse the directory listing. Unix will show the date in different formats depending on how recent the datetime is. -----Original Message----- From: Yuri Lakef [mailto:lakef250@yahoo.com] Sent: Monday, August 30, 2004 8:05 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] check datetime stamp on file RESEND: Anyone know how to determine datetime of a file programmatically? Yuri Lakef wrote:Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 11:39:29 2004 Date: Mon, 30 Aug 2004 12:33:38 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] check datetime stamp on file To see if the file exists, simply try to open it for reading - if it does not exist you will get an error code. open $filename as 6 for-reading record=132:vary status=#filestat In this case, the #filestat variable would end up with 0 or -1 depending on the success. 0 means the file is there and readable, -1 means something prevents you from opening it for reading (file permissions and even file locking could also cause such a failure). Getting the date/time isn't as easy. One way would be to call system and perform a directory listing of the file you want to check, and parse it. Of course that's very messy and platform specific. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> lakef250@yahoo.com 8/30/2004 11:05:17 AM >>> RESEND: Anyone know how to determine datetime of a file programmatically? Yuri Lakef wrote:Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 13:40:28 2004 Date: Mon, 30 Aug 2004 14:38:46 -0400 From: "George Jansen" Subject: Re: [sqr-users] check datetime stamp on file on Unix, find /whiz -name bang -mtime -1 will return a 0 if /whiz/bang exists and has been modified in the last 24 hours, non-zero otherwise. On NT I suppose you could use a fragment of VBScript that would raise an error if the file did not exist. >>> JHarris@frederick.edu 08/30/04 12:33PM >>> To see if the file exists, simply try to open it for reading - if it does not exist you will get an error code. open $filename as 6 for-reading record=132:vary status=#filestat In this case, the #filestat variable would end up with 0 or -1 depending on the success. 0 means the file is there and readable, -1 means something prevents you from opening it for reading (file permissions and even file locking could also cause such a failure). Getting the date/time isn't as easy. One way would be to call system and perform a directory listing of the file you want to check, and parse it. Of course that's very messy and platform specific. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> lakef250@yahoo.com 8/30/2004 11:05:17 AM >>> RESEND: Anyone know how to determine datetime of a file programmatically? Yuri Lakef wrote:Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- 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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 14:16:28 2004 Date: Mon, 30 Aug 2004 14:14:21 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] check datetime stamp on file To check if a file exists, use the sqr "exists" function. let #file_missing = exists($file_name) if #file_missing ...(handle the fact the file isn't there)... else ...(check the date time - OS specific)... end-if On Mon, 30 Aug 2004, George Jansen wrote: > on Unix, > > find /whiz -name bang -mtime -1 > > will return a 0 if /whiz/bang exists and has been modified in the last > 24 hours, non-zero otherwise. > > On NT I suppose you could use a fragment of VBScript that would raise > an error if the file did not exist. > > > >>> JHarris@frederick.edu 08/30/04 12:33PM >>> > > To see if the file exists, simply try to open it for reading - if it > does not exist you will get an error code. > > open $filename as 6 for-reading record=132:vary status=#filestat > > In this case, the #filestat variable would end up with 0 or -1 > depending on the success. 0 means the file is there and readable, -1 > means something prevents you from opening it for reading (file > permissions and even file locking could also cause such a failure). > > Getting the date/time isn't as easy. > > One way would be to call system and perform a directory listing of the > file you want to check, and parse it. Of course that's very messy > and > platform specific. > > ----------------------------------------------------- > James Harris > Junior Systems Programmer/Analyst > Information Technology Division > Frederick Community College > ----------------------------------------------------- > > >>> lakef250@yahoo.com 8/30/2004 11:05:17 AM >>> > RESEND: > Anyone know how to determine datetime of a file programmatically? > > > Yuri Lakef wrote:Greetings to all, > > I'd like to add a procedure in my SQR to call the operating system and > check if a file exists or not (SQR reads a file and loads a table). If > it does exist, I'd like to check the datetime stamp for the file and > only process if it matches "today's date." > > Are there operating system (or better yet, SQR) functions/features > that > allow this? We're on Unix AIX and NT. > > Much thanks! > > > > > --------------------------------- > 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 > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 15:28:57 2004 Date: Mon, 30 Aug 2004 13:27:51 -0700 (PDT) From: Yuri Lakef Subject: Re: [sqr-users] check datetime stamp on file Thanks, George. Just the ticket! George Jansen wrote:on Unix, find /whiz -name bang -mtime -1 will return a 0 if /whiz/bang exists and has been modified in the last 24 hours, non-zero otherwise. On NT I suppose you could use a fragment of VBScript that would raise an error if the file did not exist. >>> JHarris@frederick.edu 08/30/04 12:33PM >>> To see if the file exists, simply try to open it for reading - if it does not exist you will get an error code. open $filename as 6 for-reading record=132:vary status=#filestat In this case, the #filestat variable would end up with 0 or -1 depending on the success. 0 means the file is there and readable, -1 means something prevents you from opening it for reading (file permissions and even file locking could also cause such a failure). Getting the date/time isn't as easy. One way would be to call system and perform a directory listing of the file you want to check, and parse it. Of course that's very messy and platform specific. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> lakef250@yahoo.com 8/30/2004 11:05:17 AM >>> RESEND: Anyone know how to determine datetime of a file programmatically? Yuri Lakef wrote:Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- 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 _______________________________________________ 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!? Win 1 of 4,000 free domain names from Yahoo! Enter now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 15:44:27 2004 Date: Mon, 30 Aug 2004 16:41:26 -0400 From: "George Jansen" Subject: Re: [sqr-users] check datetime stamp on file A clarification. The find, on Solaris gives an ok (0) status. What you have to do is use a bit of shell scripting to convert the blank or non-blank string returned by find into a numeric value for SQR: *************************** /tmp>cat newold.ksh #!/bin/ksh x=`find /var/adm -name $1 -mtime -1` if [ -n "$x" ] then exit 0 else exit 1 fi /tmp>cat newold.sqr begin-program input $filename 'filename:' let $systring = 'newold.ksh ' || $filename call system using $systring #status display $filename noline if #status = 0 display ' is new ' else display ' does not exist or is old' end-if ***************************************************** Then you can run it: /tmp>sqr newold / -XL messages SQR V4.3.2.2 Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. messages is new SQR: End of Run. /tmp>sqr newold / -XL messages.3 SQR V4.3.2.2 Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. messages.3 does not exist or is old SQR: End of Run. >>> lakef250@yahoo.com 08/30/04 04:27PM >>> Thanks, George. Just the ticket! George Jansen wrote:on Unix, find /whiz -name bang -mtime -1 will return a 0 if /whiz/bang exists and has been modified in the last 24 hours, non-zero otherwise. On NT I suppose you could use a fragment of VBScript that would raise an error if the file did not exist. >>> JHarris@frederick.edu 08/30/04 12:33PM >>> To see if the file exists, simply try to open it for reading - if it does not exist you will get an error code. open $filename as 6 for-reading record=132:vary status=#filestat In this case, the #filestat variable would end up with 0 or -1 depending on the success. 0 means the file is there and readable, -1 means something prevents you from opening it for reading (file permissions and even file locking could also cause such a failure). Getting the date/time isn't as easy. One way would be to call system and perform a directory listing of the file you want to check, and parse it. Of course that's very messy and platform specific. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> lakef250@yahoo.com 8/30/2004 11:05:17 AM >>> RESEND: Anyone know how to determine datetime of a file programmatically? Yuri Lakef wrote:Greetings to all, I'd like to add a procedure in my SQR to call the operating system and check if a file exists or not (SQR reads a file and loads a table). If it does exist, I'd like to check the datetime stamp for the file and only process if it matches "today's date." Are there operating system (or better yet, SQR) functions/features that allow this? We're on Unix AIX and NT. Much thanks! --------------------------------- 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 _______________________________________________ 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!? Win 1 of 4,000 free domain names from Yahoo! Enter now. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 17:04:59 2004 Date: Wed, 25 Aug 2004 18:05:09 -0400 From: "Robert K. Foster" Subject: [sqr-users] RE: Generating a Report This is a multi-part message in MIME format... --------------030604020007080503090803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit It seems possible that you have a different version of SQR running on the Sun box. I use a bourne shell script to setup the environment and then execute the SQR. This allows me to use two different versions of SQR. That maybe what is going on. Bob. sqr-users-request@sqrug.org wrote: > Subject: > [sqr-users] RE: Generating a Report > From: > Krishna > Date: > Tue, 24 Aug 2004 12:30:39 -0700 (PDT) > To: > sqr-users@sqrug.org > > To: > sqr-users@sqrug.org > > >Hello there, > Can anyone please tell me why is SQR when running in Report Builder generates a report using the layout declared in the Declare-Layout section of the code, but when I copy the same code to unix Sun Server and execute the report on the sun box, the report gets generated but the data is not formatted and on the other hand it does not print any graphics like horizontal and veritcal lines that I am drawing in the report. Your immediate input is highly appreciated. I looked into the manuals, and could not find anything which could help me out. I am sure that some users may have faced the same problem, your solution is greatly appreciated. >Thank You >Kris > > --------------030604020007080503090803 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------030604020007080503090803 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 --------------030604020007080503090803-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 19:18:03 2004 Date: Wed, 25 Aug 2004 17:15:22 -0700 From: "Lim, Alan" Subject: [sqr-users] Within an SQR program: How to execute a command to email a report file Hello, =20 I am running SQR for Peoplesoft version 4.3.4. The Peoplesoft application is HR/Payroll version 7.51 running on PeopleTools 7.61. Our database is MS SQL Server 2000 version 8.00. =20 My question is : Can you execute a command inside an SQR program that will initiate MS Outlook, take a report file, and email to a specified recipient? If the answer is yes, what is the structure of the syntax, or do you have sample code? =20 Thank you very much. =20 Regards, Alan Lim California Water Services, Inc. San Jose, CA _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 20:12:22 2004 From: "John Willson" Date: Wed, 25 Aug 2004 19:09:42 -0600 Subject: Re: [sqr-users] Within an SQR program: How to execute a command toemail a report file Hi Alan, here is an example using UNIX.. begin-procedure send_email if $sqr-platform = 'UNIX' let $os_command_line = 'mailx -s "'|| 'execution failure of sqr program: '|| $program_name_out|| '" '|| $email_address|| ' < '|| $email_notification call system using $os_command_line #status end-if end-procedure ! send_email This is developed from Darrin Miller's Harnessing SQR. http://www.sqrevangelism.com If you are running XP or W2K, then modify the platform and os_command_line to call Outlook. (msimn.exe or mapi etc.). John Willson ----- Original Message ----- From: "Lim, Alan" To: Sent: Wednesday, August 25, 2004 6:15 PM Subject: [sqr-users] Within an SQR program: How to execute a command toemail a report file Hello, I am running SQR for Peoplesoft version 4.3.4. The Peoplesoft application is HR/Payroll version 7.51 running on PeopleTools 7.61. Our database is MS SQL Server 2000 version 8.00. My question is : Can you execute a command inside an SQR program that will initiate MS Outlook, take a report file, and email to a specified recipient? If the answer is yes, what is the structure of the syntax, or do you have sample code? Thank you very much. Regards, Alan Lim California Water Services, Inc. San Jose, 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+sqrusersarch=sqrug.org@sqrug.org Wed Aug 25 20:25:59 2004 Date: Wed, 25 Aug 2004 18:23:26 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Within an SQR program: How to execute a command toemail a report file Alan, Another alternative might be to look at Extended Store Procedure to be Called from the SQL Server. Since your backend is in SQL server may be worth a look. HTH Datta. --- John Willson wrote: > Hi Alan, here is an example using UNIX.. > > begin-procedure send_email > if $sqr-platform = 'UNIX' > let $os_command_line = 'mailx -s "'|| > 'execution failure of sqr program: '|| > $program_name_out|| > '" '|| > $email_address|| > ' < '|| > $email_notification > call system using $os_command_line #status > end-if > end-procedure ! send_email > > This is developed from Darrin Miller's Harnessing SQR. > http://www.sqrevangelism.com If you are running XP or W2K, then > modify the > platform and os_command_line to call Outlook. (msimn.exe or mapi > etc.). > > John Willson > > ----- Original Message ----- > From: "Lim, Alan" > To: > Sent: Wednesday, August 25, 2004 6:15 PM > Subject: [sqr-users] Within an SQR program: How to execute a command > toemail > a report file > > > Hello, > > I am running SQR for Peoplesoft version 4.3.4. The Peoplesoft > application is HR/Payroll version 7.51 running on PeopleTools 7.61. > Our > database is MS SQL Server 2000 version 8.00. > > My question is : Can you execute a command inside an SQR program > that > will initiate MS Outlook, take a report file, and email to a > specified > recipient? If the answer is yes, what is the structure of the > syntax, > or do you have sample code? > > Thank you very much. > > Regards, > Alan Lim > California Water Services, Inc. > San Jose, 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 > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 26 06:22:51 2004 Subject: RE: [sqr-users] Within an SQR program: How to execute a command toemail a report file Date: Thu, 26 Aug 2004 07:21:46 -0400 From: "Wes Williams" You can also take a look here=20 http://www.sqrtools.com/funcmail.htm Works great for me. Tony Delia's site. Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of Lim, Alan Sent: Wednesday, August 25, 2004 8:15 PM To: sqr-users@sqrug.org Subject: [sqr-users] Within an SQR program: How to execute a command toemail a report file Hello, =20 I am running SQR for Peoplesoft version 4.3.4. The Peoplesoft application is HR/Payroll version 7.51 running on PeopleTools 7.61. Our database is MS SQL Server 2000 version 8.00. =20 My question is : Can you execute a command inside an SQR program that will initiate MS Outlook, take a report file, and email to a specified recipient? If the answer is yes, what is the structure of the syntax, or do you have sample code? =20 Thank you very much. =20 Regards, Alan Lim California Water Services, Inc. San Jose, 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 26 08:12:05 2004 Subject: Re: [sqr-users] Within an SQR program: How to execute a command to email a report file From: bknoch@hinda.com Date: Thu, 26 Aug 2004 08:08:06 -0500 We just use a cheap program called commail. http://www.xwebware.com/products/commail/readme.html Basic command line mailer. We use call system to call it. Seems to work fine. We use it to email notifications of program failures, missing files for interfaces and to send spreadsheets out that are generated bi-weekly by sqr reports. We're using SQL Server 7 on windows NT. |---------+--------------------------------------------> | | "Lim, Alan" | | | Sent by: | | | sqr-users-bounces+bknoch=hinda.co| | | m@sqrug.org | | | | | | | | | 08/25/2004 07:15 PM | | | Please respond to "This list is | | | for discussion about the SQR | | | database reporting language | | | from Hyperion Solutions." | | | | |---------+--------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] Within an SQR program: How to execute a command to email a | | report file | >----------------------------------------------------------------------------------------------| Hello, I am running SQR for Peoplesoft version 4.3.4. The Peoplesoft application is HR/Payroll version 7.51 running on PeopleTools 7.61. Our database is MS SQL Server 2000 version 8.00. My question is : Can you execute a command inside an SQR program that will initiate MS Outlook, take a report file, and email to a specified recipient? If the answer is yes, what is the structure of the syntax, or do you have sample code? Thank you very much. Regards, Alan Lim California Water Services, Inc. San Jose, CA _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This communication is for the exclusive use of addressee and may contain confidential, proprietary or privileged information which may be used exclusively for its intended purpose. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication, and destroy all copies. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 26 11:22:42 2004 Date: Thu, 26 Aug 2004 12:10:02 -0400 From: Pamela Thompson-Cook Subject: [sqr-users] Problems using INSERT/SELECT STMTS Hello All: I'm wondering if anyone has ever tried this before and got it to work - I have some SQL that I want to use to load a temp table with data. Before each record is loaded, there are two monetary fields that should be checked and possibly edited before being loaded into the temp table. If the fields are either negative or null then, their values should be changed to 0. SQR does not like the syntax or something. It abended complaining about the = sign after the fields that should be edited. Here is the SQL I'm using. By the way, I ran the SQL in SQL Server and it worked fine! I use SQR Server v.6x and MicroSoft SQL Server 2000 v.8 -- begin-SQL INSERT [$Temp_NetContrib] SELECT WDI_01.ID, WDTA_01.netcontribtot, WDTA_01.edit_netcontribtot = (CASE WHEN netcontribtot IS NULL THEN cast(0 as money) WHEN netcontribtot < 0 THEN cast(0 as money) ELSE cast(netcontribtot as money) END), WDTA_01.netcommit, WDTA_01.edit_netcommit = (CASE WHEN netcommit IS NULL THEN cast(0 as money) WHEN netcommit < 0 THEN cast(0 as money) ELSE cast(netcommit as money) END) FROM [$wk_dyn_IDList] WDI_01, [$wk_dyn_tbl] WDTA_01 WHERE WDI_01.id *= WDTA_01.id _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 26 13:19:23 2004 From: "Dinesh Bhandary" Date: Thu, 26 Aug 2004 11:16:34 -0700 Subject: [sqr-users] question How can I reference to built in function like -ZIV or -printer:HP. I need to know whether user selected -ziv or -printer:HP so that I can do additional processing. thank you dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Aug 26 16:21:18 2004 From: Peter Burton Date: Thu, 26 Aug 2004 14:19:10 -0700 Subject: RE: [sqr-users] question Dinesh, Hyperion SQR 8.0 (and higher) has a built-in LET function call Command_Line()which retirves the arguments passed to SQR (except the connectivity components). 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 Dinesh Bhandary > Sent: Thursday, August 26, 2004 2:17 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] question > > > How can I reference to built in function like -ZIV or > -printer:HP. I need to > know whether user selected -ziv or -printer:HP so that I can > do additional > processing. > > thank you > > dinesh > > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Aug 26 16:50:19 2004 Date: Thu, 26 Aug 2004 14:49:14 -0700 (PDT) From: Krishna Subject: [sqr-users] Re: sqr-users Digest, Vol 6, Issue 18 MY REPORT BUILDER version on Windows NT is 6.1.3 (Build 90) This is the Declare-Layout Code that I have in my Begin-Setup Block of code. SQR version installed on SUN Server is SQR 4.3.4/SUN/SUN OS 5.5.1/ Oracle 8.1.7 Code Snippet: Begin-Setup Declare-Layout Default Paper-Size = (Letter) Orientation = Portrait Top-Margin = 1.00 Left-Margin = 0.5 Line-Height = 1 Char-Width = 1 Max-Lines = 666 End-Declare Declare-Variable Text $l_month TEXT $report_run_dt TEXT $report_nm Integer #scrn_tot Integer #inv_tot Integer #intake_tot End-Declare End-Setup I have written several reports every other report works fine except this one which I am having problem with. There are no error logs when the code is either manually run or scheduled through Unix cron. I really don't know what to do...?? Message: 4 Date: Wed, 25 Aug 2004 18:05:09 -0400 From: "Robert K. Foster" Subject: [sqr-users] RE: Generating a Report To: sqr-users@sqrug.org Message-ID: <412D0D15.5020303@radiology.msu.edu> Content-Type: text/plain; charset="us-ascii" It seems possible that you have a different version of SQR running on the Sun box. I use a bourne shell script to setup the environment and then execute the SQR. This allows me to use two different versions of SQR. That maybe what is going on. Bob. sqr-users-request@sqrug.org wrote: > Subject: > [sqr-users] RE: Generating a Report > From: > Krishna > Date: > Tue, 24 Aug 2004 12:30:39 -0700 (PDT) > To: > sqr-users@sqrug.org > > To: > sqr-users@sqrug.org > > >Hello there, > Can anyone please tell me why is SQR when running in Report Builder generates a report using the layout declared in the Declare-Layout section of the code, but when I copy the same code to unix Sun Server and execute the report on the sun box, the report gets generated but the data is not formatted and on the other hand it does not print any graphics like horizontal and veritcal lines that I am drawing in the report. Your immediate input is highly appreciated. I looked into the manuals, and could not find anything which could help me out. I am sure that some users may have faced the same problem, your solution is greatly appreciated. >Thank You >Kris > > -------------- next part -------------- Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 14:50:23 2004 From: "radhika reddy" Date: Fri, 27 Aug 2004 14:49:06 -0500 Subject: [sqr-users] Order by Hi, I am having a problem using order by for a string variable ($type) in the following program(sample). begin-procedure sample begin-select empname &ename addr1 &addr1 addr2 sal &sal let $sal=&sal if $sal>30,000 let $type = 'SA' else let $type = 'SE' end-if from table1 order by $type,empname,addr1 ! when i am giving $type in order by, it's not giving error but it's not giving desired output also end-select end-procedure Any suggestions? Thanks _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:05:53 2004 Date: Fri, 27 Aug 2004 16:03:34 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Order by Firstly, you ar ealways better off using aliases ie: begin-procedure sample begin-select empname &ename A.addr1 &addr1 A.addr2 A.sal &sal let $sal=&sal if $sal>30,000 let $type = 'SA' else let $type = 'SE' end-if from table1 A order by $type,A.empname,A.addr1 secondly, you can't order by a variable set in the select clause. Larry Roux Syracuse University lroux@syr.edu >>> radhika_05@hotmail.com 8/27/2004 3:49:06 PM >>> Hi, I am having a problem using order by for a string variable ($type) in the following program(sample). begin-procedure sample begin-select empname &ename addr1 &addr1 addr2 sal &sal let $sal=&sal if $sal>30,000 let $type = 'SA' else let $type = 'SE' end-if from table1 order by $type,empname,addr1 ! when i am giving $type in order by, it's not giving error but it's not giving desired output also end-select end-procedure Any suggestions? Thanks _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:09:47 2004 From: EricRection@aol.com Date: Fri, 27 Aug 2004 16:06:36 EDT Subject: Re: [sqr-users] Order by ORDERing by variables sounds a bit dodgy. How about you have a UNION query with one part WHERE SAL>30000 with a constant of SA and one part for WHERE SAL<=30000 with a constant of SE, and then order by the contant? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:18:11 2004 From: James Womeldorf Subject: RE: [sqr-users] Order by Date: Fri, 27 Aug 2004 15:16:54 -0500 If your database is Oracle you might try using CASE. I believe the following syntax will work: begin-select empname &ename A.addr1 &addr1 A.addr2 CASE WHEN a.sal > 30000 THEN 'SA' ELSE 'SE' END &type let $type = &type from table1 A order by CASE WHEN a.sal > 30000 THEN 'SA' ELSE 'SE' END,A.empname,A.addr1 Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Larry Roux Sent: Friday, August 27, 2004 3:04 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Order by Firstly, you ar ealways better off using aliases ie: begin-procedure sample begin-select empname &ename A.addr1 &addr1 A.addr2 A.sal &sal let $sal=&sal if $sal>30,000 let $type = 'SA' else let $type = 'SE' end-if from table1 A order by $type,A.empname,A.addr1 secondly, you can't order by a variable set in the select clause. Larry Roux Syracuse University lroux@syr.edu >>> radhika_05@hotmail.com 8/27/2004 3:49:06 PM >>> Hi, I am having a problem using order by for a string variable ($type) in the following program(sample). begin-procedure sample begin-select empname &ename addr1 &addr1 addr2 sal &sal let $sal=&sal if $sal>30,000 let $type = 'SA' else let $type = 'SE' end-if from table1 order by $type,empname,addr1 ! when i am giving $type in order by, it's not giving error but it's not giving desired output also end-select end-procedure Any suggestions? Thanks _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:21:06 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Order by Date: Fri, 27 Aug 2004 13:17:52 -0700 The "order by" clause is part of the SQL statement that SQR sends to your database manager. It cannot use SQR variables - only database columns. If you're using Oracle you may be able to sort by (CASE SAL > 30000 THEN 'SA' ELSE 'SE' END). By the way, I think you want to use a numeric variable for salary (#sal, not $sal), although you could do you "if" statement comparison with the column variable itself (&sal). Also, are you using comma as a decimal point (I don't know whether SQR allows that in the program itself), or do you mean to test salary against thirty thousand (in which case you should omit the comma)? -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, August 27, 2004 12:49 PM To: sqr-users@sqrug.org Subject: [sqr-users] Order by Hi, I am having a problem using order by for a string variable ($type) in the following program(sample). begin-procedure sample begin-select empname &ename addr1 &addr1 addr2 sal &sal let $sal=&sal if $sal>30,000 let $type = 'SA' else let $type = 'SE' end-if from table1 order by $type,empname,addr1 ! when i am giving $type in order by, it's not giving error but it's not giving desired output also end-select end-procedure Any suggestions? Thanks _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:29:23 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] Order by Date: Fri, 27 Aug 2004 15:28:49 -0500 Totally... something like select 'SA', ... from where union all select 'SE', ... from where Order by 1, 2, 3, 4 -----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 EricRection@aol.com Sent: Friday, August 27, 2004 3:07 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Order by ORDERing by variables sounds a bit dodgy. How about you have a UNION query with one part WHERE SAL>30000 with a constant of SA and one part for WHERE SAL<=30000 with a constant of SE, and then order by the contant? _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:32:26 2004 Subject: RE: [sqr-users] Order by Date: Fri, 27 Aug 2004 15:30:18 -0500 From: "Turner, Ivan" if $Incl_cust_type =3D 'Y' Let $order_by =3D 'order by pr.SEGMENT_ID,pr.ar_cust_type_l' else let $order_by =3D 'order by pr.SEGMENT_ID' Let $ar_descr =3D ' ' end-if BEGIN-SELECT *** FROM ARL60017_TMP pr=20 [$order_by] -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, August 27, 2004 4:18 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Order by The "order by" clause is part of the SQL statement that SQR sends to your database manager. It cannot use SQR variables - only database columns. If you're using Oracle you may be able to sort by (CASE SAL > 30000 THEN 'SA' ELSE 'SE' END). By the way, I think you want to use a numeric variable for salary (#sal, not $sal), although you could do you "if" statement comparison with the column variable itself (&sal). Also, are you using comma as a decimal point (I don't know whether SQR allows that in the program itself), or do you mean to test salary against thirty thousand (in which case you should omit the comma)? -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, August 27, 2004 12:49 PM To: sqr-users@sqrug.org Subject: [sqr-users] Order by Hi, I am having a problem using order by for a string variable ($type) in=20 the following program(sample). begin-procedure sample begin-select empname &ename addr1 &addr1 addr2 sal &sal let $sal=3D&sal if $sal>30,000 let $type =3D 'SA' else let $type =3D 'SE' end-if from table1 order by $type,empname,addr1 ! when i am giving $type in order by, it's=20 not giving error but it's not giving desired output also end-select end-procedure Any suggestions? Thanks _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 15:45:37 2004 From: "radhika reddy" Subject: RE: [sqr-users] Order by Date: Fri, 27 Aug 2004 15:43:00 -0500 Thank you jim. it worked perfect when i used case. Thank u everybody for replying. Radhika >From: James Womeldorf >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] Order by >Date: Fri, 27 Aug 2004 15:16:54 -0500 > >If your database is Oracle you might try using CASE. I believe the >following syntax will work: > >begin-select >empname &ename >A.addr1 &addr1 >A.addr2 >CASE WHEN a.sal > 30000 THEN 'SA' ELSE 'SE' END &type > let $type = &type >from table1 A >order by CASE WHEN a.sal > 30000 THEN 'SA' ELSE 'SE' END,A.empname,A.addr1 > >Jim > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >Larry Roux >Sent: Friday, August 27, 2004 3:04 PM >To: sqr-users@sqrug.org >Subject: Re: [sqr-users] Order by > > >Firstly, you ar ealways better off using aliases >ie: >begin-procedure sample >begin-select >empname &ename >A.addr1 &addr1 >A.addr2 >A.sal &sal > let $sal=&sal > if $sal>30,000 > let $type = 'SA' > else > let $type = 'SE' > end-if >from table1 A > >order by $type,A.empname,A.addr1 > >secondly, you can't order by a variable set in the select clause. > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> radhika_05@hotmail.com 8/27/2004 3:49:06 PM >>> >Hi, > > I am having a problem using order by for a string variable ($type) >in >the following program(sample). > >begin-procedure sample >begin-select >empname &ename >addr1 &addr1 >addr2 >sal &sal > let $sal=&sal > if $sal>30,000 > let $type = 'SA' > else > let $type = 'SE' > end-if >from table1 > >order by $type,empname,addr1 ! when i am giving $type in order by, >it's >not giving error but it's not giving desired output also > >end-select >end-procedure > >Any suggestions? > >Thanks > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/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 _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Aug 27 17:26:11 2004 Date: Fri, 27 Aug 2004 17:25:24 -0500 From: "Turner, Ivan" Subject: [sqr-users] dynamic sql When I enter this procedure, $credit_calss is set to 'GG'. If I return any rows in the query, I want to reset $credit_calss to 'A' then call another procedure where the credit class needs to be 'A'. Is it possible to change the value of a where clause variable ($credit_calss ) in SQR? =20 begin-SELECT ON-ERROR=3DSQL-Error /*+ index(P PSMCUSTOMER) index(I PS_CUST_CREDIT) */ I.CUST_ID let #misassigned_accounts =3D #misassigned_accounts + 1 show &i.cust_id ' in in credit class GG with no associated federal GAG' show 'Account being set to credit class A and customer type GB' Let $credit_class =3D 'A' do 250-update-ps-customer do 325-insert-credit-classFROM PS_CUST_CREDIT I, PS_CUSTOMER P WHERE P.AR_CUST_TYPE_L IN ('GG','GO') and I.SETID =3D 'LCI' AND I.CUST_ID =3D P.CUST_ID AND I.EFFDT =3D (SELECT MAX(EFFDT)=20 FROM PS_CUST_CREDIT=20 WHERE SETID =3D I.SETID=20 AND CUST_ID =3D I.CUST_ID) AND I.CREDIT_CLASS =3D $credit_class MINUS SELECT TO_CHAR(MEMBER_ID) FROM GROUP_MEMBERS WHERE GROUP_ID IN (32319,32320,33236,35016,35017) end-select _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 02:56:20 2004 Date: Mon, 30 Aug 2004 09:53:44 +0200 (CEST) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: Re: [sqr-users] dynamic sql Hello Ivan, Didi you try something like : > WHERE P.AR_CUST_TYPE_L = $credit_calss ? (perhaps it should be $credit_class ;-) You can mix in the query the SQR variables and the SQL statements. That possibly one of the reasons why SQR uses '$', '#' and such identifiers for the variables : it allows the interpreters to recognize the SQR and the SQL variables. I hope I did answer correctly... Charly --- "Turner, Ivan" a écrit : > When I enter this procedure, $credit_calss is set to 'GG'. If I return > any rows in the query, I want to reset $credit_calss to 'A' then call > another procedure where the credit class needs to be 'A'. Is it > possible to change the value of a where clause variable ($credit_calss ) > in SQR? > > > > begin-SELECT ON-ERROR=SQL-Error > > /*+ index(P PSMCUSTOMER) index(I PS_CUST_CREDIT) */ > > I.CUST_ID > > let #misassigned_accounts = #misassigned_accounts + 1 > > show &i.cust_id ' in in credit class GG with no associated federal > GAG' > > show 'Account being set to credit class A and customer type GB' > > Let $credit_class = 'A' > > do 250-update-ps-customer > > do 325-insert-credit-classFROM PS_CUST_CREDIT I, PS_CUSTOMER P > > WHERE P.AR_CUST_TYPE_L IN ('GG','GO') > > and I.SETID = 'LCI' > > AND I.CUST_ID = P.CUST_ID > > AND I.EFFDT = (SELECT MAX(EFFDT) > > FROM PS_CUST_CREDIT > > WHERE SETID = I.SETID > > AND CUST_ID = I.CUST_ID) > > AND I.CREDIT_CLASS = $credit_class > > MINUS > > SELECT TO_CHAR(MEMBER_ID) > > FROM GROUP_MEMBERS > > WHERE GROUP_ID IN (32319,32320,33236,35016,35017) > > end-select > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > Vous manquez d’espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 10:07:12 2004 Subject: RE: [sqr-users] dynamic sql Date: Mon, 30 Aug 2004 10:04:39 -0500 From: "Turner, Ivan" Thank you. What I'm doing is changing the value of $credit_class inside th= e select loop. I was wondering if the cursor gets setup first and allows m= e to change the value of $credit_class inside the select loop. Again, I'm changing the value of $credit_class inside the select loop. Is = that legal? -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users= -bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Charly Lebrun Sent: Monday, August 30, 2004 3:54 AM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] dynamic sql Hello Ivan, Didi you try something like : > WHERE P.AR_CUST_TYPE_L =3D $credit_calss ? (perhaps it should be $credit_class ;-) You can mix in the query the SQR variables and the SQL statements. That pos= sibly one of the reasons why SQR uses '$', '#' and such identifiers for the variables : it a= llows the interpreters to recognize the SQR and the SQL variables. I hope I did answer correctly... Charly --- "Turner, Ivan" a =E9crit :=20 > When I enter this procedure, $credit_calss is set to 'GG'. If I return > any rows in the query, I want to reset $credit_calss to 'A' then call > another procedure where the credit class needs to be 'A'. Is it > possible to change the value of a where clause variable ($credit_calss ) > in SQR? >=20 >=20=20 >=20 > begin-SELECT ON-ERROR=3DSQL-Error >=20 > /*+ index(P PSMCUSTOMER) index(I PS_CUST_CREDIT) */ >=20 > I.CUST_ID >=20 > let #misassigned_accounts =3D #misassigned_accounts + 1 >=20 > show &i.cust_id ' in in credit class GG with no associated federal > GAG' >=20 > show 'Account being set to credit class A and customer type GB' >=20 > Let $credit_class =3D 'A' >=20 > do 250-update-ps-customer >=20 > do 325-insert-credit-classFROM PS_CUST_CREDIT I, PS_CUSTOMER P >=20 > WHERE P.AR_CUST_TYPE_L IN ('GG','GO') >=20 > and I.SETID =3D 'LCI' >=20 > AND I.CUST_ID =3D P.CUST_ID >=20 > AND I.EFFDT =3D (SELECT MAX(EFFDT)=20 >=20 > FROM PS_CUST_CREDIT=20 >=20 > WHERE SETID =3D I.SETID=20 >=20 > AND CUST_ID =3D I.CUST_ID) >=20 > AND I.CREDIT_CLASS =3D $credit_class >=20 > MINUS >=20 > SELECT TO_CHAR(MEMBER_ID) >=20 > FROM GROUP_MEMBERS >=20 > WHERE GROUP_ID IN (32319,32320,33236,35016,35017) >=20 > end-select >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20=20 =09 =09 =09=09 Vous manquez d'espace pour stocker vos mails ?=20 Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr=E9ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv=E9 ! D=E9couvrez toutes les nouveaut= =E9s pour dialoguer instantan=E9ment avec vos amis. A t=E9l=E9charger gratu= itement sur http://fr.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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 10:17:01 2004 Date: Mon, 30 Aug 2004 17:15:58 +0200 (CEST) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: RE: [sqr-users] dynamic sql --- "Turner, Ivan" a écrit : > Thank you. What I'm doing is changing the value of $credit_class inside the select loop. I was > wondering if the cursor gets setup first and allows me to change the value of $credit_class > inside the select loop. > > Again, I'm changing the value of $credit_class inside the select loop. Is that legal? > Nope... Think of big systems like Oracle and so on : 1. You write a query 2. You run (execute) it 3. If the query is SELECT then you may fetch through the cursor (the data). You can change the value of the $credit_class variable, but unless you re-run the query (i.e. in SQR : passing the BEGIN-SELECT statement), the cursor will not be updated. You can either call again your procedure once the variable is updated, or, write another procedure... I never tried to do recursive calls with SQR, and I'm not sure it is good idea (just because the local/global memory areas management which is quiet strange... and the cursors seam to be globals). Charly Vous manquez d’espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement 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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 10:30:05 2004 Subject: RE: [sqr-users] dynamic sql Date: Mon, 30 Aug 2004 10:27:29 -0500 From: "Turner, Ivan" I'm calling the procedure at the end of the program to find mismatched assi= gnments and correct them. To correct them I must reset $credit_class to a = new value and call another procedure to insert the new value to another tab= le.=20=20 begin-SELECT ON-ERROR=3DSQL-Error /*+ index(P PSMCUSTOMER) index(I PS_CUST_CREDIT) */ I.CUST_ID let #misassigned_accounts =3D #misassigned_accounts + 1 show &i.cust_id ' in in credit class GG with no associated federal GAG' show 'Account being set to credit class A and customer type GB' Let $credit_class =3D 'A' do 250-update-ps-customer do 325-insert-credit-classFROM PS_CUST_CREDIT I, PS_CUSTOMER P WHERE P.AR_CUST_TYPE_L IN ('GG','GO') and I.SETID =3D 'LCI' AND I.CUST_ID =3D P.CUST_ID AND I.EFFDT =3D (SELECT MAX(EFFDT)=20 FROM PS_CUST_CREDIT=20 WHERE SETID =3D I.SETID=20 AND CUST_ID =3D I.CUST_ID) AND I.CREDIT_CLASS =3D $credit_class MINUS SELECT TO_CHAR(MEMBER_ID) FROM GROUP_MEMBERS WHERE GROUP_ID IN (32319,32320,33236,35016,35017) end-select -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users= -bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Charly Lebrun Sent: Monday, August 30, 2004 11:16 AM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] dynamic sql --- "Turner, Ivan" a =E9crit :=20 > Thank you. What I'm doing is changing the value of $credit_class inside = the select loop. I was > wondering if the cursor gets setup first and allows me to change the valu= e of $credit_class > inside the select loop. >=20 > Again, I'm changing the value of $credit_class inside the select loop. I= s that legal? >=20 Nope... Think of big systems like Oracle and so on : 1. You write a query 2. You run (execute) it 3. If the query is SELECT then you may fetch through the cursor (the data). You can change the value of the $credit_class variable, but unless you re-r= un the query (i.e. in SQR : passing the BEGIN-SELECT statement), the cursor will not be updated. You can either call again your procedure once the variable is updated, or, = write another procedure... I never tried to do recursive calls with SQR, and I'm not sure= it is good idea (just because the local/global memory areas management which is quiet strange... = and the cursors seam to be globals). Charly =09 =09 =09=09 Vous manquez d'espace pour stocker vos mails ?=20 Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr=E9ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv=E9 ! D=E9couvrez toutes les nouveaut= =E9s pour dialoguer instantan=E9ment avec vos amis. A t=E9l=E9charger gratu= itement sur http://fr.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+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 11:22:47 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] dynamic sql Date: Mon, 30 Aug 2004 09:19:24 -0700 You're starting with one value of $credit_class and telling your database to return a set of rows. The database collects the set of rows and begins to feed them to you one at a time. You can change the value of $credit_class and that will not change the set of rows you're going to get. Your database doesn't know what's happening to variables in memory. It only knows what you send it in SQL statements. I think that's what you want in this case. This brings up the question of whether you should do what you can do. Changing the value of $credit_class in this way could lead to programming bugs and maintenance difficulty. The value of $credit_class after this select statement executes depends on whether there are any rows selected, which you can't tell from the program logic. Why not use $new_credit_class? -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] Sent: Monday, August 30, 2004 8:27 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] dynamic sql I'm calling the procedure at the end of the program to find mismatched assignments and correct them. To correct them I must reset $credit_class to a new value and call another procedure to insert the new value to another table.=20=20 begin-SELECT ON-ERROR=3DSQL-Error /*+ index(P PSMCUSTOMER) index(I PS_CUST_CREDIT) */ I.CUST_ID let #misassigned_accounts =3D #misassigned_accounts + 1 show &i.cust_id ' in in credit class GG with no associated federal GAG' show 'Account being set to credit class A and customer type GB' Let $credit_class =3D 'A' do 250-update-ps-customer do 325-insert-credit-classFROM PS_CUST_CREDIT I, PS_CUSTOMER P WHERE P.AR_CUST_TYPE_L IN ('GG','GO') and I.SETID =3D 'LCI' AND I.CUST_ID =3D P.CUST_ID AND I.EFFDT =3D (SELECT MAX(EFFDT)=20 FROM PS_CUST_CREDIT=20 WHERE SETID =3D I.SETID=20 AND CUST_ID =3D I.CUST_ID) AND I.CREDIT_CLASS =3D $credit_class MINUS SELECT TO_CHAR(MEMBER_ID) FROM GROUP_MEMBERS WHERE GROUP_ID IN (32319,32320,33236,35016,35017) end-select -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Charly Lebrun Sent: Monday, August 30, 2004 11:16 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] dynamic sql --- "Turner, Ivan" a =E9crit :=20 > Thank you. What I'm doing is changing the value of $credit_class inside the select loop. I was > wondering if the cursor gets setup first and allows me to change the value of $credit_class > inside the select loop. >=20 > Again, I'm changing the value of $credit_class inside the select loop. Is that legal? >=20 Nope... Think of big systems like Oracle and so on : 1. You write a query 2. You run (execute) it 3. If the query is SELECT then you may fetch through the cursor (the data). You can change the value of the $credit_class variable, but unless you re-run the query (i.e. in SQR : passing the BEGIN-SELECT statement), the cursor will not be updated. You can either call again your procedure once the variable is updated, or, write another procedure... I never tried to do recursive calls with SQR, and I'm not sure it is good idea (just because the local/global memory areas management which is quiet strange... and the cursors seam to be globals). Charly =09 =09 =09=09 Vous manquez d'espace pour stocker vos mails ?=20 Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr=E9ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv=E9 ! D=E9couvrez toutes les nouveaut= =E9s pour dialoguer instantan=E9ment avec vos amis. A t=E9l=E9charger gratuiteme= nt sur http://fr.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 11:34:03 2004 Subject: RE: [sqr-users] dynamic sql Date: Mon, 30 Aug 2004 11:31:45 -0500 From: "Turner, Ivan" Steve, This is what I thought would happen in the db. As for your suggestion abou= t changing the variable name to $new_credit_class, the procedure being call= ed in the loop is using the $credit_class variable to do an insert of that = value. Plus, it's the last procedure called. Thanks for setting me straig= ht. Thanks. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users= -bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Alexander, Steve Sent: Monday, August 30, 2004 12:19 PM To: 'This list is for discussion about the SQR database reportinglangu age = from Hyperion Solutions.' Subject: RE: [sqr-users] dynamic sql You're starting with one value of $credit_class and telling your database to return a set of rows. The database collects the set of rows and begins to feed them to you one at a time. You can change the value of $credit_class and that will not change the set of rows you're going to get. Your database doesn't know what's happening to variables in memory. It only knows what you send it in SQL statements. I think that's what you want in this case. This brings up the question of whether you should do what you can do. Changing the value of $credit_class in this way could lead to programming bugs and maintenance difficulty. The value of $credit_class after this select statement executes depends on whether there are any rows selected, which you can't tell from the program logic. Why not use $new_credit_class? -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] Sent: Monday, August 30, 2004 8:27 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] dynamic sql I'm calling the procedure at the end of the program to find mismatched assignments and correct them. To correct them I must reset $credit_class to a new value and call another procedure to insert the new value to another table.=20=20 begin-SELECT ON-ERROR=3DSQL-Error /*+ index(P PSMCUSTOMER) index(I PS_CUST_CREDIT) */ I.CUST_ID let #misassigned_accounts =3D #misassigned_accounts + 1 show &i.cust_id ' in in credit class GG with no associated federal GAG' show 'Account being set to credit class A and customer type GB' Let $credit_class =3D 'A' do 250-update-ps-customer do 325-insert-credit-classFROM PS_CUST_CREDIT I, PS_CUSTOMER P WHERE P.AR_CUST_TYPE_L IN ('GG','GO') and I.SETID =3D 'LCI' AND I.CUST_ID =3D P.CUST_ID AND I.EFFDT =3D (SELECT MAX(EFFDT)=20 FROM PS_CUST_CREDIT=20 WHERE SETID =3D I.SETID=20 AND CUST_ID =3D I.CUST_ID) AND I.CREDIT_CLASS =3D $credit_class MINUS SELECT TO_CHAR(MEMBER_ID) FROM GROUP_MEMBERS WHERE GROUP_ID IN (32319,32320,33236,35016,35017) end-select -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Charly Lebrun Sent: Monday, August 30, 2004 11:16 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] dynamic sql --- "Turner, Ivan" a =E9crit :=20 > Thank you. What I'm doing is changing the value of $credit_class inside the select loop. I was > wondering if the cursor gets setup first and allows me to change the value of $credit_class > inside the select loop. >=20 > Again, I'm changing the value of $credit_class inside the select loop. Is that legal? >=20 Nope... Think of big systems like Oracle and so on : 1. You write a query 2. You run (execute) it 3. If the query is SELECT then you may fetch through the cursor (the data). You can change the value of the $credit_class variable, but unless you re-run the query (i.e. in SQR : passing the BEGIN-SELECT statement), the cursor will not be updated. You can either call again your procedure once the variable is updated, or, write another procedure... I never tried to do recursive calls with SQR, and I'm not sure it is good idea (just because the local/global memory areas management which is quiet strange... and the cursors seam to be globals). Charly =09 =09 =09=09 Vous manquez d'espace pour stocker vos mails ?=20 Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr=E9ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv=E9 ! D=E9couvrez toutes les nouveaut= =E9s pour dialoguer instantan=E9ment avec vos amis. A t=E9l=E9charger gratuiteme= nt sur http://fr.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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Sat Aug 28 23:39:31 2004 Date: Sat, 28 Aug 2004 21:38:33 -0700 From: David Donnelly Subject: [sqr-users] Re: Order by Radhika, The CASE statement works because it expresses a different way to categorize the salary values in your query. You could also use DECODE (with Oracle) or maybe even order by (salary>30000), empname, addr1 [I didn't try this] which would be treated as a logical variable, with other databases. The ORDER BY clause is evaluated BEFORE the sql is executed ... before any rows are fetched. Your logic seems to be attempting to change it with every row fetched. That won't work. The solution you used is a good one because it does what you want: converts the salary value to a binary expression. Note that you CAN say order by [$type], empname, addr1 but $type still has to be set before the query is started, and changing its value as rows are fetched will not have any effect. You can also say let $orderby = 'order by ''' || $type || ''', empname, addr1' ... begin-sql variables ... from ... [$orderby] This is handy when you might have a different number of variables in the ORDER BY from run to run; it permits you to include or exclude the necessary variable and its associated comma. I suspect from your question, and especially your use of different types and comparisons for &sal and $sal, that you are new to SQR. It would be of great help to you, and would probably save you a LOT of debugging time in the future, to ask your supervisor or mentor to explain the variable types, and what happens inside Oracle or other database systems when you try to mix columns and variables of different types. Best regards, Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Aug 30 20:24:38 2004 From: "Burns, Lawrence" Date: Mon, 30 Aug 2004 20:18:54 -0500 Subject: [sqr-users] Output to Excel Hello Group, Is it possible when outputting to Excel from an sqr pgm, to make each different section of the report go to a new sheet (i.e., Sheet 1, Sheet 2, etc.) within the same whole .cvs file? I will try to fiddle around with Open For-Append in the mean-time. Thanks! Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 08:53:21 2004 Date: Tue, 31 Aug 2004 11:11:26 -0400 From: "Kaithi, Murali" Subject: [sqr-users] sqr #return-status Let me explain my situation here. we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler just runs= the Batch file in which all the SQR flags are set. I have used -XCB flag for the purpose that I shouldn't get any windows on t= he server where these jobs are run. I want to get an email when any job fails and there is a parameter in the s= cheduler saying that if the job fails it will automatically sends an email. My problem is even if the job fails for any reason the scheduler is showing= as the job is completed OK because of the fact that the SQR is not passing= the right #return-status to the operating system (in this case the Arcana = Scheduler). In my SQR program I am saying STOP QUIET if I want the job to stop instead = of using just STOP because of the fact that I don't want any window popping= up on the server saying "Program stopped by user request." To put it simple, I want the program to pass the error return-status to the= scheduler whenever I am stopping the SQR for any reason. Could anybody please help me on this. Thanks, Muralidhar R Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 10:37:06 2004 Date: Tue, 31 Aug 2004 11:34:30 -0400 From: "Kaithi, Murali" Subject: [sqr-users] SQR return-status Let me explain my situation here. we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler just runs= the Batch file in which all the SQR flags are set. I have used -XCB flag for the purpose that I shouldn't get any windows on t= he server where these jobs are run. I want to get an email when any job fails and there is a parameter in the s= cheduler saying that if the job fails it will automatically sends an email. My problem is even if the job fails for any reason the scheduler is showing= as the job is completed OK because of the fact that the SQR is not passing= the right #return-status to the operating system (in this case the Arcana = Scheduler). In my SQR program I am saying STOP QUIET if I want the job to stop instead = of using just STOP because of the fact that I don't want any window popping= up on the server saying "Program stopped by user request." To put it simple, I want the program to pass the error return-status to the= scheduler whenever I am stopping the SQR for any reason. Could anybody please help me on this. Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 11:08:22 2004 Date: Tue, 31 Aug 2004 11:07:38 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] SQR return-status Before issuing the STOP QUIET, set the reserved variable "#return-status" to the value you want for the error, I ussually start my "internal" errors at 101 and go up from there (if you want specific error codes and to have them separate from OS error codes). Just to set an error you can... move 101 to #return-status HTH, Don On Tue, 31 Aug 2004, Kaithi, Murali wrote: > Let me explain my situation here. > we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler just runs the Batch file in which all the SQR flags are set. > I have used -XCB flag for the purpose that I shouldn't get any windows on the server where these jobs are run. > I want to get an email when any job fails and there is a parameter in the scheduler saying that if the job fails it will automatically sends an email. > My problem is even if the job fails for any reason the scheduler is showing as the job is completed OK because of the fact that the SQR is not passing the right #return-status to the operating system (in this case the Arcana Scheduler). > In my SQR program I am saying STOP QUIET if I want the job to stop instead of using just STOP because of the fact that I don't want any window popping up on the server saying "Program stopped by user request." > To put it simple, I want the program to pass the error return-status to the scheduler whenever I am stopping the SQR for any reason. > Could anybody please help me on this. > > > Thanks, > Murali > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 08:59:19 2004 Date: Tue, 31 Aug 2004 09:15:36 -0700 (PDT) From: thorburn@communityonline.net Subject: [sqr-users] Force SQR to use a specific index on a SELECT...? Here a good one! Does anyone know the specific syntax to force SQR to use a specific defined index on a SELECT? We are in an Oracle environment. Thanks, David _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:11:32 2004 Subject: RE: [sqr-users] Force SQR to use a specific index on a SELECT...? Date: Thu, 2 Sep 2004 10:06:39 -0400 From: "Kaithi, Murali" I am not sure about specific defined index but you can force the select to = use index by using Rule. see below the sample code begin-SELECT ON-ERROR=3DSQL-Error /*+ rule */=20 Thanks, Muralidhar Reddy Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of thorburn@communityonline.net Sent: Tuesday, August 31, 2004 12:16 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] Force SQR to use a specific index on a SELECT...? Here a good one! Does anyone know the specific syntax to force SQR to use a specific defined index on a SELECT? We are in an Oracle environment. Thanks, David _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:17:42 2004 Subject: RE: [sqr-users] Force SQR to use a specific index on a SELECT...? Date: Thu, 2 Sep 2004 10:06:48 -0400 From: "MacLellan, David" Just use a hint as you would in any SQL query, no special SQR considerations. Here is an example where I indicate the specific index I want the query to use, just use this syntax right after the SELECT keyword. SELECT /*+ INDEX(TSW_TEMPLATE_DATA TSW_IDX_TPD_TPK) */ -----Original Message----- From: sqr-users-bounces+dmaclellan5=3Dtva.gov@sqrug.org [mailto:sqr-users-bounces+dmaclellan5=3Dtva.gov@sqrug.org] On Behalf Of thorburn@communityonline.net Sent: Tuesday, August 31, 2004 12:16 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] Force SQR to use a specific index on a SELECT...? Here a good one! Does anyone know the specific syntax to force SQR to use a specific defined index on a SELECT? We are in an Oracle environment. Thanks, David _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:27:47 2004 From: James Womeldorf Subject: RE: [sqr-users] Force SQR to use a specific index on a SELECT...? Date: Thu, 2 Sep 2004 09:09:17 -0500 I believe it is: Begin-Select /*+ INDEX(TableAlias IndexName) */ . . . Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of thorburn@communityonline.net Sent: Tuesday, August 31, 2004 11:16 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: [sqr-users] Force SQR to use a specific index on a SELECT...? Here a good one! Does anyone know the specific syntax to force SQR to use a specific defined index on a SELECT? We are in an Oracle environment. Thanks, David _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:58:08 2004 Date: Thu, 02 Sep 2004 10:56:30 -0400 From: "George Jansen" Subject: RE: [sqr-users] Force SQR to use a specific index on a SELECT...? Are you sure you want to? From time to time I end up doing a good deal of work to prevent index use and so forcing hash joins. You might want to talk to your DBA about stored outlines, available in 8i and up. >>> jwomeldo@fastenal.com 09/02/04 10:09AM >>> I believe it is: Begin-Select /*+ INDEX(TableAlias IndexName) */ . . . Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of thorburn@communityonline.net Sent: Tuesday, August 31, 2004 11:16 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: [sqr-users] Force SQR to use a specific index on a SELECT...? Here a good one! Does anyone know the specific syntax to force SQR to use a specific defined index on a SELECT? We are in an Oracle environment. Thanks, David _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 12:00:53 2004 Subject: RE: [sqr-users] SQR return-status Date: Tue, 31 Aug 2004 12:59:50 -0400 From: "Kaithi, Murali" Thanks Don for replying. I have tried your resolution before I posted this problem. My program is stopped quitely but the scheduler is still showing completed = with OK status. Any Ideas please. Thanks, Muralidhar R Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Don Mellen Sent: Tuesday, August 31, 2004 12:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR return-status Before issuing the STOP QUIET, set the reserved variable "#return-status" to the value you want for the error, I ussually start my "internal" errors at 101 and go up from there (if you want specific error codes and to have them separate from OS error codes). Just to set an error you can... move 101 to #return-status HTH, Don On Tue, 31 Aug 2004, Kaithi, Murali wrote: > Let me explain my situation here. > we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler just ru= ns the Batch file in which all the SQR flags are set. > I have used -XCB flag for the purpose that I shouldn't get any windows on= the server where these jobs are run. > I want to get an email when any job fails and there is a parameter in the= scheduler saying that if the job fails it will automatically sends an emai= l. > My problem is even if the job fails for any reason the scheduler is showi= ng as the job is completed OK because of the fact that the SQR is not passi= ng the right #return-status to the operating system (in this case the Arcan= a Scheduler). > In my SQR program I am saying STOP QUIET if I want the job to stop instea= d of using just STOP because of the fact that I don't want any window poppi= ng up on the server saying "Program stopped by user request." > To put it simple, I want the program to pass the error return-status to t= he scheduler whenever I am stopping the SQR for any reason. > Could anybody please help me on this. >=20 >=20 > Thanks, > Murali >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 ----------------------------------------------------------------------- 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 has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 12:12:09 2004 From: "Orr, Daniel E (Dan) TL26D" Subject: RE: [sqr-users] SQR return-status Date: Tue, 31 Aug 2004 13:09:57 -0400 If you are running from within a Shell script you need to have the script return the error code - Immediately after the 'SQR' statement include the following retcode=$? exit $retcode Daniel Orr -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Tuesday, August 31, 2004 1:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQR return-status Thanks Don for replying. I have tried your resolution before I posted this problem. My program is stopped quitely but the scheduler is still showing completed with OK status. Any Ideas please. Thanks, Muralidhar R Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On Behalf Of Don Mellen Sent: Tuesday, August 31, 2004 12:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR return-status Before issuing the STOP QUIET, set the reserved variable "#return-status" to the value you want for the error, I ussually start my "internal" errors at 101 and go up from there (if you want specific error codes and to have them separate from OS error codes). Just to set an error you can... move 101 to #return-status HTH, Don On Tue, 31 Aug 2004, Kaithi, Murali wrote: > Let me explain my situation here. > we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler just > runs the Batch file in which all the SQR flags are set. I have used > -XCB flag for the purpose that I shouldn't get any windows on the > server where these jobs are run. I want to get an email when any job > fails and there is a parameter in the scheduler saying that if the job > fails it will automatically sends an email. My problem is even if the > job fails for any reason the scheduler is showing as the job is > completed OK because of the fact that the SQR is not passing the right > #return-status to the operating system (in this case the Arcana > Scheduler). In my SQR program I am saying STOP QUIET if I want the job > to stop instead of using just STOP because of the fact that I don't > want any window popping up on the server saying "Program stopped by > user request." To put it simple, I want the program to pass the error > return-status to the scheduler whenever I am stopping the SQR for any > reason. Could anybody please help me on this. > > > Thanks, > Murali > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________ > 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 has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users "MMS " made the following annotations. ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2004 CIGNA ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 12:31:41 2004 Date: Tue, 31 Aug 2004 10:29:48 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] SQR return-status Murali, I think you are running on Windows, if I am not wrong? In that case try something like this in your batch file SQR pgm.sqr X/X -flags IF ERRORLEVEL 101 GOTO FAILED EXIT 0 :FAILED EXIT 101 HTH Datta. --- "Orr, Daniel E (Dan) TL26D" wrote: > If you are running from within a Shell script you need to have the > script > return the error code - > > Immediately after the 'SQR' statement include the following > retcode=$? > exit $retcode > > Daniel Orr > > > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] > Sent: Tuesday, August 31, 2004 1:00 PM > To: This list is for discussion about the SQR database > reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] SQR return-status > > > Thanks Don for replying. > I have tried your resolution before I posted this problem. > My program is stopped quitely but the scheduler is still showing > completed > with OK status. Any Ideas please. > > Thanks, > Muralidhar R Kaithi > Sr. Tech Specialist, PeopleSoft > (609) 645-5524 > murali.kaithi@spencergifts.com > > > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org > [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On > Behalf Of Don Mellen > Sent: Tuesday, August 31, 2004 12:08 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR return-status > > > Before issuing the STOP QUIET, set the reserved variable > "#return-status" to > the value you want for the error, I ussually start my "internal" > errors at > 101 and go up from there (if you want specific error codes and to > have them > separate from OS error codes). Just to set an error you can... > > move 101 to #return-status > > HTH, > Don > > On Tue, 31 Aug 2004, Kaithi, Murali wrote: > > > Let me explain my situation here. > > we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler > just > > runs the Batch file in which all the SQR flags are set. I have used > > > -XCB flag for the purpose that I shouldn't get any windows on the > > server where these jobs are run. I want to get an email when any > job > > fails and there is a parameter in the scheduler saying that if the > job > > fails it will automatically sends an email. My problem is even if > the > > job fails for any reason the scheduler is showing as the job is > > completed OK because of the fact that the SQR is not passing the > right > > #return-status to the operating system (in this case the Arcana > > Scheduler). In my SQR program I am saying STOP QUIET if I want the > job > > to stop instead of using just STOP because of the fact that I don't > > > want any window popping up on the server saying "Program stopped by > > > user request." To put it simple, I want the program to pass the > error > > return-status to the scheduler whenever I am stopping the SQR for > any > > reason. Could anybody please help me on this. > > > > > > Thanks, > > Murali > > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security > System. > > For more information please visit http://www.messagelabs.com/email > > > ______________________________________________________________________ > > > > _______________________________________________ > > 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 has been scanned by the MessageLabs Email Security System. > For > more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > "MMS " made the following annotations. > ------------------------------------------------------------------------------ > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, > please > immediately notify the sender by e-mail at the address shown. This > e-mail > transmission may contain confidential information. This information > is > intended only for the use of the individual(s) or entity to whom it > is > intended even if addressed incorrectly. Please delete it from your > files if > you are not the intended recipient. Thank you for your compliance. > Copyright > (c) 2004 CIGNA > ============================================================================== > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. 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+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 12:45:15 2004 Subject: RE: [sqr-users] SQR return-status Date: Tue, 31 Aug 2004 13:42:51 -0400 From: "Kaithi, Murali" Excellent.. It worked. Thank you so much Datta. Thanks, Muralidhar R Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Tuesday, August 31, 2004 1:30 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQR return-status Murali, I think you are running on Windows, if I am not wrong?=20 In that case try something like this in your batch file=20 SQR pgm.sqr X/X -flags=20 IF ERRORLEVEL 101 GOTO FAILED EXIT 0=20 :FAILED=20 EXIT 101=20 HTH=20 Datta.=20 --- "Orr, Daniel E (Dan) TL26D" wrote: > If you are running from within a Shell script you need to have the > script > return the error code - >=20 > Immediately after the 'SQR' statement include the following > retcode=3D$? > exit $retcode >=20 > Daniel Orr >=20 >=20 > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com]=20 > Sent: Tuesday, August 31, 2004 1:00 PM > To: This list is for discussion about the SQR database > reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] SQR return-status >=20 >=20 > Thanks Don for replying. > I have tried your resolution before I posted this problem. > My program is stopped quitely but the scheduler is still showing > completed > with OK status. Any Ideas please. >=20 > Thanks, > Muralidhar R Kaithi > Sr. Tech Specialist, PeopleSoft > (609) 645-5524 > murali.kaithi@spencergifts.com >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org > [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On > Behalf Of Don Mellen > Sent: Tuesday, August 31, 2004 12:08 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR return-status >=20 >=20 > Before issuing the STOP QUIET, set the reserved variable > "#return-status" to > the value you want for the error, I ussually start my "internal" > errors at > 101 and go up from there (if you want specific error codes and to > have them > separate from OS error codes). Just to set an error you can... >=20 > move 101 to #return-status >=20 > HTH, > Don >=20 > On Tue, 31 Aug 2004, Kaithi, Murali wrote: >=20 > > Let me explain my situation here. > > we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler > just=20 > > runs the Batch file in which all the SQR flags are set. I have used >=20 > > -XCB flag for the purpose that I shouldn't get any windows on the=20 > > server where these jobs are run. I want to get an email when any > job=20 > > fails and there is a parameter in the scheduler saying that if the > job=20 > > fails it will automatically sends an email. My problem is even if > the=20 > > job fails for any reason the scheduler is showing as the job is=20 > > completed OK because of the fact that the SQR is not passing the > right=20 > > #return-status to the operating system (in this case the Arcana=20 > > Scheduler). In my SQR program I am saying STOP QUIET if I want the > job=20 > > to stop instead of using just STOP because of the fact that I don't >=20 > > want any window popping up on the server saying "Program stopped by >=20 > > user request." To put it simple, I want the program to pass the > error=20 > > return-status to the scheduler whenever I am stopping the SQR for > any=20 > > reason. Could anybody please help me on this. > >=20 > >=20 > > Thanks, > > Murali > >=20 > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security > System.=20 > > For more information please visit http://www.messagelabs.com/email=20 > > > ______________________________________________________________________ > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 >=20 > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - > http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which > exploded" >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For > more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > "MMS " made the following annotations. > ---------------------------------------------------------------------------= --- > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, > please > immediately notify the sender by e-mail at the address shown. This > e-mail > transmission may contain confidential information. This information > is > intended only for the use of the individual(s) or entity to whom it > is > intended even if addressed incorrectly. Please delete it from your > files if > you are not the intended recipient. Thank you for your compliance. > Copyright > (c) 2004 CIGNA > =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 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 =09=09 __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Aug 31 12:28:37 2004 Subject: RE: FW: [sqr-users] SQR return-status Date: Tue, 31 Aug 2004 13:27:47 -0400 From: "Kaithi, Murali" Hi Don, Yes, the batch file is running just sqr. As you said because the batch is getting completed so the status might be g= etting returned success. I couldn't understand your last statement properly about "pass on" the retu= rn status from the SQR. Could you please elaborate this for me. Please find below the code where I am using the variable #return-status in = my sqr program. begin-procedure Open-Files let $FullFileName =3D {PTDWDIR} || {PTDFILE} open $FullFileName as 10 for-reading record=3D400:vary status=3D #filestat if #filestat !=3D 0 move 101 to #return-status #debugb show 'Open for file 10 failed' move #return-status to $return-status show 'Return-Status is ' $return-status #debugb stop quiet else do validateptd-file end-if=20=20=20=20=20=20=20=20 Thanks, Muralidhar R Kaithi Sr. Tech Specialist, PeopleSoft (609) 645-5524 murali.kaithi@spencergifts.com -----Original Message----- From: Don Mellen [mailto:donm@ontko.com] Sent: Tuesday, August 31, 2004 1:10 PM To: Kaithi, Murali Subject: Re: FW: [sqr-users] SQR return-status Is your batch file handling the receipt of that error? You said "The scheduler just runs the Batch file in..." Does that batch file run the SQR? If so, the batch file *is* completing succesfully, so you need to "pass on" the return status from the SQR. HTH, Don On Tue, 31 Aug 2004, Kaithi, Murali wrote: > Thanks Don for replying. > I have tried your resolution before I posted this problem. > My program is stopped quitely but the scheduler is still showing complete= d with OK status. > Any Ideas please. >=20 > Thanks, > Muralidhar R Kaithi > Sr. Tech Specialist, PeopleSoft > (609) 645-5524 > murali.kaithi@spencergifts.com >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org > [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On > Behalf Of Don Mellen > Sent: Tuesday, August 31, 2004 12:08 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR return-status >=20 >=20 > Before issuing the STOP QUIET, set the reserved variable "#return-status" > to the value you want for the error, I ussually start my "internal" errors > at 101 and go up from there (if you want specific error codes and to > have them separate from OS error codes). Just to set an error you can... >=20 > move 101 to #return-status >=20 > HTH, > Don >=20 > On Tue, 31 Aug 2004, Kaithi, Murali wrote: >=20 > > Let me explain my situation here. > > we scheduled lot of SQR jobs thru Arcana scheduler. The scheduler just= =20 > > runs the Batch file in which all the SQR flags are set. > > I have used -XCB flag for the purpose that I shouldn't get any windows > > on the server where these jobs are run. I want to get an email when > > any job fails and there is a parameter in the scheduler saying that if > > the job fails it will automatically sends an email. My problem is > > even if the job fails for any reason the scheduler is showing as the > > job is completed OK because of the fact that the SQR is not passing > > the right #return-status to the operating system (in this case the > > Arcana Scheduler). > > In my SQR program I am saying STOP QUIET if I want the job to stop > > instead of using just STOP because of the fact that I don't want any > > window popping up on the server saying "Program stopped by user > > request." To put it simple, I want the program to pass the error > > return-status to the scheduler whenever I am stopping the SQR for any > > reason. Could anybody please help me on this. > >=20 > >=20 > > Thanks, > > Murali > >=20 > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security System. > > For more information please visit http://www.messagelabs.com/email=20 > > ______________________________________________________________________ > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 >=20 > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 01 00:00:39 2004 Date: Wed, 1 Sep 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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 01 08:59:50 2004 From: "radhika reddy" Date: Wed, 01 Sep 2004 08:47:32 -0500 Subject: [sqr-users] Leading Zeroes in Excel file Hi, I want to display leading zeroes in excel file for a salary column. I was able to see leading zeroes in log file but couldn't see in excel file. does the excel file supress zeroes? i gave the following code: let $sal = edit(&sal,'0000009') i could see in log but not in excel. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 01 09:05:43 2004 Subject: RE: [sqr-users] Leading Zeroes in Excel file Date: Wed, 1 Sep 2004 09:02:24 -0500 From: "Pan, Zhen" To keep the leading zeroes, use this line of code: Let $print_prsn_univ_id =3D '=3D"' || &prsn_univ_id || '"' -----Original Message----- From: sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org] On Behalf Of radhika reddy Sent: Wednesday, September 01, 2004 8:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Leading Zeroes in Excel file Hi, I want to display leading zeroes in excel file for a salary column. I=20 was able to see leading zeroes in log file but couldn't see in excel file.=20 does the excel file supress zeroes? i gave the following code: let $sal =3D edit(&sal,'0000009') i could see in log but not in excel. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!=20 hthttp://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 01 09:10:24 2004 Subject: RE: [sqr-users] Leading Zeroes in Excel file Date: Wed, 1 Sep 2004 10:03:50 -0400 From: "Pink, Michael" Yes excel suppresses the leading 0's. If you enclose the numbers in "'" it will treat it as a text field. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of radhika reddy Sent: Wednesday, September 01, 2004 9:48 AM To: sqr-users@sqrug.org Subject: [sqr-users] Leading Zeroes in Excel file Hi, I want to display leading zeroes in excel file for a salary column. I=20 was able to see leading zeroes in log file but couldn't see in excel file.=20 does the excel file supress zeroes? i gave the following code: let $sal =3D edit(&sal,'0000009') i could see in log but not in excel. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!=20 hthttp://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 01 09:14:26 2004 Date: Wed, 01 Sep 2004 16:08:00 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20Leading=20Zeroes=20in?==?ISO-8859-1?Q?=20Excel=20file?= You must convert it to char for excel like this: ...other fields... Concat ';=3D' with $sToolsLigneTransfert Let $SoldeAbonne =3D translate(edit(&SoldeAbonne,'999,999.99'), ',.', ' ,') Concat $SoldeAbonne with $sToolsLigneTransfert Concat '';' with $sToolsLigneTransfert ...other fields... Pay attention to field values like '12 a' converted by excel as hours value= , say '12h00' !!!=20 (must be converted too with =3D' ' ). 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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 01 12:55:04 2004 From: "Janice Howard" Date: Wed, 1 Sep 2004 12:53:46 -0500 Subject: [sqr-users] Org Charts and SQR for PeopleSoft We are on PeopleSoft HRMS 8.3, PTools 8.2, and MS SQL Server. I have been trying unsuccessfully to produce an org chart using the PSoft provided orgchart.sqr and Visio 2002. I have not been able to get the orgchart.txt file generated. Would anyone be willing to share a copy of their successfully functioning PSoft orgchart.sqr so I can compare it to ours? Thanks, Janice _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 01:06:51 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 2 Sep 2004 11:39:57 +0530 Subject: [sqr-users] SQR + DB2 Dear SQRians, I am PeopleSoft Certified developer from Chennai. Very glad to me= et you all. Please let me know if any DB2 specific syntaxing in SQR. The problem is: when we exported the compiled SQR from MS-SQL envi= ronment to DB2 environment, found lots of problems. =20=20=20=20=20=20=20 Thanks a lot. With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 03:48:20 2004 From: EricRection@aol.com Date: Thu, 2 Sep 2004 04:45:53 EDT Subject: Re: [sqr-users] SQR + DB2 If you're running on MVS using PeopleSoft, the SQRs have to be conveted by the PSTRANS program which will change the square brackets of dynamic SQL to double-backslashes. Back in 1999 it was the case that DB2 couldn't convert between date and date-time fields, which would be worth investigating. The best resolution to your problem, of course, is to use a halfway decent database. I defecate upon DB2. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 04:10:18 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 2 Sep 2004 14:39:38 +0530 Subject: RE: [sqr-users] SQR + DB2 What is this PSTRANS program? In turn another SQR or what?? Actually we identified that, 1. Date field format mismatch is there in the DB2 with the SQR 2. Column variables in conjunction with dynamic conditions are n= ot worth while to use in DB2. 3. setupdb.sqc is mandatory for DB2 environment =20 Kindly forward if you have any white papers/URLs on this topic.=20=20= =20=20=20=20=20=20=20=20 Thanks a lot. With Best Regards, Murty MVS -----Original Message----- From: EricRection@aol.com [mailto:EricRection@aol.com] Sent: Thursday, September 02, 2004 2:16 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR + DB2 If you're running on MVS using PeopleSoft, the SQRs have to be conveted by the PSTRANS program which will change the square brackets of dynamic SQL to= =20 double-backslashes. Back in 1999 it was the case that DB2 couldn't convert between date and=20 date-time fields, which would be worth investigating. The best resolution to your problem, of course, is to use a halfway decent database. I defecate upon DB2. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 08:43:45 2004 Date: Thu, 02 Sep 2004 09:42:01 -0400 From: "Jessie Dickenson" Subject: Re: [sqr-users] SQR + DB2 Murthy, When you post questions to this group, be specific as to the kind of problems you encountered; That way, you can be sure of good responses. I don't know anything about DB2 & so, I cannot help. I am also from Chennai, now settled in the US. Regards, Jessie >>> murtym@hexaware.com 9/2/2004 2:09:57 AM >>> Dear SQRians, I am PeopleSoft Certified developer from Chennai. Very glad to meet you all. Please let me know if any DB2 specific syntaxing in SQR. The problem is: when we exported the compiled SQR from MS-SQL environment to DB2 environment, found lots of problems. Thanks a lot. With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:22:45 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 2 Sep 2004 19:46:01 +0530 Subject: RE: [sqr-users] SQR + DB2 Jessie, Thanks a lot for your suggestion. I need information on SQR syntax specific to the Databses (especially DB= 2, MSSQL). Or, If the SQR should be made compatible across databases what type of c= are should be taken in coding?=20 =20=20=20 =20=20=20=20 =20 With Best Regards, Murty MVS -----Original Message----- From: Jessie Dickenson [mailto:JMDICKENSON@rainbow-media.com] Sent: Thursday, September 02, 2004 7:12 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR + DB2 Murthy, When you post questions to this group, be specific as to the kind of problems you encountered; That way, you can be sure of good responses. I don't know anything about DB2 & so, I cannot help. I am also from Chennai, now settled in the US. Regards, Jessie >>> murtym@hexaware.com 9/2/2004 2:09:57 AM >>> Dear SQRians, I am PeopleSoft Certified developer from Chennai. Very glad to meet you all. Please let me know if any DB2 specific syntaxing in SQR. The problem is: when we exported the compiled SQR from MS-SQL environment to DB2 environment, found lots of problems. =20=20=20=20=20=20=20 Thanks a lot. With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ 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 DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 07 20:37:41 2004 Subject: RE: [sqr-users] SQR + DB2 Date: Thu, 2 Sep 2004 14:44:24 -0500 From: "Knapp, Richard" The SQR syntax will be the same (more or less), the SQL may be different.=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Thursday, September 02, 2004 9:16 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQR + DB2 Jessie, Thanks a lot for your suggestion. I need information on SQR syntax specific to the Databses (especially DB2, MSSQL). Or, If the SQR should be made compatible across databases what type of care should be taken in coding?=20 =20=20=20 =20=20=20=20 =20 With Best Regards, Murty MVS -----Original Message----- From: Jessie Dickenson [mailto:JMDICKENSON@rainbow-media.com] Sent: Thursday, September 02, 2004 7:12 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR + DB2 Murthy, When you post questions to this group, be specific as to the kind of problems you encountered; That way, you can be sure of good responses. I don't know anything about DB2 & so, I cannot help. I am also from Chennai, now settled in the US. Regards, Jessie >>> murtym@hexaware.com 9/2/2004 2:09:57 AM >>> Dear SQRians, I am PeopleSoft Certified developer from Chennai. Very glad to meet you all. Please let me know if any DB2 specific syntaxing in SQR. The problem is: when we exported the compiled SQR from MS-SQL environment to DB2 environment, found lots of problems. =20=20=20=20=20=20=20 Thanks a lot. With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ 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 DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:07:48 2004 From: Ray Ontko Date: Thu, 2 Sep 2004 09:01:50 -0500 Subject: Re: FW: [sqr-users] SQR + DB2 Daniel, SQR-USERS, Thanks for your patience. The messages should have stopped by now (10:00 EDT). The problem was caused by an out-of-office auto-reply program. Our list server recognizes most auto-replies and avoids forwarding them to the list, but this particular user uses an auto-reply mailer that sends a message in an unfamiliar format (Novell GroupWise 5.5.5?). In general, if you have an auto-reply program, please set it to only send the message once per user if that option is available. My appologies to all on the list. Ray On Thu, Sep 02, 2004 at 08:58:45AM -0400, Orr, Daniel E (Dan) TL26D wrote: > Please disable this user - He's sent out over 60 out-of-office replies to > the group in the last 2 hours. > > -----Original Message----- > From: John Vecero [mailto:Jvecero@kss.org] > Sent: Thu 09/02/2004 8:19 AM > To: sqr-users@sqrug.org > Cc: > Subject: Re: [sqr-users] SQR + DB2 > > > > I will be out of the office Thursday, September 2 through Tuesday, September > 7. > > If this is a technical support issue, please cotact the Help Desk at (717) > 232-7509 ext. 150. > > Thank You. > > John Vecero > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please > immediately notify the sender by e-mail at the address shown. This e-mail > transmission may contain confidential information. This information is > intended only for the use of the individual(s) or entity to whom it is > intended even if addressed incorrectly. Please delete it from your files if > you are not the intended recipient. Thank you for your compliance. Copyright > (c) 2004 CIGNA > ============================================================================== > ---------------------------------------------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 09:52:18 2004 From: amy.harvel@phoenix.gov Date: Thu, 2 Sep 2004 07:49:07 -0700 Subject: [sqr-users] Print Commands Declare Printer vs Declare-printer We are using SQR 4.3.4 with PeopleSoft PeopleTools 7.63.04 -- We want to know if the old print commands without the dash (example Declare Printer) are still supported on the V8x PeopleSoft SQR. We have several SQR's using the old commands, and we do not want to modify them unless the old commands are obsolete. Our Red SQR books says to not use the old commands... We just need to know if they will still work. Thanks in Advance Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 10:02:04 2004 Subject: RE: [sqr-users] Force SQR to use a specific index on aSELECT...? Date: Thu, 2 Sep 2004 10:00:00 -0500 From: "Turner, Ivan" All one needs to do is an explain plan to see how the query will execute with the index. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of George Jansen Sent: Thursday, September 02, 2004 10:57 AM To: jwomeldo@fastenal.com; sqr-users@sqrug.org Subject: RE: [sqr-users] Force SQR to use a specific index on aSELECT...? Are you sure you want to? From time to time I end up doing a good deal of work to prevent index use and so forcing hash joins. You might want to talk to your DBA about stored outlines, available in 8i and up. >>> jwomeldo@fastenal.com 09/02/04 10:09AM >>> I believe it is: Begin-Select /*+ INDEX(TableAlias IndexName) */ =2E =2E =2E Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org=20 [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of thorburn@communityonline.net=20 Sent: Tuesday, August 31, 2004 11:16 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: [sqr-users] Force SQR to use a specific index on a SELECT...? Here a good one! Does anyone know the specific syntax to force SQR to use a specific defined index on a SELECT? We are in an Oracle environment. Thanks, David _______________________________________________ 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 02 12:33:32 2004 Date: Thu, 2 Sep 2004 10:32:34 -0700 (PDT) From: Aaron Reiff Subject: [sqr-users] 834 Mapping Has anyone created any 834 (HIPAA compliant) files using SQR? I know PS delivers an app engine program for this, but we need to provide a few vendors with different info (for benefit enrollments) and I don't want to modify the delivered. Has anyone done anything like this? Thanks! Aaron --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 07 21:04:30 2004 From: Scott Eubank Subject: RE: [sqr-users] 834 Mapping Date: Tue, 7 Sep 2004 15:30:31 -0400 Clone the App engines and Modify them.. Not to hard to do -----Original Message----- From: Aaron Reiff [mailto:aaronreiff@yahoo.com] Sent: Thursday, September 02, 2004 1:33 PM To: sqr-users@sqrug.org Subject: [sqr-users] 834 Mapping Has anyone created any 834 (HIPAA compliant) files using SQR? I know PS delivers an app engine program for this, but we need to provide a few vendors with different info (for benefit enrollments) and I don't want to modify the delivered. Has anyone done anything like this? Thanks! Aaron --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =================================================================== NOTICE - CONFIDENTIAL AND PRIVILEGED - This e-mail may contain privileged and confidential information and is intended only for the addressee named above. If you received this message in error, please immediately notify the sender by return e-mail and delete the original message; any distribution, copying or use of this e-mail by you is strictly prohibited and may be unlawful. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 07 20:43:04 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Fri, 3 Sep 2004 13:20:56 +0530 Subject: [sqr-users] Problem in Printing with Varying Fonts I got to print 3 labels in report footer in the bottom-right corner. I am using setenv.sqc, ptset02.sqc included in the code. The font is 5 (Times New Roman) and point size is 8.=20 =20=20=20=20=20 The problem is the labels are dynamic in size and the column position s= hould vary accordingly. Also, I tried brining max columns into picture. =20=20=20=20 One more problem is the same but in printing the label of font 5, point = size 10.5 in the center for heading section. please help me coming out of these ! =20=20=20=20 With Best Regards, Murty MVS DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 07 20:54:19 2004 Date: Fri, 3 Sep 2004 10:22:30 -0700 (PDT) From: Krishna Subject: [sqr-users] RE: How to filter data in a SQR Viewer ActiveX Control Hi Folks, We are using SQR Viewer ActiveX Control in a PowerBuilder Application to View reports that are generated on SUN Server after the reports are downloaded onto the USERS desktop. All these are done by the Built-In Functions that are supplied by Hyperion SQRViewer ActiveX control. But my question here is, we have a requirement in our application that if a report is scheduled and generated for all region/counties in a state on the server, and if the user decides to select and retrieve either one or a group of counties within a state then is there a way to filter the data either in the SPF file or in the SQR Viewer ActiveX Control. I kind of looked into the manuals but I did not find any info on that. If any of you have implemented a similar kind of solution, I would appreciate if you could share the solution with me. Thank You Krishna --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 07 20:57:10 2004 Date: Fri, 03 Sep 2004 13:38:23 -0400 From: "Robert K. Foster" Subject: [sqr-users] Hyperion/Brio This is a multi-part message in MIME format... --------------040209000102030400030305 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Greetings, Has anyone looked at running SQR reports on an Apple XServe running Mac OSX? From the Hyperion website: "*Native drivers* optimize performance for data sources such as Oracle, Hyperion, DB2, SAP R/3, Sybase and SQL Server; also supports an extensive range of operating systems such as Linux, NT and several UNIX platforms, including Solaris, AIX, and HP-UX." No mention of Apple so it doesn't look hopeful. I know that Sybase has client libraries that run on the XServe platform. Just wondering if anyone else has looked into this. Bob. --------------040209000102030400030305 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------040209000102030400030305 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 --------------040209000102030400030305-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 06:41:56 2004 From: "the dragon" Subject: RE: [sqr-users] Hyperion/Brio Date: Wed, 08 Sep 2004 06:28:50 -0500 hee hee hee... I want SQR to run on my Amiga next. :-p Better stick with real computers. :-D 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---- Greetings, Has anyone looked at running SQR reports on an Apple XServe running Mac OSX? >From the Hyperion website: "*Native drivers* optimize performance for data sources such as Oracle, Hyperion, DB2, SAP R/3, Sybase and SQL Server; also supports an extensive range of operating systems such as Linux, NT and several UNIX platforms, including Solaris, AIX, and HP-UX." No mention of Apple so it doesn't look hopeful. I know that Sybase has client libraries that run on the XServe platform. Just wondering if anyone else has looked into this. Bob. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 07 21:01:41 2004 From: "SRI Technologies" Date: Tue, 7 Sep 2004 17:37:57 +1000 Subject: [sqr-users] Invitation - Beta Testers for SqrPlus All, SqrPlus has been further enhanced to support non-windows platforms (like flavors for Unix, Vax/Vms etc.) As a result we would like to perform beta testing in variety of operating systems before formal release. The new release allows you to run sqr program as normal or in interactive debug mode on remote server (e.g. Unix using Unix sqr) while enjoying existing windows GUI interface. Sqr developers interested in participating in this program may accept the invitation by responding to following URL: www.sritech.com.au/v7beta.html Details for new version will be posted on our web site (www.sritech.com.au) as we progress. Thanks in advance. Regards, Susan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Sep 20 05:27:40 2004 From: "SRI Technologies" Subject: RE: [sqr-users] Invitation - Beta Testers for SqrPlus Date: Mon, 20 Sep 2004 20:33:21 +1000 Thanks to everyone. We will send SqrPlus software to registered people very soon. Thanks again, Susan. -----Original Message----- From: SRI Technologies [mailto:sritech@sritech.com.au] Sent: Tuesday, September 07, 2004 5:38 PM To: sqr-users@sqrug.org Subject: [sqr-users] Invitation - Beta Testers for SqrPlus All, SqrPlus has been further enhanced to support non-windows platforms (like flavors for Unix, Vax/Vms etc.) As a result we would like to perform beta testing in variety of operating systems before formal release. The new release allows you to run sqr program as normal or in interactive debug mode on remote server (e.g. Unix using Unix sqr) while enjoying existing windows GUI interface. Sqr developers interested in participating in this program may accept the invitation by responding to following URL: www.sritech.com.au/v7beta.html Details for new version will be posted on our web site (www.sritech.com.au) as we progress. Thanks in advance. Regards, Susan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 10:49:56 2004 Date: Wed, 8 Sep 2004 11:49:04 -0400 From: "Kaithi, Murali" Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executin= g the program. I dont want the program to execute as it has lot of database truncates and = updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 10:56:40 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] sqr compile Date: Wed, 8 Sep 2004 08:52:56 -0700 Add "stop" as the first command to be executed. -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Wednesday, September 08, 2004 8:49 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 10:59:28 2004 Subject: RE: [sqr-users] sqr compile Date: Wed, 8 Sep 2004 10:55:05 -0500 From: "Knapp, Richard" I think -RS is what you want but check the documentation first before you use it. 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 Kaithi, Murali Sent: Wednesday, September 08, 2004 10:49 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 11:02:52 2004 From: Bob Stone Subject: RE: [sqr-users] sqr compile Date: Wed, 8 Sep 2004 10:55:55 -0500 Use a test database without any good data. you could make a copy of the DB you're using (or at least some of the tables) and run it. Then if it compiles and changes data in the way that looks like what you want, you're free to move it up to the actual database. Having a test environment is a good idea anyway. Talk to your DBAs about setting one up. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Kaithi, Murali Sent: Wednesday, September 08, 2004 10:49 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 23:47:14 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 9 Sep 2004 10:23:10 +0530 Subject: RE: [sqr-users] sqr compile Murali,=20=20=20=20=20 I don't think there is any stand-alone compiler for SQR. May be you can, Include the STDAPI-INIT and STDAPI-TERM procedures in the program fr= om prcsapi.sqc. Then even on successful compilation of the code, the SQRW prompts fo= r the database name and process instance number. Then, you can abort the execution by clicking on the close button. Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Wednesday, September 08, 2004 9:19 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executin= g the program. I dont want the program to execute as it has lot of database truncates and = updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 07:15:54 2004 From: "Sapitan, Mary Ann (MG)" Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 08:07:42 -0400 I think you could try putting a rollback command at the end of the sqr and still run it so as not to have the changes be committed to the database. Anyway, if your sqr would have syntax errors, it wouldn't reach the end of the program and roll back anyway. :) Thanks, Ma-an Sapitan * (632) 841-0111 loc. 4549 -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Wednesday, September 08, 2004 11:49 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 07:52:36 2004 Date: Thu, 9 Sep 2004 05:51:14 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use. --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) > > > > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 > > > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile > > > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? > > > Thanks, > Murali > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:04:52 2004 Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 09:00:55 -0400 From: "Kaithi, Murali" That's what my problem is. Rollback will be of no use for me as I have trun= cates in my program. I am still waiting on for proper solutions from you guys to compile the pro= gram without actually executing it. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Thursday, September 09, 2004 8:51 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use.=20 --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) >=20 >=20 >=20 > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 >=20 >=20 > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com]=20 > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile >=20 >=20 > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? >=20 >=20 > Thanks, > Murali >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 =09=09 __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:17:08 2004 Date: Thu, 9 Sep 2004 06:11:43 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] sqr compile Murali, One other way I can think of is use #debug Statements around all truncates and don't let the truncate procced. Then incase you have inserts on the table and the this results in duplicates you can trap the SQL Error and choose to ignore that row being inserted. Else For time being change all the truncates to deletes and then Issue a Rollback in the end. Best is to always have a Test Environment. :) But I do understand some times things need to be fixed in production directly. HTH Datta. --- "Kaithi, Murali" wrote: > That's what my problem is. Rollback will be of no use for me as I > have truncates in my program. > I am still waiting on for proper solutions from you guys to compile > the program without actually executing it. > > Thanks, > Murali > > > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org > [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On > Behalf Of Dattatraya Shetty > Sent: Thursday, September 09, 2004 8:51 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: RE: [sqr-users] sqr compile > > > I think only problem with Rollback is that if the tables have been > truncated and not deleted then it is of no use. > > --- "Sapitan, Mary Ann (MG)" wrote: > > > I think you could try putting a rollback command at the end of the > > sqr and still run it so as not to have the changes be committed to > > the database. > > Anyway, if your sqr would have syntax errors, it wouldn't reach the > > end of the program and roll back anyway. :) > > > > > > > > Thanks, > > Ma-an Sapitan > > * (632) 841-0111 loc. 4549 > > > > > > -----Original Message----- > > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] > > Sent: Wednesday, September 08, 2004 11:49 PM > > To: This list is for discussion about the SQR database > > reportinglanguage from Hyperion Solutions. > > Subject: [sqr-users] sqr compile > > > > > > I want to compile a sqr for any syntax errors etc without actually > > executing the program. I dont want the program to execute as it has > > lot of database truncates and updates. I just need a way to compile > > the sqr. Any ideas? > > > > > > Thanks, > > Murali > > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security > System. > > For more information please visit http://www.messagelabs.com/email > > > ______________________________________________________________________ > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:13:02 2004 Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 09:09:30 -0400 From: "Pink, Michael" As previously suggested code a stop before any processing occurs. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Thursday, September 09, 2004 8:51 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use.=20 --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) >=20 >=20 >=20 > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 >=20 >=20 > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com]=20 > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile >=20 >=20 > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? >=20 >=20 > Thanks, > Murali >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 =09=09 __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:23:58 2004 From: Bob Stone Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 08:18:17 -0500 I concur. code a stop first, the code will go through the compile stage, get to the execution stage and stop itself before any processing starts. Or do a goto at the beginning that goes to the end. just skip all execution -----Original Message----- As previously suggested code a stop before any processing occurs. -----Original Message----- From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Thursday, September 09, 2004 8:51 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use. --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) > > > > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 > > > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile > > > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? > > > Thanks, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:59:36 2004 Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 09:23:35 -0400 From: "Kaithi, Murali" if I use STOP the program will not proceed further. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Pink, Michael Sent: Thursday, September 09, 2004 9:10 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile As previously suggested code a stop before any processing occurs. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Thursday, September 09, 2004 8:51 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use.=20 --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) >=20 >=20 >=20 > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 >=20 >=20 > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com]=20 > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile >=20 >=20 > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? >=20 >=20 > Thanks, > Murali >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 =09=09 __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=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 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:55:28 2004 From: SandlerA@DFO-MPO.GC.CA Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 09:27:04 -0400 The easiest way, as someone else has suggested is to set your sqr parameters to -rs. When this is done, the program is compiled but not executed. If the compilation is successful, and sqt file is also created. Aaron -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: September 8, 2004 11:49 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:47:04 2004 From: "the dragon" Subject: RE: [sqr-users] sqr compile Date: Thu, 09 Sep 2004 08:34:38 -0500 if you just want to compile it, execute with the -RS switch. peace, clarrk '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 concur. code a stop first, the code will go through the compile stage, get to the execution stage and stop itself before any processing starts. Or do a goto at the beginning that goes to the end. just skip all execution -----Original Message----- As previously suggested code a stop before any processing occurs. -----Original Message----- That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use. --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) > > > > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 > > > -----Original Message----- > > > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? > > > Thanks, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 09:06:23 2004 Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 09:49:42 -0400 From: "Kaithi, Murali" I have used -RS switch, the program is getting completed without showing me= any errors even though my program had errors. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of the dragon Sent: Thursday, September 09, 2004 9:35 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sqr compile if you just want to compile it, execute with the -RS switch. peace, clarrk '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 concur. code a stop first, the code will go through the compile stage, get to the execution stage and stop itself before any processing starts. Or do a goto at the beginning that goes to the end. just skip all execution -----Original Message----- As previously suggested code a stop before any processing occurs. -----Original Message----- That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use. --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) > > > > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 > > > -----Original Message----- > > > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? > > > Thanks, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 09:11:42 2004 Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 09:04:00 -0500 From: "Kent Schaetzly" In addition to the -rs compile flag as already mentioned, you can also spec= ify the -e flag. This will create a programname.err file if there are any = compile errors to assist you in debugging. If the compile is clean a progr= amname.sqt file is generated. -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 8:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile if I use STOP the program will not proceed further. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Pink, Michael Sent: Thursday, September 09, 2004 9:10 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile As previously suggested code a stop before any processing occurs. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Thursday, September 09, 2004 8:51 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use.=20 --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) >=20 >=20 >=20 > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 >=20 >=20 > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com]=20 > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile >=20 >=20 > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? >=20 >=20 > Thanks, > Murali >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 =09=09 __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=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 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 09:19:29 2004 From: "McCown, Larry" Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 07:14:21 -0700 Murali Try looking in your log file. I have found that it will appear to compile okay but the log file will provide you with the errors. Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=ngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=ngc.com@sqrug.org]On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 6:50 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile I have used -RS switch, the program is getting completed without showing me any errors even though my program had errors. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On Behalf Of the dragon Sent: Thursday, September 09, 2004 9:35 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sqr compile if you just want to compile it, execute with the -RS switch. peace, clarrk '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 concur. code a stop first, the code will go through the compile stage, get to the execution stage and stop itself before any processing starts. Or do a goto at the beginning that goes to the end. just skip all execution -----Original Message----- As previously suggested code a stop before any processing occurs. -----Original Message----- That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use. --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) > > > > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 > > > -----Original Message----- > > > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? > > > Thanks, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 10:22:46 2004 Subject: RE: [sqr-users] sqr compile Date: Thu, 9 Sep 2004 10:22:07 -0500 From: "Turner, Ivan" Use the "-rs" flag to compile an sqr without executing it.=20=20 "sqr -rs abc.sqr uname/pwd" This will create a .sqt file. This is the executable. Delete it if you don't plan to run an executable. Another words, if you plan to execute the sqr by compiling on the fly, delete the .sqt file. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Thursday, September 09, 2004 12:53 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile Murali,=20=20=20=20=20 I don't think there is any stand-alone compiler for SQR. May be you can, Include the STDAPI-INIT and STDAPI-TERM procedures in the program from prcsapi.sqc. Then even on successful compilation of the code, the SQRW prompts for the database name and process instance number. Then, you can abort the execution by clicking on the close button. Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Wednesday, September 08, 2004 9:19 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 04:08:25 2004 From: "SRI Technologies" Subject: RE: [sqr-users] sqr compile Date: Fri, 10 Sep 2004 19:13:54 +1000 Hi Murali, SqrPlus (available at www.sritech.com.au) can be used to achieve this. If you have defined variables either using DECLARE-VARIABLE directive or using #define dim $variable_name ... directive, SqrPlus compiler ensures that your program does not suffer from any hidden bugs that may be present due to mere typing error. You can run your program in debug mode and quit on the first statement. You get into debug mode only if your program does not have any errors. Regards, Susan -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Thursday, September 09, 2004 1:49 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] sqr compile I want to compile a sqr for any syntax errors etc without actually executing the program. I dont want the program to execute as it has lot of database truncates and updates. I just need a way to compile the sqr. Any ideas? Thanks, Murali ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Sep 13 19:16:50 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] sqr compile Date: Mon, 13 Sep 2004 17:15:24 -0700 If you put a STOP at the beginning of the program, the compiler will compile the whole program, but the execution of the program won't do anything after the STOP. I think that's what you want to happen. When you're ready to execute the program, remove the STOP. Alternately, you can make the first command an INPUT statement. Be careful that it doesn't read its value from your command line. When the program asks you for input, you can stop it yourself. The "-RS" option on the command line will try to compile your program and save the compiled version, but not execute it. That's another way to compile without executing. As you observed, ROLLBACK doesn't reverse TRUNCATE. It also won't reverse file operations, like overwriting an existing file. -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] Sent: Thursday, September 09, 2004 6:24 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] sqr compile if I use STOP the program will not proceed further. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On Behalf Of Pink, Michael Sent: Thursday, September 09, 2004 9:10 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile As previously suggested code a stop before any processing occurs. -----Original Message----- From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, September 09, 2004 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] sqr compile That's what my problem is. Rollback will be of no use for me as I have truncates in my program. I am still waiting on for proper solutions from you guys to compile the program without actually executing it. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org]On Behalf Of Dattatraya Shetty Sent: Thursday, September 09, 2004 8:51 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sqr compile I think only problem with Rollback is that if the tables have been truncated and not deleted then it is of no use. --- "Sapitan, Mary Ann (MG)" wrote: > I think you could try putting a rollback command at the end of the > sqr and still run it so as not to have the changes be committed to > the database. > Anyway, if your sqr would have syntax errors, it wouldn't reach the > end of the program and roll back anyway. :) > > > > Thanks, > Ma-an Sapitan > * (632) 841-0111 loc. 4549 > > > -----Original Message----- > From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com] > Sent: Wednesday, September 08, 2004 11:49 PM > To: This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions. > Subject: [sqr-users] sqr compile > > > I want to compile a sqr for any syntax errors etc without actually > executing the program. I dont want the program to execute as it has > lot of database truncates and updates. I just need a way to compile > the sqr. Any ideas? > > > Thanks, > Murali > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ 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 email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 15:09:16 2004 From: "Pospical, Alex" Date: Wed, 8 Sep 2004 13:04:53 -0700 Subject: [sqr-users] Need Help with Oracle DB Link Hello I have spent the last few days searching through the archives on this subject while waiting for my registration confirmation and while I have found many postings that have helped I have still not been able to make this work. Any additional or specific help would be appreciated. I have been trying to set up a process to copy a table from a SQL 2000 Server database to an Oracle 8.1.7.3.0 database inside of an SQR running on SQL Server. The SQR is executed from the SQL environment and I have a database link defined to the Oracle database using Microsoft Ole db for Oracle. I have verified that the link works by running the delete and insert processes from SQL Query Analyzer. I tried using the following select to see if I can even get to the Oracle database from an SQR: BEGIN-SELECT ON-ERROR=SELECT-ERROR a.XXXX_XXX &xxxx_xxx FROM DDMDB..HRIS_DM.XX_XXXXXXXXX_XXX a END-SELECT DDMDB is the database link, HRIS_DM is the Oracle schema user and the remainder is the oracle table (standard 4 part name convention) This same syntax works from SQL Query Analyzer but causes the following error when executed from SQR. SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7300 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b]. (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7391 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction. Error on line 56: (SQR 3716) Error in SQL statement. Any ideas/suggestions would be appreciated. Thanks Alex Pospical LMSI _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 06:41:41 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Need Help with Oracle DB Link Date: Thu, 9 Sep 2004 21:36:58 +1000 If you can connect to Oracle from SQL Server, it might be easier to use DTS. 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 Pospical, Alex Sent: Thursday, 9 September 2004 6:05 AM To: 'SQR Users (sqr-users@sqrug.org)' Subject: [sqr-users] Need Help with Oracle DB Link Hello I have spent the last few days searching through the archives on this subject while waiting for my registration confirmation and while I have found many postings that have helped I have still not been able to make this work. Any additional or specific help would be appreciated. I have been trying to set up a process to copy a table from a SQL 2000 Server database to an Oracle 8.1.7.3.0 database inside of an SQR running on SQL Server. The SQR is executed from the SQL environment and I have a database link defined to the Oracle database using Microsoft Ole db for Oracle. I have verified that the link works by running the delete and insert processes from SQL Query Analyzer. I tried using the following select to see if I can even get to the Oracle database from an SQR: BEGIN-SELECT ON-ERROR=SELECT-ERROR a.XXXX_XXX &xxxx_xxx FROM DDMDB..HRIS_DM.XX_XXXXXXXXX_XXX a END-SELECT DDMDB is the database link, HRIS_DM is the Oracle schema user and the remainder is the oracle table (standard 4 part name convention) This same syntax works from SQL Query Analyzer but causes the following error when executed from SQR. SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7300 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b]. (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7391 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction. Error on line 56: (SQR 3716) Error in SQL statement. Any ideas/suggestions would be appreciated. Thanks Alex Pospical LMSI _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:51:17 2004 Subject: RE: [sqr-users] Need Help with Oracle DB Link Date: Thu, 9 Sep 2004 08:44:06 -0500 From: "Knapp, Richard" Might the oracle link syntax work? Schema.table@db_link 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 Pospical, Alex Sent: Wednesday, September 08, 2004 3:05 PM To: 'SQR Users (sqr-users@sqrug.org)' Subject: [sqr-users] Need Help with Oracle DB Link Hello =20 I have spent the last few days searching through the archives on this subject while waiting for my registration confirmation and while I have found many postings that have helped I have still not been able to make this work. Any additional or specific help would be appreciated. =20 I have been trying to set up a process to copy a table from a SQL 2000 Server database to an Oracle 8.1.7.3.0 database inside of an SQR running on SQL Server. The SQR is executed from the SQL environment and I have a database link defined to the Oracle database using Microsoft Ole db for Oracle. I have verified that the link works by running the delete and insert processes from SQL Query Analyzer. I tried using the following select to see if I can even get to the Oracle database from an SQR: =20 BEGIN-SELECT ON-ERROR=3DSELECT-ERROR =20 a.XXXX_XXX &xxxx_xxx FROM DDMDB..HRIS_DM.XX_XXXXXXXXX_XXX a =20 END-SELECT =20 DDMDB is the database link, HRIS_DM is the Oracle schema user and the remainder is the oracle table (standard 4 part name convention) This same syntax works from SQL Query Analyzer but causes the following error when executed from SQR. =20 SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7300 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b]. (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7391 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction. =20 Error on line 56: (SQR 3716) Error in SQL statement. =20 Any ideas/suggestions would be appreciated. =20 Thanks =20 Alex Pospical LMSI =20 =20 =20 =20 =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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 10:10:00 2004 From: "Pospical, Alex" Subject: RE: [sqr-users] Need Help with Oracle DB Link Date: Thu, 9 Sep 2004 08:02:18 -0700 When I tried to use the Oracle syntax it produced the following error: (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 208 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'HRIS_DM.PS_PAYH1322STG_HNF@DDMDB'. (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 8180 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. Is there any configuration steps that need to be taken before using this syntax? Thanks Alex Pospical (509)376-2632 -----Original Message----- Might the oracle link syntax work? Schema.table@db_link 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 Pospical, Alex Sent: Wednesday, September 08, 2004 3:05 PM To: 'SQR Users (sqr-users@sqrug.org)' Subject: [sqr-users] Need Help with Oracle DB Link Hello I have spent the last few days searching through the archives on this subject while waiting for my registration confirmation and while I have found many postings that have helped I have still not been able to make this work. Any additional or specific help would be appreciated. I have been trying to set up a process to copy a table from a SQL 2000 Server database to an Oracle 8.1.7.3.0 database inside of an SQR running on SQL Server. The SQR is executed from the SQL environment and I have a database link defined to the Oracle database using Microsoft Ole db for Oracle. I have verified that the link works by running the delete and insert processes from SQL Query Analyzer. I tried using the following select to see if I can even get to the Oracle database from an SQR: BEGIN-SELECT ON-ERROR=SELECT-ERROR a.XXXX_XXX &xxxx_xxx FROM DDMDB..HRIS_DM.XX_XXXXXXXXX_XXX a END-SELECT DDMDB is the database link, HRIS_DM is the Oracle schema user and the remainder is the oracle table (standard 4 part name convention) This same syntax works from SQL Query Analyzer but causes the following error when executed from SQR. SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7300 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b]. (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7391 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction. Error on line 56: (SQR 3716) Error in SQL statement. Any ideas/suggestions would be appreciated. Thanks Alex Pospical LMSI _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:22:07 2004 From: "Pospical, Alex" Subject: RE: [sqr-users] Need Help with Oracle DB Link Date: Thu, 9 Sep 2004 09:08:51 -0700 Steve I actually have the DTS process ready as a optional method should I not be able work directly from the SQR. For future maintenance and support of the process it would be best if it was all contained within the sqr, adding as few additional dependencies as possible. It looked to me like I would have to execute the DTS from a stored procedure using xp_cmdshell and then call that stored proc from the sqr. Alex Pospical (509)376-2632 -----Original Message----- If you can connect to Oracle from SQL Server, it might be easier to use DTS. Steve. From: Pospical, Alex Sent: Wednesday, September 08, 2004 1:05 PM To: 'SQR Users (sqr-users@sqrug.org)' Subject: [sqr-users] Need Help with Oracle DB Link Hello I have spent the last few days searching through the archives on this subject while waiting for my registration confirmation and while I have found many postings that have helped I have still not been able to make this work. Any additional or specific help would be appreciated. I have been trying to set up a process to copy a table from a SQL 2000 Server database to an Oracle 8.1.7.3.0 database inside of an SQR running on SQL Server. The SQR is executed from the SQL environment and I have a database link defined to the Oracle database using Microsoft Ole db for Oracle. I have verified that the link works by running the delete and insert processes from SQL Query Analyzer. I tried using the following select to see if I can even get to the Oracle database from an SQR: BEGIN-SELECT ON-ERROR=SELECT-ERROR a.XXXX_XXX &xxxx_xxx FROM DDMDB..HRIS_DM.XX_XXXXXXXXX_XXX a END-SELECT DDMDB is the database link, HRIS_DM is the Oracle schema user and the remainder is the oracle table (standard 4 part name convention) This same syntax works from SQL Query Analyzer but causes the following error when executed from SQR. SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7300 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b]. (SQR 5528) ODBC SQL dbdesc: SQLNumResultCols error 7391 in cursor 20: [Microsoft][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction. Error on line 56: (SQR 3716) Error in SQL statement. Any ideas/suggestions would be appreciated. Thanks Alex Pospical LMSI _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 18:53:49 2004 Date: Wed, 8 Sep 2004 16:52:36 -0700 (PDT) From: Vani Ashok Subject: [sqr-users] Urgent: Problem executing cursor Hello Everybody, I am currently working on an SQR which prints a report for the deductions. Whenever I run the program from the process scheduler without specifying the sort options (run parameters), the SQR works fine and prints the report. However, when I specify the sort options and run the SQR, it gives me this error. (SQR 5528) ODBC SQL dbexec: SQLExecute error 170 in cursor 18: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '.3'. (SQR 5528) ODBC SQL dbexec: SQLExecute error 8180 in cursor 18: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. Error on line 101: (SQR 3723) Problem executing cursor. I tried to find out the incorrect syntax error by using the -S option. This is the SQL it is refering to: Cursor #18: SQL = SELECT B.BUSINESS_UNIT, B.CUST_ID, U.NAME1, K.CITY, K.STATE, B.ITEM, B.ITEM_LINE, B.SPLIT_ID, B.DM_OFFSET_ID_BU, B.DM_OFFSET_ID_CUST, B.DM_OFFSET_ID, B.DM_OFFSET_LINE, B.DM_OFFSET_SEQ_NUM, B.DM_RES_ACTION, B.DM_MATCH_ID, B.DM_MATCH_ID_2, B.DM_MATCH_ID_3, B.OPEN_AMT, B.ENTRY_AMT, B.BAL_AMT, C.DM_SPECIALIST, U.SETID FROM PS_DM_POTENTIAL B, PS_CUSTOMER U, PS_SET_CNTRL_REC V, PS_CUST_ADDR_EF_VW K, PS_DM_ITEM C WHERE B.BUSINESS_UNIT LIKE ? AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.CUST_ID LIKE ? AND C.DM_SPECIALIST LIKE ? AND B.CUST_ID = U.CUST_ID AND B.CUST_ID = C.CUST_ID AND B.CUST_ID = K.CUST_ID AND C.DEDUCTION_STATUS <> 'C' AND U.SETID = V.SETID AND U.CUST_ID = K.CUST_ID AND U.SETID = K.SETID AND U.ADDRESS_SEQ_NUM = K.ADDRESS_SEQ_NUM AND V.SETCNTRLVALUE = B.BUSINESS_UNIT AND V.SETCNTRLVALUE = C.BUSINESS_UNIT AND V.RECNAME = 'CUSTOMER' AND B.ITEM = C.ITEM AND B.ITEM_LINE = C.ITEM_LINE AND B.SPLIT_ID = C.SPLIT_ID ORDER BY [$order-by] Compiles = 1 Executes = 0 Rows = 0 I did run the SQL query and found that it works fine. Also, I am not able to find where in the program this SQL is present. Line 101 in my program refers to the procedure do DEFINE-PRCS-VARS Further, I had to increase the SUBVARS size while running the program with the -S option. I have set it to the maximum limit but still encounter the error. Is there any other way around this. Could anyone please guide me in this. Thanks in advance, Regards, Deepa --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 19:26:01 2004 Date: Wed, 08 Sep 2004 20:25:10 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Urgent: Problem executing cursor I don't know SQL Server, but I see .3 not ,3 are you trying to send $order-by values like "1,2,3"? Could you have typed it wrong? Larry Roux Syracuse University lroux@syr.edu >>> lotzofsmileys@yahoo.com 9/8/2004 7:52:36 PM >>> Hello Everybody, I am currently working on an SQR which prints a report for the deductions. Whenever I run the program from the process scheduler without specifying the sort options (run parameters), the SQR works fine and prints the report. However, when I specify the sort options and run the SQR, it gives me this error. (SQR 5528) ODBC SQL dbexec: SQLExecute error 170 in cursor 18: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '.3'. (SQR 5528) ODBC SQL dbexec: SQLExecute error 8180 in cursor 18: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. Error on line 101: (SQR 3723) Problem executing cursor. I tried to find out the incorrect syntax error by using the -S option. This is the SQL it is refering to: Cursor #18: SQL = SELECT B.BUSINESS_UNIT, B.CUST_ID, U.NAME1, K.CITY, K.STATE, B.ITEM, B.ITEM_LINE, B.SPLIT_ID, B.DM_OFFSET_ID_BU, B.DM_OFFSET_ID_CUST, B.DM_OFFSET_ID, B.DM_OFFSET_LINE, B.DM_OFFSET_SEQ_NUM, B.DM_RES_ACTION, B.DM_MATCH_ID, B.DM_MATCH_ID_2, B.DM_MATCH_ID_3, B.OPEN_AMT, B.ENTRY_AMT, B.BAL_AMT, C.DM_SPECIALIST, U.SETID FROM PS_DM_POTENTIAL B, PS_CUSTOMER U, PS_SET_CNTRL_REC V, PS_CUST_ADDR_EF_VW K, PS_DM_ITEM C WHERE B.BUSINESS_UNIT LIKE ? AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.CUST_ID LIKE ? AND C.DM_SPECIALIST LIKE ? AND B.CUST_ID = U.CUST_ID AND B.CUST_ID = C.CUST_ID AND B.CUST_ID = K.CUST_ID AND C.DEDUCTION_STATUS <> 'C' AND U.SETID = V.SETID AND U.CUST_ID = K.CUST_ID AND U.SETID = K.SETID AND U.ADDRESS_SEQ_NUM = K.ADDRESS_SEQ_NUM AND V.SETCNTRLVALUE = B.BUSINESS_UNIT AND V.SETCNTRLVALUE = C.BUSINESS_UNIT AND V.RECNAME = 'CUSTOMER' AND B.ITEM = C.ITEM AND B.ITEM_LINE = C.ITEM_LINE AND B.SPLIT_ID = C.SPLIT_ID ORDER BY [$order-by] Compiles = 1 Executes = 0 Rows = 0 I did run the SQL query and found that it works fine. Also, I am not able to find where in the program this SQL is present. Line 101 in my program refers to the procedure do DEFINE-PRCS-VARS Further, I had to increase the SUBVARS size while running the program with the -S option. I have set it to the maximum limit but still encounter the error. Is there any other way around this. Could anyone please guide me in this. Thanks in advance, Regards, Deepa --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Sep 08 20:26:18 2004 Date: Wed, 8 Sep 2004 18:25:19 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Urgent: Problem executing cursor What does your Query Look Like ? Can you post that. --- Larry Roux wrote: > I don't know SQL Server, but I see .3 not ,3 are you trying to send > $order-by values like "1,2,3"? Could you have typed it wrong? > > > > > Larry Roux > Syracuse University > lroux@syr.edu > > > >>> lotzofsmileys@yahoo.com 9/8/2004 7:52:36 PM >>> > Hello Everybody, > I am currently working on an SQR which prints a report for the > deductions. Whenever I run the program from the process scheduler > without specifying the sort options (run parameters), the SQR works > fine > and prints the report. However, when I specify the sort options and > run > the SQR, it gives me this error. > (SQR 5528) ODBC SQL dbexec: SQLExecute error 170 in cursor 18: > [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect > syntax near '.3'. > (SQR 5528) ODBC SQL dbexec: SQLExecute error 8180 in cursor 18: > [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could > not be prepared. > Error on line 101: > (SQR 3723) Problem executing cursor. > > I tried to find out the incorrect syntax error by using the -S > option. > This is the SQL it is refering to: > Cursor #18: > SQL = SELECT B.BUSINESS_UNIT, B.CUST_ID, U.NAME1, K.CITY, K.STATE, > B.ITEM, > B.ITEM_LINE, B.SPLIT_ID, B.DM_OFFSET_ID_BU, > B.DM_OFFSET_ID_CUST, > B.DM_OFFSET_ID, B.DM_OFFSET_LINE, B.DM_OFFSET_SEQ_NUM, > B.DM_RES_ACTION, B.DM_MATCH_ID, B.DM_MATCH_ID_2, > B.DM_MATCH_ID_3, > B.OPEN_AMT, B.ENTRY_AMT, B.BAL_AMT, C.DM_SPECIALIST, U.SETID > > FROM > PS_DM_POTENTIAL B, PS_CUSTOMER U, PS_SET_CNTRL_REC V, > PS_CUST_ADDR_EF_VW K, PS_DM_ITEM C WHERE B.BUSINESS_UNIT > LIKE ? > AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.CUST_ID > > > LIKE ? AND C.DM_SPECIALIST LIKE ? AND B.CUST_ID = > U.CUST_ID > AND > B.CUST_ID = C.CUST_ID AND B.CUST_ID = K.CUST_ID AND > C.DEDUCTION_STATUS <> 'C' AND U.SETID = V.SETID AND > U.CUST_ID > = > K.CUST_ID AND U.SETID = K.SETID AND U.ADDRESS_SEQ_NUM = > K.ADDRESS_SEQ_NUM AND V.SETCNTRLVALUE = > B.BUSINESS_UNIT > AND > V.SETCNTRLVALUE = C.BUSINESS_UNIT AND V.RECNAME > > = > 'CUSTOMER' AND B.ITEM = C.ITEM AND > B.ITEM_LINE > > = C.ITEM_LINE AND B.SPLIT_ID = C.SPLIT_ID > ORDER > BY > [$order-by] > Compiles = 1 > Executes = 0 > Rows = 0 > > I did run the SQL query and found that it works fine. Also, I am not > able to find where in the program this SQL is present. > Line 101 in my program refers to the procedure do DEFINE-PRCS-VARS > Further, I had to increase the SUBVARS size while running the program > with the -S option. I have set it to the maximum limit but still > encounter the error. Is there any other way around this. > Could anyone please guide me in this. > Thanks in advance, > Regards, > Deepa > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > > _______________________________________________ > 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 - 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 01:45:17 2004 From: "jessdb" Date: Thu, 09 Sep 2004 14:39:53 +0800 Subject: [sqr-users] select statement - display last issuedate Hello! I have this select statement and output below. It works fine, however I want to print only the last issuedate (item 113317). I don't want to display other dates prior to that. Please feel free to modify my select statement if necessary. Thanks for any help. Regards, Jess select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' order by matusetrans.actualdate desc; OUTPUT ITEMNUM ISSUETYPE LASTISSUE ======= ========= ==================== 100921 ISSUE 08-SEP-2004 07:48:00 111039 ISSUE 08-SEP-2004 07:38:00 113317 ISSUE 26-AUG-2004 16:19:00 113317 ISSUE 25-AUG-2004 14:19:00 113317 ISSUE 24-AUG-2004 16:17:00 106649 ISSUE 26-AUG-2004 16:10:00 106726 ISSUE 26-AUG-2004 10:29:00 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.COM ** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 06:14:36 2004 Subject: RE: [sqr-users] select statement - display last issuedate Date: Thu, 9 Sep 2004 07:10:53 -0400 From: "Wes Williams" Hi Jess, select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item,=20 matusetrans where item.itemnum =3D matusetrans.itemnum and item.stocktype =3D 'INSSIS' and matusetrans.issuetype =3D 'ISSUE' and actualdate =3D (select max(actualdate) from matusetrans where item.itemnum =3D matusetrans.itemnum) Why not just use the lastissuedate from the inventory table? Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of jessdb Sent: Thursday, September 09, 2004 2:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] select statement - display last issuedate Hello! I have this select statement and output below. It works fine, however I want=20 to print only the last issuedate (item 113317). I don't want to display other=20 dates prior to that. Please feel free to modify my select statement if necessary. Thanks for any help. Regards, Jess select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item,=20 matusetrans where item.itemnum =3D matusetrans.itemnum and item.stocktype =3D 'INSSIS' and matusetrans.issuetype =3D 'ISSUE' order by matusetrans.actualdate desc; OUTPUT ITEMNUM ISSUETYPE LASTISSUE =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 100921 ISSUE 08-SEP-2004 07:48:00 111039 ISSUE 08-SEP-2004 07:38:00 113317 ISSUE 26-AUG-2004 16:19:00 113317 ISSUE 25-AUG-2004 14:19:00 113317 ISSUE 24-AUG-2004 16:17:00 106649 ISSUE 26-AUG-2004 16:10:00 106726 ISSUE 26-AUG-2004 10:29:00 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 07:56:15 2004 Date: Thu, 9 Sep 2004 05:52:44 -0700 (PDT) From: Dattatraya Shetty Subject: RE: [sqr-users] select statement - display last issuedate Jess, Why not use the Max() function in the group that way it will end up with the Last value for the date. HTH Datta --- Wes Williams wrote: > Hi Jess, > > select item.itemnum, matusetrans.issuetype, matusetrans.actualdate > from > item, > matusetrans > where item.itemnum = matusetrans.itemnum > and item.stocktype = 'INSSIS' > and matusetrans.issuetype = 'ISSUE' and actualdate = (select > max(actualdate) from matusetrans where item.itemnum = > matusetrans.itemnum) > > > Why not just use the lastissuedate from the inventory table? > > Wes > > Wes Williams > Manager Facilities Mgt. Systems > Princeton University > 609-258-7027 > > > -----Original Message----- > From: sqr-users-bounces+wes=princeton.edu@sqrug.org > [mailto:sqr-users-bounces+wes=princeton.edu@sqrug.org] On Behalf Of > jessdb > Sent: Thursday, September 09, 2004 2:40 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] select statement - display last issuedate > > Hello! > > I have this select statement and output below. It works fine, however > I > want > to print only the last issuedate (item 113317). I don't want to > display > other > dates prior to that. > > Please feel free to modify my select statement if necessary. > > Thanks for any help. > > Regards, > Jess > > > select item.itemnum, matusetrans.issuetype, matusetrans.actualdate > from > item, > matusetrans > where item.itemnum = matusetrans.itemnum > and item.stocktype = 'INSSIS' > and matusetrans.issuetype = 'ISSUE' > order by matusetrans.actualdate desc; > > > OUTPUT > > ITEMNUM ISSUETYPE LASTISSUE > ======= ========= ==================== > 100921 ISSUE 08-SEP-2004 07:48:00 > 111039 ISSUE 08-SEP-2004 07:38:00 > 113317 ISSUE 26-AUG-2004 16:19:00 > 113317 ISSUE 25-AUG-2004 14:19:00 > 113317 ISSUE 24-AUG-2004 16:17:00 > 106649 ISSUE 26-AUG-2004 16:10:00 > 106726 ISSUE 26-AUG-2004 10:29:00 > ____________________________________________________________________ > ** Get your free E-Mail account at WWW.DIGITELONE.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!? 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 19:43:09 2004 From: "jessdb" Subject: RE: [sqr-users] select statement - display last issuedate Date: Fri, 10 Sep 2004 08:39:22 +0800 Thanks a lot to Datta, Wes & Becca who replied to this. This is a big help to new users like me. Btw, is it possible to get the last two issue transactions? If so, how? Thanks again for the help. Regards, Jess -----Original Message----- From: Wes Williams [mailto:wes@Princeton.EDU] Sent: Thursday, September 09, 2004 7:10 PM To: ernie.bueno@jgspetrochem.com Subject: RE: [sqr-users] select statement - display last issuedate Hi Jess, select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' and actualdate = (select max(actualdate) from matusetrans where item.itemnum = matusetrans.itemnum) Why not just use the lastissuedate from the inventory table? Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 -----Original Message----- From: sqr-users-bounces+wes=princeton.edu@sqrug.org [mailto:sqr-users-bounces+wes=princeton.edu@sqrug.org] On Behalf Of jessdb Sent: Thursday, September 09, 2004 2:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] select statement - display last issuedate Hello! I have this select statement and output below. It works fine, however I want to print only the last issuedate (item 113317). I don't want to display other dates prior to that. Please feel free to modify my select statement if necessary. Thanks for any help. Regards, Jess select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' order by matusetrans.actualdate desc; OUTPUT ITEMNUM ISSUETYPE LASTISSUE ======= ========= ==================== 100921 ISSUE 08-SEP-2004 07:48:00 111039 ISSUE 08-SEP-2004 07:38:00 113317 ISSUE 26-AUG-2004 16:19:00 113317 ISSUE 25-AUG-2004 14:19:00 113317 ISSUE 24-AUG-2004 16:17:00 106649 ISSUE 26-AUG-2004 16:10:00 106726 ISSUE 26-AUG-2004 10:29:00 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.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 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.COM ** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 02:45:36 2004 Subject: RE: [sqr-users] select statement - display last issuedate Date: Fri, 10 Sep 2004 09:44:29 +0200 From: "Kloprogge,Frank F.J.M." Hi Jess, in this case it might be handy to do an order by LASTISSUE descending Change the "begin-select" to "begin-select loops=2" and you'll get only 2 rows, the highest value of LASTISSUE first, and the value prior to that one as row 2. HTH Frank. -----Oorspronkelijk bericht----- Van: jessdb [mailto:jessdb@digitelone.com] Verzonden: vrijdag 10 september 2004 2:39 Aan: sqr-users@sqrug.org Onderwerp: RE: [sqr-users] select statement - display last issuedate Thanks a lot to Datta, Wes & Becca who replied to this. This is a big help to new users like me. Btw, is it possible to get the last two issue transactions? If so, how? Thanks again for the help. Regards, Jess -----Original Message----- From: Wes Williams [mailto:wes@Princeton.EDU] Sent: Thursday, September 09, 2004 7:10 PM To: ernie.bueno@jgspetrochem.com Subject: RE: [sqr-users] select statement - display last issuedate Hi Jess, select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' and actualdate = (select max(actualdate) from matusetrans where item.itemnum = matusetrans.itemnum) Why not just use the lastissuedate from the inventory table? Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 -----Original Message----- From: sqr-users-bounces+wes=princeton.edu@sqrug.org [mailto:sqr-users-bounces+wes=princeton.edu@sqrug.org] On Behalf Of jessdb Sent: Thursday, September 09, 2004 2:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] select statement - display last issuedate Hello! I have this select statement and output below. It works fine, however I want to print only the last issuedate (item 113317). I don't want to display other dates prior to that. Please feel free to modify my select statement if necessary. Thanks for any help. Regards, Jess select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' order by matusetrans.actualdate desc; OUTPUT ITEMNUM ISSUETYPE LASTISSUE ======= ========= ==================== 100921 ISSUE 08-SEP-2004 07:48:00 111039 ISSUE 08-SEP-2004 07:38:00 113317 ISSUE 26-AUG-2004 16:19:00 113317 ISSUE 25-AUG-2004 14:19:00 113317 ISSUE 24-AUG-2004 16:17:00 106649 ISSUE 26-AUG-2004 16:10:00 106726 ISSUE 26-AUG-2004 10:29:00 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.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 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.COM ** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------- Op deze e-mail zijn de volgende voorwaarden van toepassing: http://www.fontys.nl/disclaimer The above disclaimer applies to this e-mail message. ---------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 03:40:03 2004 From: "jessdb" Subject: RE: [sqr-users] select statement - display last issuedate Date: Fri, 10 Sep 2004 16:32:41 +0800 Thank you very much Frank. This group is really wonderful... Good luck to all! Jess -----Original Message----- From: Kloprogge,Frank F.J.M. [mailto:F.J.M.Kloprogge@fontys.nl] Sent: Friday, September 10, 2004 3:49 PM To: ernie.bueno@jgspetrochem.com Subject: RE: [sqr-users] select statement - display last issuedate Hi Jess, in this case it might be handy to do an order by LASTISSUE descending Change the "begin-select" to "begin-select loops=2" and you'll get only 2 rows, the highest value of LASTISSUE first, and the value prior to that one as row 2. HTH Frank. -----Oorspronkelijk bericht----- Van: jessdb [mailto:jessdb@digitelone.com] Verzonden: vrijdag 10 september 2004 2:39 Aan: sqr-users@sqrug.org Onderwerp: RE: [sqr-users] select statement - display last issuedate Thanks a lot to Datta, Wes & Becca who replied to this. This is a big help to new users like me. Btw, is it possible to get the last two issue transactions? If so, how? Thanks again for the help. Regards, Jess -----Original Message----- From: Wes Williams [mailto:wes@Princeton.EDU] Sent: Thursday, September 09, 2004 7:10 PM To: ernie.bueno@jgspetrochem.com Subject: RE: [sqr-users] select statement - display last issuedate Hi Jess, select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' and actualdate = (select max(actualdate) from matusetrans where item.itemnum = matusetrans.itemnum) Why not just use the lastissuedate from the inventory table? Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 -----Original Message----- From: sqr-users-bounces+wes=princeton.edu@sqrug.org [mailto:sqr-users-bounces+wes=princeton.edu@sqrug.org] On Behalf Of jessdb Sent: Thursday, September 09, 2004 2:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] select statement - display last issuedate Hello! I have this select statement and output below. It works fine, however I want to print only the last issuedate (item 113317). I don't want to display other dates prior to that. Please feel free to modify my select statement if necessary. Thanks for any help. Regards, Jess select item.itemnum, matusetrans.issuetype, matusetrans.actualdate from item, matusetrans where item.itemnum = matusetrans.itemnum and item.stocktype = 'INSSIS' and matusetrans.issuetype = 'ISSUE' order by matusetrans.actualdate desc; OUTPUT ITEMNUM ISSUETYPE LASTISSUE ======= ========= ==================== 100921 ISSUE 08-SEP-2004 07:48:00 111039 ISSUE 08-SEP-2004 07:38:00 113317 ISSUE 26-AUG-2004 16:19:00 113317 ISSUE 25-AUG-2004 14:19:00 113317 ISSUE 24-AUG-2004 16:17:00 106649 ISSUE 26-AUG-2004 16:10:00 106726 ISSUE 26-AUG-2004 10:29:00 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.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 ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.COM ** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------- Op deze e-mail zijn de volgende voorwaarden van toepassing: http://www.fontys.nl/disclaimer The above disclaimer applies to this e-mail message. ---------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ____________________________________________________________________ ** Get your free E-Mail account at WWW.DIGITELONE.COM ** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 08:03:08 2004 Date: Thu, 9 Sep 2004 07:55:04 -0500 From: "Kathy Mason" Subject: [sqr-users] Performance Problem with ddp003.sqr Since there was discussion about ddp003.sqr, I thought I would mention my p= roblem in case someone has any ideas. We just upgraded our database and no= w ddp003.sqr is taking 6 hours to run when it previously took only 15 minut= es to run.=20=20=20 =20 We are running Microsoft SQL Server 2000 on Window Server 2003. =20 I have run the SQL from the main select through query analyzer and it takes= 6 minutes to run. If I add criteria to limit the range for Employee IDs t= o 10000 (B.EMPLID BETWEEN '00000' AND '10000' OR B.EMPLID BETWEEN '01000' A= ND '11000', it runs in 3 seconds. Are there limits that I might be hitting? =20 =20 I have recreated the indexes. I have updated statistics. I can't find any= problems with the data.=20=20 =20 Here is the Main Select: =20 SELECT A.COMPANY,A.PAYGROUP,A.PAY_BEGIN_DT,A.PAY_END_DT, A1.BALANCE_YEAR,A1.BALANCE_PERIOD,A.CHECK_DT,A1.BALANCE_ID, B.OFF_CYCLE,B.PAGE_NUM,B.LINE_NUM,B.SEPCHK, B.FORM_ID,B.PAYCHECK_NBR,B.CHECK_DT, B.EMPLID,B.EMPL_RCD,B.NAME,B.PAYCHECK_NAME,B.ADDRESS1,B.ADDRESS2,B.ADDRESS3, B.CITY,B.STATE,B.POSTAL, B.PAYCHECK_OPTION,B.PAYCHECK_ADDR_OPTN, B.TOTAL_GROSS,B.TOTAL_TAXES,B.TOTAL_DEDUCTIONS,B.NET_PAY, B.PAY_SHEET_SRC, B.BUSINESS_UNIT, C.FORM_ID,C.PAYCHECK_NBR, G.EFFDT, Y.TOTAL_GROSS_YTD,Y.TOTAL_TAXES_YTD,Y.TOTAL_DEDNS_YTD,Y.NET_PAY_YTD =20 FROM PS_PAY_CALENDAR A, PS_PAY_CAL_BAL_ID A1, PS_PAY_CHECK B, PS_PAY_DISTRIBUTN C, PS_PAYGROUP_TBL G, PS_CHECK_YTD Y , PS_DIRECT_DEPOSIT DIST WHERE A.RUN_ID =3D 'F19' AND A.COMPANY =3D A1.COMPANY AND A.PAYGROUP =3D A1.PAYGROUP AND A.PAY_END_DT =3D A1.PAY_END_DT AND A1.BALANCE_ID =3D 'CY' AND B.OFF_CYCLE IN ('N') AND B.PAGE_NUM BETWEEN 1 AND 9999 AND B.COMPANY =3D A.COMPANY AND B.PAYGROUP =3D A.PAYGROUP AND B.PAY_END_DT =3D A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 AND B.PAYCHECK_NBR >=3D 0 AND B.PAYCHECK_NBR <=3D 999999999999999 AND B.PAYCHECK_OPTION IN ('A','&') AND B.PAYCHECK_STATUS =3D 'F' AND C.COMPANY =3D B.COMPANY AND C.PAYGROUP =3D B.PAYGROUP AND C.PAY_END_DT =3D B.PAY_END_DT AND C.OFF_CYCLE =3D B.OFF_CYCLE AND C.PAGE_NUM =3D B.PAGE_NUM AND C.LINE_NUM =3D B.LINE_NUM AND C.SEPCHK =3D B.SEPCHK AND G.COMPANY =3D A.COMPANY AND G.PAYGROUP =3D A.PAYGROUP AND G.COUNTRY =3D 'USA' AND Y.COMPANY =3D A.COMPANY AND Y.BALANCE_ID =3D A1.BALANCE_ID AND Y.BALANCE_YEAR =3D A1.BALANCE_YEAR AND Y.BALANCE_QTR =3D A1.BALANCE_QTR AND Y.BALANCE_PERIOD =3D A1.BALANCE_PERIOD AND Y.EMPLID =3D B.EMPLID AND C.PRIORITY =3D (SELECT MIN(PRIORITY) FROM PS_PAY_DISTRIBUTN WHERE COMPANY =3D C.COMPANY AND PAYGROUP =3D C.PAYGROUP AND PAY_END_DT =3D C.PAY_END_DT AND OFF_CYCLE =3D C.OFF_CYCLE AND PAGE_NUM =3D C.PAGE_NUM AND LINE_NUM =3D C.LINE_NUM AND SEPCHK =3D C.SEPCHK AND PAYCHECK_NBR =3D C.PAYCHECK_NBR AND ACCOUNT_TYPE <> '$') AND G.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_PAYGROUP_TBL WHERE COMPANY =3D A.COMPANY AND PAYGROUP =3D A.PAYGROUP AND EFF_STATUS =3D 'A' AND EFFDT <=3D A.PAY_END_DT) AND DIST.EMPLID =3D B.EMPLID AND DIST.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_DIRECT_DEPOSIT DIST1 WHERE DIST1.EMPLID =3D DIST.EMPLID AND DIST1.EFFDT <=3D A.PAY_END_DT) AND DIST.EFF_STATUS =3D 'A' AND DIST.SUPPR_DDP_ADVICE =3D 'N' ORDER BY B.SEPCHK, B.DEPTID, B.EMPLID =20 Any thoughts or suggestions would be appreciated. =20 Kathy Mason eVerge Group (214) 502-0007 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 09:04:21 2004 Subject: RE: [sqr-users] Performance Problem with ddp003.sqr Date: Thu, 9 Sep 2004 08:47:19 -0500 From: "Knapp, Richard" Try disabling the PS row level security. It contributes enormous overhead. 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 Kathy Mason Sent: Thursday, September 09, 2004 7:55 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance Problem with ddp003.sqr Since there was discussion about ddp003.sqr, I thought I would mention my problem in case someone has any ideas. We just upgraded our database and now ddp003.sqr is taking 6 hours to run when it previously took only 15 minutes to run.=20=20=20 =20 We are running Microsoft SQL Server 2000 on Window Server 2003. =20 I have run the SQL from the main select through query analyzer and it takes 6 minutes to run. If I add criteria to limit the range for Employee IDs to 10000 (B.EMPLID BETWEEN '00000' AND '10000' OR B.EMPLID BETWEEN '01000' AND '11000', it runs in 3 seconds. Are there limits that I might be hitting? =20 =20 I have recreated the indexes. I have updated statistics. I can't find any problems with the data.=20=20 =20 Here is the Main Select: =20 SELECT A.COMPANY,A.PAYGROUP,A.PAY_BEGIN_DT,A.PAY_END_DT, A1.BALANCE_YEAR,A1.BALANCE_PERIOD,A.CHECK_DT,A1.BALANCE_ID, B.OFF_CYCLE,B.PAGE_NUM,B.LINE_NUM,B.SEPCHK, B.FORM_ID,B.PAYCHECK_NBR,B.CHECK_DT, B.EMPLID,B.EMPL_RCD,B.NAME,B.PAYCHECK_NAME,B.ADDRESS1,B.ADDRESS2,B.ADDRE SS3, B.CITY,B.STATE,B.POSTAL, B.PAYCHECK_OPTION,B.PAYCHECK_ADDR_OPTN, B.TOTAL_GROSS,B.TOTAL_TAXES,B.TOTAL_DEDUCTIONS,B.NET_PAY, B.PAY_SHEET_SRC, B.BUSINESS_UNIT, C.FORM_ID,C.PAYCHECK_NBR, G.EFFDT, Y.TOTAL_GROSS_YTD,Y.TOTAL_TAXES_YTD,Y.TOTAL_DEDNS_YTD,Y.NET_PAY_YTD =20 FROM PS_PAY_CALENDAR A, PS_PAY_CAL_BAL_ID A1, PS_PAY_CHECK B, PS_PAY_DISTRIBUTN C, PS_PAYGROUP_TBL G, PS_CHECK_YTD Y , PS_DIRECT_DEPOSIT DIST WHERE A.RUN_ID =3D 'F19' AND A.COMPANY =3D A1.COMPANY AND A.PAYGROUP =3D A1.PAYGROUP AND A.PAY_END_DT =3D A1.PAY_END_DT AND A1.BALANCE_ID =3D 'CY' AND B.OFF_CYCLE IN ('N') AND B.PAGE_NUM BETWEEN 1 AND 9999 AND B.COMPANY =3D A.COMPANY AND B.PAYGROUP =3D A.PAYGROUP AND B.PAY_END_DT =3D A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 AND B.PAYCHECK_NBR >=3D 0 AND B.PAYCHECK_NBR <=3D 999999999999999 AND B.PAYCHECK_OPTION IN ('A','&') AND B.PAYCHECK_STATUS =3D 'F' AND C.COMPANY =3D B.COMPANY AND C.PAYGROUP =3D B.PAYGROUP AND C.PAY_END_DT =3D B.PAY_END_DT AND C.OFF_CYCLE =3D B.OFF_CYCLE AND C.PAGE_NUM =3D B.PAGE_NUM AND C.LINE_NUM =3D B.LINE_NUM AND C.SEPCHK =3D B.SEPCHK AND G.COMPANY =3D A.COMPANY AND G.PAYGROUP =3D A.PAYGROUP AND G.COUNTRY =3D 'USA' AND Y.COMPANY =3D A.COMPANY AND Y.BALANCE_ID =3D A1.BALANCE_ID AND Y.BALANCE_YEAR =3D A1.BALANCE_YEAR AND Y.BALANCE_QTR =3D A1.BALANCE_QTR AND Y.BALANCE_PERIOD =3D A1.BALANCE_PERIOD AND Y.EMPLID =3D B.EMPLID AND C.PRIORITY =3D (SELECT MIN(PRIORITY) FROM PS_PAY_DISTRIBUTN WHERE COMPANY =3D C.COMPANY AND PAYGROUP =3D C.PAYGROUP AND PAY_END_DT =3D C.PAY_END_DT AND OFF_CYCLE =3D C.OFF_CYCLE AND PAGE_NUM =3D C.PAGE_NUM AND LINE_NUM =3D C.LINE_NUM AND SEPCHK =3D C.SEPCHK AND PAYCHECK_NBR =3D C.PAYCHECK_NBR AND ACCOUNT_TYPE <> '$') AND G.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_PAYGROUP_TBL WHERE COMPANY =3D A.COMPANY AND PAYGROUP =3D A.PAYGROUP AND EFF_STATUS =3D 'A' AND EFFDT <=3D A.PAY_END_DT) AND DIST.EMPLID =3D B.EMPLID AND DIST.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_DIRECT_DEPOSIT DIST1 WHERE DIST1.EMPLID =3D DIST.EMPLID AND DIST1.EFFDT <=3D A.PAY_END_DT) AND DIST.EFF_STATUS =3D 'A' AND DIST.SUPPR_DDP_ADVICE =3D 'N' ORDER BY B.SEPCHK, B.DEPTID, B.EMPLID =20 Any thoughts or suggestions would be appreciated. =20 Kathy Mason eVerge Group (214) 502-0007 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 10:40:27 2004 From: "radhika reddy" Date: Thu, 09 Sep 2004 10:15:08 -0500 Subject: [sqr-users] currentdate - one month Hi, I am not getting how to get one month prior to current date in SQR. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 10:58:55 2004 From: "radhika reddy" Date: Thu, 09 Sep 2004 10:30:20 -0500 Subject: [sqr-users] currentdate - one month Hi, I am trying to write the code in order to get one month prior to current date. Thanks. _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 10:48:53 2004 From: "Overcashier, Patricia" Subject: RE: [sqr-users] currentdate - one month Date: Thu, 9 Sep 2004 11:47:15 -0400 Help! I am trapped in this user group and I can't get out! I have tried unsubscribing three times because I am about to go on sick leave for six weeks, but I am still getting these emails! I don't want my inbox to fill while I am away. Has anybody ever successfully left the group? -----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 radhika reddy Sent: Thursday, September 09, 2004 11:15 AM To: sqr-users@sqrug.org Subject: [sqr-users] currentdate - one month Hi, I am not getting how to get one month prior to current date in SQR. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:01:46 2004 Subject: RE: [sqr-users] currentdate - one month Date: Thu, 9 Sep 2004 10:52:00 -0500 From: "Hins, Thomas D. \(HSC\)" yES i HAVE BEFORE AND WE WISH YOU THE BEST AND A SPEEDY RECOVERY! 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 Overcashier, Patricia Sent: Thursday, September 09, 2004 10:47 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] currentdate - one month Help! I am trapped in this user group and I can't get out! I have tried unsubscribing three times=20 because I am about to go on sick leave for six weeks, but I am still getting these emails! I don't want my inbox to fill while I am away. Has anybody ever successfully left the group? -----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 radhika reddy Sent: Thursday, September 09, 2004 11:15 AM To: sqr-users@sqrug.org Subject: [sqr-users] currentdate - one month Hi, I am not getting how to get one month prior to current date in SQR. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!= =20 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:04:50 2004 From: "Chu, Nicholas" Subject: RE: [sqr-users] currentdate - one month Date: Thu, 9 Sep 2004 10:55:03 -0500 Wouldn't it be easier to use database functions? In Oracle 9, can use add_months function: select add_months(sysdate, -1) from dual; -----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 radhika reddy Sent: Thursday, September 09, 2004 10:15 AM To: sqr-users@sqrug.org Subject: [sqr-users] currentdate - one month Hi, I am not getting how to get one month prior to current date in SQR. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:10:17 2004 From: James Womeldorf Subject: RE: [sqr-users] currentdate - one month Date: Thu, 9 Sep 2004 10:56:06 -0500 It can be tricky. For instance, what date would you like returned if the current date is Jan 31? This query will (in Oracle, at least) return the date of the day 4 weeks prior to the current date. select trunc(sysdate)-28 from dual Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of radhika reddy Sent: Thursday, September 09, 2004 10:15 AM To: sqr-users@sqrug.org Subject: [sqr-users] currentdate - one month Hi, I am not getting how to get one month prior to current date in SQR. Thanks, Radhika _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:11:55 2004 Subject: RE: [sqr-users] currentdate - one month Date: Thu, 9 Sep 2004 10:05:08 -0600 From: "Jon Alsager" In SQR, there is the function DATEADD that will do what you trying: let $date =3D dateadd($startdate, 'month', -1) 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 radhika reddy Sent: Thursday, September 09, 2004 9:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] currentdate - one month Hi, I am trying to write the code in order to get one month prior to current=20 date. Thanks. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:14:49 2004 Subject: RE: [sqr-users] currentdate - one month Date: Thu, 9 Sep 2004 11:05:31 -0500 From: "Hins, Thomas D. \(HSC\)" ADD_MONTSH(SYSDATE, -1) ? 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 radhika reddy Sent: Thursday, September 09, 2004 10:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] currentdate - one month Hi, I am trying to write the code in order to get one month prior to curren= t=20 date. Thanks. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:28:50 2004 From: "the dragon" Subject: RE: [sqr-users] currentdate - one month Date: Thu, 09 Sep 2004 11:13:01 -0500 "you can check out, but you can never leave." :-p (Eagles Hotel California) I am sure Ray will see your message and take care of it - otherwise, block the group in your e-mail tool. Hope everything goes well. 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---- Help! I am trapped in this user group and I can't get out! I have tried unsubscribing three times because I am about to go on sick leave for six weeks, but I am still getting these emails! I don't want my inbox to fill while I am away. Has anybody ever successfully left the group? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:25:46 2004 From: "Aruna Chandrasekharapuram" Subject: RE: [sqr-users] currentdate - one month Date: Thu, 09 Sep 2004 16:13:30 +0000 Try this - let $date = dateadd($startdate,'month',-1) where $startdate is datenow() i.e., current date in your case. Hope that helps. Aruna. >From: "radhika reddy" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: sqr-users@sqrug.org >Subject: [sqr-users] currentdate - one month >Date: Thu, 09 Sep 2004 10:30:20 -0500 > >Hi, > > I am trying to write the code in order to get one month prior to >current date. > >Thanks. > >_________________________________________________________________ >Don’t just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > >_______________________________________________ >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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 10:37:00 2004 Date: Thu, 09 Sep 2004 10:35:03 -0500 From: "Mike Eischen" Subject: [sqr-users] SQR Conversion of ASCII value to ASCII character SQR for PeopleSoft/8.16.02/PC/Windows NT 4.0/Oracle 8.0.6=20 I am calculating a check code (for Bar-Coding) which is then converted to a= n ASCII character=20 using chr() and appended to an emplid. I then write the Employee ID to a fl= at file. For ASCII=20 values above 193, the check digit always shows up as a blank, lower ASCII v= alues store correctly.=20=20 Thanks in advance for any ideas. Expected=20=20=20=20 ASCII Value ASCII Character=20=20=20=20=20=20 193 =C1 194 =C2 195 =C3 196 =C4 197 =C5 198 =C6 199 =C7 200 =C8 201 =C9 202 =CA 203 =CB 204 =CC 205 =CD 206 =CE =20 !--------------------------------------------------------------------------= ---------- ! Procedure: CALCULATE-CHECK-CODE=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=20=20=20=20=20 ! Descr: Calculates and appends check digit to Employee ID=20=20 !--------------------------------------------------------------------------= ---------- begin-procedure CALCULATE-CHECK-CODE !$CheckDigit is determined in another procedure. let $CheckCode =3D chr($CheckDigit)=20=20=20=20=20=20=20=20=20=20 let $emplid =3D $emplid || $CheckCode=20 =20=20=20 Show 'Employee Id/ Check Digit' $emplid $CheckDigit DO WRITE-ACTIVE-EMPLOYEES end-procedure !--------------------------------------------------------------------------= ---------- ! Procedure: WRITE-ACTIVE-EMPLOYEES=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=20=20=20 ! Descr: Writes SSN, emplid/check code to a flat file=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 !--------------------------------------------------------------------------= ---------- begin-procedure WRITE-ACTIVE-EMPLOYEES=20 WRITE 1 FROM $ssn:9, $emplid:9 =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 end-procedure !--------------------------------------------------------------------------= ---------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:17:44 2004 Date: Thu, 9 Sep 2004 12:09:43 -0400 From: "White, Denise" Subject: [sqr-users] RE: sqr compile What kind of errors did your program have? If they were runtime errors, th= ey would not show up as a result of a compile. Sometimes things that you w= ould think were syntax errors that would be trapped by the compiler actuall= y don't cause a problem until the job is run. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 17 Date: Thu, 9 Sep 2004 09:49:42 -0400 From: "Kaithi, Murali" Subject: RE: [sqr-users] sqr compile To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: <86424903C05D3D4D9F822537A065D5EB39B227@sgex01.sgicorp.spencergifts.com> =09 Content-Type: text/plain; charset=3D"iso-8859-1" I have used -RS switch, the program is getting completed without showing me= any errors even though my program had errors. Thanks, Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 11:31:36 2004 From: "Pospical, Alex" Date: Thu, 9 Sep 2004 09:22:36 -0700 Subject: [sqr-users] Help with -DB syntax Hello SQR for Peoplesoft/8.19/PC/Windows NT 4.0/ODBC Level 2/Jan 02 2003 Windows 2000 Server SP3 Oracle 8.1.7.3.0 As a work around for not being able to get the DB Link from SQL to Oracle to work I have been experimenting with the -DB flag in the SQL line within an SQR. This seems to work except for one little issue. It makes me pick my DNS from a pop up window every time even though I am providing that in the connect string. The SQR look like this: BEGIN-SQL -DBDDMDB;DNS=DDMDB;UID=XXXX_XX;PWD=xxxx_xxxx ON-ERROR=DELETE_ERROR DELETE HRIS_DM.PS_PAYH1322STG_HNF END-SQL This is run from SQL Server connecting to oracle. Thanks Alex Pospical Lockheed Martin Services Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Sep 09 14:04:20 2004 Subject: RE: [sqr-users] Help with -DB syntax Date: Thu, 9 Sep 2004 14:01:43 -0500 From: "Knapp, Richard" Links don't work well with PS v8. I use the older version without problems.\ 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 Pospical, Alex Sent: Thursday, September 09, 2004 11:23 AM To: 'SQR Users (sqr-users@sqrug.org)' Subject: [sqr-users] Help with -DB syntax Hello =20 SQR for Peoplesoft/8.19/PC/Windows NT 4.0/ODBC Level 2/Jan 02 2003 Windows 2000 Server SP3 Oracle 8.1.7.3.0 =20 As a work around for not being able to get the DB Link from SQL to Oracle to work I have been experimenting with the -DB flag in the SQL line within an SQR. This seems to work except for one little issue. It makes me pick my DNS from a pop up window every time even though I am providing that in the connect string. The SQR look like this: =20 BEGIN-SQL -DBDDMDB;DNS=3DDDMDB;UID=3DXXXX_XX;PWD=3Dxxxx_xxxx ON-ERROR=3DDELETE_ERROR =20 DELETE HRIS_DM.PS_PAYH1322STG_HNF =20 END-SQL =20 This is run from SQL Server connecting to oracle. =20 Thanks Alex Pospical Lockheed Martin Services Inc. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 07:43:48 2004 From: "radhika reddy" Date: Fri, 10 Sep 2004 07:36:19 -0500 Subject: [sqr-users] From-Thru Dates Hi, I am attaching my sqr program to Process sceduler and it asks for From date and Thru date. If the user don't enter From date and thru date, i have to get the results by taking one month prior to current date. i am trying to write an if condition as in the following procedure Get-VAlues. My database is Oracle. begin-procedure select-parameters begin-select RUN_CNTL_HR.oprid RUN_CNTL_HR.run_cntl_id RUN_CNTL_HR.fromdate RUN_CNTL_HR.thrudate from ps_run_cntl_hr Run_cntl_hr where run_cntl_hr.oprid = $prcs_oprid and run_cntl_hr.run_cntl_id = $prcs_run_cntl_id end-select end-procedure *******************************************************************************!begin-procedure Get-Values ******************************************************************************* move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate = '' and $thrudate = '' let $startdate = datenow() let $output = dateadd($startdate,'month',-1) else $output = 'j.action_dt between {Datein-Prefix}$FromDate{Datein-Suffix} and {Datein-Prefix} $ThruDate{Datein-Suffix}' end-if ******************************************************************************* end-procedure Get-Values ******************************************************************************* In selecting values from table i want to give Where condition as {$output} but I am having errors for dateadd function as The date '5tu-ad5-septembers($From5ate,1,$5ate)' is not in the format specified by SQR_DB_DATE_FORMAT or in one of the accepted formats listed below: DD-MON-YY SYYYYMMDD[HH24[MI[SS[NNNNNN]]]] I think even the substitution I am trying to do as {$output} is going wrong somewhere as i am getting errors. I would appreciate your help. Thanks, Radhika _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 08:43:01 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Fri, 10 Sep 2004 19:18:13 +0530 Subject: RE: [sqr-users] From-Thru Dates Radhika, It's because Oracle stores the date in DD-MON-YYYY format. So change the $strdate assignment as follows: Let $startdate =3D StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY= -MM-DD') Hope this throws some light on your problem. =20=20=20=20=20=20=20 With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, September 10, 2004 6:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] From-Thru Dates Hi, I am attaching my sqr program to Process sceduler and it asks for From date and Thru date. If the user don't enter From date and thru date, i have= =20 to get the results by taking one month prior to current date. i am trying t= o=20 write an if condition as in the following procedure Get-VAlues. My database= =20 is Oracle. begin-procedure select-parameters begin-select RUN_CNTL_HR.oprid RUN_CNTL_HR.run_cntl_id RUN_CNTL_HR.fromdate RUN_CNTL_HR.thrudate from ps_run_cntl_hr Run_cntl_hr where run_cntl_hr.oprid =3D $prcs_oprid and run_cntl_hr.run_cntl_id =3D $prcs_run_cntl_id end-select end-procedure ***************************************************************************= ****!begin-procedure=20 Get-Values ***************************************************************************= **** move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate =3D '' and $thrudate =3D '' let $startdate =3D datenow() let $output =3D dateadd($startdate,'month',-1) else $output =3D 'j.action_dt between {Datein-Prefix}$FromDate{Datein-Suff= ix}=20 and {Datein-Prefix} $ThruDate{Datein-Suffix}' end-if ***************************************************************************= ****=20 end-procedure Get-Values ***************************************************************************= **** In selecting values from table i want to give Where condition as {$output} but I am having errors for dateadd function as The date '5tu-ad5-septembers($From5ate,1,$5ate)' is not in the format specified by SQR_DB_DATE_FORMAT or in one of the accepted formats listed below: DD-MON-YY SYYYYMMDD[HH24[MI[SS[NNNNNN]]]] I think even the substitution I am trying to do as {$output} is going wrong= =20 somewhere as i am getting errors. I would appreciate your help. Thanks, Radhika _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 08:53:04 2004 Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 09:51:52 -0400 From: "Kaithi, Murali" Radhika, In your case, below code should work. I tested and it worked for me. Let $startdate =3D dateadd(StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYY= Y-MM-DD'),'month',-1) Good job Murty.. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org]On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Friday, September 10, 2004 9:48 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] From-Thru Dates Radhika, It's because Oracle stores the date in DD-MON-YYYY format. So change the $strdate assignment as follows: Let $startdate =3D StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY= -MM-DD') Hope this throws some light on your problem. =20=20=20=20=20=20=20 With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, September 10, 2004 6:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] From-Thru Dates Hi, I am attaching my sqr program to Process sceduler and it asks for From date and Thru date. If the user don't enter From date and thru date, i have= =20 to get the results by taking one month prior to current date. i am trying t= o=20 write an if condition as in the following procedure Get-VAlues. My database= =20 is Oracle. begin-procedure select-parameters begin-select RUN_CNTL_HR.oprid RUN_CNTL_HR.run_cntl_id RUN_CNTL_HR.fromdate RUN_CNTL_HR.thrudate from ps_run_cntl_hr Run_cntl_hr where run_cntl_hr.oprid =3D $prcs_oprid and run_cntl_hr.run_cntl_id =3D $prcs_run_cntl_id end-select end-procedure ***************************************************************************= ****!begin-procedure=20 Get-Values ***************************************************************************= **** move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate =3D '' and $thrudate =3D '' let $startdate =3D datenow() let $output =3D dateadd($startdate,'month',-1) else $output =3D 'j.action_dt between {Datein-Prefix}$FromDate{Datein-Suff= ix}=20 and {Datein-Prefix} $ThruDate{Datein-Suffix}' end-if ***************************************************************************= ****=20 end-procedure Get-Values ***************************************************************************= **** In selecting values from table i want to give Where condition as {$output} but I am having errors for dateadd function as The date '5tu-ad5-septembers($From5ate,1,$5ate)' is not in the format specified by SQR_DB_DATE_FORMAT or in one of the accepted formats listed below: DD-MON-YY SYYYYMMDD[HH24[MI[SS[NNNNNN]]]] I think even the substitution I am trying to do as {$output} is going wrong= =20 somewhere as i am getting errors. I would appreciate your help. Thanks, Radhika _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 09:21:23 2004 Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 09:20:14 -0500 From: "Knapp, Richard" Not to be picky but Oracle's default display format is often DD-MON-YYYY. This not how the date is stored. 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 Murty Mirthipati Venkata Suryanarayan Sent: Friday, September 10, 2004 8:48 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] From-Thru Dates Radhika, It's because Oracle stores the date in DD-MON-YYYY format. So change the $strdate assignment as follows: Let $startdate =3D StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY-MM-DD') Hope this throws some light on your problem. =20=20=20=20=20=20=20 With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, September 10, 2004 6:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] From-Thru Dates Hi, I am attaching my sqr program to Process sceduler and it asks for From date and Thru date. If the user don't enter From date and thru date, i have=20 to get the results by taking one month prior to current date. i am trying to=20 write an if condition as in the following procedure Get-VAlues. My database=20 is Oracle. begin-procedure select-parameters begin-select RUN_CNTL_HR.oprid RUN_CNTL_HR.run_cntl_id RUN_CNTL_HR.fromdate RUN_CNTL_HR.thrudate from ps_run_cntl_hr Run_cntl_hr where run_cntl_hr.oprid =3D $prcs_oprid and run_cntl_hr.run_cntl_id =3D $prcs_run_cntl_id end-select end-procedure ************************************************************************ *******!begin-procedure=20 Get-Values ************************************************************************ ******* move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate =3D '' and $thrudate =3D '' let $startdate =3D datenow() let $output =3D dateadd($startdate,'month',-1) else $output =3D 'j.action_dt between {Datein-Prefix}$FromDate{Datein-Suffix}=20 and {Datein-Prefix} $ThruDate{Datein-Suffix}' end-if ************************************************************************ *******=20 end-procedure Get-Values ************************************************************************ ******* In selecting values from table i want to give Where condition as {$output} but I am having errors for dateadd function as The date '5tu-ad5-septembers($From5ate,1,$5ate)' is not in the format specified by SQR_DB_DATE_FORMAT or in one of the accepted formats listed below: DD-MON-YY SYYYYMMDD[HH24[MI[SS[NNNNNN]]]] I think even the substitution I am trying to do as {$output} is going wrong=20 somewhere as i am getting errors. I would appreciate your help. Thanks, Radhika _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 09:25:31 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Fri, 10 Sep 2004 20:03:12 +0530 Subject: RE: [sqr-users] From-Thru Dates Richard, Date format can be DD-MON-YYYY or DD-MON-YY in case of Oracle. Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, September 10, 2004 7:50 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] From-Thru Dates Not to be picky but Oracle's default display format is often DD-MON-YYYY. This not how the date is stored. 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 Murty Mirthipati Venkata Suryanarayan Sent: Friday, September 10, 2004 8:48 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] From-Thru Dates Radhika, It's because Oracle stores the date in DD-MON-YYYY format. So change the $strdate assignment as follows: Let $startdate =3D StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY-MM-DD') Hope this throws some light on your problem. =20=20=20=20=20=20=20 With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, September 10, 2004 6:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] From-Thru Dates Hi, I am attaching my sqr program to Process sceduler and it asks for From date and Thru date. If the user don't enter From date and thru date, i have=20 to get the results by taking one month prior to current date. i am trying to=20 write an if condition as in the following procedure Get-VAlues. My database=20 is Oracle. begin-procedure select-parameters begin-select RUN_CNTL_HR.oprid RUN_CNTL_HR.run_cntl_id RUN_CNTL_HR.fromdate RUN_CNTL_HR.thrudate from ps_run_cntl_hr Run_cntl_hr where run_cntl_hr.oprid =3D $prcs_oprid and run_cntl_hr.run_cntl_id =3D $prcs_run_cntl_id end-select end-procedure ************************************************************************ *******!begin-procedure=20 Get-Values ************************************************************************ ******* move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate =3D '' and $thrudate =3D '' let $startdate =3D datenow() let $output =3D dateadd($startdate,'month',-1) else $output =3D 'j.action_dt between {Datein-Prefix}$FromDate{Datein-Suffix}=20 and {Datein-Prefix} $ThruDate{Datein-Suffix}' end-if ************************************************************************ *******=20 end-procedure Get-Values ************************************************************************ ******* In selecting values from table i want to give Where condition as {$output} but I am having errors for dateadd function as The date '5tu-ad5-septembers($From5ate,1,$5ate)' is not in the format specified by SQR_DB_DATE_FORMAT or in one of the accepted formats listed below: DD-MON-YY SYYYYMMDD[HH24[MI[SS[NNNNNN]]]] I think even the substitution I am trying to do as {$output} is going wrong=20 somewhere as i am getting errors. I would appreciate your help. Thanks, Radhika _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.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 DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 09:54:10 2004 From: "radhika reddy" Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 09:45:39 -0500 Thank You all. The dateadd function woked fine. but the problem is with dyanamic variable [$output] which i want to give in select statement depending on the user entering from and thru dates. this is the code i am trying to write. begin-procedure Get-Values move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate = '' and $thrudate = '' Let $startdate = dateadd(StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY-MM- DD'),'month',-1) show 'startdate' $startdate Let $output = 'j.action_dt<=$startdate' else Let $output ='j.action_dt between $FromDate and $ThruDate' end-if end-procedure Get-Values In Select statement i am writing the condion as where [$output]. I am getting the following error: SQR 5528) ORACLE OCIStmtExecute error 911 in cursor 2: ORA-00911: invalid character Error on line 238: (SQR 3722) Could not set up cursor. SQR for PeopleSoft: Program Aborting Thanks, Radhika One more thing is do i have to write the code for prior to current date in peoplecode or sqr. here i am trying to write in sqr. _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 10:05:06 2004 Date: Fri, 10 Sep 2004 07:58:49 -0700 (PDT) From: Jim McKeever Subject: RE: [sqr-users] From-Thru Dates It looks like you need your $ variables outside your single quotes, ie Let $output = 'j.action_dt between ' || $FromDate || ' and ' || $ThruDate radhika reddy wrote: Thank You all. The dateadd function woked fine. but the problem is with dyanamic variable [$output] which i want to give in select statement depending on the user entering from and thru dates. this is the code i am trying to write. begin-procedure Get-Values move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate = '' and $thrudate = '' Let $startdate = dateadd(StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY-MM- DD'),'month',-1) show 'startdate' $startdate Let $output = 'j.action_dt<=$startdate' else Let $output ='j.action_dt between $FromDate and $ThruDate' end-if end-procedure Get-Values In Select statement i am writing the condion as where [$output]. I am getting the following error: SQR 5528) ORACLE OCIStmtExecute error 911 in cursor 2: ORA-00911: invalid character Error on line 238: (SQR 3722) Could not set up cursor. SQR for PeopleSoft: Program Aborting Thanks, Radhika One more thing is do i have to write the code for prior to current date in peoplecode or sqr. here i am trying to write in sqr. _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Jim McKeever PeopleSoft Applications Administrator, U.S. Nursing Corporation (800) 726-8773 ext. 1973 --------------------------------- 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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 10:12:06 2004 Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 10:09:31 -0500 From: "Sengupta, Rajib \(Contractor\)" It will be=20 Let $output =3D 'j.action_dt<=3D ' || $startdate else Let $output =3D 'j.action_dt between'|| $FromDate||' and '||$ThruDate end-if Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems Phone: 402-595-5749 -----Original Message----- From: sqr-users-bounces+rajib.sengupta=3Dconagrafoods.com@sqrug.org [mailto:sqr-users-bounces+rajib.sengupta=3Dconagrafoods.com@sqrug.org]On Behalf Of radhika reddy Sent: Friday, September 10, 2004 9:46 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] From-Thru Dates Thank You all. The dateadd function woked fine. but the problem is with=20 dyanamic variable [$output] which i want to give in select statement=20 depending on the user entering from and thru dates. this is the code i am trying to write. begin-procedure Get-Values move &RUN_CNTL_HR.FROMDATE to $FromDate move &RUN_CNTL_HR.THRUDATE to $ThruDate if $FromDate =3D '' and $thrudate =3D '' Let $startdate =3D=20 dateadd(StrtoDate(Datetostr(datenow(),'YYYY-MM-DD'),'YYYY-MM-=20 DD'),'month',-1) show 'startdate' $startdate Let $output =3D 'j.action_dt<=3D$startdate' else Let $output =3D'j.action_dt between $FromDate and $ThruDate' end-if end-procedure Get-Values In Select statement i am writing the condion as where [$output]. I am=20 getting the following error: SQR 5528) ORACLE OCIStmtExecute error 911 in cursor 2: ORA-00911: invalid character Error on line 238: (SQR 3722) Could not set up cursor. SQR for PeopleSoft: Program Aborting Thanks, Radhika One more thing is do i have to write the code for prior to current date in= =20 peoplecode or sqr. here i am trying to write in sqr. _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to= =20 get there! http://lifeevents.msn.com/category.aspx?cid=3DRetirement _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 11:00:29 2004 From: "radhika reddy" Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 10:57:20 -0500 Thanks but i am getting the following error:- SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: ORA-00904: "SEP": invalid identifier In the select statement: j.action_dt between 05-SEP-1988 and 10-SEP-2004 ORDER BY J.EMPLID Error on line 240: (SQR 3722) Could not set up cursor. SQR for PeopleSoft: Program Aborting. why is it so? do i have to change the format of j.action_dt. but it's working fine when i am giving the expression itself as j.action_dt between {Datein-Prefix}$FromDate{Datein-Suffix} and {Datein-Prefix}$ThruDate{Datein-Suffix}. but i am getting this error when i am using dyanamic variable. Thanks, Radhika _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 11:05:06 2004 From: "Bartlett, Dwain" Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 10:04:19 -0600 Your dates need to have a single quote around them. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, September 10, 2004 9:57 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] From-Thru Dates Thanks but i am getting the following error:- SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: ORA-00904: "SEP": invalid identifier In the select statement: j.action_dt between 05-SEP-1988 and 10-SEP-2004 ORDER BY J.EMPLID Error on line 240: (SQR 3722) Could not set up cursor. SQR for PeopleSoft: Program Aborting. why is it so? do i have to change the format of j.action_dt. but it's working fine when i am giving the expression itself as j.action_dt between {Datein-Prefix}$FromDate{Datein-Suffix} and {Datein-Prefix}$ThruDate{Datein-Suffix}. but i am getting this error when i am using dyanamic variable. Thanks, Radhika _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 11:08:00 2004 Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 11:04:22 -0500 From: "Hins, Thomas D. \(HSC\)" Try quote marks around your date 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 radhika reddy Sent: Friday, September 10, 2004 10:57 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] From-Thru Dates Thanks but i am getting the following error:- SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: ORA-00904: "SEP": invalid identifier In the select statement: j.action_dt between 05-SEP-1988 and 10-SEP-2004 ORDER BY J.EMPLID Error on line 240: (SQR 3722) Could not set up cursor. SQR for PeopleSoft: Program Aborting. why is it so? do i have to change the format of j.action_dt. but it's=20 working fine when i am giving the expression itself as j.action_dt between= =20 {Datein-Prefix}$FromDate{Datein-Suffix} and=20 {Datein-Prefix}$ThruDate{Datein-Suffix}. but i am getting this error when i= =20 am using dyanamic variable. Thanks, Radhika _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to= =20 get there! http://lifeevents.msn.com/category.aspx?cid=3DRetirement _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 11:21:44 2004 From: "radhika reddy" Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 11:15:14 -0500 I am giving it as let $output =' j.action_dt between '|| $FromDate ' and ' $ThruDate in the log file it's giving the following error: SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: > ORA-00904: "SEP": invalid identifier > > >In the select statement: > >j.action_dt between 05-SEP-1988 and > 10-SEP-2004 ORDER BY J.EMPLID > >Error on line 240: > (SQR 3722) Could not set up cursor. > >SQR for PeopleSoft: Program Aborting. > >From: "Hins, Thomas D. (HSC)" >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] From-Thru Dates >Date: Fri, 10 Sep 2004 11:04:22 -0500 > >Try quote marks around your date > >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 >which it is addressed and may contain confidential and/or privileged >material. If you are not the intended recipient of this message you are >hereby notified that any use, review, retransmission, dissemination, >distribution, reproduction or any action taken in reliance upon this >message is prohibited. If you received this in error, please contact the >sender and delete the material from any computer. Any views expressed in >this message are those of the individual sender and may not necessarily >reflect the views of the company.) > > > >-----Original Message----- >From: sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org >[mailto:sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org]On Behalf Of >radhika reddy >Sent: Friday, September 10, 2004 10:57 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] From-Thru Dates > > >Thanks but i am getting the following error:- > > >SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: > ORA-00904: "SEP": invalid identifier > > >In the select statement: > >j.action_dt between 05-SEP-1988 and > 10-SEP-2004 ORDER BY J.EMPLID > >Error on line 240: > (SQR 3722) Could not set up cursor. > >SQR for PeopleSoft: Program Aborting. > > >why is it so? do i have to change the format of j.action_dt. but it's >working fine when i am giving the expression itself as j.action_dt between >{Datein-Prefix}$FromDate{Datein-Suffix} and >{Datein-Prefix}$ThruDate{Datein-Suffix}. but i am getting this error when i >am using dyanamic variable. > >Thanks, >Radhika > >_________________________________________________________________ >On the road to retirement? Check out MSN Life Events for advice on how to >get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > >_______________________________________________ >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 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 11:31:17 2004 Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 10:29:08 -0600 From: "Jon Alsager" Try let $output =3D ' j.action_dt between '|| '''' ||$FromDate || '''' ||' and ' || '''' || $ThruDate || '''' I know there are more elegant ways of doing this, but this is a quick and dirty method. 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 radhika reddy Sent: Friday, September 10, 2004 10:15 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] From-Thru Dates I am giving it as let $output =3D' j.action_dt between '|| $FromDate ' and ' $ThruDate in the log file it's giving the following error: SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: > ORA-00904: "SEP": invalid identifier > > >In the select statement: > >j.action_dt between 05-SEP-1988 and > 10-SEP-2004 ORDER BY J.EMPLID > >Error on line 240: > (SQR 3722) Could not set up cursor. > >SQR for PeopleSoft: Program Aborting. > >From: "Hins, Thomas D. (HSC)" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage=20 >fromHyperion Solutions." >Subject: RE: [sqr-users] From-Thru Dates >Date: Fri, 10 Sep 2004 11:04:22 -0500 > >Try quote marks around your date > >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=20 >which it is addressed and may contain confidential and/or privileged=20 >material. If you are not the intended recipient of this message you are >hereby notified that any use, review, retransmission, dissemination,=20 >distribution, reproduction or any action taken in reliance upon this=20 >message is prohibited. If you received this in error, please contact the=20 >sender and delete the material from any computer. Any views expressed in=20 >this message are those of the individual sender and may not necessarily >reflect the views of the company.) > > > >-----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 >radhika reddy >Sent: Friday, September 10, 2004 10:57 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] From-Thru Dates > > >Thanks but i am getting the following error:- > > >SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: > ORA-00904: "SEP": invalid identifier > > >In the select statement: > >j.action_dt between 05-SEP-1988 and > 10-SEP-2004 ORDER BY J.EMPLID > >Error on line 240: > (SQR 3722) Could not set up cursor. > >SQR for PeopleSoft: Program Aborting. > > >why is it so? do i have to change the format of j.action_dt. but it's >working fine when i am giving the expression itself as j.action_dt between >{Datein-Prefix}$FromDate{Datein-Suffix} and >{Datein-Prefix}$ThruDate{Datein-Suffix}. but i am getting this error when i >am using dyanamic variable. > >Thanks, >Radhika > >_________________________________________________________________ >On the road to retirement? Check out MSN Life Events for advice on how to >get there! http://lifeevents.msn.com/category.aspx?cid=3DRetirement > > >_______________________________________________ >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 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!=20 hthttp://messenger.msn.click-url.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+sqrusersarch=sqrug.org@sqrug.org Thu Sep 16 09:59:03 2004 Date: Thu, 16 Sep 2004 09:58:30 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] concatinating string literals... On Fri, Sep 10, 2004 at 10:29:08AM -0600, Jon Alsager wrote: > let $output = ' j.action_dt between '|| '''' ||$FromDate || '''' ||' and > ' || '''' || $ThruDate || '''' Seeing this expression reminded me that it's been a while since I last repeated the my hint that if you are concatinating two string literals to each other, you can always just make one (longer) literal instead. Or, in other words, if you have ' || ' in a row in an expression, you can just eliminate of all four of those punctuation marks from your expression and the result will be the same. Following this hint, the above expression can be simplified to: let $output = ' j.action_dt between ''' || $FromDate || ''' and ''' || $ThruDate || '''' (This is completely unrelated to the syntactical rule in SQR that you put two single-quote characters together in a string literal in order to produce one single-quote character in the resulting string -- though in actual usage its pretty rare to see expressions like let $output = ' j.action_dt ' || 'between x.start_date ' || 'and sysdate' instead of just let $output = ' j.action_dt between x.start_date and sysdate' even though the principle is the same in that example and the one above [which is pretty common].) Nathan ---------------------------------------------------------------------------- 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 = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 11:43:56 2004 From: "radhika reddy" Subject: RE: [sqr-users] From-Thru Dates Date: Fri, 10 Sep 2004 11:40:02 -0500 Thanks a lot. it worked just fine. >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] From-Thru Dates >Date: Fri, 10 Sep 2004 10:29:08 -0600 > >Try > >let $output = ' j.action_dt between '|| '''' ||$FromDate || '''' ||' and >' || '''' || $ThruDate || '''' > >I know there are more elegant ways of doing this, but this is a quick >and dirty method. > >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 radhika reddy >Sent: Friday, September 10, 2004 10:15 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] From-Thru Dates > >I am giving it as > >let $output =' j.action_dt between '|| $FromDate ' and ' $ThruDate > > > >in the log file it's giving the following error: > >SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: > > ORA-00904: "SEP": invalid identifier > > > > > >In the select statement: > > > >j.action_dt between 05-SEP-1988 and > > 10-SEP-2004 ORDER BY J.EMPLID > > > >Error on line 240: > > (SQR 3722) Could not set up cursor. > > > >SQR for PeopleSoft: Program Aborting. > > > > > > >From: "Hins, Thomas D. (HSC)" > >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] From-Thru Dates > >Date: Fri, 10 Sep 2004 11:04:22 -0500 > > > >Try quote marks around your date > > > >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 > >which it is addressed and may contain confidential and/or privileged > >material. If you are not the intended recipient of this message you are > > >hereby notified that any use, review, retransmission, dissemination, > >distribution, reproduction or any action taken in reliance upon this > >message is prohibited. If you received this in error, please contact >the > >sender and delete the material from any computer. Any views expressed >in > >this message are those of the individual sender and may not necessarily > > >reflect the views of the company.) > > > > > > > >-----Original Message----- > >From: sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org > >[mailto:sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org]On Behalf Of > >radhika reddy > >Sent: Friday, September 10, 2004 10:57 AM > >To: sqr-users@sqrug.org > >Subject: RE: [sqr-users] From-Thru Dates > > > > > >Thanks but i am getting the following error:- > > > > > >SQR 5528) ORACLE OCIStmtExecute error 904 in cursor 2: > > ORA-00904: "SEP": invalid identifier > > > > > >In the select statement: > > > >j.action_dt between 05-SEP-1988 and > > 10-SEP-2004 ORDER BY J.EMPLID > > > >Error on line 240: > > (SQR 3722) Could not set up cursor. > > > >SQR for PeopleSoft: Program Aborting. > > > > > >why is it so? do i have to change the format of j.action_dt. but it's > >working fine when i am giving the expression itself as j.action_dt >between > >{Datein-Prefix}$FromDate{Datein-Suffix} and > >{Datein-Prefix}$ThruDate{Datein-Suffix}. but i am getting this error >when i > >am using dyanamic variable. > > > >Thanks, > >Radhika > > > >_________________________________________________________________ > >On the road to retirement? Check out MSN Life Events for advice on how >to > >get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > > > >_______________________________________________ > >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 > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's >FREE! >hthttp://messenger.msn.click-url.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 _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 10:31:49 2004 From: yelena_kontorovich@baxter.com Date: Fri, 10 Sep 2004 10:26:40 -0500 Subject: [sqr-users] How to determine report extensions based on command line flags --===============0634626746== Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: base64 SGVsbG8sIGV2ZXJ5b25lLA0KV2UgaGF2ZSBhbiBTUUMgdGhhdCBkZWZpbmVz IG91dHB1dCBmaWxlIG5hbWUgYW5kIHBhdGggZm9yIGV2ZXJ5IFNRUg0KKCRm aWxlaW4sICRmaWxlb3V0LCAkb3V0cGF0aCBhcmUgdGhlIHBhcm1zKS4gIFdl IGhhdmUgc2V2ZXJhbCBvcHRpb25zOg0KDQoxLiAgRm9yIGEgc2luZ2xlIHJl cG9ydCB3ZSBhcmUgdXNpbmcgJF9TUVItUkVQT1JUIHZhcmlhYmxlIGFuZCBp dA0KdW5kZXJzdGFuZHMgZmlsZSBleHRlbnNpb24gYmFzZWQgb24gY29tbWFu ZCBsaWtlIGZsYWcgKC5wZGYgdnMgLmxpcyB3aGVuIHdlDQpzcGVjaWZ5IOKA k1BSSU5URVI6UEQgZmxhZyk6DQoNCkxldCAkZmlsZW91dCA9IExPV0VSKCRf U1FSLVJFUE9SVCkNCkxldCAkb3V0cGF0aCAgPSBMT1dFUigkX1NRUi1SRVBP UlQpDQoNCjIuICBGb3IgbXVsdGlwbGUgcmVwb3J0cyBzaW5jZSB3ZSBoYXZl IHRvIHVzZSBwcmVkZWZpbmVkIHJlcG9ydCBuYW1lcyB3ZQ0KaGF2ZSB0aGUg Zm9sbG93aW5nIGNvZGU6DQoNCiAgTGV0ICRmaWxlb3V0ID0gTE9XRVIoJGZp bGVpbikgfHwgJy5saXMnDQogICBMZXQgJG91dHBhdGggID0gJ0M6XHRlbXBc JyB8fCAkZmlsZW91dA0KICAgbmV3LXJlcG9ydCAkb3V0cGF0aA0KDQpNeSBx dWVzdGlvbjogIGlzIHRoZXJlIGFueSBmdW5jdGlvbiBvciBvdGhlciB3YXlz IHRvICJzZWUiIGNvbW1hbmQgbGluZQ0KZmxhZyAo4oCTUFJJTlRFUjpQRCBm bGFnKSBhbmQgdXNlIGl0IGFzIGEgdmFyaWFibGUgaW5zdGVhZCBvZiBoYXJk Y29kaW5nDQonLmxpcyc/DQoNCkknbSBub3QgYW4gU1FSIGRldmVsb3Blciwg SSdtIGEgUFNvZnQgYWRtaW5pc3RyYXRvciwgYnV0IG91ciBkZXZlbG9wZXJz DQpjYW5ub3QgYW5zd2VyIHRoaXMgcXVlc3Rpb24uICBDYW4gc29tZSBoZWxw Pw0KDQpUaGFua3MsDQpZZWxlbmEgS29udG9yb3ZpY2gNClRlY2huaWNhbCBD b25zdWx0YW50DQo4NDcuOTQ4LjI5MjcNCnllbGVuYV9rb250b3JvdmljaEBi YXh0ZXIuY29tDQpUaGUgaW5mb3JtYXRpb24gdHJhbnNtaXR0ZWQgaXMgaW50 ZW5kZWQgb25seSBmb3IgdGhlIHBlcnNvbiBvciBlbnRpdHkgdG8NCndoaWNo IGl0IGlzIGFkZHJlc3NlZCBhbmQgbWF5IGNvbnRhaW4gY29uZmlkZW50aWFs IGFuZC9vciBwcml2aWxlZ2VkDQptYXRlcmlhbC4gIEFueSByZXZpZXcsIHJl LXRyYW5zbWlzc2lvbiwgZGlzc2VtaW5hdGlvbiBvciBvdGhlciB1c2Ugb2Ys IG9yDQp0YWtpbmcgb2YgYW55IGFjdGlvbiBpbiByZWxpYW5jZSB1cG9uLCB0 aGlzIGluZm9ybWF0aW9uIGJ5IHBlcnNvbnMgb3INCmVudGl0aWVzIG90aGVy IHRoYW4gdGhlIGludGVuZGVkIHJlY2lwaWVudCBpcyBwcm9oaWJpdGVkLiAg SWYgeW91IHJlY2VpdmVkDQp0aGlzIGluIGVycm9yLCBwbGVhc2UgY29udGFj dCB0aGUgc2VuZGVyIGFuZCBkZWxldGUgdGhlIGNvbnRlbnQuVGhlIGluZm9y bWF0aW9uIHRyYW5zbWl0dGVkIGlzIGludGVuZGVkIG9ubHkgZm9yIHRoZSBw ZXJzb24ocylvciBlbnRpdHkgCnRvIHdoaWNoIGl0IGlzIGFkZHJlc3NlZCBh bmQgbWF5IGNvbnRhaW4gY29uZmlkZW50aWFsIGFuZC9vciBsZWdhbGx5IApw cml2aWxlZ2VkIG1hdGVyaWFsLiBEZWxpdmVyeSBvZiB0aGlzIG1lc3NhZ2Ug dG8gYW55IHBlcnNvbiBvdGhlciB0aGFuIAp0aGUgaW50ZW5kZWQgcmVjaXBp ZW50KHMpIGlzIG5vdCBpbnRlbmRlZCBpbiBhbnkgd2F5IHRvIHdhaXZlIHBy aXZpbGVnZSAKb3IgY29uZmlkZW50aWFsaXR5LiBBbnkgcmV2aWV3LCByZXRy YW5zbWlzc2lvbiwgZGlzc2VtaW5hdGlvbiBvciBvdGhlciAKdXNlIG9mICwg b3IgdGFraW5nIG9mIGFueSBhY3Rpb24gaW4gcmVsaWFuY2UgdXBvbiwgdGhp cyBpbmZvcm1hdGlvbiBieSAKZW50aXRpZXMgb3RoZXIgdGhhbiB0aGUgaW50 ZW5kZWQgcmVjaXBpZW50IGlzIHByb2hpYml0ZWQuIElmIHlvdSAKcmVjZWl2 ZSB0aGlzIGluIGVycm9yLCBwbGVhc2UgY29udGFjdCB0aGUgc2VuZGVyIGFu ZCBkZWxldGUgdGhlIAptYXRlcmlhbCBmcm9tIGFueSBjb21wdXRlci4KCkZv ciBUcmFuc2xhdGlvbjoKCmh0dHA6Ly93d3cuYmF4dGVyLmNvbS9lbWFpbF9k aXNjbGFpbWVyCgo= --===============0634626746== 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 --===============0634626746==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Sep 10 10:46:58 2004 Date: Fri, 10 Sep 2004 11:44:13 -0400 From: Scotty Barnes Subject: Re: [sqr-users] How to determine report extensions based on command line flags Yelena, Here is one I wrote: !************************************************** ! get_file_type !************************************************** Begin-Procedure get_file_type(:$fileType) let #pos =3D 0 while instr($_sqr-report,'.',#pos) > 0 let #pos =3D instr($_sqr-report,'.',#pos) + 1 end-while let $fileType =3D substr($_sqr-report,instr($_sqr-report,'.',#pos - 1),4) show 'inside wes_report_paths.sqc get_file_type and returned:->'$fileType End-Procedure get_file_type The add this line of code and the above procedure do get_file_type($file_type) Scotty At 11:26 AM 9/10/2004, you wrote: >Hello, everyone, >We have an SQC that defines output file name and path for every SQR >($filein, $fileout, $outpath are the parms). We have several options: > >1. For a single report we are using $_SQR-REPORT variable and it >understands file extension based on command like flag (.pdf vs .lis when we >specify =E2=80=93PRINTER:PD flag): > >Let $fileout =3D LOWER($_SQR-REPORT) >Let $outpath =3D LOWER($_SQR-REPORT) > >2. For multiple reports since we have to use predefined report names we >have the following code: > > Let $fileout =3D LOWER($filein) || '.lis' > Let $outpath =3D 'C:\temp\' || $fileout > new-report $outpath > >My question: is there any function or other ways to "see" command line >flag (=96PRINTER:PD fflag) and use it as a variable instead of hardcoding >'.lis'? > >I'm not an SQR developer, I'm a PSoft administrator, but our developers >cannot answer this question. Can some help? > >Thanks, >Yelena Kontorovich >Technical Consultant >847.948.2927 >yelena_kontorovich@baxter.com >The information transmitted is intended only for the person or entity to >which it is addressed and may contain confidential and/or privileged >material. Any review, re-transmission, dissemination or other use of, or >taking of any action in reliance upon, this information by persons or >entities other than the intended recipient is prohibited. If you received >this in error, please contact the sender and delete the content.The=20 >information transmitted is intended only for the person(s)or entity to=20 >which it is addressed and may contain confidential and/or legally=20 >privileged material. Delivery of this message to any person other than the= =20 >intended recipient(s) is not intended in any way to waive privilege or=20 >confidentiality. Any review, retransmission, dissemination or other use of= =20 >, or taking of any action in reliance upon, this information by entities= =20 >other than the intended recipient is prohibited. If you receive this in=20 >error, please contact the sender and delete the material from any=20 >computer. For Translation:=20 >http://www.baxter.com/email_disclaimer____________________________________= ___________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users ---------- Scott A Barnes Programmer/Analyst Wesleyan University Exley Science Center Room 537 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Sep 13 11:23:56 2004 Date: Mon, 13 Sep 2004 09:22:35 -0700 (PDT) From: subrahmanyam Uppuganti Subject: [sqr-users] How to extract the suffix from name All, Iam trying to write a fixed length flat file and have a field suffix to be populated in the file, The source for this suffix is the Personal_Data.Name (The Name is stored in this format, lastname sufix,firstname)...What i need to get is suffix.The valid values for the suffix are 'I I','I I I','I V','II','III','IV','Jr','Jr.','JR','Ms.','Sr','Sr.' I would appreciate if some one can tell me how to extract this suffix from the name field. Thanks in advance, Subbu __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Sep 13 11:30:33 2004 From: "Raj Srinivasan" Subject: RE: [sqr-users] How to extract the suffix from name Date: Mon, 13 Sep 2004 11:30:16 -0500 Hi Subbu, Use the Unstring to parse out the required suffix. Thanks, Raj -----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 subrahmanyam Uppuganti Sent: Monday, September 13, 2004 11:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] How to extract the suffix from name All, Iam trying to write a fixed length flat file and have a field suffix to be populated in the file, The source for this suffix is the Personal_Data.Name (The Name is stored in this format, lastname sufix,firstname)...What i need to get is suffix.The valid values for the suffix are 'I I','I I I','I V','II','III','IV','Jr','Jr.','JR','Ms.','Sr','Sr.' I would appreciate if some one can tell me how to extract this suffix from the name field. Thanks in advance, Subbu __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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+sqrusersarch=sqrug.org@sqrug.org Mon Sep 13 12:05:54 2004 From: "the dragon" Subject: RE: [sqr-users] How to extract the suffix from name Date: Mon, 13 Sep 2004 12:02:35 -0500 subbu, What version of PeopleSoft? Yiou may be going after the wrong field. 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---- All, Iam trying to write a fixed length flat file and have a field suffix to be populated in the file, The source for this suffix is the Personal_Data.Name (The Name is stored in this format, lastname sufix,firstname)...What i need to get is suffix.The valid values for the suffix are 'I I','I I I','I V','II','III','IV','Jr','Jr.','JR','Ms.','Sr','Sr.' I would appreciate if some one can tell me how to extract this suffix from the name field. Thanks in advance, Subbu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Sep 13 12:10:16 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] How to extract the suffix from name Date: Mon, 13 Sep 2004 10:08:49 -0700 This is harder than it looks (speaking from experience). First, the format should be "lastname suffix,firstname" as you say, but many Peoplesoft sites find that the users have been inconsistant. Also, we cannot assume that the suffix is whatever appears after the first space and before the comma. Some lastnames have spaces, and some data entry has an extra comma. Fortunately, PS_PERSONAL_DATA also has fields for first name and last name separately. You can hope that those fields are spelled the same as the firstname and lastname in the name field. Use those fields to strip away as much as you can from the name field, then search it for your suffixes. Search for longer values first. If you have a "III" or a "I I", you don't want to just pick up an "I". Also be prepared for mixed case; "Iii". -----Original Message----- From: Raj Srinivasan [mailto:raj.srinivasan@hccs.edu] Sent: Monday, September 13, 2004 9:30 AM To: This list is for discussion about the SQR database reportinglanguage fr omHyperion Solutions. Subject: RE: [sqr-users] How to extract the suffix from name Hi Subbu, Use the Unstring to parse out the required suffix. Thanks, Raj -----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 subrahmanyam Uppuganti Sent: Monday, September 13, 2004 11:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] How to extract the suffix from name All, Iam trying to write a fixed length flat file and have a field suffix to be populated in the file, The source for this suffix is the Personal_Data.Name (The Name is stored in this format, lastname sufix,firstname)...What i need to get is suffix.The valid values for the suffix are 'I I','I I I','I V','II','III','IV','Jr','Jr.','JR','Ms.','Sr','Sr.' I would appreciate if some one can tell me how to extract this suffix from the name field. Thanks in advance, Subbu __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Sep 13 13:32:20 2004 Subject: RE: [sqr-users] How to extract the suffix from name Date: Mon, 13 Sep 2004 13:29:28 -0500 From: "Knapp, Richard" I would put all the valid suffixes in an array and do an instr(the_full_name,element(#),1) for each of them for each name you need to process. 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 subrahmanyam Uppuganti Sent: Monday, September 13, 2004 11:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] How to extract the suffix from name All, Iam trying to write a fixed length flat file and have a field suffix to be populated in the file, The source for this suffix is the Personal_Data.Name (The Name is stored in this format, lastname sufix,firstname)...What i need to get is suffix.The valid values for the suffix are=20 'I I','I I I','I V','II','III','IV','Jr','Jr.','JR','Ms.','Sr','Sr.' I would appreciate if some one can tell me how to extract this suffix from the name field. Thanks in advance, Subbu =20 =20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=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+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 01:41:12 2004 Subject: RE: [sqr-users] How to extract the suffix from name Date: Tue, 14 Sep 2004 12:18:57 +0530 From: "Murty Mirthipati Venkata Suryanarayan" Subbu, Hope your problem wouldn't have seen today. But then, I wonder why you are not taking the NAME_SUFFIX value from= the same table. Your problem will be significant if you are reading Suffix from an I= nbound file. =20 Enjoy coding SQR... With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Monday, September 13, 2004 11:59 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] How to extract the suffix from name I would put all the valid suffixes in an array and do an instr(the_full_name,element(#),1) for each of them for each name you need to process. 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 subrahmanyam Uppuganti Sent: Monday, September 13, 2004 11:23 AM To: sqr-users@sqrug.org Subject: [sqr-users] How to extract the suffix from name All, Iam trying to write a fixed length flat file and have a field suffix to be populated in the file, The source for this suffix is the Personal_Data.Name (The Name is stored in this format, lastname sufix,firstname)...What i need to get is suffix.The valid values for the suffix are=20 'I I','I I I','I V','II','III','IV','Jr','Jr.','JR','Ms.','Sr','Sr.' I would appreciate if some one can tell me how to extract this suffix from the name field. Thanks in advance, Subbu =20 =20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=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+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 02:45:43 2004 From: "Darshil Mehta" Date: Tue, 14 Sep 2004 13:15:12 +0530 Subject: [sqr-users] Problem with PDF output Hi, I am creating a report which has PDF out put . Report has product which has one or more parts and it's detail's it has to print every part against product and it's details and part total for each part when the product changes it prints product total also. Problem is While printing initially pages it's printing properly when it comes to last record it's prints the last part total for the product in the next page code is attached. Thanks for the help begin-select on-error=record_sql_error ($sql-error,'MAJOR',$sql_report,'main_query') flush.product &product=char () on-break print=never level =1 after=print_part_headings skiplines=4 flush.dieprt &dieprt=char () on-break print=never after=die_part_headings flush1.dpcnt &dpcnt=number flush.mcn &mcn=char flush.packages &pkg =char flush.cycletimeweeks &ctw=number flush.ytdships &ytdship=number flush.site &site=char flush.fginv &fginv=number flush.finaltest &finaltest=number flush.asyqty &asyqty=number flush.fabprobeplan &fabprobeplan=number flush.actualvsplan &actualvsplan=number flush.gate4probe &gate4probe=number flush.gate3postmetal &gate3postmetal=number flush.gate2premetal &gate2premetal=number flush.gate1premetal &gate1premetal=number flush.prttotalwip &prttotalwip=number flush.fgctpso &fgctpso=number flush.fgallpos &fgallpos=number flush.prtfgbankpos &prtfgbankpos=number flush.totalwip &totwip=number flush.totpos &totpos=number flush.totpos1 &totpos1=number flush.fgbnkpos &fgbnkpos=number flush.diebnkpos &diebnkpos=number flush.pddte &pddte=char flush.seqnum &seqnum=number move &dpcnt to #dpcnt move &site to $site move &fginv to $fginv move &finaltest to $finaltest move &asyqty to $asyqty move &fabprobeplan to $fabprobeplan move &actualvsplan to $actualvsplan move &gate4probe to $gate4probe move &gate3postmetal to $gate3postmetal move &gate2premetal to $gate2premetal move &gate1premetal to $gate1premetal move &totwip to #totwip move #totwip to $totwip move &totpos to #totpos move #totpos to $totpos move &totpos1 to #totpos1 move &totpos1 to #totpos1 move #totpos1 to $totpos1 move &fgbnkpos to #fgbnkpos move #fgbnkpos to $fgbnkpos move &diebnkpos to #&diebnkpos move #&diebnkpos to $diebnkpos move &pddte to $pddte move &seqnum to #seqnum do pdf_print_check do write_file_detail add 1 to #llopp do prt_total from [$from_clause] where 1=1 [$join1] [$join2] order by flush.dieprt,flush.product,flush.site end-select end-procedure ! main_query ****************************************************************************************** begin-procedure print_part_headings !LOCAL if #diecnt = #diecnt1 add 7 to #count end-if show 'Inside partid' $dieprt $product $prttotalwip print $col19_label (-3,#col19_column,0)!box !wrap 4 2 keep-top if $prttotalwip <> ' ' print $prttotalwip (0,#col17_column,0) edit 999,999 background = ('YELLOW') end-if if $prttotalwip <> ' ' print $prttotalwip (0,#col18_column,0) edit 999,999 background = ('YELLOW') end-if print $col20_label (+1,#col20_column,0)!box !wrap 4 2 keep-top if $prtfgbankpos <> ' ' print $fgctpso (0,#col17_column,0) edit 999,999 end-if if $fgallpos <> ' ' print $fgallpos (0,#col18_column,0) edit 999,999 end-if print $col21_label (+1,#col21_column,0)! box !wrap 4 2 keep-top if $prtfgbankpos<> ' ' print $prtfgbankpos (0,#col17_column,0) edit 999,999 background = ('YELLOW') end-if if $prtfgbankpos<> ' ' print $prtfgbankpos (0,#col18_column,0) edit 999,999 background = ('YELLOW') end-if print $col22_label (+1,#col22_column,0) wrap 7 2 keep-top if #tot > 0 print $tot (0,#col17_column,0) edit 999,999 else print $tot (0,#col17_column,0)edit 999,999pf foreground =('RED') end-if if $alltot <> ' ' print $alltot (0,#col18_column,0) edit 999,999pf foreground =('RED') else print $alltot (0,#col18_column,0) edit 999,999 end-if end-procedure ! part_headings !*************************************************************************************************** ! procedure: die_part_headings ! ! description: This procedure print the die headings and it's total. ! ! ! input: none ! ! output: none !*************************************************************************************************** begin-procedure die_part_headings do die_total let #sub1 = 0 - #count1 add 1 to #diecnt1 if #diecnt = #diecnt1 print ' ' (+1,,70) fill print ' ' (+1,,70) fill end-if print $col23_label (+#sub1,#col23_column,0) alter-printer font=3 point-size=8 print $col31_label (-1,#col23_column,0) alter-printer font=3 point-size=8 if $totwip <> ' ' print $totwip (+1,#col17_column,0) edit 999,999 background = ('YELLOW') end-if if $totwip <> ' ' print $totwip (0,#col18_column,0) edit 999,999 background = ('YELLOW') end-if print $col24_label (+1,#col24_column,0) if $totpos <> ' ' print $totpos (0,#col17_column,0) edit 999ps end-if if $totpos <> ' ' print $totpos (0,#col17_column,0) edit 999ps end-if if $totpos1 <> ' ' print $totpos1 (0,#col18_column,0) edit 999ps end-if if $totpos1 <> ' ' print $totpos1 (0,#col18_column,0) edit 999ps end-if print $col25_label (+1,#col25_column,0) if $fgbnkpos <> ' ' print $fgbnkpos (0,#col17_column,0) edit 999ps background = ('YELLOW') end-if if $fgbnkpos <> ' ' print $fgbnkpos (0,#col18_column,0) edit 999ps background = ('YELLOW') end-if print $col26_label (+1,#col26_column,0) if $diebnkpos <> ' ' print $diebnkpos (0,#col17_column,0) edit 999ps background = ('YELLOW') end-if if $diebnkpos <> ' ' print $diebnkpos (0,#col18_column,0) edit 999ps background = ('YELLOW') end-if print $col27_label (+1,#col27_column,0) wrap 7 2 keep-top if $tot1 <> ' ' print $tot1 (0,#col17_column,0) edit 999ps foreground =('BLACK') end-if if $tot1 <> ' ' print $tot1 (0,#col17_column,0) edit 999ps foreground =('RED') end-if if $tot2 <> ' ' print $tot2 (0,#col18_column,0) edit 999,999ps foreground =('BLACK') end-if if $tot2 <> ' ' print $tot2 (0,#col18_column,0) edit 999,999ps foreground = ('red') end-if do write_file_diehead do write_file_diehead1 do write_file_diehead2 do write_file_diehead3 do write_file_diehead4 do write_file_diehead5 if #diecnt1 < #diecnt do newpage end-if end-procedure ! part_headings Best regards, Darshil Mehta ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 04:51:00 2004 From: "Shailesh Sugandhi" Date: Tue, 14 Sep 2004 15:19:18 +0530 Subject: [sqr-users] Can I use like % with WHEN in SQR? Hi, I want to implement following code. evaluate $RCACd when = '510' when = '520' ... ... when = '570' when = '6' break when-other break end-evaluate is there any functionality like : when = '5%%' do... Thanks in advance. Regards, Shailesh -----Original Message----- From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On Behalf Of sqr-users-request@sqrug.org Sent: Saturday, September 11, 2004 4:36 PM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 7, Issue 9 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..." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 07:11:53 2004 From: "Sapitan, Mary Ann (MG)" Subject: RE: [sqr-users] Can I use like % with WHEN in SQR? Date: Tue, 14 Sep 2004 08:01:41 -0400 This is pretty crude but I guess one way is to substring the first digit of $RCACd and then evaluate that. Something like let $First_digit = substr($RCACd,1,1) evaluate $First_digit when = '5' when = '6' break when-other break end-evaluate I'm not sure what other $RCACd values you have but I guess you could just work around that. :) Hope this helps! :) Thanks, Ma-an Sapitan * (632) 841-0111 loc. 4549 -----Original Message----- From: Shailesh Sugandhi [mailto:shailesh.sugandhi@patni.com] Sent: Tuesday, September 14, 2004 5:49 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can I use like % with WHEN in SQR? Hi, I want to implement following code. evaluate $RCACd when = '510' when = '520' ... ... when = '570' when = '6' break when-other break end-evaluate is there any functionality like : when = '5%%' do... Thanks in advance. Regards, Shailesh -----Original Message----- From: sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org [mailto:sqr-users-bounces+shailesh.sugandhi=patni.com@sqrug.org]On Behalf Of sqr-users-request@sqrug.org Sent: Saturday, September 11, 2004 4:36 PM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 7, Issue 9 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..." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 07:16:10 2004 Subject: Re: [sqr-users] Can I use like % with WHEN in SQR? From: Rebecca.Barilleaux@anthem.com Date: Tue, 14 Sep 2004 08:11:47 -0400 Shailesh, Try this: let $RCACd_1 = substr($RCACd,1,1) evaluate $RCACd when = '5' when = '6' break when-other break end-evaluate Rebecca Date: Tue, 14 Sep 2004 15:19:18 +0530 From: "Shailesh Sugandhi" Subject: [sqr-users] Can I use like % with WHEN in SQR? To: Message-ID: <005301c49a40$1ad30d00$ea85a8c0@patni.com> Content-Type: text/plain; charset="US-ASCII" Hi, I want to implement following code. evaluate $RCACd when = '510' when = '520' ... ... when = '570' when = '6' break when-other break end-evaluate is there any functionality like : when = '5%%' do... Thanks in advance. Regards, Shailesh 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+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 09:21:42 2004 From: "radhika reddy" Date: Tue, 14 Sep 2004 08:48:36 -0500 Subject: [sqr-users] Output to Details Hi, My Sqr Report creates a spreadsheet file. At present i am getting my spreadsheet file in Unix server. Is there any way that the csv file could be put out such that the user can click on Details and automatically get the file? Otherwise it has to be downloaded and opened, then saved. Sort of cumbersome. Can it be done? Thanks, Radhika _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 09:26:39 2004 Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 10:25:30 -0400 From: "Pink, Michael" Are you using this through Peoplesoft? -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of radhika reddy Sent: Tuesday, September 14, 2004 9:49 AM To: sqr-users@sqrug.org Subject: [sqr-users] Output to Details Hi, My Sqr Report creates a spreadsheet file. At present i am getting my=20 spreadsheet file in Unix server. Is there any way that the csv file could be=20 put out such that the user can click on Details and automatically get the=20 file? Otherwise it has to be downloaded and opened, then saved. Sort of=20 cumbersome. Can it be done? Thanks, Radhika _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 10:10:52 2004 From: "radhika reddy" Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 09:31:10 -0500 Yes and i am running through process scheduler. >From: "Pink, Michael" >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] Output to Details >Date: Tue, 14 Sep 2004 10:25:30 -0400 > >Are you using this through Peoplesoft? > >-----Original Message----- >From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org >[mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf >Of radhika reddy >Sent: Tuesday, September 14, 2004 9:49 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Output to Details > > >Hi, > > My Sqr Report creates a spreadsheet file. At present i am getting my >spreadsheet file in Unix server. Is there any way that the csv file >could be >put out such that the user can click on Details and automatically get >the >file? Otherwise it has to be downloaded and opened, then saved. Sort >of >cumbersome. > >Can it be done? > >Thanks, >Radhika > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/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 _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 10:21:08 2004 From: "the dragon" Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 09:36:34 -0500 Your PeopleSoft administrator needs to set up the report manager correctly.... (Assumption, you're on PeopleSloth v8.4 or greater) 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, My Sqr Report creates a spreadsheet file. At present i am getting my spreadsheet file in Unix server. Is there any way that the csv file could be put out such that the user can click on Details and automatically get the file? Otherwise it has to be downloaded and opened, then saved. Sort of cumbersome. Can it be done? Thanks, Radhika _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 10:18:12 2004 Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 11:15:22 -0400 From: "Pink, Michael" If you are on 8.x you can use the following. Add this procedure: BEGIN-PROCEDURE Get-Prcs-Output-Dir BEGIN-SELECT ON-ERROR=3DSQL-ERROR PRCSOUTPUTDIR &PRCSOUTPUTDIR FROM PSPRCSPARMS WHERE PRCSINSTANCE =3D #prcs_process_instance END-SELECT END-PROCEDURE Get-Prcs-Output-Dir Then this call: do Get-Prcs-Output-Dir Then create the file: let $file_name1 =3D 'name.csv' let $file_name =3D &PRCSOUTPUTDIR || '/' || $file_name1 This will put it in the process monitor and the report manager. -----Original Message----- From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org [mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf Of radhika reddy Sent: Tuesday, September 14, 2004 10:31 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Output to Details Yes and i am running through process scheduler. >From: "Pink, Michael" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage=20 >fromHyperion Solutions." >Subject: RE: [sqr-users] Output to Details >Date: Tue, 14 Sep 2004 10:25:30 -0400 > >Are you using this through Peoplesoft? > >-----Original Message----- >From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org >[mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf >Of radhika reddy >Sent: Tuesday, September 14, 2004 9:49 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Output to Details > > >Hi, > > My Sqr Report creates a spreadsheet file. At present i am getting my >spreadsheet file in Unix server. Is there any way that the csv file >could be >put out such that the user can click on Details and automatically get >the >file? Otherwise it has to be downloaded and opened, then saved. Sort >of >cumbersome. > >Can it be done? > >Thanks, >Radhika > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/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 _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/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+sqrusersarch=sqrug.org@sqrug.org Tue Sep 14 10:24:19 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Tue, 14 Sep 2004 20:56:34 +0530 Subject: RE: [sqr-users] Output to Details Radhika, If you are using Windows client, specify the absolute path and run the= report to the Windows client machine. =20=20=20=20=20=20=20=20=20=20=20 With Best Regards, Murty MVS -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Tuesday, September 14, 2004 8:01 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Output to Details Yes and i am running through process scheduler. >From: "Pink, Michael" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Output to Details >Date: Tue, 14 Sep 2004 10:25:30 -0400 > >Are you using this through Peoplesoft? > >-----Original Message----- >From: sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org >[mailto:sqr-users-bounces+michael.pink=3Dpgnmail.com@sqrug.org] On Behalf >Of radhika reddy >Sent: Tuesday, September 14, 2004 9:49 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Output to Details > > >Hi, > > My Sqr Report creates a spreadsheet file. At present i am getting my >spreadsheet file in Unix server. Is there any way that the csv file >could be >put out such that the user can click on Details and automatically get >the >file? Otherwise it has to be downloaded and opened, then saved. Sort >of >cumbersome. > >Can it be done? > >Thanks, >Radhika > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/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 _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 15 04:47:00 2004 From: "radhika reddy" Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 10:57:53 -0500 Michael, I am on Peoplesoft 8.3, peopletools 8.14. I am running on unix,I gave the following command:- #ifdef UNIX let $File2 = '45 day outlook.csv' #endif let $file_name = &PRCSOUTPUTDIR || '/' || $file2 but i am not getting the csv file in Details(view log/trace). am i missing something? Thanks, Radhika >From: "Pink, Michael" >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] Output to Details >Date: Tue, 14 Sep 2004 11:15:22 -0400 > >If you are on 8.x you can use the following. > >Add this procedure: >BEGIN-PROCEDURE Get-Prcs-Output-Dir > >BEGIN-SELECT ON-ERROR=SQL-ERROR >PRCSOUTPUTDIR &PRCSOUTPUTDIR > >FROM PSPRCSPARMS >WHERE PRCSINSTANCE = #prcs_process_instance >END-SELECT > >END-PROCEDURE Get-Prcs-Output-Dir > > Then this call: >do Get-Prcs-Output-Dir > >Then create the file: > let $file_name1 = 'name.csv' > let $file_name = &PRCSOUTPUTDIR || '/' || $file_name1 > >This will put it in the process monitor and the report manager. > > >-----Original Message----- >From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org >[mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf >Of radhika reddy >Sent: Tuesday, September 14, 2004 10:31 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Output to Details > > > > >Yes and i am running through process scheduler. > > > >From: "Pink, Michael" > >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] Output to Details > >Date: Tue, 14 Sep 2004 10:25:30 -0400 > > > >Are you using this through Peoplesoft? > > > >-----Original Message----- > >From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > >[mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf > >Of radhika reddy > >Sent: Tuesday, September 14, 2004 9:49 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Output to Details > > > > > >Hi, > > > > My Sqr Report creates a spreadsheet file. At present i am getting >my > >spreadsheet file in Unix server. Is there any way that the csv file > >could be > >put out such that the user can click on Details and automatically get > >the > >file? Otherwise it has to be downloaded and opened, then saved. >Sort > >of > >cumbersome. > > > >Can it be done? > > > >Thanks, > >Radhika > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/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 > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/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 _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 15 04:42:23 2004 From: "radhika reddy" Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 11:38:27 -0500 Hi, I could get my output in details, but it's not csv file. while running through process scheduler i selected the output to be CSV. But my output is opening in internet explorer. Thanks, Radhika >From: "Pink, Michael" >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] Output to Details >Date: Tue, 14 Sep 2004 11:15:22 -0400 > >If you are on 8.x you can use the following. > >Add this procedure: >BEGIN-PROCEDURE Get-Prcs-Output-Dir > >BEGIN-SELECT ON-ERROR=SQL-ERROR >PRCSOUTPUTDIR &PRCSOUTPUTDIR > >FROM PSPRCSPARMS >WHERE PRCSINSTANCE = #prcs_process_instance >END-SELECT > >END-PROCEDURE Get-Prcs-Output-Dir > > Then this call: >do Get-Prcs-Output-Dir > >Then create the file: > let $file_name1 = 'name.csv' > let $file_name = &PRCSOUTPUTDIR || '/' || $file_name1 > >This will put it in the process monitor and the report manager. > > >-----Original Message----- >From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org >[mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf >Of radhika reddy >Sent: Tuesday, September 14, 2004 10:31 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Output to Details > > > > >Yes and i am running through process scheduler. > > > >From: "Pink, Michael" > >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] Output to Details > >Date: Tue, 14 Sep 2004 10:25:30 -0400 > > > >Are you using this through Peoplesoft? > > > >-----Original Message----- > >From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > >[mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf > >Of radhika reddy > >Sent: Tuesday, September 14, 2004 9:49 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Output to Details > > > > > >Hi, > > > > My Sqr Report creates a spreadsheet file. At present i am getting >my > >spreadsheet file in Unix server. Is there any way that the csv file > >could be > >put out such that the user can click on Details and automatically get > >the > >file? Otherwise it has to be downloaded and opened, then saved. >Sort > >of > >cumbersome. > > > >Can it be done? > > > >Thanks, > >Radhika > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/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 > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/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 _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 15 03:20:40 2004 From: "radhika reddy" Subject: RE: [sqr-users] Output to Details Date: Tue, 14 Sep 2004 20:53:34 -0500 Hi, I could get my output when i click DETAILS in process monitor.When i ran the SQR I selected the Type to be web and Format to be CSV, i get the output in explorer in a different format. My output is CSV file. I could see my CSV file in output directory, but i want that to come when i click DETAILS. Can this be done? In peoplebooks, i see that SQR can't get the output in CSV format. Am I understanding it correctly? Thanks, Radhika >From: "Murty Mirthipati Venkata Suryanarayan" >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] Output to Details >Date: Tue, 14 Sep 2004 20:56:34 +0530 > >Radhika, > If you are using Windows client, specify the absolute path and run >the report to the Windows client machine. > >With Best Regards, >Murty MVS > > > > > >-----Original Message----- >From: radhika reddy [mailto:radhika_05@hotmail.com] >Sent: Tuesday, September 14, 2004 8:01 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Output to Details > > > > >Yes and i am running through process scheduler. > > > >From: "Pink, Michael" > >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] Output to Details > >Date: Tue, 14 Sep 2004 10:25:30 -0400 > > > >Are you using this through Peoplesoft? > > > >-----Original Message----- > >From: sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org > >[mailto:sqr-users-bounces+michael.pink=pgnmail.com@sqrug.org] On Behalf > >Of radhika reddy > >Sent: Tuesday, September 14, 2004 9:49 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Output to Details > > > > > >Hi, > > > > My Sqr Report creates a spreadsheet file. At present i am getting my > >spreadsheet file in Unix server. Is there any way that the csv file > >could be > >put out such that the user can click on Details and automatically get > >the > >file? Otherwise it has to be downloaded and opened, then saved. Sort > >of > >cumbersome. > > > >Can it be done? > > > >Thanks, > >Radhika > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/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 > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > >DISCLAIMER: >Information contained and transmitted by this E-MAIL is proprietary to >Hexaware Technologies and is intended for use only by the individual or >entity to which it is addressed and may contain information that is >privileged, confidential or exempt from disclosure under applicable law. >If this is a forwarded message, the content of this E-MAIL may not have >been sent with the authority of the Company. If you are not the intended >recipient, an agent of the intended recipient or a person responsible >for delivering the information to the named recipient, you are notified >that any use, distribution, transmission, printing, copying or >dissemination of this information in any way or in any manner is >strictly prohibited. If you have received this communication in error, >please delete this mail & notify us immediately at >adminchn@hexaware.com. > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Sep 15 04:00:45 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Wed, 15 Sep 2004 14:37:56 +0530 Subject: RE: [sqr-users] Output to Details Radhika, CSV output can be obtained in two ways: 1. Writing into the CSV File 2. Reporting using comma delimiter using Print Statements. The second way has limitations with respect to the increase number= of reporting columns + rows, which enroute to environmental issues. If you want the output to be CSV, you better use the file concept= s and write into the same. This method would be safe and reliable. But then= you can't see the output on mere click of the DETAILS link in process moni= tor. Instead you should refer to the location where the output is stored. =20=20=20=20=20=20=20=20=20=20 With Best Regards, Murty MVS Software Developer +9144-28241970 Ext:233 (For Client Sun Trust) -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Wednesday, September 15, 2004 7:24 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Output to Details Hi, I could get my output when i click DETAILS in process monitor.When i ran= =20 the SQR I selected the Type to be web and Format to be CSV, i get the outpu= t=20 in explorer in a different format. My output is CSV file. I could see my CS= V=20 file in output directory, but i want that to come when i click DETAILS. Can= =20 this be done? In peoplebooks, i see that SQR can't get the output in CSV format. Am I understanding it correctly? Thanks, Radhika >From: "Murty Mirthipati Venkata Suryanarayan" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Output to Details >Date: Tue, 14 Sep 2004 20:56:34 +0530 > >Radhika, > If you are using Windows client, specify the absolute path and run >the report to the Windows client machine. > >With Best Regards, >Murty MVS > > > > > >-----Original Message----- >From: radhika reddy [mailto:radhika_05@hotmail.com] >Sent: Tuesday, September 14, 2004 8:01 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Output to Details > > > > >Yes and i am running through process scheduler. > > > >From: "Pink, Michael" > >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] Output to Details > >Date: Tue, 14 Sep 2004 10:25:30 -0400 > > > >