From sqr-users-bounces@sqrug.org Sun Jul 01 00:02:24 2007 Date: Sun, 1 Jul 2007 00:00:03 -0400 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.23 $ $Date: 2006/07/27 16:28:24 $ 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 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 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. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- 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. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Jul 01 12:30:13 2007 Date: Sun, 1 Jul 2007 09:27:30 -0700 (PDT) From: Ajith Nyalakonda Subject: [sqr-users] Error with Brio Report Hi all,I could get following error when i run the Brio Report on windows environment. If anyone has faced the similar situation please help me out. (SQR 5528) Sybase DBRESULTS error in cursor 2: (10331) CREATE PROCEDURE permission denied, database tempdb, owner Invalid pointer param number 4, pointer value 0x1102192b8 Error on line 314: (SQR 3733) Could not create procedure for SQL. Errors were found in the program file. SQR: Program Aborting. Brio SQR v6.2 for Sybase \u003cspan lang\u003d\"en-us\"\>\u003cfont face\u003d\"Century Gothic\"\> 12.5\u003c/font\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\> \u003c/span\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003ca name\u003d\"11379a03465802fa_\"\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" face\u003d\"Lucida Calligraphy\"\>Thanks,\u003c/font\>\u003c/span\>\u003c/a\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#800080\" size\u003d\"5\"\>Venkata Madhu\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>   (C607629)\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>BCNIT - FARE Team\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>Application Developer\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>(O) 248-455-2702\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\> \u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>(C) 586-215-6981\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003ca href\u003d\"mailto:VMadhu@bcbsm.com\" target\u003d\"_blank\" onclick\u003d\"return top.js.OpenExtLink(window,event,this)\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003cu\>\u003c/u\>\u003c/i\>\u003c/span\>\u003ci\>\u003cu\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>VMadhu@bcbsm.com\u003c/font\>\u003c/span\>\u003c/u\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/a\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>",1] ); //--> 12.5 Thanks, Ajith. --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 02 08:34:59 2007 Subject: RE: [sqr-users] Error with Brio Report Date: Mon, 2 Jul 2007 08:30:07 -0400 From: "Venkat Maligireddy" One way Use -XP on the command line so no procedures will be created from t= he selects Or=20 Grant create procedure permissions for the user=20 Thanks Venkat -----Original Message----- From: sqr-users-bounces+venkat.reddy=3Dharlandfs.com@sqrug.org [mailto:sqr-= users-bounces+venkat.reddy=3Dharlandfs.com@sqrug.org] On Behalf Of Ajith Ny= alakonda Sent: Sunday, July 01, 2007 12:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error with Brio Report=20 Hi all,I could get following error when i run the Brio Report on windows e= nvironment. If anyone has faced the similar situation please help me out. =20=20=20 (SQR 5528) Sybase DBRESULTS error in cursor 2: (10331) CREATE PROCEDURE permission denied, database tempdb, owner Invalid pointer param number 4, pointer value 0x1102192b8 Error on line 314: (SQR 3733) Could not create procedure for SQL. Errors were found in the program file. SQR: Program Aborting. =20=20 =20 Brio SQR v6.2 for Sybase \u003cspan lang\u003d\"en-us\"\>\u003cfont face= \u003d\"Century Gothic\"\> 12.5\u003c/font\>\u003c/span\>\u003cspan lang\u0= 03d\"en-us\"\> \u003c/span\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cs= pan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003= c/span\>\u003ca name\u003d\"11379a03465802fa_\"\>\u003cspan lang\u003d\"en-= us\"\>\u003cfont color\u003d\"#0000FF\" face\u003d\"Lucida Calligraphy\"\>T= hanks,\u003c/font\>\u003c/span\>\u003c/a\>\u003c/p\>\n\n\u003cp dir\u003d\"= LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan lang\u003d\"= en-us\"\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003c/p= \>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u= 003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u0= 03c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"= #800080\" size\u003d\"5\"\>Venkata Madhu\u003c/font\>\u003c/span\>\u003c/i\= >\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d= \"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"= en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>=A0=A0 (C607629= )\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003c= i\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003c/s= pan\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u003= d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\= >\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\= u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>BCNIT - FARE Team\u003c/f= ont\>\u003c/span\>\u003c/i\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c= /i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u00= 3c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003ci\>\u003cspan lang\u003= d\"en-us\"\>Application Developer\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003= cp dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003= c/span\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u0= 03ci\>\u003cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" siz= e\u003d\"2\"\>(O) 248-455-2702\u003c/font\>\u003c/span\>\u003c/i\>\u003cspa= n lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan = lang\u003d\"en-us\"\> \u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003= d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\= u003cspan lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u0= 03cspan lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"= 2\"\>(C) 586-215-6981\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan lang\u0= 03d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003= d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>= \u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003ca href\u003d\"mailto:VMadhu@bcbsm.com\" target\u003d\"_blank\" onclick\u003d= \"return top.js.OpenExtLink(window,event,this)\"\>\u003cspan lang\u003d\"en= -us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan lang\u003d\"en-us\"\>\u00= 3ci\>\u003cu\>\u003c/u\>\u003c/i\>\u003c/span\>\u003ci\>\u003cu\>\u003cspan= lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>VM= adhu@bcbsm.com\u003c/font\>\u003c/span\>\u003c/u\>\u003c/i\>\u003cspan lang= \u003d\"en-us\"\>\u003c/span\>\u003c/a\>\u003cspan lang\u003d\"en-us\"\>\u0= 03ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>\u003= c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp dir\u003d\"LTR\"\>\u003cspan lang\u= 003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan lang\u00= 3d\"en-us\"\>",1] ); //--> 12.5=20 =20=20=20 Thanks, Ajith. =20=20=20=20=20=20=20 --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 02 18:20:57 2007 Date: Mon, 2 Jul 2007 18:18:23 -0400 From: ajji Subject: Re: [sqr-users] Error with Brio Report Thanks Venkat,I will give a shot On 7/2/07, Venkat Maligireddy wrote: > > One way Use -XP on the command line so no procedures will be created from > the selects > > Or > > Grant create procedure permissions for the user > > Thanks > Venkat > > -----Original Message----- > From: sqr-users-bounces+venkat.reddy=harlandfs.com@sqrug.org [mailto: > sqr-users-bounces+venkat.reddy=harlandfs.com@sqrug.org] On Behalf Of Ajith > Nyalakonda > Sent: Sunday, July 01, 2007 12:28 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Error with Brio Report > > Hi all,I could get following error when i run the Brio Report on windows > environment. > If anyone has faced the similar situation please help me out. > > (SQR 5528) Sybase DBRESULTS error in cursor 2: > (10331) CREATE PROCEDURE permission denied, database tempdb, owner > Invalid pointer param number 4, pointer value 0x1102192b8 > Error on line 314: > (SQR 3733) Could not create procedure for SQL. > Errors were found in the program file. > SQR: Program Aborting. > > > Brio SQR v6.2 for Sybase \u003cspan lang\u003d\"en-us\"\>\u003cfont > face\u003d\"Century Gothic\"\> 12.5\u003c/font\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\> \u003c/span\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003ca > name\u003d\"11379a03465802fa_\"\>\u003cspan lang\u003d\"en-us\"\>\u003cfont > color\u003d\"#0000FF\" face\u003d\"Lucida > Calligraphy\"\>Thanks,\u003c/font\>\u003c/span\>\u003c/a\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003cfont color\u003d\"#800080\" > size\u003d\"5\"\>Venkata Madhu\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\> > (C607629)\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" > size\u003d\"2\"\>BCNIT - FARE > Team\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003ci\>\u003cspan lang\u003d\"en-us\"\>Application > Developer\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>(O) > 248-455-2702\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\> \u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\>(C) > 586-215-6981\u003c/font\>\u003c/span\>\u003c/i\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan lang\u003d\"en-us\"\>\u003c/span\>\u003ca > href\u003d\"mailto:VMadhu@bcbsm.com\" target\u003d\"_blank\" > onclick\u003d\"return top.js.OpenExtLink(window,event,this)\"\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003cu\>\u003c/u\>\u003c/i\>\u003c/span\>\u003ci\>\u003cu\>\u003cspan > lang\u003d\"en-us\"\>\u003cfont color\u003d\"#0000FF\" size\u003d\"2\"\> > VMadhu@bcbsm.com\u003c/font\>\u003c/span\>\u003c/u\>\u003c/i\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003c/a\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>\u003c/span\>\u003c/i\>\u003c/p\>\n\n\u003cp > dir\u003d\"LTR\"\>\u003cspan > lang\u003d\"en-us\"\>\u003ci\>\u003c/i\>\u003c/span\>\u003ci\>\u003cspan > lang\u003d\"en-us\"\>",1] ); //--> 12.5 > > Thanks, > Ajith. > > > --------------------------------- > Need a vacation? Get great deals to amazing places on Yahoo! Travel. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Ajith _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 09 15:10:58 2007 Date: Mon, 9 Jul 2007 12:08:15 -0700 (PDT) From: Sonny Subject: [sqr-users] Need help with placing an image in SQR report v 4.3.4 Hello All I am in a desparate need to print a signature (Jpeg file) to an existing SQR report. I tried the following code (test code) which keeps failing and gives me the following error: Error on line 20: (SQR 6108) Invalid chart size or placement. The code is as follows: begin-setup declare-report label_report layout=default_label printer-type=hp end-declare declare-layout default_label orientation=portrait left-margin=0.5 top-margin=1.85 line-height=4.5 end-declare declare-image logo type = JPEG-FILE image-size = (336,115) source = 'd:\carl2.jpg' end-declare end-setup begin-program print-image logo (1,1) end-program Thanks for all the help in advance, Sonny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 03:05:08 2007 Date: Tue, 10 Jul 2007 00:01:44 -0700 From: "Mimi Bekele" Subject: [sqr-users] Problem with .spf output file Hi we are currently using SQR V6.0 on Unix and AIX platform. My question is why does SQR creates .spf file before creating .lis and is there a way to by pass the creation of the .spf file? =20 Thanks, MiMi=20=20 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 03:25:17 2007 From: "R Gumbo" Subject: RE: [sqr-users] Problem with .spf output file Date: Tue, 10 Jul 2007 09:24:01 +0200 Only creates spf if -KEEP flag is set on runtime options at least that is the case in Version 5. Otherwise it only creates .lis -----Original Message----- From: sqr-users-bounces+rgumbo=cottco.co.zw@sqrug.org [mailto:sqr-users-bounces+rgumbo=cottco.co.zw@sqrug.org]On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 9:02 AM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with .spf output file Hi we are currently using SQR V6.0 on Unix and AIX platform. My question is why does SQR creates .spf file before creating .lis and is there a way to by pass the creation of the .spf file? Thanks, MiMi ---------------------------------------------------------------------------- -------------------------------------------- This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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@sqrug.org Tue Jul 10 06:36:48 2007 From: "the dragon" Subject: RE: [sqr-users] Problem with .spf output file Date: Tue, 10 Jul 2007 05:33:18 -0500 Unless sqr has changed, the .spf output is an intermediary stage to the final output. It's always there I believe, you just don't generally see it. The -keep switch allows you to keep it around, as it usually goes away when the final output is created. 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Only creates spf if -KEEP flag is set on runtime options at least that is the case in Version 5. Otherwise it only creates .lis -----Original Message----- Hi we are currently using SQR V6.0 on Unix and AIX platform. My question is why does SQR creates .spf file before creating .lis and is there a way to by pass the creation of the .spf file? Thanks, MiMi _________________________________________________________________ Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 06:53:12 2007 From: "Peter Burton" Subject: RE: [sqr-users] Problem with .spf output file Date: Tue, 10 Jul 2007 06:49:25 -0400 MiMi, SQR will create an .SPF file under the following conditions ... 1) -KEEP is specified 2) -PRINTER:xx is specified 3) If SQR commands are used which require the need for an .SPF file. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-u= sers-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 3:02 AM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with .spf output file Hi we are currently using SQR V6.0 on Unix and AIX platform. My question is why does SQR creates .spf file before creating .lis and is there a way to by pass the creation of the .spf file? =20 Thanks, MiMi=20=20 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 07:28:10 2007 Date: Tue, 10 Jul 2007 13:24:38 +0200 (MEST) From: Luc Van der Veurst Subject: [sqr-users] Performance difference v3 vs v9 Hello, We are still running sqr version V3.0.7.0.1 :-). Since re-investigating in what report generation tool we will use in the future will be on next year's budget, we wondered if our sqr code would sitll run under v9. Therefore, we installed version 9.3.0.1.0.836. Our reports still work, so that was the good news, but version 9 is much slower than version 3. A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report just selects one column from one tuple in the database. We see this difference in all our reports: they take about 10 seconds more to run. Our environment : OS : Soralis 8 DB : Sybase ASE 12.5.3 Hyperion says that the difference is due to the fact that v3 uses dblib while v9 uses ctlib. I find this hard to believe, we have other dblib and ctlib programs to compare. What I did notice is that sybase's libraries are linked statically into sqr v3 while there are more libraries dynamically loaded in v9 : v3 : $ ldd /local/sybase/workbench_30/bin/sqr libnsl.so.1 => /lib/libnsl.so.1 libc.so.1 => /lib/libc.so.1 libdl.so.1 => /lib/libdl.so.1 libmp.so.2 => /lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 v9 : $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr libbtunicode.so => /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so libCrun.so.1 => /lib/libCrun.so.1 libC.so.5 => /lib/libC.so.5 libsocket.so.1 => /lib/libsocket.so.1 libnsl.so.1 => /lib/libnsl.so.1 libct.so => /local/sybase/sdk125/clt/lib/libct.so libcs.so => /local/sybase/sdk125/clt/lib/libcs.so libtcl.so => /local/sybase/sdk125/clt/lib/libtcl.so libcomn.so => /local/sybase/sdk125/clt/lib/libcomn.so libintl.so => /local/sybase/sdk125/clt/lib/libintl.so libm.so.1 => /lib/libm.so.1 libdl.so.1 => /lib/libdl.so.1 libc.so.1 => /lib/libc.so.1 libthread.so.1 => /lib/libthread.so.1 libmp.so.2 => /lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 $ 1. Does anyone had similar experiences with performance after an upgrade ? 2. Does anyone has relinked ldd so that more libraries are statically linked ? Thanks, Luc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 08:08:04 2007 From: "Peter Burton" Subject: RE: [sqr-users] Performance difference v3 vs v9 Date: Tue, 10 Jul 2007 08:04:13 -0400 Luc, You might try changing the fetch buffer row value (-Bnn). Other than passi= ng this value to the CT-Lib software this is not used by SQR. The default = value for SQR 9.3 is 100. Earlier versions of SQR used different values. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Luc Van der Ve= urst Sent: Tuesday, July 10, 2007 7:25 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance difference v3 vs v9 Hello, We are still running sqr version V3.0.7.0.1 :-). Since re-investigating in what report generation tool we will use in the future will be on next year's budget, we wondered if our sqr code would sitll run under v9. Therefore, we installed version 9.3.0.1.0.836. Our reports still work, so that was the good news, but version 9 is much slower than version 3. A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report just selects one column from one tuple in the database. We see this difference in all our reports: they take about 10 seconds more to run. Our environment : OS : Soralis 8 DB : Sybase ASE 12.5.3 Hyperion says that the difference is due to the fact that v3 uses dblib while v9 uses ctlib. I find this hard to believe, we have other dblib and ctlib programs to compare. What I did notice is that sybase's libraries are linked statically into sqr v3 while there are more libraries dynamically loaded in v9 : v3 : $ ldd /local/sybase/workbench_30/bin/sqr libnsl.so.1 =3D> /lib/libnsl.so.1 libc.so.1 =3D> /lib/libc.so.1 libdl.so.1 =3D> /lib/libdl.so.1 libmp.so.2 =3D> /lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 v9 : $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr libbtunicode.so =3D> /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so libCrun.so.1 =3D> /lib/libCrun.so.1 libC.so.5 =3D> /lib/libC.so.5 libsocket.so.1 =3D> /lib/libsocket.so.1 libnsl.so.1 =3D> /lib/libnsl.so.1 libct.so =3D> /local/sybase/sdk125/clt/lib/libct.so libcs.so =3D> /local/sybase/sdk125/clt/lib/libcs.so libtcl.so =3D> /local/sybase/sdk125/clt/lib/libtcl.so libcomn.so =3D> /local/sybase/sdk125/clt/lib/libcomn.so libintl.so =3D> /local/sybase/sdk125/clt/lib/libintl.so libm.so.1 =3D> /lib/libm.so.1 libdl.so.1 =3D> /lib/libdl.so.1 libc.so.1 =3D> /lib/libc.so.1 libthread.so.1 =3D> /lib/libthread.so.1 libmp.so.2 =3D> /lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 $ 1. Does anyone had similar experiences with performance after an upgrade ? =20 2. Does anyone has relinked ldd so that more libraries are statically linked ? =20 Thanks, Luc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 12:08:28 2007 Subject: RE: [sqr-users] Problem with .spf output file Date: Tue, 10 Jul 2007 09:04:56 -0700 From: "Mimi Bekele" No actually it does create .spf file even without -KEEP flag being used at run time. The -KEEP flag is used if you want to keep the .spf file after the program is run. In other words -KEEP will keep the .spf as well as .lis file. -MiMi=20 -----Original Message----- From: R Gumbo [mailto:rgumbo@cottco.co.zw]=20 Sent: Tuesday, July 10, 2007 12:24 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Problem with .spf output file Only creates spf if -KEEP flag is set on runtime options at least that is the case in Version 5. Otherwise it only creates .lis -----Original Message----- From: sqr-users-bounces+rgumbo=3Dcottco.co.zw@sqrug.org [mailto:sqr-users-bounces+rgumbo=3Dcottco.co.zw@sqrug.org]On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 9:02 AM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with .spf output file Hi we are currently using SQR V6.0 on Unix and AIX platform. My question is why does SQR creates .spf file before creating .lis and is there a way to by pass the creation of the .spf file? Thanks, MiMi ------------------------------------------------------------------------ ---- -------------------------------------------- This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 12:11:58 2007 Subject: RE: [sqr-users] Problem with .spf output file Date: Tue, 10 Jul 2007 12:08:59 -0400 From: "Larry Roux" SQR uses the SPF file to create the LIS. First it runs and creates the generically tagged output (SPF) then it uses various settings to convert the SPF file to the other output types (pdf/html/etc). the SPF file is then usually deleted. the KEEP flag simply tells SQR not to do the delete. -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Problem with .spf output file No actually it does create .spf file even without -KEEP flag being used at run time. The -KEEP flag is used if you want to keep the .spf file after the program is run. In other words -KEEP will keep the .spf as well as .lis file. -MiMi=20 -----Original Message----- From: R Gumbo [mailto:rgumbo@cottco.co.zw]=20 Sent: Tuesday, July 10, 2007 12:24 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Problem with .spf output file Only creates spf if -KEEP flag is set on runtime options at least that is the case in Version 5. Otherwise it only creates .lis -----Original Message----- From: sqr-users-bounces+rgumbo=3Dcottco.co.zw@sqrug.org [mailto:sqr-users-bounces+rgumbo=3Dcottco.co.zw@sqrug.org]On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 9:02 AM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with .spf output file Hi we are currently using SQR V6.0 on Unix and AIX platform. My question is why does SQR creates .spf file before creating .lis and is there a way to by pass the creation of the .spf file? Thanks, MiMi ------------------------------------------------------------------------ ---- -------------------------------------------- This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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@sqrug.org Tue Jul 10 12:34:49 2007 Date: Tue, 10 Jul 2007 09:31:18 -0700 From: "Mimi Bekele" Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 12:44:55 2007 From: "Peter Burton" Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Date: Tue, 10 Jul 2007 12:41:54 -0400 MiMi, Here are some of them ... declare-toc declare-report declare-layout declare-printer declare-procedure use-procedure alter-printer use-report use-printer-type toc-entry print-direct printer=3DXXX Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 12:58:32 2007 Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Date: Tue, 10 Jul 2007 09:54:58 -0700 From: "Mimi Bekele" Thanks again Peter. I see I'm using the declare-layout to set the report type to landscape. I don't know if there is another way of achieving this without actually using the declare-layout.=20 Below you will see my code. Please let me know if you have any suggestions Begin-Setup=20 Declare-Layout default top-margin =3D 0 left-margin =3D 0 max-lines =3D 58 max-columns =3D 176 End-Declare End-Setup=20 Thanks, MiMi=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 9:42 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Here are some of them ... declare-toc declare-report declare-layout declare-printer declare-procedure use-procedure alter-printer use-report use-printer-type toc-entry print-direct printer=3DXXX Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 13:29:58 2007 From: "Peter Burton" Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Date: Tue, 10 Jul 2007 13:27:01 -0400 MiMi, Nope ... You must use Declare-Layout to set "Landscape" mode. What is the problem with having the SPF file being created anyway? Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:55 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Thanks again Peter. I see I'm using the declare-layout to set the report type to landscape. I don't know if there is another way of achieving this without actually using the declare-layout.=20 Below you will see my code. Please let me know if you have any suggestions Begin-Setup=20 Declare-Layout default top-margin =3D 0 left-margin =3D 0 max-lines =3D 58 max-columns =3D 176 End-Declare End-Setup=20 Thanks, MiMi=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 9:42 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Here are some of them ... declare-toc declare-report declare-layout declare-printer declare-procedure use-procedure alter-printer use-report use-printer-type toc-entry print-direct printer=3DXXX Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 13:43:24 2007 Date: Tue, 10 Jul 2007 10:39:41 -0700 From: "Mimi Bekele" Subject: [sqr-users] RE: Problem with .spf That's what I thought.... Well the problem is since I can't rename the .spf file at run time, the .spf file gets corrupted from time to time when multiple users are running the program at the same time.=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 10:27 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Nope ... You must use Declare-Layout to set "Landscape" mode. What is the problem with having the SPF file being created anyway? Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:55 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Thanks again Peter. I see I'm using the declare-layout to set the report type to landscape. I don't know if there is another way of achieving this without actually using the declare-layout.=20 Below you will see my code. Please let me know if you have any suggestions Begin-Setup=20 Declare-Layout default top-margin =3D 0 left-margin =3D 0 max-lines =3D 58 max-columns =3D 176 End-Declare End-Setup=20 Thanks, MiMi=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 9:42 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Here are some of them ... declare-toc declare-report declare-layout declare-printer declare-procedure use-procedure alter-printer use-report use-printer-type toc-entry print-direct printer=3DXXX Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 13:50:58 2007 From: "Peter Burton" Subject: RE: [sqr-users] RE: Problem with .spf Date: Tue, 10 Jul 2007 13:47:44 -0400 MiMi, Use the -F command line flag with the name of the users directory (e.g. -F/= home/user/). That way all of the files will go there and there shouldn't b= e any problems with users clobbering the files.=20 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 1:40 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: [sqr-users] RE: Problem with .spf That's what I thought.... Well the problem is since I can't rename the .spf file at run time, the .spf file gets corrupted from time to time when multiple users are running the program at the same time.=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 10:27 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Nope ... You must use Declare-Layout to set "Landscape" mode. What is the problem with having the SPF file being created anyway? Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:55 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Thanks again Peter. I see I'm using the declare-layout to set the report type to landscape. I don't know if there is another way of achieving this without actually using the declare-layout.=20 Below you will see my code. Please let me know if you have any suggestions Begin-Setup=20 Declare-Layout default top-margin =3D 0 left-margin =3D 0 max-lines =3D 58 max-columns =3D 176 End-Declare End-Setup=20 Thanks, MiMi=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 9:42 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Here are some of them ... declare-toc declare-report declare-layout declare-printer declare-procedure use-procedure alter-printer use-report use-printer-type toc-entry print-direct printer=3DXXX Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 14:19:46 2007 Subject: RE: [sqr-users] RE: Problem with .spf Date: Tue, 10 Jul 2007 11:16:17 -0700 From: "Mimi Bekele" Yes actually I was thinking of doing something along that line. Currently all the output from all of our production programs goes to a common directory but I will need to re-direct the output to some temporary directory and then clean up the directory and move the .lis file to common directory. Thanks for all your help. MiMi =20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 10:48 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: Problem with .spf MiMi, Use the -F command line flag with the name of the users directory (e.g. -F/home/user/). That way all of the files will go there and there shouldn't be any problems with users clobbering the files.=20 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 1:40 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: [sqr-users] RE: Problem with .spf That's what I thought.... Well the problem is since I can't rename the .spf file at run time, the .spf file gets corrupted from time to time when multiple users are running the program at the same time.=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 10:27 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Nope ... You must use Declare-Layout to set "Landscape" mode. What is the problem with having the SPF file being created anyway? Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:55 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Thanks again Peter. I see I'm using the declare-layout to set the report type to landscape. I don't know if there is another way of achieving this without actually using the declare-layout.=20 Below you will see my code. Please let me know if you have any suggestions Begin-Setup=20 Declare-Layout default top-margin =3D 0 left-margin =3D 0 max-lines =3D 58 max-columns =3D 176 End-Declare End-Setup=20 Thanks, MiMi=20 -----Original Message----- From: sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org [mailto:sqr-users-bounces+mimi.bekele=3Dmedimpact.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, July 10, 2007 9:42 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 MiMi, Here are some of them ... declare-toc declare-report declare-layout declare-printer declare-procedure use-procedure alter-printer use-report use-printer-type toc-entry print-direct printer=3DXXX Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Mimi Bekele Sent: Tuesday, July 10, 2007 12:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 41, Issue 4 Peter, Thanks for the info. You mentioned the -KEEP , -PRINTER:xx and SQR commands could cause the creation of the .SPF file. Do you know what are some of the sqr commands that could cause the creation of the .spf file? The reason I'm asking is if I knew what the commands are maybe I can re-write the program so that it will not create the .spf file. Thanks, MiMi=20 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your 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 ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 10 16:38:38 2007 Date: Tue, 10 Jul 2007 13:35:55 -0700 (PDT) From: rchan mudambir Subject: [sqr-users] Image not getting printed to its full size Hi all, I am trying to print an jpg image to its full size in SQR in Portrait orientation, A4 paper. The width of the image in SQR output is reduced in size by 2 millimeters. The SQR version used is " SQR for PeopleSoft/8.42/PC/Windows NT 4.0/Oracle 8.0.6/Nov 05 2002 " .The code used is as follows: begin-setup declare-layout def paper-size=(8.27 in, 11.69 in) top-margin=0.4 in left-margin=0.0 in right-margin=0.0 in bottom-margin=0.0 in orientation=portrait end-declare declare-report r1 layout=def end-declare declare-image I1 type = JPEG-FILE source = 'C:\scan0006.jpg' image-size = (81,65) end-declare end-setup Begin-procedure im1 use-report r1 print-image I1 (0, 0) type = JPEG-FILE source = 'C:\scan0006.jpg' image-size = (81,65) End-procedure begin-program do im1 End-program Thanks, Chandra. ____________________________________________________________________________________ Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 06:48:35 2007 From: "Steve Cavill" Subject: RE: [sqr-users] Performance difference v3 vs v9 Date: Wed, 11 Jul 2007 20:45:03 +1000 If the difference is always 10s, then it looks more like a startup problem than a sql perf problem (i.e. the increase is not linear) i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? How long does a report that returns 0 rows take? You could trace the SQR execution time by placing a datenow() function as the first as last commands of the program. 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 Peter Burton Sent: Tuesday, 10 July 2007 10:04 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Performance difference v3 vs v9 Luc, You might try changing the fetch buffer row value (-Bnn). Other than passing this value to the CT-Lib software this is not used by SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR used different values. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Luc Van der Veurst Sent: Tuesday, July 10, 2007 7:25 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance difference v3 vs v9 Hello, We are still running sqr version V3.0.7.0.1 :-). Since re-investigating in what report generation tool we will use in the future will be on next year's budget, we wondered if our sqr code would sitll run under v9. Therefore, we installed version 9.3.0.1.0.836. Our reports still work, so that was the good news, but version 9 is much slower than version 3. A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report just selects one column from one tuple in the database. We see this difference in all our reports: they take about 10 seconds more to run. Our environment : OS : Soralis 8 DB : Sybase ASE 12.5.3 Hyperion says that the difference is due to the fact that v3 uses dblib while v9 uses ctlib. I find this hard to believe, we have other dblib and ctlib programs to compare. What I did notice is that sybase's libraries are linked statically into sqr v3 while there are more libraries dynamically loaded in v9 : v3 : $ ldd /local/sybase/workbench_30/bin/sqr libnsl.so.1 => /lib/libnsl.so.1 libc.so.1 => /lib/libc.so.1 libdl.so.1 => /lib/libdl.so.1 libmp.so.2 => /lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 v9 : $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr libbtunicode.so => /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so libCrun.so.1 => /lib/libCrun.so.1 libC.so.5 => /lib/libC.so.5 libsocket.so.1 => /lib/libsocket.so.1 libnsl.so.1 => /lib/libnsl.so.1 libct.so => /local/sybase/sdk125/clt/lib/libct.so libcs.so => /local/sybase/sdk125/clt/lib/libcs.so libtcl.so => /local/sybase/sdk125/clt/lib/libtcl.so libcomn.so => /local/sybase/sdk125/clt/lib/libcomn.so libintl.so => /local/sybase/sdk125/clt/lib/libintl.so libm.so.1 => /lib/libm.so.1 libdl.so.1 => /lib/libdl.so.1 libc.so.1 => /lib/libc.so.1 libthread.so.1 => /lib/libthread.so.1 libmp.so.2 => /lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 $ 1. Does anyone had similar experiences with performance after an upgrade ? 2. Does anyone has relinked ldd so that more libraries are statically linked ? Thanks, Luc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 07:20:31 2007 Date: Wed, 11 Jul 2007 13:17:07 +0200 Subject: RE: [sqr-users] Performance difference v3 vs v9 From: "franck\.masson" The approach of steve is correct first try to execute a sqr code without any select statement to get the time needed to launch sqr and to do a login to the database. Franck, ---------- Debut du message initial ----------- De : sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org A : "This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions." sqr-users@sqrug.org Copies : Date : Wed, 11 Jul 2007 20:45:03 +1000 Objet : RE: [sqr-users] Performance difference v3 vs v9 > If the difference is always 10s, then it looks more like a startup proble= m than a sql perf problem (i.e. the increase is not linear) > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > How long does a report that returns 0 rows take? > You could trace the SQR execution time by placing a datenow() function as= the first as last commands of the program. > 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 Peter Burton > Sent: Tuesday, 10 July 2007 10:04 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > Luc, > > You might try changing the fetch buffer row value (-Bnn). Other than pas= sing this value to the CT-Lib software this is not used by > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR used= different values. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-u= sers-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of > Luc Van der Veurst > Sent: Tuesday, July 10, 2007 7:25 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Performance difference v3 vs v9 > > > Hello, > > We are still running sqr version V3.0.7.0.1 :-). > > Since re-investigating in what report generation tool we will use in the = future will be on next year's budget, we wondered if our > sqr code would sitll run under v9. > > Therefore, we installed version 9.3.0.1.0.836. > > Our reports still work, so that was the good news, but version 9 is much = slower than version 3. > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The repor= t just selects one column from one tuple in the database. > > We see this difference in all our reports: they take about 10 seconds mor= e to run. > > Our environment : > > OS : Soralis 8 > DB : Sybase ASE 12.5.3 > > Hyperion says that the difference is due to the fact that > v3 uses dblib while v9 uses ctlib. > I find this hard to believe, we have other dblib and ctlib programs to co= mpare. > > What I did notice is that sybase's libraries are linked statically into s= qr v3 while there are more libraries dynamically loaded in > v9 : > > v3 : > > $ ldd /local/sybase/workbench_30/bin/sqr > libnsl.so.1 =3D> /lib/libnsl.so.1 > libc.so.1 =3D> /lib/libc.so.1 > libdl.so.1 =3D> /lib/libdl.so.1 > libmp.so.2 =3D> /lib/libmp.so.2 > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > v9 : > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > libbtunicode.so =3D> > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so > libCrun.so.1 =3D> /lib/libCrun.so.1 > libC.so.5 =3D> /lib/libC.so.5 > libsocket.so.1 =3D> /lib/libsocket.so.1 > libnsl.so.1 =3D> /lib/libnsl.so.1 > libct.so =3D> /local/sybase/sdk125/clt/lib/libct.so > libcs.so =3D> /local/sybase/sdk125/clt/lib/libcs.so > libtcl.so =3D> /local/sybase/sdk125/clt/lib/libtcl.so > libcomn.so =3D> /local/sybase/sdk125/clt/lib/libcomn.so > libintl.so =3D> /local/sybase/sdk125/clt/lib/libintl.so > libm.so.1 =3D> /lib/libm.so.1 > libdl.so.1 =3D> /lib/libdl.so.1 > libc.so.1 =3D> /lib/libc.so.1 > libthread.so.1 =3D> /lib/libthread.so.1 > libmp.so.2 =3D> /lib/libmp.so.2 > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > $ > > > 1. Does anyone had similar experiences with performance after an > upgrade ? > > 2. Does anyone has relinked ldd so that more libraries are statically > linked ? > > Thanks, > Luc. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 >=20 Cr=E9ez votre adresse =E9lectronique prenom.nom@laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus int=E9gr=E9s. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 07:34:47 2007 Date: Wed, 11 Jul 2007 07:31:45 -0400 From: "bobby b" Subject: [sqr-users] hi hi Friends is there any flag in SQR that show the Path of how the SQCs and variables are changed while executing SQR the S flag is used to find the trace of execution regarding excution sequence is there any flag in SQR if any one have answer pls reply me Thanks in advance _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 07:43:55 2007 From: "the dragon" Subject: RE: [sqr-users] hi Date: Wed, 11 Jul 2007 06:40:13 -0500 Go here http://dev.hyperion.com/techdocs/sqr/sqr_langref80.pdf download/read document answer question 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- hi Friends is there any flag in SQR that show the Path of how the SQCs and variables are changed while executing SQR the S flag is used to find the trace of execution regarding excution sequence is there any flag in SQR if any one have answer pls reply me Thanks in advance _________________________________________________________________ http://newlivehotmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 07:48:03 2007 Date: Wed, 11 Jul 2007 13:40:41 +0200 (MEST) From: Luc Van der Veurst Subject: RE: [sqr-users] Performance difference v3 vs v9 Hello, Peter, changing the -B parameter doesn't help. > If the difference is always 10s, then it looks more like a startup problem than a sql perf problem (i.e. the increase is not linear) Yes, that's what I thought too. It certainly is not a database sql performance problem since the database is the same for both versions. The increase is not linear, always about 9 to 10 seconds slower, no matter how long the report runs. My sqr program looks like : $ cat sqrworld.sqr begin-report show 'Hello World.' end-report $ I execute the program with the unix time command. executed with v3 : SQR: Structured Query Report Writer V3.0.7.0.1 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. Hello World. SQR: End of Run. real 0m0.03s user 0m0.02s sys 0m0.01s executed with v9 : Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserved. (SQR 8906) Warning: The product license will expire on 20-aug-2007. Hello World. SQR: End of Run. real 0m9.47s user 0m0.61s sys 0m0.23s Could it be because this is a test license ? The time is spent between printing the copyright line and the warning about the expiration date (I don't know if that output is buffered). (There is a difference between 3 and 9: even when the program doesn't need a database connection, v 9 establishes a connection while 3 doesn't (I know because I have to provide valid username/password/server information for v9 and not for v3). If the program requires a database connection, the time difference between the 2 is also between 9 and 10 seconds). Thanks, Luc. > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > How long does a report that returns 0 rows take? > You could trace the SQR execution time by placing a datenow() function as the first as last commands of the program. > 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 Peter Burton > Sent: Tuesday, 10 July 2007 10:04 PM > To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > Luc, > > You might try changing the fetch buffer row value (-Bnn). Other than passing this value to the CT-Lib software this is not used by > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR used different values. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of > Luc Van der Veurst > Sent: Tuesday, July 10, 2007 7:25 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Performance difference v3 vs v9 > > > Hello, > > We are still running sqr version V3.0.7.0.1 :-). > > Since re-investigating in what report generation tool we will use in the future will be on next year's budget, we wondered if our > sqr code would sitll run under v9. > > Therefore, we installed version 9.3.0.1.0.836. > > Our reports still work, so that was the good news, but version 9 is much slower than version 3. > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report just selects one column from one tuple in the database. > > We see this difference in all our reports: they take about 10 seconds more to run. > > Our environment : > > OS : Soralis 8 > DB : Sybase ASE 12.5.3 > > Hyperion says that the difference is due to the fact that > v3 uses dblib while v9 uses ctlib. > I find this hard to believe, we have other dblib and ctlib programs to compare. > > What I did notice is that sybase's libraries are linked statically into sqr v3 while there are more libraries dynamically loaded in > v9 : > > v3 : > > $ ldd /local/sybase/workbench_30/bin/sqr > libnsl.so.1 => /lib/libnsl.so.1 > libc.so.1 => /lib/libc.so.1 > libdl.so.1 => /lib/libdl.so.1 > libmp.so.2 => /lib/libmp.so.2 > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > v9 : > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > libbtunicode.so => > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so > libCrun.so.1 => /lib/libCrun.so.1 > libC.so.5 => /lib/libC.so.5 > libsocket.so.1 => /lib/libsocket.so.1 > libnsl.so.1 => /lib/libnsl.so.1 > libct.so => /local/sybase/sdk125/clt/lib/libct.so > libcs.so => /local/sybase/sdk125/clt/lib/libcs.so > libtcl.so => /local/sybase/sdk125/clt/lib/libtcl.so > libcomn.so => /local/sybase/sdk125/clt/lib/libcomn.so > libintl.so => /local/sybase/sdk125/clt/lib/libintl.so > libm.so.1 => /lib/libm.so.1 > libdl.so.1 => /lib/libdl.so.1 > libc.so.1 => /lib/libc.so.1 > libthread.so.1 => /lib/libthread.so.1 > libmp.so.2 => /lib/libmp.so.2 > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > $ > > > 1. Does anyone had similar experiences with performance after an > upgrade ? > > 2. Does anyone has relinked ldd so that more libraries are statically > linked ? > > Thanks, > Luc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 07:56:56 2007 From: "Peter Burton" Subject: RE: [sqr-users] Performance difference v3 vs v9 Date: Wed, 11 Jul 2007 07:53:11 -0400 Luc, Could be the license logic but that is not something that can be controlled= by any setting available to the user. You do not need to provide a database connection for those reports which do= not require one. Simply specify "/" for the connectivity and specify the = -XL command line flag. sqr hello / -xl Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Luc Van der Ve= urst Sent: Wednesday, July 11, 2007 7:41 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance difference v3 vs v9 Hello, Peter, changing the -B parameter doesn't help. > If the difference is always 10s, then it looks more like a startup problem than a sql perf problem (i.e. the increase is not linear) Yes, that's what I thought too. It certainly is not a database sql performance problem since the database is the same for both versions. The increase is not linear, always about 9 to 10 seconds slower, no matter how long the report runs. My sqr program looks like : $ cat sqrworld.sqr begin-report show 'Hello World.' end-report $ I execute the program with the unix time command. executed with v3 : SQR: Structured Query Report Writer V3.0.7.0.1 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. Hello World. SQR: End of Run. real 0m0.03s user 0m0.02s sys 0m0.01s executed with v9 : Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserve= d. (SQR 8906) Warning: The product license will expire on 20-aug-2007. Hello World. SQR: End of Run. real 0m9.47s user 0m0.61s sys 0m0.23s Could it be because this is a test license ? The time is spent between printing the copyright line and the warning about the expiration date (I don't know if that output is buffered). (There is a difference between 3 and 9: even when the program doesn't need a database connection, v 9 establishes a connection while 3 doesn't (I know because I have to provide valid username/password/server information for v9 and not for v3). If the program requires a database connection, the time difference between the 2 is also between 9 and 10 seconds). Thanks, Luc. > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > How long does a report that returns 0 rows take? > You could trace the SQR execution time by placing a datenow() function as= the first as last commands of the program. > 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 Peter Burton > Sent: Tuesday, 10 July 2007 10:04 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > Luc, > > You might try changing the fetch buffer row value (-Bnn). Other than pas= sing this value to the CT-Lib software this is not used by > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR used different values. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of > Luc Van der Veurst > Sent: Tuesday, July 10, 2007 7:25 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Performance difference v3 vs v9 > > > Hello, > > We are still running sqr version V3.0.7.0.1 :-). > > Since re-investigating in what report generation tool we will use in the future will be on next year's budget, we wondered if our > sqr code would sitll run under v9. > > Therefore, we installed version 9.3.0.1.0.836. > > Our reports still work, so that was the good news, but version 9 is much slower than version 3. > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report just selects one column from one tuple in the database. > > We see this difference in all our reports: they take about 10 seconds mor= e to run. > > Our environment : > > OS : Soralis 8 > DB : Sybase ASE 12.5.3 > > Hyperion says that the difference is due to the fact that > v3 uses dblib while v9 uses ctlib. > I find this hard to believe, we have other dblib and ctlib programs to compare. > > What I did notice is that sybase's libraries are linked statically into s= qr v3 while there are more libraries dynamically loaded in > v9 : > > v3 : > > $ ldd /local/sybase/workbench_30/bin/sqr > libnsl.so.1 =3D> /lib/libnsl.so.1 > libc.so.1 =3D> /lib/libc.so.1 > libdl.so.1 =3D> /lib/libdl.so.1 > libmp.so.2 =3D> /lib/libmp.so.2 > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > v9 : > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > libbtunicode.so =3D> > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so > libCrun.so.1 =3D> /lib/libCrun.so.1 > libC.so.5 =3D> /lib/libC.so.5 > libsocket.so.1 =3D> /lib/libsocket.so.1 > libnsl.so.1 =3D> /lib/libnsl.so.1 > libct.so =3D> /local/sybase/sdk125/clt/lib/libct.so > libcs.so =3D> /local/sybase/sdk125/clt/lib/libcs.so > libtcl.so =3D> /local/sybase/sdk125/clt/lib/libtcl.so > libcomn.so =3D> /local/sybase/sdk125/clt/lib/libcomn.so > libintl.so =3D> /local/sybase/sdk125/clt/lib/libintl.so > libm.so.1 =3D> /lib/libm.so.1 > libdl.so.1 =3D> /lib/libdl.so.1 > libc.so.1 =3D> /lib/libc.so.1 > libthread.so.1 =3D> /lib/libthread.so.1 > libmp.so.2 =3D> /lib/libmp.so.2 > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > $ > > > 1. Does anyone had similar experiences with performance after an > upgrade ? > > 2. Does anyone has relinked ldd so that more libraries are statically > linked ? > > Thanks, > Luc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 08:33:25 2007 Date: Wed, 11 Jul 2007 14:29:21 +0200 (MEST) From: Luc Van der Veurst Subject: RE: [sqr-users] Performance difference v3 vs v9 Thanks, Peter. > Could be the license logic but that is not something that can be controlled by any setting available to the user. > > You do not need to provide a database connection for those reports which do not require one. Simply specify "/" for the connectivity and specify the -XL command line flag. > > sqr hello / -xl ok, there is no difference wether I include the -xl option or not : $ sqr sqrworld / -xl Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserved. (SQR 8906) Warning: The product license will expire on 20-aug-2007. Hello World. SQR: End of Run. real 0m9.48s user 0m0.54s sys 0m0.24s In any case, this must rule out that the difference is due to the database interface. Thanks, Luc. > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Luc Van der Veurst > Sent: Wednesday, July 11, 2007 7:41 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > Hello, > > Peter, changing the -B parameter doesn't help. > > > > If the difference is always 10s, then it looks more like a startup problem > than a sql perf problem (i.e. the increase is not linear) > > Yes, that's what I thought too. It certainly is not a database sql > performance problem since the database is the same for both versions. > > The increase is not linear, always about 9 to 10 seconds slower, no > matter how long the report runs. > > My sqr program looks like : > > $ cat sqrworld.sqr > begin-report > show 'Hello World.' > end-report > $ > > I execute the program with the unix time command. > > executed with v3 : > > SQR: Structured Query Report Writer V3.0.7.0.1 > Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. > > Hello World. > > SQR: End of Run. > > real 0m0.03s > user 0m0.02s > sys 0m0.01s > > executed with v9 : > > Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 > Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserved. > > (SQR 8906) Warning: The product license will expire on 20-aug-2007. > Hello World. > > SQR: End of Run. > > real 0m9.47s > user 0m0.61s > sys 0m0.23s > > > Could it be because this is a test license ? > The time is spent between printing the copyright line and the > warning about the expiration date (I don't know if that output > is buffered). > > (There is a difference between 3 and 9: even when the program doesn't > need a database connection, v 9 establishes a connection while 3 doesn't > (I know because I have to provide valid username/password/server information > for v9 and not for v3). If the program requires a database connection, > the time difference between the 2 is also between 9 and 10 seconds). > > Thanks, > Luc. > > > > > > > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > > How long does a report that returns 0 rows take? > > You could trace the SQR execution time by placing a datenow() function as the > first as last commands of the program. > > 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 Peter Burton > > Sent: Tuesday, 10 July 2007 10:04 PM > > To: This list is for discussion about the SQR database reporting languagefrom > Hyperion Solutions. > > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > > Luc, > > > > You might try changing the fetch buffer row value (-Bnn). Other than passing > this value to the CT-Lib software this is not used by > > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR used > different values. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org > [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of > > Luc Van der Veurst > > Sent: Tuesday, July 10, 2007 7:25 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Performance difference v3 vs v9 > > > > > > Hello, > > > > We are still running sqr version V3.0.7.0.1 :-). > > > > Since re-investigating in what report generation tool we will use in the > future will be on next year's budget, we wondered if our > > sqr code would sitll run under v9. > > > > Therefore, we installed version 9.3.0.1.0.836. > > > > Our reports still work, so that was the good news, but version 9 is much > slower than version 3. > > > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report > just selects one column from one tuple in the database. > > > > We see this difference in all our reports: they take about 10 seconds more to > run. > > > > Our environment : > > > > OS : Soralis 8 > > DB : Sybase ASE 12.5.3 > > > > Hyperion says that the difference is due to the fact that > > v3 uses dblib while v9 uses ctlib. > > I find this hard to believe, we have other dblib and ctlib programs to > compare. > > > > What I did notice is that sybase's libraries are linked statically into sqr v3 > while there are more libraries dynamically loaded in > > v9 : > > > > v3 : > > > > $ ldd /local/sybase/workbench_30/bin/sqr > > libnsl.so.1 => /lib/libnsl.so.1 > > libc.so.1 => /lib/libc.so.1 > > libdl.so.1 => /lib/libdl.so.1 > > libmp.so.2 => /lib/libmp.so.2 > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > > > v9 : > > > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > > libbtunicode.so => > > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so > > libCrun.so.1 => /lib/libCrun.so.1 > > libC.so.5 => /lib/libC.so.5 > > libsocket.so.1 => /lib/libsocket.so.1 > > libnsl.so.1 => /lib/libnsl.so.1 > > libct.so => /local/sybase/sdk125/clt/lib/libct.so > > libcs.so => /local/sybase/sdk125/clt/lib/libcs.so > > libtcl.so => /local/sybase/sdk125/clt/lib/libtcl.so > > libcomn.so => /local/sybase/sdk125/clt/lib/libcomn.so > > libintl.so => /local/sybase/sdk125/clt/lib/libintl.so > > libm.so.1 => /lib/libm.so.1 > > libdl.so.1 => /lib/libdl.so.1 > > libc.so.1 => /lib/libc.so.1 > > libthread.so.1 => /lib/libthread.so.1 > > libmp.so.2 => /lib/libmp.so.2 > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > $ > > > > > > 1. Does anyone had similar experiences with performance after an > > upgrade ? > > > > 2. Does anyone has relinked ldd so that more libraries are statically > > linked ? > > > > Thanks, > > Luc. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ____ Luc Van der Veurst UZ Brussel. Email efficient: mail niet in html, gebruik geen images in signatures! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 08:42:47 2007 From: "Peter Burton" Subject: RE: [sqr-users] Performance difference v3 vs v9 Date: Wed, 11 Jul 2007 08:38:43 -0400 Luc, What .lic files are in the license directory /opt/hyperion/common/LicenseStandalone/Licenses There should only be the one for SQR in that directory (unless you have oth= er products installed). Also, make sure that there isn't an environment variable called LM_LICENSE_= FILE set. This could cause some problems. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Luc Van der Ve= urst Sent: Wednesday, July 11, 2007 8:29 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance difference v3 vs v9 Thanks, Peter. > Could be the license logic but that is not something that can be controll= ed by any setting available to the user. > > You do not need to provide a database connection for those reports which = do not require one. Simply specify "/" for the connectivity and specify the -= XL command line flag. > > sqr hello / -xl ok, there is no difference wether I include the -xl option or not : $ sqr sqrworld / -xl Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserve= d. (SQR 8906) Warning: The product license will expire on 20-aug-2007. Hello World. SQR: End of Run. real 0m9.48s user 0m0.54s sys 0m0.24s In any case, this must rule out that the difference is due to the database interface. Thanks, Luc. > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of= Luc Van der Veurst > Sent: Wednesday, July 11, 2007 7:41 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > Hello, > > Peter, changing the -B parameter doesn't help. > > > > If the difference is always 10s, then it looks more like a startup prob= lem > than a sql perf problem (i.e. the increase is not linear) > > Yes, that's what I thought too. It certainly is not a database sql > performance problem since the database is the same for both versions. > > The increase is not linear, always about 9 to 10 seconds slower, no > matter how long the report runs. > > My sqr program looks like : > > $ cat sqrworld.sqr > begin-report > show 'Hello World.' > end-report > $ > > I execute the program with the unix time command. > > executed with v3 : > > SQR: Structured Query Report Writer V3.0.7.0.1 > Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. > > Hello World. > > SQR: End of Run. > > real 0m0.03s > user 0m0.02s > sys 0m0.01s > > executed with v9 : > > Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 > Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reser= ved. > > (SQR 8906) Warning: The product license will expire on 20-aug-2007. > Hello World. > > SQR: End of Run. > > real 0m9.47s > user 0m0.61s > sys 0m0.23s > > > Could it be because this is a test license ? > The time is spent between printing the copyright line and the > warning about the expiration date (I don't know if that output > is buffered). > > (There is a difference between 3 and 9: even when the program doesn't > need a database connection, v 9 establishes a connection while 3 doesn't > (I know because I have to provide valid username/password/server informat= ion > for v9 and not for v3). If the program requires a database connection, > the time difference between the 2 is also between 9 and 10 seconds). > > Thanks, > Luc. > > > > > > > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > > How long does a report that returns 0 rows take? > > You could trace the SQR execution time by placing a datenow() function = as the > first as last commands of the program. > > 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 Peter Burton > > Sent: Tuesday, 10 July 2007 10:04 PM > > To: This list is for discussion about the SQR database reporting languagefrom > Hyperion Solutions. > > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > > Luc, > > > > You might try changing the fetch buffer row value (-Bnn). Other than passing > this value to the CT-Lib software this is not used by > > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR us= ed > different values. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org > [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf = Of > > Luc Van der Veurst > > Sent: Tuesday, July 10, 2007 7:25 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Performance difference v3 vs v9 > > > > > > Hello, > > > > We are still running sqr version V3.0.7.0.1 :-). > > > > Since re-investigating in what report generation tool we will use in the > future will be on next year's budget, we wondered if our > > sqr code would sitll run under v9. > > > > Therefore, we installed version 9.3.0.1.0.836. > > > > Our reports still work, so that was the good news, but version 9 is much > slower than version 3. > > > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The rep= ort > just selects one column from one tuple in the database. > > > > We see this difference in all our reports: they take about 10 seconds m= ore to > run. > > > > Our environment : > > > > OS : Soralis 8 > > DB : Sybase ASE 12.5.3 > > > > Hyperion says that the difference is due to the fact that > > v3 uses dblib while v9 uses ctlib. > > I find this hard to believe, we have other dblib and ctlib programs to > compare. > > > > What I did notice is that sybase's libraries are linked statically into= sqr v3 > while there are more libraries dynamically loaded in > > v9 : > > > > v3 : > > > > $ ldd /local/sybase/workbench_30/bin/sqr > > libnsl.so.1 =3D> /lib/libnsl.so.1 > > libc.so.1 =3D> /lib/libc.so.1 > > libdl.so.1 =3D> /lib/libdl.so.1 > > libmp.so.2 =3D> /lib/libmp.so.2 > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > > > v9 : > > > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > > libbtunicode.so =3D> > > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so > > libCrun.so.1 =3D> /lib/libCrun.so.1 > > libC.so.5 =3D> /lib/libC.so.5 > > libsocket.so.1 =3D> /lib/libsocket.so.1 > > libnsl.so.1 =3D> /lib/libnsl.so.1 > > libct.so =3D> /local/sybase/sdk125/clt/lib/libct.so > > libcs.so =3D> /local/sybase/sdk125/clt/lib/libcs.so > > libtcl.so =3D> /local/sybase/sdk125/clt/lib/libtcl.so > > libcomn.so =3D> /local/sybase/sdk125/clt/lib/libcomn.so > > libintl.so =3D> /local/sybase/sdk125/clt/lib/libintl.so > > libm.so.1 =3D> /lib/libm.so.1 > > libdl.so.1 =3D> /lib/libdl.so.1 > > libc.so.1 =3D> /lib/libc.so.1 > > libthread.so.1 =3D> /lib/libthread.so.1 > > libmp.so.2 =3D> /lib/libmp.so.2 > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > $ > > > > > > 1. Does anyone had similar experiences with performance after an > > upgrade ? > > > > 2. Does anyone has relinked ldd so that more libraries are statically > > linked ? > > > > Thanks, > > Luc. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ____ Luc Van der Veurst UZ Brussel. Email efficient: mail niet in html, gebruik geen images in signatures! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 09:20:57 2007 Date: Wed, 11 Jul 2007 15:15:49 +0200 (MEST) From: Luc Van der Veurst Subject: RE: [sqr-users] Performance difference v3 vs v9 Hi Peter, > What .lic files are in the license directory > > /opt/hyperion/common/LicenseStandalone/Licenses > > There should only be the one for SQR in that directory (unless you have other products installed). There are 2 files in the Licenses directory : -rwxrwxr-x 1 sybase infd 6731 Jun 19 13:29 HS9_SA_TempFile.lic -rwxrwxr-x 1 sybase infd 25857 Jun 19 13:29 HS9_TempFile.lic > Also, make sure that there isn't an environment variable called LM_LICENSE_FILE set. This could cause some problems. The LM_LICENSE_FILE variable was not set. When I remove file HS9_TempFile.lic file, I got performance closer to the version 3 performance. The difference is now 0.7s which should be acceptable. Case closed. Thanks for your help ! Luc. > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Luc Van der Veurst > Sent: Wednesday, July 11, 2007 8:29 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > Thanks, Peter. > > > Could be the license logic but that is not something that can be controlled by > any setting available to the user. > > > > You do not need to provide a database connection for those reports which do > not require one. Simply specify "/" for the connectivity and specify the -XL > command line flag. > > > > sqr hello / -xl > > ok, there is no difference wether I include the -xl option or not : > > $ sqr sqrworld / -xl > Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 > Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserved. > > (SQR 8906) Warning: The product license will expire on 20-aug-2007. > Hello World. > > SQR: End of Run. > > real 0m9.48s > user 0m0.54s > sys 0m0.24s > > In any case, this must rule out that the difference is due to the > database interface. > > Thanks, > Luc. > > > > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org > [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Luc > Van der Veurst > > Sent: Wednesday, July 11, 2007 7:41 AM > > To: sqr-users@sqrug.org > > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > > > > Hello, > > > > Peter, changing the -B parameter doesn't help. > > > > > > > If the difference is always 10s, then it looks more like a startup problem > > than a sql perf problem (i.e. the increase is not linear) > > > > Yes, that's what I thought too. It certainly is not a database sql > > performance problem since the database is the same for both versions. > > > > The increase is not linear, always about 9 to 10 seconds slower, no > > matter how long the report runs. > > > > My sqr program looks like : > > > > $ cat sqrworld.sqr > > begin-report > > show 'Hello World.' > > end-report > > $ > > > > I execute the program with the unix time command. > > > > executed with v3 : > > > > SQR: Structured Query Report Writer V3.0.7.0.1 > > Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. > > > > Hello World. > > > > SQR: End of Run. > > > > real 0m0.03s > > user 0m0.02s > > sys 0m0.01s > > > > executed with v9 : > > > > Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 > > Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserved. > > > > (SQR 8906) Warning: The product license will expire on 20-aug-2007. > > Hello World. > > > > SQR: End of Run. > > > > real 0m9.47s > > user 0m0.61s > > sys 0m0.23s > > > > > > Could it be because this is a test license ? > > The time is spent between printing the copyright line and the > > warning about the expiration date (I don't know if that output > > is buffered). > > > > (There is a difference between 3 and 9: even when the program doesn't > > need a database connection, v 9 establishes a connection while 3 doesn't > > (I know because I have to provide valid username/password/server information > > for v9 and not for v3). If the program requires a database connection, > > the time difference between the 2 is also between 9 and 10 seconds). > > > > Thanks, > > Luc. > > > > > > > > > > > > > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > > > How long does a report that returns 0 rows take? > > > You could trace the SQR execution time by placing a datenow() function as > the > > first as last commands of the program. > > > 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 Peter Burton > > > Sent: Tuesday, 10 July 2007 10:04 PM > > > To: This list is for discussion about the SQR database reporting > languagefrom > > Hyperion Solutions. > > > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > > > > Luc, > > > > > > You might try changing the fetch buffer row value (-Bnn). Other than > passing > > this value to the CT-Lib software this is not used by > > > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR used > > different values. > > > > > > Peter > > > > > > -----Original Message----- > > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org > > [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of > > > Luc Van der Veurst > > > Sent: Tuesday, July 10, 2007 7:25 AM > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] Performance difference v3 vs v9 > > > > > > > > > Hello, > > > > > > We are still running sqr version V3.0.7.0.1 :-). > > > > > > Since re-investigating in what report generation tool we will use in the > > future will be on next year's budget, we wondered if our > > > sqr code would sitll run under v9. > > > > > > Therefore, we installed version 9.3.0.1.0.836. > > > > > > Our reports still work, so that was the good news, but version 9 is much > > slower than version 3. > > > > > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The report > > just selects one column from one tuple in the database. > > > > > > We see this difference in all our reports: they take about 10 seconds more > to > > run. > > > > > > Our environment : > > > > > > OS : Soralis 8 > > > DB : Sybase ASE 12.5.3 > > > > > > Hyperion says that the difference is due to the fact that > > > v3 uses dblib while v9 uses ctlib. > > > I find this hard to believe, we have other dblib and ctlib programs to > > compare. > > > > > > What I did notice is that sybase's libraries are linked statically into sqr > v3 > > while there are more libraries dynamically loaded in > > > v9 : > > > > > > v3 : > > > > > > $ ldd /local/sybase/workbench_30/bin/sqr > > > libnsl.so.1 => /lib/libnsl.so.1 > > > libc.so.1 => /lib/libc.so.1 > > > libdl.so.1 => /lib/libdl.so.1 > > > libmp.so.2 => /lib/libmp.so.2 > > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > > > > > v9 : > > > > > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > > > libbtunicode.so => > > > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.so > > > libCrun.so.1 => /lib/libCrun.so.1 > > > libC.so.5 => /lib/libC.so.5 > > > libsocket.so.1 => /lib/libsocket.so.1 > > > libnsl.so.1 => /lib/libnsl.so.1 > > > libct.so => /local/sybase/sdk125/clt/lib/libct.so > > > libcs.so => /local/sybase/sdk125/clt/lib/libcs.so > > > libtcl.so => /local/sybase/sdk125/clt/lib/libtcl.so > > > libcomn.so => /local/sybase/sdk125/clt/lib/libcomn.so > > > libintl.so => /local/sybase/sdk125/clt/lib/libintl.so > > > libm.so.1 => /lib/libm.so.1 > > > libdl.so.1 => /lib/libdl.so.1 > > > libc.so.1 => /lib/libc.so.1 > > > libthread.so.1 => /lib/libthread.so.1 > > > libmp.so.2 => /lib/libmp.so.2 > > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > > $ > > > > > > > > > 1. Does anyone had similar experiences with performance after an > > > upgrade ? > > > > > > 2. Does anyone has relinked ldd so that more libraries are statically > > > linked ? > > > > > > Thanks, > > > Luc. > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ____ > Luc Van der Veurst > UZ Brussel. > > Email efficient: mail niet in html, gebruik geen images in signatures! > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ____ Luc Van der Veurst UZ Brussel. Email efficient: mail niet in html, gebruik geen images in signatures! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 09:34:38 2007 From: "Peter Burton" Subject: RE: [sqr-users] Performance difference v3 vs v9 Date: Wed, 11 Jul 2007 09:31:19 -0400 Luc, No problem ... Please keep in mind that SQR v9 is a Unicode based application and will the= refore be slower (depends on what you are doing) than SQR v3 which is not a= Unicode application. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Luc Van der Ve= urst Sent: Wednesday, July 11, 2007 9:16 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance difference v3 vs v9 Hi Peter, > What .lic files are in the license directory > > /opt/hyperion/common/LicenseStandalone/Licenses > > There should only be the one for SQR in that directory (unless you have o= ther products installed). There are 2 files in the Licenses directory : -rwxrwxr-x 1 sybase infd 6731 Jun 19 13:29 HS9_SA_TempFile.lic -rwxrwxr-x 1 sybase infd 25857 Jun 19 13:29 HS9_TempFile.lic > Also, make sure that there isn't an environment variable called LM_LICENSE_FILE set. This could cause some problems. The LM_LICENSE_FILE variable was not set. When I remove file HS9_TempFile.lic file, I got performance closer to the version 3 performance. The difference is now 0.7s which should be acceptable. Case closed. Thanks for your help ! Luc. > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of= Luc Van der Veurst > Sent: Wednesday, July 11, 2007 8:29 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > Thanks, Peter. > > > Could be the license logic but that is not something that can be contro= lled by > any setting available to the user. > > > > You do not need to provide a database connection for those reports whic= h do > not require one. Simply specify "/" for the connectivity and specify the= -XL > command line flag. > > > > sqr hello / -xl > > ok, there is no difference wether I include the -xl option or not : > > $ sqr sqrworld / -xl > Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 > Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reser= ved. > > (SQR 8906) Warning: The product license will expire on 20-aug-2007. > Hello World. > > SQR: End of Run. > > real 0m9.48s > user 0m0.54s > sys 0m0.24s > > In any case, this must rule out that the difference is due to the > database interface. > > Thanks, > Luc. > > > > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org > [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf = Of Luc > Van der Veurst > > Sent: Wednesday, July 11, 2007 7:41 AM > > To: sqr-users@sqrug.org > > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > > > > Hello, > > > > Peter, changing the -B parameter doesn't help. > > > > > > > If the difference is always 10s, then it looks more like a startup pr= oblem > > than a sql perf problem (i.e. the increase is not linear) > > > > Yes, that's what I thought too. It certainly is not a database sql > > performance problem since the database is the same for both versions. > > > > The increase is not linear, always about 9 to 10 seconds slower, no > > matter how long the report runs. > > > > My sqr program looks like : > > > > $ cat sqrworld.sqr > > begin-report > > show 'Hello World.' > > end-report > > $ > > > > I execute the program with the unix time command. > > > > executed with v3 : > > > > SQR: Structured Query Report Writer V3.0.7.0.1 > > Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. > > > > Hello World. > > > > SQR: End of Run. > > > > real 0m0.03s > > user 0m0.02s > > sys 0m0.01s > > > > executed with v9 : > > > > Hyperion System 9 BI+ Production Reporting Server - 9.3.0.1.0.836 > > Copyright (c) 1994-2007 Hyperion Solutions Corporation. All Rights Reserved. > > > > (SQR 8906) Warning: The product license will expire on 20-aug-2007. > > Hello World. > > > > SQR: End of Run. > > > > real 0m9.47s > > user 0m0.61s > > sys 0m0.23s > > > > > > Could it be because this is a test license ? > > The time is spent between printing the copyright line and the > > warning about the expiration date (I don't know if that output > > is buffered). > > > > (There is a difference between 3 and 9: even when the program doesn't > > need a database connection, v 9 establishes a connection while 3 doesn't > > (I know because I have to provide valid username/password/server inform= ation > > for v9 and not for v3). If the program requires a database connection, > > the time difference between the 2 is also between 9 and 10 seconds). > > > > Thanks, > > Luc. > > > > > > > > > > > > > i.e. a 0.07s report now takes 10.81s/ Does a 100s report take 110s? > > > How long does a report that returns 0 rows take? > > > You could trace the SQR execution time by placing a datenow() functio= n as > the > > first as last commands of the program. > > > 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 Peter Burton > > > Sent: Tuesday, 10 July 2007 10:04 PM > > > To: This list is for discussion about the SQR database reporting > languagefrom > > Hyperion Solutions. > > > Subject: RE: [sqr-users] Performance difference v3 vs v9 > > > > > > Luc, > > > > > > You might try changing the fetch buffer row value (-Bnn). Other than > passing > > this value to the CT-Lib software this is not used by > > > SQR. The default value for SQR 9.3 is 100. Earlier versions of SQR = used > > different values. > > > > > > Peter > > > > > > -----Original Message----- > > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org > > [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behal= f Of > > > Luc Van der Veurst > > > Sent: Tuesday, July 10, 2007 7:25 AM > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] Performance difference v3 vs v9 > > > > > > > > > Hello, > > > > > > We are still running sqr version V3.0.7.0.1 :-). > > > > > > Since re-investigating in what report generation tool we will use in = the > > future will be on next year's budget, we wondered if our > > > sqr code would sitll run under v9. > > > > > > Therefore, we installed version 9.3.0.1.0.836. > > > > > > Our reports still work, so that was the good news, but version 9 is m= uch > > slower than version 3. > > > > > > A report that runs with v3 in 0.07s seconds takes 10.81s in v9. The r= eport > > just selects one column from one tuple in the database. > > > > > > We see this difference in all our reports: they take about 10 seconds= more > to > > run. > > > > > > Our environment : > > > > > > OS : Soralis 8 > > > DB : Sybase ASE 12.5.3 > > > > > > Hyperion says that the difference is due to the fact that > > > v3 uses dblib while v9 uses ctlib. > > > I find this hard to believe, we have other dblib and ctlib programs to > > compare. > > > > > > What I did notice is that sybase's libraries are linked statically in= to sqr > v3 > > while there are more libraries dynamically loaded in > > > v9 : > > > > > > v3 : > > > > > > $ ldd /local/sybase/workbench_30/bin/sqr > > > libnsl.so.1 =3D> /lib/libnsl.so.1 > > > libc.so.1 =3D> /lib/libc.so.1 > > > libdl.so.1 =3D> /lib/libdl.so.1 > > > libmp.so.2 =3D> /lib/libmp.so.2 > > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > > > > > v9 : > > > > > > $ ldd /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/bin/sqr > > > libbtunicode.so =3D> > > > /local/sybase/Hyperion/BIPlus/bin/SQR/Server/Sybase/lib/libbtunicode.= so > > > libCrun.so.1 =3D> /lib/libCrun.so.1 > > > libC.so.5 =3D> /lib/libC.so.5 > > > libsocket.so.1 =3D> /lib/libsocket.so.1 > > > libnsl.so.1 =3D> /lib/libnsl.so.1 > > > libct.so =3D> /local/sybase/sdk125/clt/lib/libct.so > > > libcs.so =3D> /local/sybase/sdk125/clt/lib/libcs.so > > > libtcl.so =3D> /local/sybase/sdk125/clt/lib/libtcl.so > > > libcomn.so =3D> /local/sybase/sdk125/clt/lib/libcomn.so > > > libintl.so =3D> /local/sybase/sdk125/clt/lib/libintl.so > > > libm.so.1 =3D> /lib/libm.so.1 > > > libdl.so.1 =3D> /lib/libdl.so.1 > > > libc.so.1 =3D> /lib/libc.so.1 > > > libthread.so.1 =3D> /lib/libthread.so.1 > > > libmp.so.2 =3D> /lib/libmp.so.2 > > > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 > > > $ > > > > > > > > > 1. Does anyone had similar experiences with performance after an > > > upgrade ? > > > > > > 2. Does anyone has relinked ldd so that more libraries are statically > > > linked ? > > > > > > Thanks, > > > Luc. > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ____ > Luc Van der Veurst > UZ Brussel. > > Email efficient: mail niet in html, gebruik geen images in signatures! > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ____ Luc Van der Veurst UZ Brussel. Email efficient: mail niet in html, gebruik geen images in signatures! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 16:30:57 2007 Date: Wed, 11 Jul 2007 13:27:30 -0700 From: "Misha Franklin" Subject: [sqr-users] SQR Variable not being read by SQL I have replaced some hard-coded values in the SQL block with a variable name that is populated by SQR. We don't see any errors when the users run the program, but it is not generating the expected results. It appears that SQL doesn't 'read' the variable value, which is a series of codes from an array that I single quote and comma delimit: LET $SQ = '''' ! $SQ = one single quote WHILE #CurrSdaxCt <= #MaxSdaxCt GET $CodeString FROM sdax_excl_codes(#CurrSdaxCt) IF $CodeString !='' IF #CurrSdaxCt =0 LET $NewCodeString = $SQ || $CodeString || $SQ ELSE LET $NewCodeString = $SQ || $CodeString || $SQ || ',' || $NewCodeString END-IF ADD 1 to #CurrSdaxCt END-IF END-WHILE END-PROCEDURE (so $NewCodeString = 'F01','F02','F03','F04') The SQL Block looks like this: begin-sql on-error=wbrbnfa_insert_error insert into wbrbnfa ( wbrbnfa_term_code, wbrbnfa_pidm, wbrbnfa_detail_code, wbrbnfa_sum_amount, wbrbnfa_source, wbrbnfa_activity_date, wbrbnfa_session_id) ( select tbraccd_term_code, tbraccd_pidm , tbraccd_detail_code , sum(tbraccd_amount) , 'TBRACCD' , sysdate , $fa_session from tbraccd where tbraccd_term_code = $job_term and tbraccd_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code = 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbraccd_term_code, tbraccd_pidm, tbraccd_detail_code union all select tbrmemo_term_code , tbrmemo_pidm , tbrmemo_detail_code , sum(tbrmemo_amount) , 'TBRMEMO' , sysdate , $fa_session from tbrmemo where tbrmemo_term_code = $job_term and tbrmemo_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code = 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbrmemo_term_code, tbrmemo_pidm, tbrmemo_detail_code ) end-sql After I replaced the text 'F01','F02','F03','F04 that was originally in the program with my $NewCodeString variable, the program stopped excluding the F values in the variable (and this is bad). I am printing the $NewCodeString variable in my control report, and it looks good, so I think that SQL isn't decoding (bad choice of words?) the variable. After searching the archives and googling for a while, I am still at a loss. Does anyone have any ideas (even resources I should check out if I'm missing important basic SQR/SQL foundational information). Thanks in advance, Misha Franklin Software Applications Analyst Academic & Research Applications Information Technology Group Oregon Health & Sciences University 1515 SW 5th Avenue Portland, Oregon 97201 503-418-3244 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 16:50:17 2007 Date: Wed, 11 Jul 2007 15:47:37 -0500 From: "William Beckner" Subject: Re: [sqr-users] SQR Variable not being read by SQL Misha, =20 Try putting square brackets around the variable name $NewCodeString in your= SQL block so it looks like this: ... and tbbdetc_detail_code not in ([$NewCodeString])) ... =20 =20 =20 William Beckner (Just call me Bill) Network Support Analyst Office of Information Technology City Colleges of Chicago 312-553-3235 >>> Misha Franklin 7/11/2007 3:27 PM >>> I have replaced some hard-coded values in the SQL block with a variable name that is populated by SQR. We don't see any errors when the users run the program, but it is not generating the expected results. It appears that SQL doesn't 'read' the variable value, which is a series of codes from an array that I single quote and comma delimit: LET $SQ =3D '''' ! $SQ =3D one single quote WHILE #CurrSdaxCt <=3D #MaxSdaxCt GET $CodeString FROM sdax_excl_codes(#CurrSdaxCt) IF $CodeString !=3D'' IF #CurrSdaxCt =3D0 LET $NewCodeString =3D $SQ || $CodeString || $SQ ELSE LET $NewCodeString =3D $SQ || $CodeString || $SQ || ',' || $NewCodeString END-IF ADD 1 to #CurrSdaxCt END-IF END-WHILE END-PROCEDURE (so $NewCodeString =3D 'F01','F02','F03','F04') The SQL Block looks like this: begin-sql on-error=3Dwbrbnfa_insert_error insert into wbrbnfa ( wbrbnfa_term_code, wbrbnfa_pidm, wbrbnfa_detail_code, wbrbnfa_sum_amount, wbrbnfa_source, wbrbnfa_activity_date, wbrbnfa_session_id) ( select tbraccd_term_code, tbraccd_pidm , tbraccd_detail_code , sum(tbraccd_amount) , 'TBRACCD' , sysdate , $fa_session from tbraccd where tbraccd_term_code =3D $job_term and tbraccd_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code =3D 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbraccd_term_code, tbraccd_pidm, tbraccd_detail_code union all select tbrmemo_term_code , tbrmemo_pidm , tbrmemo_detail_code , sum(tbrmemo_amount) , 'TBRMEMO' , sysdate , $fa_session from tbrmemo where tbrmemo_term_code =3D $job_term and tbrmemo_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code =3D 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbrmemo_term_code, tbrmemo_pidm, tbrmemo_detail_code ) end-sql After I replaced the text 'F01','F02','F03','F04 that was originally in the program with my $NewCodeString variable, the program stopped excluding the F values in the variable (and this is bad). I am printing the $NewCodeString variable in my control report, and it looks good, so I think that SQL isn't decoding (bad choice of words?) the variable.=20 After searching the archives and googling for a while, I am still at a loss. Does anyone have any ideas (even resources I should check out if I'm missing important basic SQR/SQL foundational information). Thanks in advance, Misha Franklin Software Applications Analyst Academic & Research Applications Information Technology Group Oregon Health & Sciences University 1515 SW 5th Avenue Portland, Oregon 97201 503-418-3244 _______________________________________________ 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 http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 11 17:14:41 2007 Date: Wed, 11 Jul 2007 14:11:55 -0700 (PDT) From: Shashidhar Rao A Subject: Re: [sqr-users] SQR Variable not being read by SQL Misha, What William said is right. Also try to check the value of $NewCodeString variable by using show command just before ====begin-sql on-error=wbrbnfa_insert_error=== statement in the procedure. This will let you know whether the string is still holding the values you want. Regards, shdhra William Beckner wrote: Misha, Try putting square brackets around the variable name $NewCodeString in your SQL block so it looks like this: ... and tbbdetc_detail_code not in ([$NewCodeString])) ... William Beckner (Just call me Bill) Network Support Analyst Office of Information Technology City Colleges of Chicago 312-553-3235 >>> Misha Franklin 7/11/2007 3:27 PM >>> I have replaced some hard-coded values in the SQL block with a variable name that is populated by SQR. We don't see any errors when the users run the program, but it is not generating the expected results. It appears that SQL doesn't 'read' the variable value, which is a series of codes from an array that I single quote and comma delimit: LET $SQ = '''' ! $SQ = one single quote WHILE #CurrSdaxCt <= #MaxSdaxCt GET $CodeString FROM sdax_excl_codes(#CurrSdaxCt) IF $CodeString !='' IF #CurrSdaxCt =0 LET $NewCodeString = $SQ || $CodeString || $SQ ELSE LET $NewCodeString = $SQ || $CodeString || $SQ || ',' || $NewCodeString END-IF ADD 1 to #CurrSdaxCt END-IF END-WHILE END-PROCEDURE (so $NewCodeString = 'F01','F02','F03','F04') The SQL Block looks like this: begin-sql on-error=wbrbnfa_insert_error insert into wbrbnfa ( wbrbnfa_term_code, wbrbnfa_pidm, wbrbnfa_detail_code, wbrbnfa_sum_amount, wbrbnfa_source, wbrbnfa_activity_date, wbrbnfa_session_id) ( select tbraccd_term_code, tbraccd_pidm , tbraccd_detail_code , sum(tbraccd_amount) , 'TBRACCD' , sysdate , $fa_session from tbraccd where tbraccd_term_code = $job_term and tbraccd_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code = 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbraccd_term_code, tbraccd_pidm, tbraccd_detail_code union all select tbrmemo_term_code , tbrmemo_pidm , tbrmemo_detail_code , sum(tbrmemo_amount) , 'TBRMEMO' , sysdate , $fa_session from tbrmemo where tbrmemo_term_code = $job_term and tbrmemo_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code = 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbrmemo_term_code, tbrmemo_pidm, tbrmemo_detail_code ) end-sql After I replaced the text 'F01','F02','F03','F04 that was originally in the program with my $NewCodeString variable, the program stopped excluding the F values in the variable (and this is bad). I am printing the $NewCodeString variable in my control report, and it looks good, so I think that SQL isn't decoding (bad choice of words?) the variable. After searching the archives and googling for a while, I am still at a loss. Does anyone have any ideas (even resources I should check out if I'm missing important basic SQR/SQL foundational information). Thanks in advance, Misha Franklin Software Applications Analyst Academic & Research Applications Information Technology Group Oregon Health & Sciences University 1515 SW 5th Avenue Portland, Oregon 97201 503-418-3244 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 12 02:25:43 2007 Date: Thu, 12 Jul 2007 02:23:26 -0400 From: "bobby b" Subject: Re: [sqr-users] hi HI where can i get this this software for Hypernion SQR developer pls suggest me if u have this cd pls reply me i will send my mailing address thanks a lot On 7/11/07, the dragon wrote: > > Go here > http://dev.hyperion.com/techdocs/sqr/sqr_langref80.pdf > download/read document > answer question > > 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. > > I work to live; I don't live to work. > > "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) > > It is impossible to defeat an ignorant man in argument. -- William G. > McAdoo > > Religion is regarded by the common people as true, by the wise as false, > and > by the rulers as useful. -- Seneca > > "I distrust those people who know so well what God wants them to do > because > I notice it always coincides with their own desires." - Susan B. Anthony > > > > > ----Original Message Follows---- > > hi Friends > > > is there any flag in SQR that show the Path of how the SQCs and variables > are changed while executing SQR > the S flag is used to find the trace of execution > regarding excution sequence is there any flag in SQR if any one have > answer > pls reply me > > > > Thanks in advance > > _________________________________________________________________ > http://newlivehotmail.com > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 12 08:41:59 2007 From: "Steve Cavill" Subject: RE: [sqr-users] hi Date: Thu, 12 Jul 2007 22:38:21 +1000 Umm, from hyperion.....? www.hyperion.com -----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 bobby b Sent: Thursday, 12 July 2007 4:23 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] hi HI where can i get this this software for Hypernion SQR developer pls suggest me if u have this cd pls reply me i will send my mailing address thanks a lot On 7/11/07, the dragon wrote: > > Go here > http://dev.hyperion.com/techdocs/sqr/sqr_langref80.pdf > download/read document > answer question > > 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. > > I work to live; I don't live to work. > > "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) > > It is impossible to defeat an ignorant man in argument. -- William G. > McAdoo > > Religion is regarded by the common people as true, by the wise as > false, and by the rulers as useful. -- Seneca > > "I distrust those people who know so well what God wants them to do > because I notice it always coincides with their own desires." - Susan > B. Anthony > > > > > ----Original Message Follows---- > > hi Friends > > > is there any flag in SQR that show the Path of how the SQCs and > variables are changed while executing SQR the S flag is used to find > the trace of execution regarding excution sequence is there any flag > in SQR if any one have answer pls reply me > > > > Thanks in advance > > _________________________________________________________________ > http://newlivehotmail.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@sqrug.org Thu Jul 12 09:02:58 2007 From: "R Gumbo" Subject: RE: [sqr-users] hi Date: Thu, 12 Jul 2007 15:01:12 +0200 You can enquire through Oracle Corporation since Hyperion was acquired by Oracle recently. Can browse Oracle Website for that -----Original Message----- From: sqr-users-bounces+rgumbo=cottco.co.zw@sqrug.org [mailto:sqr-users-bounces+rgumbo=cottco.co.zw@sqrug.org]On Behalf Of Steve Cavill Sent: Thursday, July 12, 2007 2:38 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] hi Umm, from hyperion.....? www.hyperion.com -----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 bobby b Sent: Thursday, 12 July 2007 4:23 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] hi HI where can i get this this software for Hypernion SQR developer pls suggest me if u have this cd pls reply me i will send my mailing address thanks a lot On 7/11/07, the dragon wrote: > > Go here > http://dev.hyperion.com/techdocs/sqr/sqr_langref80.pdf > download/read document > answer question > > 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. > > I work to live; I don't live to work. > > "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) > > It is impossible to defeat an ignorant man in argument. -- William G. > McAdoo > > Religion is regarded by the common people as true, by the wise as > false, and by the rulers as useful. -- Seneca > > "I distrust those people who know so well what God wants them to do > because I notice it always coincides with their own desires." - Susan > B. Anthony > > > > > ----Original Message Follows---- > > hi Friends > > > is there any flag in SQR that show the Path of how the SQCs and > variables are changed while executing SQR the S flag is used to find > the trace of execution regarding excution sequence is there any flag > in SQR if any one have answer pls reply me > > > > Thanks in advance > > _________________________________________________________________ > http://newlivehotmail.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@sqrug.org Thu Jul 12 13:14:27 2007 Date: Thu, 12 Jul 2007 10:11:05 -0700 From: "Misha Franklin" Subject: Re: [sqr-users] SQR Variable not being read by SQL Thank you William and shdhra, The brackets resolved the issue! -Misha >>> wbeckner@ccc.edu 7/11/2007 1:47:37 PM >>> Misha, Try putting square brackets around the variable name $NewCodeString in your SQL block so it looks like this: ... and tbbdetc_detail_code not in ([$NewCodeString])) ... William Beckner (Just call me Bill) Network Support Analyst Office of Information Technology City Colleges of Chicago 312-553-3235 >>> Misha Franklin < franklim@ohsu.edu > 7/11/2007 3:27 PM >>> I have replaced some hard-coded values in the SQL block with a variable name that is populated by SQR. We don't see any errors when the users run the program, but it is not generating the expected results. It appears that SQL doesn't 'read' the variable value, which is a series of codes from an array that I single quote and comma delimit: LET $SQ = '''' ! $SQ = one single quote WHILE #CurrSdaxCt <= #MaxSdaxCt GET $CodeString FROM sdax_excl_codes(#CurrSdaxCt) IF $CodeString !='' IF #CurrSdaxCt =0 LET $NewCodeString = $SQ || $CodeString || $SQ ELSE LET $NewCodeString = $SQ || $CodeString || $SQ || ',' || $NewCodeString END-IF ADD 1 to #CurrSdaxCt END-IF END-WHILE END-PROCEDURE (so $NewCodeString = 'F01','F02','F03','F04') The SQL Block looks like this: begin-sql on-error=wbrbnfa_insert_error insert into wbrbnfa ( wbrbnfa_term_code, wbrbnfa_pidm, wbrbnfa_detail_code, wbrbnfa_sum_amount, wbrbnfa_source, wbrbnfa_activity_date, wbrbnfa_session_id) ( select tbraccd_term_code, tbraccd_pidm , tbraccd_detail_code , sum(tbraccd_amount) , 'TBRACCD' , sysdate , $fa_session from tbraccd where tbraccd_term_code = $job_term and tbraccd_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code = 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbraccd_term_code, tbraccd_pidm, tbraccd_detail_code union all select tbrmemo_term_code , tbrmemo_pidm , tbrmemo_detail_code , sum(tbrmemo_amount) , 'TBRMEMO' , sysdate , $fa_session from tbrmemo where tbrmemo_term_code = $job_term and tbrmemo_detail_code in (select tbbdetc_detail_code from tbbdetc where tbbdetc_dcat_code = 'FA' and tbbdetc_detail_code not like ('F6%') and tbbdetc_detail_code not like ('F9%') and tbbdetc_detail_code not in ($NewCodeString)) group by tbrmemo_term_code, tbrmemo_pidm, tbrmemo_detail_code ) end-sql After I replaced the text 'F01','F02','F03','F04 that was originally in the program with my $NewCodeString variable, the program stopped excluding the F values in the variable (and this is bad). I am printing the $NewCodeString variable in my control report, and it looks good, so I think that SQL isn't decoding (bad choice of words?) the variable. After searching the archives and googling for a while, I am still at a loss. Does anyone have any ideas (even resources I should check out if I'm missing important basic SQR/SQL foundational information). Thanks in advance, Misha Franklin Software Applications Analyst Academic & Research Applications Information Technology Group Oregon Health & Sciences University 1515 SW 5th Avenue Portland, Oregon 97201 503-418-3244 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 13 02:16:14 2007 Date: Fri, 13 Jul 2007 02:13:50 -0400 From: "bobby b" Subject: Re: [sqr-users] hi thank you and our forum On 7/12/07, R Gumbo wrote: > > You can enquire through Oracle Corporation since Hyperion was acquired by > Oracle recently. > Can browse Oracle Website for that > > -----Original Message----- > From: sqr-users-bounces+rgumbo=cottco.co.zw@sqrug.org > [mailto:sqr-users-bounces+rgumbo=cottco.co.zw@sqrug.org]On Behalf Of > Steve Cavill > Sent: Thursday, July 12, 2007 2:38 PM > To: 'This list is for discussion about the SQR database > reportinglanguagefrom Hyperion Solutions.' > Subject: RE: [sqr-users] hi > > > Umm, from hyperion.....? > www.hyperion.com > > -----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 bobby b > Sent: Thursday, 12 July 2007 4:23 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] hi > > HI > > where can i get this this software for Hypernion SQR developer > > pls suggest me if u have this cd pls reply me i will send my mailing > address > > > thanks a lot > > > > > > On 7/11/07, the dragon wrote: > > > > Go here > > http://dev.hyperion.com/techdocs/sqr/sqr_langref80.pdf > > download/read document > > answer question > > > > 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. > > > > I work to live; I don't live to work. > > > > "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) > > > > It is impossible to defeat an ignorant man in argument. -- William G. > > McAdoo > > > > Religion is regarded by the common people as true, by the wise as > > false, and by the rulers as useful. -- Seneca > > > > "I distrust those people who know so well what God wants them to do > > because I notice it always coincides with their own desires." - Susan > > B. Anthony > > > > > > > > > > ----Original Message Follows---- > > > > hi Friends > > > > > > is there any flag in SQR that show the Path of how the SQCs and > > variables are changed while executing SQR the S flag is used to find > > the trace of execution regarding excution sequence is there any flag > > in SQR if any one have answer pls reply me > > > > > > > > Thanks in advance > > > > _________________________________________________________________ > > http://newlivehotmail.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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 13 11:02:53 2007 Date: Fri, 13 Jul 2007 07:59:58 -0700 (PDT) From: Arun Kumar Subject: [sqr-users] plain text into base-64 encoded Unicode text Hi all, I need to send a text for resetting the password to another utility in a Unicode format and base-64 encoded. There are several utility on web that can convert a string in this format. Here is how one such utility works.. Q:\download>stringconverter \"stringtochange\" /encode /unicode IgBzAHQAcgBpAG4AZwB0AG8AYwBoAGEAbgBnAGUAIgA= the unicoded and encoded value for the string "stringtochange" = 'IgBzAHQAcgBpAG4AZwB0AG8AYwBoAGEAbgBnAGUAIgA=' But I need to do it within the sqr either using SQR funtions or ORACLE function availalable. Can this be done? any help or direction would be nice... Arun Kumar ____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 13 20:49:07 2007 Subject: RE: [sqr-users] plain text into base-64 encoded Unicode text Date: Sat, 14 Jul 2007 05:45:58 +0530 From: This is a multi-part message in MIME format... ------_=_NextPart_001_01C7C5AC.270A804F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Arun: =20 I don't think you can encode data using any SQR function. But, Oracle has s= ome packages for encoding data. =20 Try your luck in this link:=20 http://blogs.ittoolbox.com/oracle/guide/archives/binary-xml-compressing-enc= rypting-and-encoding-data-in-oracle-6688 =20 =20 =20 Sincerely, =20 Ravi 920-924-5912(W) ________________________________ From: sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org on behalf o= f Arun Kumar Sent: Fri 7/13/2007 8:29 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: [sqr-users] plain text into base-64 encoded Unicode text Hi all, I need to send a text for resetting the password to another utility in a Un= icode format and base-64 encoded. There are several utility on web that can convert a string in this format. Here is how one such utility works.. Q:\download>stringconverter \"stringtochange\" /encode /unicode IgBzAHQAcgBpAG4AZwB0AG8AYwBoAGEAbgBnAGUAIgA=3D the unicoded and encoded value for the string "stringtochange" =3D 'IgBzAHQ= AcgBpAG4AZwB0AG8AYwBoAGEAbgBnAGUAIgA=3D' But I need to do it within the sqr either using SQR funtions or ORACLE func= tion availalable. Can this be done? any help or direction would be nice... Arun Kumar =20=20=20=20=20=20 ___________________________________________________________________________= _________ Be a better Heartthrob. Get better relationship answers from someone who kn= ows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=3Dlist&sid=3D396545433 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C7C5AC.270A804F Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C7C5AC.270A804F Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C7C5AC.270A804F-- From sqr-users-bounces@sqrug.org Tue Jul 17 10:39:02 2007 From: "Andalib Yussuf" Subject: RE: [sqr-users] hi Date: Tue, 17 Jul 2007 14:36:07 +0000 I am coding sqr on ultraedit and need help sorting arrays where data is not being selected from the database. I just need to sort my vendor and feel that I am making things complicated by copying the sort array program in Hyperion Getting Started document. There must be an easier way. Please help in guiding me through this. Thank You Andalib >From: "Steve Cavill" >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 >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] hi >Date: Thu, 12 Jul 2007 22:38:21 +1000 > >Umm, from hyperion.....? >www.hyperion.com > >-----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 bobby b >Sent: Thursday, 12 July 2007 4:23 PM >To: This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions. >Subject: Re: [sqr-users] hi > >HI > >where can i get this this software for Hypernion SQR developer > >pls suggest me if u have this cd pls reply me i will send my mailing >address > > >thanks a lot > > > > > >On 7/11/07, the dragon wrote: > > > > Go here > > http://dev.hyperion.com/techdocs/sqr/sqr_langref80.pdf > > download/read document > > answer question > > > > 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. > > > > I work to live; I don't live to work. > > > > "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) > > > > It is impossible to defeat an ignorant man in argument. -- William G. > > McAdoo > > > > Religion is regarded by the common people as true, by the wise as > > false, and by the rulers as useful. -- Seneca > > > > "I distrust those people who know so well what God wants them to do > > because I notice it always coincides with their own desires." - Susan > > B. Anthony > > > > > > > > > > ----Original Message Follows---- > > > > hi Friends > > > > > > is there any flag in SQR that show the Path of how the SQCs and > > variables are changed while executing SQR the S flag is used to find > > the trace of execution regarding excution sequence is there any flag > > in SQR if any one have answer pls reply me > > > > > > > > Thanks in advance > > > > _________________________________________________________________ > > http://newlivehotmail.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 _________________________________________________________________ http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 23 02:02:31 2007 Date: Mon, 23 Jul 2007 11:30:16 +0530 From: "Manasvini Mahajan" Subject: [sqr-users] difference between next-listing and position Hi All, Can anyone helo me understand the difference between Positon & Next-listing Please help regards Manaswini _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 23 07:16:28 2007 From: "Steve Cavill" Subject: RE: [sqr-users] difference between next-listing and position Date: Mon, 23 Jul 2007 21:12:51 +1000 Position and next-listing both move the print position on the page. The main difference is the position command does not change the line numbers. Next listing moves the print position down AND ALSO changes the current line number (after the move) to be line 1 Position can move both up and down, but next listing can only move down. E.g. Position (1) Print 'line one' (,1) Position (+1) Print 'line two' (,1) Position (+1) Print 'line three' (,1) Position (1) Print 'line one again' () Will print Line one line one again Line two Line three Compared to: (changing the position (+1) to next-listing) Position (1) Print 'line one' (,1) Next-listing Print 'line two' (,1) Next-listing Print 'line three' (,1) Position (1) Print 'line one again' () Will print Line one Line two Line threeline one again The difference becomes apparent when you try to position back to line 1 again. The next-listing command has "moved" line 1 Both methods have their advantages and disadvantages. I usually use next-listing as it generally makes the printing logic simple. But if you ever want to move up the page instead of down you need to use position (). Just don't try to mix the two, although it's allowed, it's nearly impossible to debug a program that isn't printing right when you have mixed both methods. 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 Manasvini Mahajan Sent: Monday, 23 July 2007 4:00 PM To: sqr-users@sqrug.org Subject: [sqr-users] difference between next-listing and position Hi All, Can anyone helo me understand the difference between Positon & Next-listing Please help regards Manaswini _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 27 09:03:44 2007 Date: Fri, 27 Jul 2007 14:00:53 +0100 (BST) From: mahesh kadam Subject: [sqr-users] Error while creating volatile table through SQR Hi All, I need to create volatile table in teradata through sqr code. here is the sample code I have written: begin-setup begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql end-setup begin-program do main end-program begin-procedure main begin-sql insert into ssn_data (ssn) values('111111111') end-sql begin-select ssn &ssn (1,10) from ssn_data end-select end-procedure But I am getting following error: Only ET or null statement is legal after DDL statement. Please help me out. Regards, Mahesh --------------------------------- Get the freedom to save as many mails as you wish. Click here to know how. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 27 09:29:58 2007 From: "the dragon" Subject: RE: [sqr-users] Error while creating volatile table through SQR Date: Fri, 27 Jul 2007 08:27:19 -0500 Do you need a semi-colon after your sql DDL statement? 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Hi All, I need to create volatile table in teradata through sqr code. here is the sample code I have written: begin-setup begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql end-setup begin-program do main end-program begin-procedure main begin-sql insert into ssn_data (ssn) values('111111111') end-sql begin-select ssn &ssn (1,10) from ssn_data end-select end-procedure But I am getting following error: Only ET or null statement is legal after DDL statement. Please help me out. Regards, Mahesh _________________________________________________________________ http://newlivehotmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 27 09:48:47 2007 Date: Fri, 27 Jul 2007 14:46:03 +0100 (BST) From: mahesh kadam Subject: RE: [sqr-users] Error while creating volatile table through SQR Hi Dragon, I tried using semi-colon after create table as well as insert statement but still getting same error. the dragon wrote: Do you need a semi-colon after your sql DDL statement? 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Hi All, I need to create volatile table in teradata through sqr code. here is the sample code I have written: begin-setup begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql end-setup begin-program do main end-program begin-procedure main begin-sql insert into ssn_data (ssn) values('111111111') end-sql begin-select ssn &ssn (1,10) from ssn_data end-select end-procedure But I am getting following error: Only ET or null statement is legal after DDL statement. Please help me out. Regards, Mahesh _________________________________________________________________ http://newlivehotmail.com --------------------------------- Do you get hundreds of mails everyday? Delete none. Keep them all. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 27 09:57:53 2007 From: "Peter Burton" Subject: RE: [sqr-users] Error while creating volatile table through SQR Date: Fri, 27 Jul 2007 09:54:48 -0400 Mahesh, Change=20=20 begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql To begin-sql create volatile table ssn_data (ssn char(15) not null) ; COMMIT WORK end-sql Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of mahesh kadam Sent: Friday, July 27, 2007 9:46 AM To: the dragon; sqr-users@sqrug.org Subject: RE: [sqr-users] Error while creating volatile table through SQR Hi Dragon, =20 I tried using semi-colon after create table as well as insert statement b= ut still getting same error. the dragon wrote: Do you need a semi-colon after your sql DDL statement? 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Hi All, I need to create volatile table in teradata through sqr code. here is the sample code I have written: begin-setup begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql end-setup begin-program do main end-program begin-procedure main begin-sql insert into ssn_data (ssn) values('111111111') end-sql begin-select ssn &ssn (1,10) from ssn_data end-select end-procedure But I am getting following error: Only ET or null statement is legal after DDL statement. Please help me out. Regards, Mahesh _________________________________________________________________ http://newlivehotmail.com =20 --------------------------------- Do you get hundreds of mails everyday? Delete none. Keep them 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@sqrug.org Fri Jul 27 10:08:08 2007 Subject: RE: [sqr-users] Error while creating volatile table through SQR Date: Fri, 27 Jul 2007 09:05:09 -0500 From: "Schaetzly, Kent" Try this BEGIN-SQL BEGIN Create volatile table ssn-data (ssn char(15) not null) END;; END-SQL -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org] On Behalf Of mahesh kadam Sent: Friday, July 27, 2007 8:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error while creating volatile table through SQR Hi All, =20=20=20 I need to create volatile table in teradata through sqr code.=20 here is the sample code I have written: =20=20=20 begin-setup begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql end-setup =20=20=20 begin-program do main end-program =20=20=20 begin-procedure main =20=20=20 begin-sql insert into ssn_data (ssn) values('111111111') end-sql =20=20=20 begin-select ssn &ssn (1,10) from ssn_data end-select =20=20=20 end-procedure =20=20=20 =20=20=20 But I am getting following error: Only ET or null statement is legal after DDL statement. =20=20=20 Please help me out. =20=20=20 =20=20=20 Regards, Mahesh =20=20=20=20=20=20=20 --------------------------------- Get the freedom to save as many mails as you wish. Click here to know how. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 27 13:31:19 2007 Date: Fri, 27 Jul 2007 10:28:31 -0700 (PDT) From: Shashidhar Rao A Subject: RE: [sqr-users] Error while creating volatile table through SQR After Create command what is that you are using "Volatile". i have not encoutered anything like this in sqr. I dont think this command "Volatile" after create is feasible in sqr. If you find the sol please let us know so that we can also know abt this. Regards, shdhra "Schaetzly, Kent" wrote: Try this BEGIN-SQL BEGIN Create volatile table ssn-data (ssn char(15) not null) END;; END-SQL -----Original Message----- From: sqr-users-bounces+kschaetzly=eprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=eprod.com@sqrug.org] On Behalf Of mahesh kadam Sent: Friday, July 27, 2007 8:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error while creating volatile table through SQR Hi All, I need to create volatile table in teradata through sqr code. here is the sample code I have written: begin-setup begin-sql create volatile table ssn_data ( ssn char(15) not null) end-sql end-setup begin-program do main end-program begin-procedure main begin-sql insert into ssn_data (ssn) values('111111111') end-sql begin-select ssn &ssn (1,10) from ssn_data end-select end-procedure But I am getting following error: Only ET or null statement is legal after DDL statement. Please help me out. Regards, Mahesh --------------------------------- Get the freedom to save as many mails as you wish. Click here to know how. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jul 28 18:52:03 2007 Date: Sat, 28 Jul 2007 18:49:39 -0400 From: "Venkata Srinivasa Rao" Subject: [sqr-users] XML File Hi Folks, I am wondering how to generate XML output from sqr program. if you have any sample program please share with me. Thanks, Srini _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jul 28 18:55:13 2007 Date: Sat, 28 Jul 2007 19:51:21 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] XML File I am away on vacation until August 7, 2007. Please contact Brian Bolger, Bi= ll Cole or Wayne Peters for any issues related to PeopleSoft. (If your intended recipient was the Peter Clark in Legal Services, please r= etract your message and resend with correct recipient address) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 31 14:03:00 2007 Date: Tue, 31 Jul 2007 14:00:22 -0400 From: Ritu Shastri Subject: [sqr-users] Printer HP4250N Hello Everyone: We are on PeopleSoft version 8 and use sqr to print checks from our Payroll and Student Financial modules. We have recently bought a new printer HP4250N directly from HP and a MICR toner; however we have had no success in printing the MICR by sending the fonts from the sqr. After further inquiring both HP and Troy, we have gathered from Troy that we need to buy a font card kit - http://www.troygroup.com/merchant2/merchant.mvc?Screen=PROD &Store_Code=TGOS&Product_Code=02-20368-001&Category_Code=MICRUpgrade PeopleSoft's Help-desk Analyst has advised us to also buy a custom signature font cartridge. Is anyone aware about all the things that we need to purchase with this printer to get the MICR and signature printed on the check? Thank you very much. Ritu Shastri Associate Director-Information Systems Department of Information Technology New Jersey City University Ph: 201-200-3273 Email: rshastri@njcu.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 01 10:38:34 2007 From: Pete Andrusyszyn Date: Wed, 1 Aug 2007 10:36:16 -0400 Subject: [sqr-users] SQR 8.5 Oracle Stored Proceure Output Parameter We are testing SQR 8.5 and have come across a problem calling oracle stored procedures that have an out parameter. The output is being truncated at 1 character. e.g. begin-sql begin myprocedure($out_param);; end;; end-sql The value returned by myprocedure into $out_param is truncated at 1 character. It works fine in sqr 8.3.1. Any thoughts? We are running against an Oracle 10gR2 database. Thanks -Pete _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 02 21:53:29 2007 Date: Thu, 2 Aug 2007 21:51:11 -0400 From: maddy Subject: [sqr-users] Printing trailing spaces using Brio SQR I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces. No matter whatever I do I am not able to print spaces at the end of the line. I am using Ultra Edit editor where the spaces in a file are indicated using dots. I am able to print spaces in the middle of a line whereas if I try to print spaces at the end of the line, they are being truncated. Can someone please give me some inputs on how to achieve this using Brio SQR. thanks maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 02 23:20:01 2007 From: "Steve Cavill" Subject: RE: [sqr-users] Printing trailing spaces using Brio SQR Date: Fri, 3 Aug 2007 13:17:30 +1000 There is a flag (I think it's -XTB, check the doc) that will cause SQR to write out trailing spaces. 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 maddy Sent: Friday, 3 August 2007 11:51 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing trailing spaces using Brio SQR I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces. No matter whatever I do I am not able to print spaces at the end of the line. I am using Ultra Edit editor where the spaces in a file are indicated using dots. I am able to print spaces in the middle of a line whereas if I try to print spaces at the end of the line, they are being truncated. Can someone please give me some inputs on how to achieve this using Brio SQR. thanks maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 03 01:05:30 2007 Date: Fri, 3 Aug 2007 06:02:48 +0100 (BST) From: mahesh kadam Subject: [sqr-users] Does input prompt take values separated by new line character Hi All, My requirement is user should be able to enter the values separated by new line character. suppose the data is like: 11111111 22222222 33333333 then after copy pasting all these three values at once input prompt should take all three. but currently prompt is taking only first value. The present code is: Input $no 'Enter No' MaxLen = 32767 Type = char If this is possible, then what is the 'separator' between values? like if the values are comma separated we can identify individual values by getting the position of comma,so which separator should be used to identify individual values in this case? Please help me out. Regards, Mahesh --------------------------------- Once upon a time there was 1 GB storage in your inbox. Click here for happy ending. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 03 05:20:28 2007 From: "Peter Burton" Subject: RE: [sqr-users] Printing trailing spaces using Brio SQR Date: Fri, 3 Aug 2007 05:16:30 -0400 Maddy, Begin-Report Open 'q.dat' As 1 For-Writing Record=3D32767:Vary Let $String =3D RPad('Last-Line', 25, ' ') Write 1 From $String Close 1 End-Report=20 You can also force a field to be a specific width and trailing blanks will = be added Begin-Report Open 'q.dat' As 1 For-Writing Record=3D32767:Vary Let $String =3D 'Final-Line' Write 1 From $String:25 ! Pad/Truncate to 25 characters Close 1 End-Report=20 Either method will create the file "q.dat" and the line will have trailing = blanks. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Thursday, August 02, 2007 9:51 PM To: sqr-users@sqrug.org Subject: [sqr-users] Printing trailing spaces using Brio SQR I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces. No matter whatever I do I am not able to print spaces at the end of the line. I am using Ultra Edit editor where the spaces in a file are indicated using dots. I am able to print spaces in the middle of a line whereas if I try to print spaces at the end of the line, they are being truncated. Can someone please give me some inputs on how to achieve this using Brio SQR. thanks maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 03 05:24:48 2007 From: "Peter Burton" Subject: RE: [sqr-users] Does input prompt take values separated by new line character Date: Fri, 3 Aug 2007 05:17:38 -0400 Mahesh, You need to either have three Input prompts or execute the same Input promp= t multiple times in a loop.=20 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of mahesh kadam Sent: Friday, August 03, 2007 1:03 AM To: sqr-users@sqrug.org Subject: [sqr-users] Does input prompt take values separated by new line ch= aracter Hi All, =20 My requirement is user should be able to enter the values separated by ne= w line character. =20 suppose the data is like: 11111111 22222222 33333333 =20 then after copy pasting all these three values at once input prompt shoul= d take all three. but currently prompt is taking only first value. =20 The present code is: =20 Input $no 'Enter No' MaxLen =3D 32767 Type =3D char =20 If this is possible, then what is the 'separator' between values? like if= the values are comma separated we can identify individual values by gettin= g the position of comma,so which separator should be used to identify indiv= idual values in this case? =20 =20 Please help me out. =20 Regards, Mahesh =20 --------------------------------- Once upon a time there was 1 GB storage in your inbox. Click here for happ= y ending. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 03 08:23:38 2007 Subject: RE: [sqr-users] Does input prompt take values separated by newline character Date: Fri, 3 Aug 2007 08:19:35 -0400 From: "Kumar, Rahul" Hi Mahesh,=0D =0D As peter told you have to run loop if you are using only one prompt. And=0D for getting separator use :=0D =0D encode '<13>' into $cr=0D unstring $in_str by $cr into $value1 $value2 $value3=0D =0D Hope this helps.=0D =0D Cheers,=0D Rahul=0D =0D =0D -----Original Message-----=0D From: sqr-users-bounces+rahul_kumar=3Dadp.com@sqrug.org=0D [mailto:sqr-users-bounces+rahul_kumar=3Dadp.com@sqrug.org] On Behalf Of=0D Peter Burton=0D Sent: Friday, August 03, 2007 2:48 PM=0D To: This list is for discussion about the SQR database reporting=0D languagefrom Hyperion Solutions.=0D Subject: RE: [sqr-users] Does input prompt take values separated by=0D newline character=0D =0D Mahesh,=0D =0D You need to either have three Input prompts or execute the same Input=0D prompt multiple times in a loop. =0D =0D Peter=0D =0D -----Original Message-----=0D From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org=0D [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf=0D Of mahesh kadam=0D Sent: Friday, August 03, 2007 1:03 AM=0D To: sqr-users@sqrug.org=0D Subject: [sqr-users] Does input prompt take values separated by new line=0D character=0D =0D Hi All,=0D =0D My requirement is user should be able to enter the values separated by=0D new line character.=0D =0D suppose the data is like:=0D 11111111=0D 22222222=0D 33333333=0D =0D then after copy pasting all these three values at once input prompt=0D should take all three. but currently prompt is taking only first value.=0D =0D The present code is:=0D =0D Input $no 'Enter No' MaxLen =3D 32767 Type =3D char=0D =0D If this is possible, then what is the 'separator' between values? like=0D if the values are comma separated we can identify individual values by=0D getting the position of comma,so which separator should be used to=0D identify individual values in this case?=0D =0D =0D Please help me out.=0D =0D Regards,=0D Mahesh=0D =0D =0D ---------------------------------=0D Once upon a time there was 1 GB storage in your inbox. Click here for=0D happy ending.=0D =0D _______________________________________________=0D sqr-users mailing list=0D sqr-users@sqrug.org=0D http://www.sqrug.org/mailman/listinfo/sqr-users=0D =0D =0D _______________________________________________=0D sqr-users mailing list=0D sqr-users@sqrug.org=0D http://www.sqrug.org/mailman/listinfo/sqr-users=0D =0D -----------------------------------------=0D This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 03 11:25:11 2007 Date: Fri, 3 Aug 2007 11:22:46 -0400 From: maddy Subject: Re: [sqr-users] Printing trailing spaces using Brio SQR I have included the -XTB flag in the following batch file and didn't see any difference. Do I have change the location of the flag in the batch file. Can you please send me the sample batch file? C:\PROGRA~1\Brio\SQRSe rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets > BRR296M1.log On 8/2/07, Steve Cavill wrote: > > There is a flag (I think it's -XTB, check the doc) that will cause SQR to > write out trailing spaces. > 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 maddy > Sent: Friday, 3 August 2007 11:51 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Printing trailing spaces using Brio SQR > > I have a extract file that needs to be generated using a Brio SQR program > in which I want to fill the end of the 1st line with 25 > spaces. > No matter whatever I do I am not able to print spaces at the end of the > line. I am using Ultra Edit editor where the spaces in a > file are indicated using dots. I am able to print spaces in the middle of > a line whereas if I try to print spaces at the end of the > line, they are being truncated. > > Can someone please give me some inputs on how to achieve this using Brio > SQR. > > > thanks > maddy > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 07 15:34:55 2007 Date: Tue, 7 Aug 2007 15:32:21 -0400 From: "Venkata Srinivasa Rao" Subject: [sqr-users] Danish Charecter set Hi All, I am generating text file from sqr program for the danish(denmark) data.. This output text file contains some special charecters for denmark so these special charecters making wrong alignment in output text file. Please let me know how to align it properly. Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 08 16:24:14 2007 Date: Wed, 8 Aug 2007 16:21:55 -0400 From: maddy Subject: [sqr-users] Trailing spaces in extract file I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces.Someone in the SQR users group has suggested me to use XTB flag in the batch file. I have included the -XTB flag in the following batch file and didn't see any difference. Do I have to change the location of the flag in the batch file to see the trailing spaces. Can someone please send me a sample batch file ? C:\PROGRA~1\Brio\SQRSe rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets > BRR296M1.log Thanks! Maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 01:39:18 2007 Date: Wed, 8 Aug 2007 22:37:04 -0700 (PDT) From: "Joe R. Jah" Subject: [sqr-users] Standard Error Hi All, I have shell a script that runs by cron with output redirected to /dev/null. The script runs multiple sqr programs. I need to have sqr error messages to go to Standard Error. For example the following message does not go to standard error: ---8<--- Error on line 153: (SQR 3204) Length of variables exceeds record length. SQR: Program Aborting. ---8<--- Please advise. Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 06:34:39 2007 From: "Peter Burton" Subject: RE: [sqr-users] Trailing spaces in extract file Date: Thu, 9 Aug 2007 06:30:55 -0400 Maddy, If you are using "PRINT" statements to create the export file ... Begin-Report Print 'Hello' (1,1) Print ' ' (1,26) Print 'Goobye (2,1) End-Report If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, howvere= if you run this as "SQR {pgm} / -xl -xtb" the first line will have trailin= g blanks. Please note that the -XTB flag only applies to the default line = printer output (i.e. -PRINTER:LP).=20 If are creating the export file via the File-IO commands ... Begin-Report Open 'q.dat' As 1 For-Writing Record=3D32767:Vary Let $String =3D RPad('Last-Line', 25, ' ') Write 1 From $String Close 1 End-Report=20 You can also force a field to be a specific width and trailing blanks will = be added Begin-Report Open 'q.dat' As 1 For-Writing Record=3D32767:Vary Let $String =3D 'Final-Line' Write 1 From $String:25 ! Pad/Truncate to 25 characters Close 1 End-Report=20 Either method will create the file "q.dat" and the line will have trailing = blanks. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Wednesday, August 08, 2007 4:22 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: [sqr-users] Trailing spaces in extract file I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces.Someone in the SQR users group has suggested me to use XTB flag in the batch file. I have included the -XTB flag in the following batch file and didn't see any difference. Do I have to change the location of the flag in the batch file to see the trailing spaces. Can someone please send me a sample batch file ? C:\PROGRA~1\Brio\SQRSe rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets > BRR296M1.log Thanks! Maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 07:05:49 2007 From: "Peter Burton" Subject: RE: [sqr-users] Standard Error Date: Thu, 9 Aug 2007 07:02:17 -0400 Joe, If you are running under Unix/Linux invoke SQR under the Bourne Shell and u= se something similar to this ... sqr {pgm} {connectivity} [flags] 1>&2 This will redirect all of the output that SQR writes to the Standard Output= to Standard Error Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Joe R. Jah Sent: Thursday, August 09, 2007 1:37 AM To: sqr-users@sqrug.org Subject: [sqr-users] Standard Error Hi All, =20 I have shell a script that runs by cron with output redirected to /dev/null. The script runs multiple sqr programs. I need to have sqr error messages to go to Standard Error. For example the following message does not go to standard error: ---8<--- Error on line 153: (SQR 3204) Length of variables exceeds record length. SQR: Program Aborting. ---8<--- Please advise. Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 09:25:41 2007 Date: Thu, 9 Aug 2007 06:22:54 -0700 (PDT) From: Arun Kumar Subject: Re: [sqr-users] Trailing spaces in extract file How are you creating the "file"?=20 Are you using "write" command or "print" command... ----- Original Message ---- From: maddy To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Sent: Wednesday, August 8, 2007 4:21:55 PM Subject: [sqr-users] Trailing spaces in extract file I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces.Someone in the SQR users group has suggested me to use XTB flag in the batch file. I have included the -XTB flag in the following batch file and didn't see any difference. Do I have to change the location of the flag in the batch file to see the trailing spaces. Can someone please send me a sample batch file ? C:\PROGRA~1\Brio\SQRSe rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets > BRR296M1.log Thanks! Maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20=20 ___________________________________________________________________________= _________Ready for the edge of your seat?=20 Check out tonight's top picks on Yahoo! TV.=20 http://tv.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 09:38:34 2007 Date: Thu, 9 Aug 2007 09:36:16 -0400 From: maddy Subject: Re: [sqr-users] Trailing spaces in extract file iam using "print" command. On 8/9/07, Arun Kumar wrote: > > How are you creating the "file"? > > Are you using "write" command or "print" command... > > ----- Original Message ---- > From: maddy > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Wednesday, August 8, 2007 4:21:55 PM > Subject: [sqr-users] Trailing spaces in extract file > > I have a extract file that needs to be generated using a Brio SQR program > in > which I want to fill the end of the 1st line with 25 > spaces.Someone in the SQR users group has suggested me to use XTB flag in > the batch file. > > I have included the -XTB flag in the following batch file and didn't see > any > difference. Do I have to change the location of the flag in the batch file > to see the trailing spaces. Can someone please send me a sample batch file > ? > > > C:\PROGRA~1\Brio\SQRSe > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > Thanks! > Maddy > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > ____________________________________________________________________________________Ready > for the edge of your seat? > Check out tonight's top picks on Yahoo! TV. > http://tv.yahoo.com/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 11:04:57 2007 Date: Thu, 9 Aug 2007 08:01:34 -0700 (PDT) From: Arun Kumar Subject: Re: [sqr-users] Trailing spaces in extract file Because you use Print command to create the extract file. you could try creating a variable with 25 space and printing at the first l= ine. As rule a thumb I always using write command to create all my extracts wher= e its easy to handle such issues. ----- Original Message ---- From: Peter Burton To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Sent: Thursday, August 9, 2007 6:30:55 AM Subject: RE: [sqr-users] Trailing spaces in extract file Maddy, If you are using "PRINT" statements to create the export file ... Begin-Report Print 'Hello' (1,1) Print ' ' (1,26) Print 'Goobye (2,1) End-Report If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, howvere= if you run this as "SQR {pgm} / -xl -xtb" the first line will have trailin= g blanks. Please note that the -XTB flag only applies to the default line = printer output (i.e. -PRINTER:LP).=20 If are creating the export file via the File-IO commands ... Begin-Report Open 'q.dat' As 1 For-Writing Record=3D32767:Vary Let $String =3D RPad('Last-Line', 25, ' ') Write 1 From $String Close 1 End-Report=20 You can also force a field to be a specific width and trailing blanks will = be added Begin-Report Open 'q.dat' As 1 For-Writing Record=3D32767:Vary Let $String =3D 'Final-Line' Write 1 From $String:25 ! Pad/Truncate to 25 characters Close 1 End-Report=20 Either method will create the file "q.dat" and the line will have trailing = blanks. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Wednesday, August 08, 2007 4:22 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: [sqr-users] Trailing spaces in extract file I have a extract file that needs to be generated using a Brio SQR program in which I want to fill the end of the 1st line with 25 spaces.Someone in the SQR users group has suggested me to use XTB flag in the batch file. I have included the -XTB flag in the following batch file and didn't see any difference. Do I have to change the location of the flag in the batch file to see the trailing spaces. Can someone please send me a sample batch file ? C:\PROGRA~1\Brio\SQRSe rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era syC606240/facets > BRR296M1.log Thanks! Maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _____________________________________________________________________= _______________ Park yourself in front of a world of choices in alternative vehicles. Visit= the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 13:41:09 2007 Date: Thu, 9 Aug 2007 10:38:50 -0700 (PDT) From: "Joe R. Jah" Subject: RE: [sqr-users] Standard Error On Thu, 9 Aug 2007, Peter Burton wrote: > Date: Thu, 9 Aug 2007 07:02:17 -0400 > From: Peter Burton > Reply-To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > Subject: RE: [sqr-users] Standard Error > > Joe, > > If you are running under Unix/Linux invoke SQR under the Bourne Shell and use something similar to this ... > > sqr {pgm} {connectivity} [flags] 1>&2 > > This will redirect all of the output that SQR writes to the Standard Output to Standard Error > > Peter Thank you Peter, but if I wanted to get all the output, I wouldn't redirect it to /dev/null in the first place. I am not interested in getting an email on standard output each time the program runs. I only want to receive email from cron daemon when error messages are involved; that's why, I redirect the output to /dev/null: sh program >/dev/null The script 'program' includes several sqr programs and other shell programs. I get an email from cron when error messages are produced by the shell programs in the script; however, it seems that sqr programs send their error messages, along with their normal output to Standard Output; hence, they go to /dev/null;( I wonder if there is any way around that. > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Joe R. Jah > Sent: Thursday, August 09, 2007 1:37 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Standard Error > > Hi All, > > I have shell a script that runs by cron with output redirected to > /dev/null. The script runs multiple sqr programs. I need to have > sqr error messages to go to Standard Error. For example the following > message does not go to standard error: > > ---8<--- > Error on line 153: > (SQR 3204) Length of variables exceeds record length. > > SQR: Program Aborting. > ---8<--- > > Please advise. > > Regards, > > Joe > -- > _/ _/_/_/ _/ ____________ __o > _/ _/ _/ _/ ______________ _-\<,_ > _/ _/ _/_/_/ _/ _/ ......(_)/ (_) > _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 13:58:02 2007 From: "Peter Burton" Subject: RE: [sqr-users] Standard Error Date: Thu, 9 Aug 2007 13:55:04 -0400 Joe, All console output generated by SQR goes to Standard Output. You can howev= er separate error related messages from non-error related messages by using= the -E and -O flags. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Joe R. Jah Sent: Thursday, August 09, 2007 1:39 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Standard Error On Thu, 9 Aug 2007, Peter Burton wrote: > Date: Thu, 9 Aug 2007 07:02:17 -0400 > From: Peter Burton > Reply-To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > Subject: RE: [sqr-users] Standard Error > > Joe, > > If you are running under Unix/Linux invoke SQR under the Bourne Shell and= use something similar to this ... > > sqr {pgm} {connectivity} [flags] 1>&2 > > This will redirect all of the output that SQR writes to the Standard Outp= ut to Standard Error > > Peter Thank you Peter, but if I wanted to get all the output, I wouldn't redirect it to /dev/null in the first place. I am not interested in getting an email on standard output each time the program runs. I only want to receive email from cron daemon when error messages are involved; that's why, I redirect the output to /dev/null: sh program >/dev/null The script 'program' includes several sqr programs and other shell programs. I get an email from cron when error messages are produced by the shell programs in the script; however, it seems that sqr programs send their error messages, along with their normal output to Standard Output; hence, they go to /dev/null;( I wonder if there is any way around that. > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-u= sers-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Joe R. Jah > Sent: Thursday, August 09, 2007 1:37 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Standard Error > > Hi All, > > I have shell a script that runs by cron with output redirected to > /dev/null. The script runs multiple sqr programs. I need to have > sqr error messages to go to Standard Error. For example the following > message does not go to standard error: > > ---8<--- > Error on line 153: > (SQR 3204) Length of variables exceeds record length. > > SQR: Program Aborting. > ---8<--- > > Please advise. > > Regards, > > Joe > -- > _/ _/_/_/ _/ ____________ __o > _/ _/ _/ _/ ______________ _-\<,_ > _/ _/ _/_/_/ _/ _/ ......(_)/ (_) > _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 14:42:55 2007 Date: Thu, 9 Aug 2007 14:24:15 -0400 From: "Kaithi, Murali" Subject: [sqr-users] Connect to different instance Hi, I am processing sqr from one instance for example userid/password@database. Within the program I have to get some data from another instance for example userid1/password@database. In the above example only the change is userid. How can I specify the from clause in my sqr when going to the different instance. Any help would be appreciated. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 14:55:01 2007 Subject: RE: [sqr-users] Connect to different instance Date: Thu, 9 Aug 2007 14:51:39 -0400 From: "Prasanna Menta" If db links are allowed, create a db link ________________________________ From: sqr-users-bounces+pmenta=3Dumuc.edu@sqrug.org on behalf of Kaithi, Mu= rali Sent: Thu 8/9/2007 2:24 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: [sqr-users] Connect to different instance Hi, I am processing sqr from one instance for example userid/password@database. Within the program I have to get some data from another instance for example userid1/password@database. In the above example only the change is userid. How can I specify the from clause in my sqr when going to the different instance. Any help would be appreciated. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com . ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 14:59:49 2007 Subject: RE: [sqr-users] Connect to different instance Date: Thu, 9 Aug 2007 14:56:41 -0400 From: "Kaithi, Murali" I did and its working now. Thanks.=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 Prasanna Menta Sent: Thursday, August 09, 2007 2:52 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.; This list is for discussion about the SQR database reportinglanguagefromHyperion Solutions. Subject: RE: [sqr-users] Connect to different instance If db links are allowed, create a db link ________________________________ From: sqr-users-bounces+pmenta=3Dumuc.edu@sqrug.org on behalf of Kaithi, Murali Sent: Thu 8/9/2007 2:24 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Connect to different instance Hi, I am processing sqr from one instance for example userid/password@database. Within the program I have to get some data from another instance for example userid1/password@database. In the above example only the change is userid. How can I specify the from clause in my sqr when going to the different instance. Any help would be appreciated. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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 ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 09 15:33:39 2007 Date: Thu, 09 Aug 2007 15:29:48 -0400 From: "Jamie Harris" Subject: Re: (SPAM)(22.1417) [sqr-users] Connect to different instance Murali, =20 Another way you could do this without a DB link is this: =20 begin-select -DBDSN=3Ddatabase;UID=3Duserid;PWD=3Dpassword =20 =20 That tells it to use the "database" datasource name and the user id and pas= sword selected. This datasource is only used with that specific select sta= tement (it works with begin-sql too) while all other database activity happ= ens in the main database. =20 The downside here is that the SQR needs some way to receive the username an= d password to use - say from the command line or in a run control (or you c= ould hard-code the user/password in the SQR, but then anyone who can see th= e SQR code knows how to login as that user).=20=20 =20 =20 ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- >>> "Kaithi, Murali" 8/9/2007 2:24 PM >>> Hi, I am processing sqr from one instance for example userid/password@database. Within the program I have to get some data from another instance for example userid1/password@database. In the above example only the change is userid. How can I specify the from clause in my sqr when going to the different instance. Any help would be appreciated. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com. ( http://www.paetec.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@sqrug.org Thu Aug 09 20:55:58 2007 Date: Thu, 9 Aug 2007 17:53:50 -0700 (PDT) From: "Joe R. Jah" Subject: RE: [sqr-users] Standard Error On Thu, 9 Aug 2007, Peter Burton wrote: > Date: Thu, 9 Aug 2007 13:55:04 -0400 > From: Peter Burton > Reply-To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > Subject: RE: [sqr-users] Standard Error > > Joe, > > All console output generated by SQR goes to Standard Output. You can > however separate error related messages from non-error related > messages by using the -E and -O flags. > > Peter Thanks again Peter. The line "sqr -E {pgm} {connectivity} [flags]" creates a program.err in the program directory; I've written two statements in the shell script right after running the sqr program to concatenate it to the Standard Error and delete it: cat {pgm}.err 1>&2 rm {pgm}.err >/dev/null Thank you very much. > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Joe R. Jah > Sent: Thursday, August 09, 2007 1:39 PM > To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. > Subject: RE: [sqr-users] Standard Error > > On Thu, 9 Aug 2007, Peter Burton wrote: > > > Date: Thu, 9 Aug 2007 07:02:17 -0400 > > From: Peter Burton > > Reply-To: This list is for discussion about the SQR database reporting > language from Hyperion Solutions. > > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > > Subject: RE: [sqr-users] Standard Error > > > > Joe, > > > > If you are running under Unix/Linux invoke SQR under the Bourne Shell and use something similar to this ... > > > > sqr {pgm} {connectivity} [flags] 1>&2 > > > > This will redirect all of the output that SQR writes to the Standard Output to Standard Error > > > > Peter > > Thank you Peter, but if I wanted to get all the output, I wouldn't > redirect it to /dev/null in the first place. I am not interested in > getting an email on standard output each time the program runs. I only > want to receive email from cron daemon when error messages are involved; > that's why, I redirect the output to /dev/null: > > sh program >/dev/null > > The script 'program' includes several sqr programs and other shell > programs. I get an email from cron when error messages are produced by > the shell programs in the script; however, it seems that sqr programs send > their error messages, along with their normal output to Standard Output; > hence, they go to /dev/null;( I wonder if there is any way around that. > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Joe R. Jah > > Sent: Thursday, August 09, 2007 1:37 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Standard Error > > > > Hi All, > > > > I have shell a script that runs by cron with output redirected to > > /dev/null. The script runs multiple sqr programs. I need to have > > sqr error messages to go to Standard Error. For example the following > > message does not go to standard error: > > > > ---8<--- > > Error on line 153: > > (SQR 3204) Length of variables exceeds record length. > > > > SQR: Program Aborting. > > ---8<--- > > > > Please advise. > > > > Regards, > > > > Joe > > -- > > _/ _/_/_/ _/ ____________ __o > > _/ _/ _/ _/ ______________ _-\<,_ > > _/ _/ _/_/_/ _/ _/ ......(_)/ (_) > > _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > Joe > -- > _/ _/_/_/ _/ ____________ __o > _/ _/ _/ _/ ______________ _-\<,_ > _/ _/ _/_/_/ _/ _/ ......(_)/ (_) > _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 11 18:55:22 2007 Date: Sat, 11 Aug 2007 18:53:02 -0400 From: maddy Subject: Re: [sqr-users] Trailing spaces in extract file If I use the "&" sign in the 'write' statement it gives an error message 'variable not declared'.To resolve this I have used "$" sign to declare the text variables and used in the 'write' statement; SQR runs successfully but does not write anything to the file. *********************** Code ********************* Begin-Setup ask dbnames_file #include '{dbnames_files}' Declare-Variable Text $MEME_SSN Text $MEME_FIRST_NAME Text $MEME_LAST_NAME End-Declare end-setup Begin-Report open 'DBresults.txt' as 1 For-Writing Record=80:Vary Begin-sql On-Error=Db_Error(301) select MEME_SSN (,1) MEME_FIRST_NAME (,25) MEME_LAST_NAME (,50) position (+1) write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 FROM CMC_MEME_MEMBER_test WHERE MEME_LAST_NAME = 'DUKEE' AND MEME_FIRST_NAME = 'BETTYY' End-Sql POSITION (+2) Close 1 End-Report Please let me know whether this is the right way to use write to print trailing spaces. Thanks! Maddy On 8/9/07, Arun Kumar wrote: > > Because you use Print command to create the extract file. > > you could try creating a variable with 25 space and printing at the first > line. > > As rule a thumb I always using write command to create all my extracts > where its easy to handle such issues. > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Thursday, August 9, 2007 6:30:55 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > If you are using "PRINT" statements to create the export file ... > > Begin-Report > Print 'Hello' (1,1) > Print ' ' (1,26) > Print 'Goobye (2,1) > End-Report > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will have > trailing blanks. Please note that the -XTB flag only applies to the default > line printer output (i.e. -PRINTER:LP). > > > If are creating the export file via the File-IO commands ... > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=32767:Vary > Let $String = RPad('Last-Line', 25, ' ') > Write 1 From $String > Close 1 > End-Report > > You can also force a field to be a specific width and trailing blanks will > be added > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=32767:Vary > Let $String = 'Final-Line' > Write 1 From $String:25 ! Pad/Truncate to 25 characters > Close 1 > End-Report > > Either method will create the file "q.dat" and the line will have trailing > blanks. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > Sent: Wednesday, August 08, 2007 4:22 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: [sqr-users] Trailing spaces in extract file > > I have a extract file that needs to be generated using a Brio SQR program > in > which I want to fill the end of the 1st line with 25 > spaces.Someone in the SQR users group has suggested me to use XTB flag in > the batch file. > > I have included the -XTB flag in the following batch file and didn't see > any > difference. Do I have to change the location of the flag in the batch file > to see the trailing spaces. Can someone please send me a sample batch file > ? > > > C:\PROGRA~1\Brio\SQRSe > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > Thanks! > Maddy > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > ____________________________________________________________________________________ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 12 14:56:48 2007 Subject: RE: [sqr-users] Trailing spaces in extract file Date: Mon, 13 Aug 2007 00:23:41 +0530 From: This is a multi-part message in MIME format... --=_Boundary_X3cf3ednHM3SOlbpH71y Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com --=_Boundary_X3cf3ednHM3SOlbpH71y Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=_Boundary_X3cf3ednHM3SOlbpH71y-- From sqr-users-bounces@sqrug.org Mon Aug 13 05:14:34 2007 From: "Peter Burton" Subject: RE: [sqr-users] Trailing spaces in extract file Date: Mon, 13 Aug 2007 05:09:40 -0400 Maddy, Seems to work for me .. q.sqr =3D=3D=3D=3D=3D Begin-Report Open 'q.txt' As 1 For-Writing Record=3D80:vary Begin-Select cust_num name Write 1 From &cust_num:10 &name:45 from customers order by 1 End-Select Close 1 End-Report q.txt=20 =3D=3D=3D=3D=3D 100001 Joe Smith and Company 100002 Corks and Bottles, Inc. 100003 Harry's Landmark Diner 100004 Jerry's Junkyard Specialties 100005 Kate's Out of Date Dress Shop 100006 Sam Johnson 100007 Harriet Bailey 100008 Clair Butterfield 100009 Quentin Fields 100010 Eliot Richards 100011 Isaiah J Schwartz and Company 100012 Harold Alexander Fink 100013 Gregory Stonehaven 100014 Alfred E Newman & Company 100015 Hammerhead Hardware 100016 Lights R Us 100017 Office Building Contractors=20 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Saturday, August 11, 2007 6:53 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Trailing spaces in extract file If I use the "&" sign in the 'write' statement it gives an error message 'variable not declared'.To resolve this I have used "$" sign to declare the text variables and used in the 'write' statement; SQR runs successfully but does not write anything to the file. *********************** Code ********************* Begin-Setup ask dbnames_file #include '{dbnames_files}' Declare-Variable Text $MEME_SSN Text $MEME_FIRST_NAME Text $MEME_LAST_NAME End-Declare end-setup Begin-Report open 'DBresults.txt' as 1 For-Writing Record=3D80:Vary Begin-sql On-Error=3DDb_Error(301) select MEME_SSN (,1) MEME_FIRST_NAME (,25) MEME_LAST_NAME (,50) position (+1) write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 FROM CMC_MEME_MEMBER_test WHERE MEME_LAST_NAME =3D 'DUKEE' AND MEME_FIRST_NAME =3D 'BETTYY' End-Sql POSITION (+2) Close 1 End-Report Please let me know whether this is the right way to use write to print trailing spaces. Thanks! Maddy On 8/9/07, Arun Kumar wrote: > > Because you use Print command to create the extract file. > > you could try creating a variable with 25 space and printing at the first > line. > > As rule a thumb I always using write command to create all my extracts > where its easy to handle such issues. > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Thursday, August 9, 2007 6:30:55 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > If you are using "PRINT" statements to create the export file ... > > Begin-Report > Print 'Hello' (1,1) > Print ' ' (1,26) > Print 'Goobye (2,1) > End-Report > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will have > trailing blanks. Please note that the -XTB flag only applies to the defa= ult > line printer output (i.e. -PRINTER:LP). > > > If are creating the export file via the File-IO commands ... > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > Let $String =3D RPad('Last-Line', 25, ' ') > Write 1 From $String > Close 1 > End-Report > > You can also force a field to be a specific width and trailing blanks will > be added > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > Let $String =3D 'Final-Line' > Write 1 From $String:25 ! Pad/Truncate to 25 characters > Close 1 > End-Report > > Either method will create the file "q.dat" and the line will have trailing > blanks. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy > Sent: Wednesday, August 08, 2007 4:22 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: [sqr-users] Trailing spaces in extract file > > I have a extract file that needs to be generated using a Brio SQR program > in > which I want to fill the end of the 1st line with 25 > spaces.Someone in the SQR users group has suggested me to use XTB flag in > the batch file. > > I have included the -XTB flag in the following batch file and didn't see > any > difference. Do I have to change the location of the flag in the batch file > to see the trailing spaces. Can someone please send me a sample batch file > ? > > > C:\PROGRA~1\Brio\SQRSe > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > Thanks! > Maddy > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > _________________________________________________________________________= ___________ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 09:16:51 2007 Date: Mon, 13 Aug 2007 06:13:56 -0700 (PDT) From: Arun Kumar Subject: Re: [sqr-users] Trailing spaces in extract file Remember you can only use character variable in write statements. If sqr interprets the & variable as numeric then write statement will give = errors. Also I didnt notice any move statement or any Let statement for your $ vari= ables.. This explains why your out put file was empty. ----- Original Message ---- From: Peter Burton To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Sent: Monday, August 13, 2007 5:09:40 AM Subject: RE: [sqr-users] Trailing spaces in extract file Maddy, Seems to work for me .. q.sqr =3D=3D=3D=3D=3D Begin-Report Open 'q.txt' As 1 For-Writing Record=3D80:vary Begin-Select cust_num name Write 1 From &cust_num:10 &name:45 from customers order by 1 End-Select Close 1 End-Report q.txt=20 =3D=3D=3D=3D=3D 100001 Joe Smith and Company 100002 Corks and Bottles, Inc. 100003 Harry's Landmark Diner 100004 Jerry's Junkyard Specialties 100005 Kate's Out of Date Dress Shop 100006 Sam Johnson 100007 Harriet Bailey 100008 Clair Butterfield 100009 Quentin Fields 100010 Eliot Richards 100011 Isaiah J Schwartz and Company 100012 Harold Alexander Fink 100013 Gregory Stonehaven 100014 Alfred E Newman & Company 100015 Hammerhead Hardware 100016 Lights R Us 100017 Office Building Contractors=20 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Saturday, August 11, 2007 6:53 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Trailing spaces in extract file If I use the "&" sign in the 'write' statement it gives an error message 'variable not declared'.To resolve this I have used "$" sign to declare the text variables and used in the 'write' statement; SQR runs successfully but does not write anything to the file. *********************** Code ********************* Begin-Setup ask dbnames_file #include '{dbnames_files}' Declare-Variable Text $MEME_SSN Text $MEME_FIRST_NAME Text $MEME_LAST_NAME End-Declare end-setup Begin-Report open 'DBresults.txt' as 1 For-Writing Record=3D80:Vary Begin-sql On-Error=3DDb_Error(301) select MEME_SSN (,1) MEME_FIRST_NAME (,25) MEME_LAST_NAME (,50) position (+1) write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 FROM CMC_MEME_MEMBER_test WHERE MEME_LAST_NAME =3D 'DUKEE' AND MEME_FIRST_NAME =3D 'BETTYY' End-Sql POSITION (+2) Close 1 End-Report Please let me know whether this is the right way to use write to print trailing spaces. Thanks! Maddy On 8/9/07, Arun Kumar wrote: > > Because you use Print command to create the extract file. > > you could try creating a variable with 25 space and printing at the first > line. > > As rule a thumb I always using write command to create all my extracts > where its easy to handle such issues. > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Thursday, August 9, 2007 6:30:55 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > If you are using "PRINT" statements to create the export file ... > > Begin-Report > Print 'Hello' (1,1) > Print ' ' (1,26) > Print 'Goobye (2,1) > End-Report > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will have > trailing blanks. Please note that the -XTB flag only applies to the defa= ult > line printer output (i.e. -PRINTER:LP). > > > If are creating the export file via the File-IO commands ... > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > Let $String =3D RPad('Last-Line', 25, ' ') > Write 1 From $String > Close 1 > End-Report > > You can also force a field to be a specific width and trailing blanks will > be added > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > Let $String =3D 'Final-Line' > Write 1 From $String:25 ! Pad/Truncate to 25 characters > Close 1 > End-Report > > Either method will create the file "q.dat" and the line will have trailing > blanks. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy > Sent: Wednesday, August 08, 2007 4:22 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: [sqr-users] Trailing spaces in extract file > > I have a extract file that needs to be generated using a Brio SQR program > in > which I want to fill the end of the 1st line with 25 > spaces.Someone in the SQR users group has suggested me to use XTB flag in > the batch file. > > I have included the -XTB flag in the following batch file and didn't see > any > difference. Do I have to change the location of the flag in the batch file > to see the trailing spaces. Can someone please send me a sample batch file > ? > > > C:\PROGRA~1\Brio\SQRSe > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > Thanks! > Maddy > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > _________________________________________________________________________= ___________ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 =20=20=20=20=20=20=20 ___________________________________________________________________________= _________ Yahoo! oneSearch: Finally, mobile search=20 that gives answers, not web links.=20 http://mobile.yahoo.com/mobileweb/onesearch?refer=3D1ONXIC _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 09:29:23 2007 From: "Peter Burton" Subject: RE: [sqr-users] Trailing spaces in extract file Date: Mon, 13 Aug 2007 09:26:12 -0400 Arun, You are incorrect ... SQR will convert numeric and date column variables to= their string format (using the default rules) when referenced in a WRITE s= tatement. Look at my example, I am referencing "cust_num" which is defined= as a numeric field (an int) and it worked without errors. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Arun Kumar Sent: Monday, August 13, 2007 9:14 AM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Trailing spaces in extract file Remember you can only use character variable in write statements. If sqr interprets the & variable as numeric then write statement will give = errors. Also I didnt notice any move statement or any Let statement for your $ vari= ables.. This explains why your out put file was empty. ----- Original Message ---- From: Peter Burton To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Sent: Monday, August 13, 2007 5:09:40 AM Subject: RE: [sqr-users] Trailing spaces in extract file Maddy, Seems to work for me .. q.sqr =3D=3D=3D=3D=3D Begin-Report Open 'q.txt' As 1 For-Writing Record=3D80:vary Begin-Select cust_num name Write 1 From &cust_num:10 &name:45 from customers order by 1 End-Select Close 1 End-Report q.txt=20 =3D=3D=3D=3D=3D 100001 Joe Smith and Company 100002 Corks and Bottles, Inc. 100003 Harry's Landmark Diner 100004 Jerry's Junkyard Specialties 100005 Kate's Out of Date Dress Shop 100006 Sam Johnson 100007 Harriet Bailey 100008 Clair Butterfield 100009 Quentin Fields 100010 Eliot Richards 100011 Isaiah J Schwartz and Company 100012 Harold Alexander Fink 100013 Gregory Stonehaven 100014 Alfred E Newman & Company 100015 Hammerhead Hardware 100016 Lights R Us 100017 Office Building Contractors=20 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Saturday, August 11, 2007 6:53 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Trailing spaces in extract file If I use the "&" sign in the 'write' statement it gives an error message 'variable not declared'.To resolve this I have used "$" sign to declare the text variables and used in the 'write' statement; SQR runs successfully but does not write anything to the file. *********************** Code ********************* Begin-Setup ask dbnames_file #include '{dbnames_files}' Declare-Variable Text $MEME_SSN Text $MEME_FIRST_NAME Text $MEME_LAST_NAME End-Declare end-setup Begin-Report open 'DBresults.txt' as 1 For-Writing Record=3D80:Vary Begin-sql On-Error=3DDb_Error(301) select MEME_SSN (,1) MEME_FIRST_NAME (,25) MEME_LAST_NAME (,50) position (+1) write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 FROM CMC_MEME_MEMBER_test WHERE MEME_LAST_NAME =3D 'DUKEE' AND MEME_FIRST_NAME =3D 'BETTYY' End-Sql POSITION (+2) Close 1 End-Report Please let me know whether this is the right way to use write to print trailing spaces. Thanks! Maddy On 8/9/07, Arun Kumar wrote: > > Because you use Print command to create the extract file. > > you could try creating a variable with 25 space and printing at the first > line. > > As rule a thumb I always using write command to create all my extracts > where its easy to handle such issues. > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Thursday, August 9, 2007 6:30:55 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > If you are using "PRINT" statements to create the export file ... > > Begin-Report > Print 'Hello' (1,1) > Print ' ' (1,26) > Print 'Goobye (2,1) > End-Report > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will have > trailing blanks. Please note that the -XTB flag only applies to the defa= ult > line printer output (i.e. -PRINTER:LP). > > > If are creating the export file via the File-IO commands ... > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > Let $String =3D RPad('Last-Line', 25, ' ') > Write 1 From $String > Close 1 > End-Report > > You can also force a field to be a specific width and trailing blanks will > be added > > Begin-Report > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > Let $String =3D 'Final-Line' > Write 1 From $String:25 ! Pad/Truncate to 25 characters > Close 1 > End-Report > > Either method will create the file "q.dat" and the line will have trailing > blanks. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy > Sent: Wednesday, August 08, 2007 4:22 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: [sqr-users] Trailing spaces in extract file > > I have a extract file that needs to be generated using a Brio SQR program > in > which I want to fill the end of the 1st line with 25 > spaces.Someone in the SQR users group has suggested me to use XTB flag in > the batch file. > > I have included the -XTB flag in the following batch file and didn't see > any > difference. Do I have to change the location of the flag in the batch file > to see the trailing spaces. Can someone please send me a sample batch file > ? > > > C:\PROGRA~1\Brio\SQRSe > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > Thanks! > Maddy > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > _________________________________________________________________________= ___________ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 =20=20=20=20=20=20=20 ___________________________________________________________________________= _________ Yahoo! oneSearch: Finally, mobile search=20 that gives answers, not web links.=20 http://mobile.yahoo.com/mobileweb/onesearch?refer=3D1ONXIC _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 10:51:46 2007 Date: Mon, 13 Aug 2007 10:49:20 -0400 From: maddy Subject: Re: [sqr-users] Trailing spaces in extract file Thanks for your quick response. I have followed your instructions but still getting the below error.Please take a look at the code and let me know if anything needs to be changed in my code. I didn't understand why the same piece of code is working for you and why it is giving errors to me. Please advice. ***************************ERROR ************************************************ (SQR 5528) Sybase dbdesc: ct_results error in cursor 1: (102) Incorrect syntax near '1'. Error on line 19: (SQR 3716) Error in SQL statement. Errors were found in the program file. SQR: Program Aborting. *************************************************************************************************** Begin-Setup ask dbnames_file #include '{dbnames_file} end-setup Begin-Report Open 'q.txt' As 1 For-Writing Record=80:vary Begin-Select MEME_FIRST_NAME Write 1 From &MEME_FIRST_NAME:10 FROM {BRIO_DB}..CMC_MEME_MEMBER WHERE MEME_LAST_NAME = 'DUKE' AND MEME_FIRST_NAME = 'BETTY' End-Select Close 1 End-Report ************************************************************************************************** Thanks! Maddy On 8/13/07, Peter Burton wrote: > > Arun, > > You are incorrect ... SQR will convert numeric and date column variables > to their string format (using the default rules) when referenced in a WRITE > statement. Look at my example, I am referencing "cust_num" which is defined > as a numeric field (an int) and it worked without errors. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Arun > Kumar > Sent: Monday, August 13, 2007 9:14 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > Remember you can only use character variable in write statements. > > If sqr interprets the & variable as numeric then write statement will give > errors. > > Also I didnt notice any move statement or any Let statement for your $ > variables.. This explains why your out put file was empty. > > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Monday, August 13, 2007 5:09:40 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > Seems to work for me .. > > q.sqr > ===== > Begin-Report > Open 'q.txt' As 1 For-Writing Record=80:vary > Begin-Select > cust_num > name > Write 1 From &cust_num:10 &name:45 > from customers > order by 1 > End-Select > Close 1 > End-Report > > q.txt > ===== > 100001 Joe Smith and Company > 100002 Corks and Bottles, Inc. > 100003 Harry's Landmark Diner > 100004 Jerry's Junkyard Specialties > 100005 Kate's Out of Date Dress Shop > 100006 Sam Johnson > 100007 Harriet Bailey > 100008 Clair Butterfield > 100009 Quentin Fields > 100010 Eliot Richards > 100011 Isaiah J Schwartz and Company > 100012 Harold Alexander Fink > 100013 Gregory Stonehaven > 100014 Alfred E Newman & Company > 100015 Hammerhead Hardware > 100016 Lights R Us > 100017 Office Building Contractors > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > Sent: Saturday, August 11, 2007 6:53 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > If I use the "&" sign in the 'write' statement it gives an error > message 'variable > not declared'.To resolve this I have used "$" sign to declare the text > variables and used in the 'write' statement; SQR runs successfully but > does > not write anything to the file. > > *********************** Code ********************* > Begin-Setup > > ask dbnames_file > > #include '{dbnames_files}' > > Declare-Variable > > Text $MEME_SSN > > Text $MEME_FIRST_NAME > > Text $MEME_LAST_NAME > > End-Declare > > end-setup > > Begin-Report > > open 'DBresults.txt' as 1 For-Writing Record=80:Vary > > Begin-sql On-Error=Db_Error(301) > > select > > MEME_SSN (,1) > > MEME_FIRST_NAME (,25) > > MEME_LAST_NAME (,50) > > position (+1) > > write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 > > FROM CMC_MEME_MEMBER_test > > WHERE > > MEME_LAST_NAME = 'DUKEE' > > AND > > MEME_FIRST_NAME = 'BETTYY' > > End-Sql > > POSITION (+2) > > Close 1 > > End-Report > > Please let me know whether this is the right way to use write to print > trailing spaces. > Thanks! > Maddy > > > > On 8/9/07, Arun Kumar wrote: > > > > Because you use Print command to create the extract file. > > > > you could try creating a variable with 25 space and printing at the > first > > line. > > > > As rule a thumb I always using write command to create all my extracts > > where its easy to handle such issues. > > > > ----- Original Message ---- > > From: Peter Burton > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Sent: Thursday, August 9, 2007 6:30:55 AM > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > Maddy, > > > > If you are using "PRINT" statements to create the export file ... > > > > Begin-Report > > Print 'Hello' (1,1) > > Print ' ' (1,26) > > Print 'Goobye (2,1) > > End-Report > > > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will > have > > trailing blanks. Please note that the -XTB flag only applies to the > default > > line printer output (i.e. -PRINTER:LP). > > > > > > If are creating the export file via the File-IO commands ... > > > > Begin-Report > > Open 'q.dat' As 1 For-Writing Record=32767:Vary > > Let $String = RPad('Last-Line', 25, ' ') > > Write 1 From $String > > Close 1 > > End-Report > > > > You can also force a field to be a specific width and trailing blanks > will > > be added > > > > Begin-Report > > Open 'q.dat' As 1 For-Writing Record=32767:Vary > > Let $String = 'Final-Line' > > Write 1 From $String:25 ! Pad/Truncate to 25 characters > > Close 1 > > End-Report > > > > Either method will create the file "q.dat" and the line will have > trailing > > blanks. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > > Sent: Wednesday, August 08, 2007 4:22 PM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: [sqr-users] Trailing spaces in extract file > > > > I have a extract file that needs to be generated using a Brio SQR > program > > in > > which I want to fill the end of the 1st line with 25 > > spaces.Someone in the SQR users group has suggested me to use XTB flag > in > > the batch file. > > > > I have included the -XTB flag in the following batch file and didn't see > > any > > difference. Do I have to change the location of the flag in the batch > file > > to see the trailing spaces. Can someone please send me a sample batch > file > > ? > > > > > > C:\PROGRA~1\Brio\SQRSe > > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > > > Thanks! > > Maddy > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Park yourself in front of a world of choices in alternative vehicles. > > Visit the Yahoo! Auto Green Center. > > http://autos.yahoo.com/green_center/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 > > > > > > > > > > ____________________________________________________________________________________ > Yahoo! oneSearch: Finally, mobile search > that gives answers, not web links. > http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 11:13:28 2007 From: "Peter Burton" Subject: RE: [sqr-users] Trailing spaces in extract file Date: Mon, 13 Aug 2007 11:09:41 -0400 Maddy, You need to indent the "Write" command by at least one space. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Monday, August 13, 2007 10:49 AM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Trailing spaces in extract file Thanks for your quick response. I have followed your instructions but still getting the below error.Please take a look at the code and let me know if anything needs to be changed in my code. I didn't understand why the same piece of code is working for you and why it is giving errors to me. Please advice. ***************************ERROR ************************************************ (SQR 5528) Sybase dbdesc: ct_results error in cursor 1: (102) Incorrect syntax near '1'. Error on line 19: (SQR 3716) Error in SQL statement. Errors were found in the program file. SQR: Program Aborting. ***************************************************************************= ************************ Begin-Setup ask dbnames_file #include '{dbnames_file} end-setup Begin-Report Open 'q.txt' As 1 For-Writing Record=3D80:vary Begin-Select MEME_FIRST_NAME Write 1 From &MEME_FIRST_NAME:10 FROM {BRIO_DB}..CMC_MEME_MEMBER WHERE MEME_LAST_NAME =3D 'DUKE' AND MEME_FIRST_NAME =3D 'BETTY' End-Select Close 1 End-Report ***************************************************************************= *********************** Thanks! Maddy On 8/13/07, Peter Burton wrote: > > Arun, > > You are incorrect ... SQR will convert numeric and date column variables > to their string format (using the default rules) when referenced in a WRI= TE > statement. Look at my example, I am referencing "cust_num" which is defi= ned > as a numeric field (an int) and it worked without errors. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Arun > Kumar > Sent: Monday, August 13, 2007 9:14 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > Remember you can only use character variable in write statements. > > If sqr interprets the & variable as numeric then write statement will give > errors. > > Also I didnt notice any move statement or any Let statement for your $ > variables.. This explains why your out put file was empty. > > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Monday, August 13, 2007 5:09:40 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > Seems to work for me .. > > q.sqr > =3D=3D=3D=3D=3D > Begin-Report > Open 'q.txt' As 1 For-Writing Record=3D80:vary > Begin-Select > cust_num > name > Write 1 From &cust_num:10 &name:45 > from customers > order by 1 > End-Select > Close 1 > End-Report > > q.txt > =3D=3D=3D=3D=3D > 100001 Joe Smith and Company > 100002 Corks and Bottles, Inc. > 100003 Harry's Landmark Diner > 100004 Jerry's Junkyard Specialties > 100005 Kate's Out of Date Dress Shop > 100006 Sam Johnson > 100007 Harriet Bailey > 100008 Clair Butterfield > 100009 Quentin Fields > 100010 Eliot Richards > 100011 Isaiah J Schwartz and Company > 100012 Harold Alexander Fink > 100013 Gregory Stonehaven > 100014 Alfred E Newman & Company > 100015 Hammerhead Hardware > 100016 Lights R Us > 100017 Office Building Contractors > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy > Sent: Saturday, August 11, 2007 6:53 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > If I use the "&" sign in the 'write' statement it gives an error > message 'variable > not declared'.To resolve this I have used "$" sign to declare the text > variables and used in the 'write' statement; SQR runs successfully but > does > not write anything to the file. > > *********************** Code ********************* > Begin-Setup > > ask dbnames_file > > #include '{dbnames_files}' > > Declare-Variable > > Text $MEME_SSN > > Text $MEME_FIRST_NAME > > Text $MEME_LAST_NAME > > End-Declare > > end-setup > > Begin-Report > > open 'DBresults.txt' as 1 For-Writing Record=3D80:Vary > > Begin-sql On-Error=3DDb_Error(301) > > select > > MEME_SSN (,1) > > MEME_FIRST_NAME (,25) > > MEME_LAST_NAME (,50) > > position (+1) > > write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 > > FROM CMC_MEME_MEMBER_test > > WHERE > > MEME_LAST_NAME =3D 'DUKEE' > > AND > > MEME_FIRST_NAME =3D 'BETTYY' > > End-Sql > > POSITION (+2) > > Close 1 > > End-Report > > Please let me know whether this is the right way to use write to print > trailing spaces. > Thanks! > Maddy > > > > On 8/9/07, Arun Kumar wrote: > > > > Because you use Print command to create the extract file. > > > > you could try creating a variable with 25 space and printing at the > first > > line. > > > > As rule a thumb I always using write command to create all my extracts > > where its easy to handle such issues. > > > > ----- Original Message ---- > > From: Peter Burton > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Sent: Thursday, August 9, 2007 6:30:55 AM > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > Maddy, > > > > If you are using "PRINT" statements to create the export file ... > > > > Begin-Report > > Print 'Hello' (1,1) > > Print ' ' (1,26) > > Print 'Goobye (2,1) > > End-Report > > > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will > have > > trailing blanks. Please note that the -XTB flag only applies to the > default > > line printer output (i.e. -PRINTER:LP). > > > > > > If are creating the export file via the File-IO commands ... > > > > Begin-Report > > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > > Let $String =3D RPad('Last-Line', 25, ' ') > > Write 1 From $String > > Close 1 > > End-Report > > > > You can also force a field to be a specific width and trailing blanks > will > > be added > > > > Begin-Report > > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > > Let $String =3D 'Final-Line' > > Write 1 From $String:25 ! Pad/Truncate to 25 characters > > Close 1 > > End-Report > > > > Either method will create the file "q.dat" and the line will have > trailing > > blanks. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of mad= dy > > Sent: Wednesday, August 08, 2007 4:22 PM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: [sqr-users] Trailing spaces in extract file > > > > I have a extract file that needs to be generated using a Brio SQR > program > > in > > which I want to fill the end of the 1st line with 25 > > spaces.Someone in the SQR users group has suggested me to use XTB flag > in > > the batch file. > > > > I have included the -XTB flag in the following batch file and didn't see > > any > > difference. Do I have to change the location of the flag in the batch > file > > to see the trailing spaces. Can someone please send me a sample batch > file > > ? > > > > > > C:\PROGRA~1\Brio\SQRSe > > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > > > Thanks! > > Maddy > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > > > > _________________________________________________________________________= ___________ > > Park yourself in front of a world of choices in alternative vehicles. > > Visit the Yahoo! Auto Green Center. > > http://autos.yahoo.com/green_center/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 > > > > > > > > > > _________________________________________________________________________= ___________ > Yahoo! oneSearch: Finally, mobile search > that gives answers, not web links. > http://mobile.yahoo.com/mobileweb/onesearch?refer=3D1ONXIC > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 12:01:51 2007 From: "the dragon" Subject: Re: [sqr-users] Trailing spaces in extract file Date: Mon, 13 Aug 2007 10:58:42 -0500 elementary sqr coding. Anything that is not a column in the table can not be in column one of the select... NOTE: you might want to consider better coding standards when writing sqr programs. While what you're doing will work as soon as you get the code correct, it is not the "right" way to code in sqr. Begin-Select MEME_FIRST_NAME Write 1 From &MEME_FIRST_NAME:10 FROM {BRIO_DB}..CMC_MEME_MEMBER WHERE MEME_LAST_NAME = 'DUKE' AND MEME_FIRST_NAME = 'BETTY' End-Select 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Thanks for your quick response. I have followed your instructions but still getting the below error.Please take a look at the code and let me know if anything needs to be changed in my code. I didn't understand why the same piece of code is working for you and why it is giving errors to me. Please advice. ***************************ERROR ************************************************ (SQR 5528) Sybase dbdesc: ct_results error in cursor 1: (102) Incorrect syntax near '1'. Error on line 19: (SQR 3716) Error in SQL statement. Errors were found in the program file. SQR: Program Aborting. *************************************************************************************************** Begin-Setup ask dbnames_file #include '{dbnames_file} end-setup Begin-Report Open 'q.txt' As 1 For-Writing Record=80:vary Begin-Select MEME_FIRST_NAME Write 1 From &MEME_FIRST_NAME:10 FROM {BRIO_DB}..CMC_MEME_MEMBER WHERE MEME_LAST_NAME = 'DUKE' AND MEME_FIRST_NAME = 'BETTY' End-Select Close 1 End-Report ************************************************************************************************** Thanks! Maddy On 8/13/07, Peter Burton wrote: > > Arun, > > You are incorrect ... SQR will convert numeric and date column variables > to their string format (using the default rules) when referenced in a WRITE > statement. Look at my example, I am referencing "cust_num" which is defined > as a numeric field (an int) and it worked without errors. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Arun > Kumar > Sent: Monday, August 13, 2007 9:14 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > Remember you can only use character variable in write statements. > > If sqr interprets the & variable as numeric then write statement will give > errors. > > Also I didnt notice any move statement or any Let statement for your $ > variables.. This explains why your out put file was empty. > > > ----- Original Message ---- > From: Peter Burton > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Sent: Monday, August 13, 2007 5:09:40 AM > Subject: RE: [sqr-users] Trailing spaces in extract file > > Maddy, > > Seems to work for me .. > > q.sqr > ===== > Begin-Report > Open 'q.txt' As 1 For-Writing Record=80:vary > Begin-Select > cust_num > name > Write 1 From &cust_num:10 &name:45 > from customers > order by 1 > End-Select > Close 1 > End-Report > > q.txt > ===== > 100001 Joe Smith and Company > 100002 Corks and Bottles, Inc. > 100003 Harry's Landmark Diner > 100004 Jerry's Junkyard Specialties > 100005 Kate's Out of Date Dress Shop > 100006 Sam Johnson > 100007 Harriet Bailey > 100008 Clair Butterfield > 100009 Quentin Fields > 100010 Eliot Richards > 100011 Isaiah J Schwartz and Company > 100012 Harold Alexander Fink > 100013 Gregory Stonehaven > 100014 Alfred E Newman & Company > 100015 Hammerhead Hardware > 100016 Lights R Us > 100017 Office Building Contractors > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > Sent: Saturday, August 11, 2007 6:53 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > If I use the "&" sign in the 'write' statement it gives an error > message 'variable > not declared'.To resolve this I have used "$" sign to declare the text > variables and used in the 'write' statement; SQR runs successfully but > does > not write anything to the file. > > *********************** Code ********************* > Begin-Setup > > ask dbnames_file > > #include '{dbnames_files}' > > Declare-Variable > > Text $MEME_SSN > > Text $MEME_FIRST_NAME > > Text $MEME_LAST_NAME > > End-Declare > > end-setup > > Begin-Report > > open 'DBresults.txt' as 1 For-Writing Record=80:Vary > > Begin-sql On-Error=Db_Error(301) > > select > > MEME_SSN (,1) > > MEME_FIRST_NAME (,25) > > MEME_LAST_NAME (,50) > > position (+1) > > write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 > > FROM CMC_MEME_MEMBER_test > > WHERE > > MEME_LAST_NAME = 'DUKEE' > > AND > > MEME_FIRST_NAME = 'BETTYY' > > End-Sql > > POSITION (+2) > > Close 1 > > End-Report > > Please let me know whether this is the right way to use write to print > trailing spaces. > Thanks! > Maddy > > > > On 8/9/07, Arun Kumar wrote: > > > > Because you use Print command to create the extract file. > > > > you could try creating a variable with 25 space and printing at the > first > > line. > > > > As rule a thumb I always using write command to create all my extracts > > where its easy to handle such issues. > > > > ----- Original Message ---- > > From: Peter Burton > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Sent: Thursday, August 9, 2007 6:30:55 AM > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > Maddy, > > > > If you are using "PRINT" statements to create the export file ... > > > > Begin-Report > > Print 'Hello' (1,1) > > Print ' ' (1,26) > > Print 'Goobye (2,1) > > End-Report > > > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will > have > > trailing blanks. Please note that the -XTB flag only applies to the > default > > line printer output (i.e. -PRINTER:LP). > > > > > > If are creating the export file via the File-IO commands ... > > > > Begin-Report > > Open 'q.dat' As 1 For-Writing Record=32767:Vary > > Let $String = RPad('Last-Line', 25, ' ') > > Write 1 From $String > > Close 1 > > End-Report > > > > You can also force a field to be a specific width and trailing blanks > will > > be added > > > > Begin-Report > > Open 'q.dat' As 1 For-Writing Record=32767:Vary > > Let $String = 'Final-Line' > > Write 1 From $String:25 ! Pad/Truncate to 25 characters > > Close 1 > > End-Report > > > > Either method will create the file "q.dat" and the line will have > trailing > > blanks. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > > Sent: Wednesday, August 08, 2007 4:22 PM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: [sqr-users] Trailing spaces in extract file > > > > I have a extract file that needs to be generated using a Brio SQR > program > > in > > which I want to fill the end of the 1st line with 25 > > spaces.Someone in the SQR users group has suggested me to use XTB flag > in > > the batch file. > > > > I have included the -XTB flag in the following batch file and didn't see > > any > > difference. Do I have to change the location of the flag in the batch > file > > to see the trailing spaces. Can someone please send me a sample batch > file > > ? > > > > > > C:\PROGRA~1\Brio\SQRSe > > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > > > Thanks! > > Maddy > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Park yourself in front of a world of choices in alternative vehicles. > > Visit the Yahoo! Auto Green Center. > > http://autos.yahoo.com/green_center/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 > > > > > > > > > > ____________________________________________________________________________________ > Yahoo! oneSearch: Finally, mobile search > that gives answers, not web links. > http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 _________________________________________________________________ Booking a flight? Know when to buy with airfare predictions on MSN Travel. http://travel.msn.com/Articles/aboutfarecast.aspx&ocid=T001MSN25A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 15:13:59 2007 Date: Mon, 13 Aug 2007 15:11:30 -0400 From: maddy Subject: Re: [sqr-users] Trailing spaces in extract file Thanks a lot Peter. After indenting, my code is working. I am able to create the extract file in the required format but want to add header and trailer information to this extract. The header information in this extract file is hardcoded whereas the trailer should show the total number of records in the extract.Pleaseadvice. On 8/13/07, Peter Burton wrote: > > Maddy, > > You need to indent the "Write" command by at least one space. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > Sent: Monday, August 13, 2007 10:49 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > Thanks for your quick response. I have followed your instructions but > still > getting the below error.Please take a look at the code and let me know > if anything needs to be changed in my code. I didn't understand why the > same > piece of code is working for you and why it is giving errors to me. Please > advice. > > ***************************ERROR > ************************************************ > > (SQR 5528) Sybase dbdesc: ct_results error in cursor 1: > > (102) Incorrect syntax near '1'. > > Error on line 19: > > (SQR 3716) Error in SQL statement. > > Errors were found in the program file. > > SQR: Program Aborting. > > > *************************************************************************************************** > Begin-Setup > ask dbnames_file > #include '{dbnames_file} > end-setup > > Begin-Report > Open 'q.txt' As 1 For-Writing Record=80:vary > Begin-Select > MEME_FIRST_NAME > Write 1 From &MEME_FIRST_NAME:10 > FROM {BRIO_DB}..CMC_MEME_MEMBER > WHERE MEME_LAST_NAME = 'DUKE' AND MEME_FIRST_NAME = 'BETTY' > End-Select > Close 1 > End-Report > > ************************************************************************************************** > > > Thanks! > Maddy > > > On 8/13/07, Peter Burton wrote: > > > > Arun, > > > > You are incorrect ... SQR will convert numeric and date column variables > > to their string format (using the default rules) when referenced in a > WRITE > > statement. Look at my example, I am referencing "cust_num" which is > defined > > as a numeric field (an int) and it worked without errors. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Arun > > Kumar > > Sent: Monday, August 13, 2007 9:14 AM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: Re: [sqr-users] Trailing spaces in extract file > > > > Remember you can only use character variable in write statements. > > > > If sqr interprets the & variable as numeric then write statement will > give > > errors. > > > > Also I didnt notice any move statement or any Let statement for your $ > > variables.. This explains why your out put file was empty. > > > > > > ----- Original Message ---- > > From: Peter Burton > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Sent: Monday, August 13, 2007 5:09:40 AM > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > Maddy, > > > > Seems to work for me .. > > > > q.sqr > > ===== > > Begin-Report > > Open 'q.txt' As 1 For-Writing Record=80:vary > > Begin-Select > > cust_num > > name > > Write 1 From &cust_num:10 &name:45 > > from customers > > order by 1 > > End-Select > > Close 1 > > End-Report > > > > q.txt > > ===== > > 100001 Joe Smith and Company > > 100002 Corks and Bottles, Inc. > > 100003 Harry's Landmark Diner > > 100004 Jerry's Junkyard Specialties > > 100005 Kate's Out of Date Dress Shop > > 100006 Sam Johnson > > 100007 Harriet Bailey > > 100008 Clair Butterfield > > 100009 Quentin Fields > > 100010 Eliot Richards > > 100011 Isaiah J Schwartz and Company > > 100012 Harold Alexander Fink > > 100013 Gregory Stonehaven > > 100014 Alfred E Newman & Company > > 100015 Hammerhead Hardware > > 100016 Lights R Us > > 100017 Office Building Contractors > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of maddy > > Sent: Saturday, August 11, 2007 6:53 PM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: Re: [sqr-users] Trailing spaces in extract file > > > > If I use the "&" sign in the 'write' statement it gives an error > > message 'variable > > not declared'.To resolve this I have used "$" sign to declare the text > > variables and used in the 'write' statement; SQR runs successfully but > > does > > not write anything to the file. > > > > *********************** Code ********************* > > Begin-Setup > > > > ask dbnames_file > > > > #include '{dbnames_files}' > > > > Declare-Variable > > > > Text $MEME_SSN > > > > Text $MEME_FIRST_NAME > > > > Text $MEME_LAST_NAME > > > > End-Declare > > > > end-setup > > > > Begin-Report > > > > open 'DBresults.txt' as 1 For-Writing Record=80:Vary > > > > Begin-sql On-Error=Db_Error(301) > > > > select > > > > MEME_SSN (,1) > > > > MEME_FIRST_NAME (,25) > > > > MEME_LAST_NAME (,50) > > > > position (+1) > > > > write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 > > > > FROM CMC_MEME_MEMBER_test > > > > WHERE > > > > MEME_LAST_NAME = 'DUKEE' > > > > AND > > > > MEME_FIRST_NAME = 'BETTYY' > > > > End-Sql > > > > POSITION (+2) > > > > Close 1 > > > > End-Report > > > > Please let me know whether this is the right way to use write to print > > trailing spaces. > > Thanks! > > Maddy > > > > > > > > On 8/9/07, Arun Kumar wrote: > > > > > > Because you use Print command to create the extract file. > > > > > > you could try creating a variable with 25 space and printing at the > > first > > > line. > > > > > > As rule a thumb I always using write command to create all my extracts > > > where its easy to handle such issues. > > > > > > ----- Original Message ---- > > > From: Peter Burton > > > To: This list is for discussion about the SQR database reporting > > language > > > from Hyperion Solutions. > > > Sent: Thursday, August 9, 2007 6:30:55 AM > > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > > > Maddy, > > > > > > If you are using "PRINT" statements to create the export file ... > > > > > > Begin-Report > > > Print 'Hello' (1,1) > > > Print ' ' (1,26) > > > Print 'Goobye (2,1) > > > End-Report > > > > > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > > > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will > > have > > > trailing blanks. Please note that the -XTB flag only applies to the > > default > > > line printer output (i.e. -PRINTER:LP). > > > > > > > > > If are creating the export file via the File-IO commands ... > > > > > > Begin-Report > > > Open 'q.dat' As 1 For-Writing Record=32767:Vary > > > Let $String = RPad('Last-Line', 25, ' ') > > > Write 1 From $String > > > Close 1 > > > End-Report > > > > > > You can also force a field to be a specific width and trailing blanks > > will > > > be added > > > > > > Begin-Report > > > Open 'q.dat' As 1 For-Writing Record=32767:Vary > > > Let $String = 'Final-Line' > > > Write 1 From $String:25 ! Pad/Truncate to 25 characters > > > Close 1 > > > End-Report > > > > > > Either method will create the file "q.dat" and the line will have > > trailing > > > blanks. > > > > > > Peter > > > > > > -----Original Message----- > > > From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto: > > > sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of > maddy > > > Sent: Wednesday, August 08, 2007 4:22 PM > > > To: This list is for discussion about the SQR database reporting > > language > > > from Hyperion Solutions. > > > Subject: [sqr-users] Trailing spaces in extract file > > > > > > I have a extract file that needs to be generated using a Brio SQR > > program > > > in > > > which I want to fill the end of the 1st line with 25 > > > spaces.Someone in the SQR users group has suggested me to use XTB flag > > in > > > the batch file. > > > > > > I have included the -XTB flag in the following batch file and didn't > see > > > any > > > difference. Do I have to change the location of the flag in the batch > > file > > > to see the trailing spaces. Can someone please send me a sample batch > > file > > > ? > > > > > > > > > C:\PROGRA~1\Brio\SQRSe > > > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > > > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > > > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > > > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > > > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > > > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > > > > > Thanks! > > > Maddy > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Park yourself in front of a world of choices in alternative vehicles. > > > Visit the Yahoo! Auto Green Center. > > > http://autos.yahoo.com/green_center/ > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Yahoo! oneSearch: Finally, mobile search > > that gives answers, not web links. > > http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 13 16:44:37 2007 From: "Peter Burton" Subject: RE: [sqr-users] Trailing spaces in extract file Date: Mon, 13 Aug 2007 16:40:45 -0400 Maddy, This is something you might do. It really depends on your situation. Begin-Report Open 'q.txt' As 1 For-Writing Record=3D80:vary Write 1 From 'Cust ID Customer Name' Let $Dash =3D RPad('', 55, '-') Write 1 From $Dash Begin-Select cust_num name Add 1 To #Count Write 1 From &cust_num:10 &name:45 from customers order by 1 End-Select Let $Count =3D 'Records =3D ' || Edit(#Count, '88888') Write 1 From '' Write 1 From $Count Close 1 End-Report Cust ID Customer Name ------------------------------------------------------- 100001 Joe Smith and Company 100002 Corks and Bottles, Inc. 100003 Harry's Landmark Diner 100004 Jerry's Junkyard Specialties 100005 Kate's Out of Date Dress Shop 100006 Sam Johnson 100007 Harriet Bailey 100008 Clair Butterfield 100009 Quentin Fields 100010 Eliot Richards 100011 Isaiah J Schwartz and Company 100012 Harold Alexander Fink 100013 Gregory Stonehaven 100014 Alfred E Newman & Company 100015 Hammerhead Hardware 100016 Lights R Us 100017 Office Building Contractors Records =3D 17 Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy Sent: Monday, August 13, 2007 3:12 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Trailing spaces in extract file Thanks a lot Peter. After indenting, my code is working. I am able to create the extract file in the required format but want to add header and trailer information to this extract. The header information in this extract file is hardcoded whereas the trailer should show the total number of records in the extract.Pleaseadvice. On 8/13/07, Peter Burton wrote: > > Maddy, > > You need to indent the "Write" command by at least one space. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of maddy > Sent: Monday, August 13, 2007 10:49 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Trailing spaces in extract file > > Thanks for your quick response. I have followed your instructions but > still > getting the below error.Please take a look at the code and let me know > if anything needs to be changed in my code. I didn't understand why the > same > piece of code is working for you and why it is giving errors to me. Please > advice. > > ***************************ERROR > ************************************************ > > (SQR 5528) Sybase dbdesc: ct_results error in cursor 1: > > (102) Incorrect syntax near '1'. > > Error on line 19: > > (SQR 3716) Error in SQL statement. > > Errors were found in the program file. > > SQR: Program Aborting. > > > *************************************************************************= ************************** > Begin-Setup > ask dbnames_file > #include '{dbnames_file} > end-setup > > Begin-Report > Open 'q.txt' As 1 For-Writing Record=3D80:vary > Begin-Select > MEME_FIRST_NAME > Write 1 From &MEME_FIRST_NAME:10 > FROM {BRIO_DB}..CMC_MEME_MEMBER > WHERE MEME_LAST_NAME =3D 'DUKE' AND MEME_FIRST_NAME =3D 'BETTY' > End-Select > Close 1 > End-Report > > *************************************************************************= ************************* > > > Thanks! > Maddy > > > On 8/13/07, Peter Burton wrote: > > > > Arun, > > > > You are incorrect ... SQR will convert numeric and date column variables > > to their string format (using the default rules) when referenced in a > WRITE > > statement. Look at my example, I am referencing "cust_num" which is > defined > > as a numeric field (an int) and it worked without errors. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Arun > > Kumar > > Sent: Monday, August 13, 2007 9:14 AM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: Re: [sqr-users] Trailing spaces in extract file > > > > Remember you can only use character variable in write statements. > > > > If sqr interprets the & variable as numeric then write statement will > give > > errors. > > > > Also I didnt notice any move statement or any Let statement for your $ > > variables.. This explains why your out put file was empty. > > > > > > ----- Original Message ---- > > From: Peter Burton > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Sent: Monday, August 13, 2007 5:09:40 AM > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > Maddy, > > > > Seems to work for me .. > > > > q.sqr > > =3D=3D=3D=3D=3D > > Begin-Report > > Open 'q.txt' As 1 For-Writing Record=3D80:vary > > Begin-Select > > cust_num > > name > > Write 1 From &cust_num:10 &name:45 > > from customers > > order by 1 > > End-Select > > Close 1 > > End-Report > > > > q.txt > > =3D=3D=3D=3D=3D > > 100001 Joe Smith and Company > > 100002 Corks and Bottles, Inc. > > 100003 Harry's Landmark Diner > > 100004 Jerry's Junkyard Specialties > > 100005 Kate's Out of Date Dress Shop > > 100006 Sam Johnson > > 100007 Harriet Bailey > > 100008 Clair Butterfield > > 100009 Quentin Fields > > 100010 Eliot Richards > > 100011 Isaiah J Schwartz and Company > > 100012 Harold Alexander Fink > > 100013 Gregory Stonehaven > > 100014 Alfred E Newman & Company > > 100015 Hammerhead Hardware > > 100016 Lights R Us > > 100017 Office Building Contractors > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of mad= dy > > Sent: Saturday, August 11, 2007 6:53 PM > > To: This list is for discussion about the SQR database reporting > language > > from Hyperion Solutions. > > Subject: Re: [sqr-users] Trailing spaces in extract file > > > > If I use the "&" sign in the 'write' statement it gives an error > > message 'variable > > not declared'.To resolve this I have used "$" sign to declare the text > > variables and used in the 'write' statement; SQR runs successfully but > > does > > not write anything to the file. > > > > *********************** Code ********************* > > Begin-Setup > > > > ask dbnames_file > > > > #include '{dbnames_files}' > > > > Declare-Variable > > > > Text $MEME_SSN > > > > Text $MEME_FIRST_NAME > > > > Text $MEME_LAST_NAME > > > > End-Declare > > > > end-setup > > > > Begin-Report > > > > open 'DBresults.txt' as 1 For-Writing Record=3D80:Vary > > > > Begin-sql On-Error=3DDb_Error(301) > > > > select > > > > MEME_SSN (,1) > > > > MEME_FIRST_NAME (,25) > > > > MEME_LAST_NAME (,50) > > > > position (+1) > > > > write 1 from $MEME_SSN:10 $MEME_FIRST_NAME:40 $MEME_LAST_NAME:30 > > > > FROM CMC_MEME_MEMBER_test > > > > WHERE > > > > MEME_LAST_NAME =3D 'DUKEE' > > > > AND > > > > MEME_FIRST_NAME =3D 'BETTYY' > > > > End-Sql > > > > POSITION (+2) > > > > Close 1 > > > > End-Report > > > > Please let me know whether this is the right way to use write to print > > trailing spaces. > > Thanks! > > Maddy > > > > > > > > On 8/9/07, Arun Kumar wrote: > > > > > > Because you use Print command to create the extract file. > > > > > > you could try creating a variable with 25 space and printing at the > > first > > > line. > > > > > > As rule a thumb I always using write command to create all my extracts > > > where its easy to handle such issues. > > > > > > ----- Original Message ---- > > > From: Peter Burton > > > To: This list is for discussion about the SQR database reporting > > language > > > from Hyperion Solutions. > > > Sent: Thursday, August 9, 2007 6:30:55 AM > > > Subject: RE: [sqr-users] Trailing spaces in extract file > > > > > > Maddy, > > > > > > If you are using "PRINT" statements to create the export file ... > > > > > > Begin-Report > > > Print 'Hello' (1,1) > > > Print ' ' (1,26) > > > Print 'Goobye (2,1) > > > End-Report > > > > > > If you run this as "SQR {pgm} / -xl" all the lines will be trimmed, > > > howvere if you run this as "SQR {pgm} / -xl -xtb" the first line will > > have > > > trailing blanks. Please note that the -XTB flag only applies to the > > default > > > line printer output (i.e. -PRINTER:LP). > > > > > > > > > If are creating the export file via the File-IO commands ... > > > > > > Begin-Report > > > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > > > Let $String =3D RPad('Last-Line', 25, ' ') > > > Write 1 From $String > > > Close 1 > > > End-Report > > > > > > You can also force a field to be a specific width and trailing blanks > > will > > > be added > > > > > > Begin-Report > > > Open 'q.dat' As 1 For-Writing Record=3D32767:Vary > > > Let $String =3D 'Final-Line' > > > Write 1 From $String:25 ! Pad/Truncate to 25 characters > > > Close 1 > > > End-Report > > > > > > Either method will create the file "q.dat" and the line will have > > trailing > > > blanks. > > > > > > Peter > > > > > > -----Original Message----- > > > From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto: > > > sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of > maddy > > > Sent: Wednesday, August 08, 2007 4:22 PM > > > To: This list is for discussion about the SQR database reporting > > language > > > from Hyperion Solutions. > > > Subject: [sqr-users] Trailing spaces in extract file > > > > > > I have a extract file that needs to be generated using a Brio SQR > > program > > > in > > > which I want to fill the end of the 1st line with 25 > > > spaces.Someone in the SQR users group has suggested me to use XTB flag > > in > > > the batch file. > > > > > > I have included the -XTB flag in the following batch file and didn't > see > > > any > > > difference. Do I have to change the location of the flag in the batch > > file > > > to see the trailing spaces. Can someone please send me a sample batch > > file > > > ? > > > > > > > > > C:\PROGRA~1\Brio\SQRSe > > > rver\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" -vsybDfyTst04era > > > syC606240/facets -XTB -XMB -e -o -keep "-IC:\PROGRA~1\Brio\REPORT~1 > > > \PROGRAM\;D:\RIN6000\" "-MD:\RIN6000\Mfile.txt" > > > 'D:\RIN6000\dbnames_file_inc441 txt.txt'rem C:\Program > > > Files\Brio\SQRServer\SYB\BINW\sqrw.exe "D:\RIN6000\BRR296M1.sqr" > > > -vsybDfyTst04era syC606240/facets > BRR296M1.log > > > > > > Thanks! > > > Maddy > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________________= ___________ > > > Park yourself in front of a world of choices in alternative vehicles. > > > Visit the Yahoo! Auto Green Center. > > > http://autos.yahoo.com/green_center/ > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________________= ___________ > > Yahoo! oneSearch: Finally, mobile search > > that gives answers, not web links. > > http://mobile.yahoo.com/mobileweb/onesearch?refer=3D1ONXIC > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 27 18:17:15 2007 From: Kaz.Narayanan@averydennison.com Date: Mon, 27 Aug 2007 15:12:13 -0700 Subject: [sqr-users] How to select multiple files for processing Hello, I have multiple files in the following format in our Unix directory.. BANKREC_XXXXXXXX.TXT where XXXXXX is the date time stamp. I want the SQR to pick each file, open it , read and perform some actions. If it is single file, I can use Open 1 as...... How to open these multiple files? An earlier reply would be highly appreciated. Thanks Regards K.M.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@sqrug.org Mon Aug 27 18:28:09 2007 Subject: RE: [sqr-users] How to select multiple files for processing Date: Mon, 27 Aug 2007 17:25:22 -0500 From: "Bob Stone" Use UNIX to create your list of files, and then loop through it opening each one at a time. LET $cmd =3D ' LS BANKREC_* > mylist.txt ' CALL SYSTEM USING $cmd OPEN mylist.txt as 1 LOOP 1 READ $line into $filename OPEN $filename as 2 do process-this-file (include moving it to a 'complete' directory?) CLOSE 2 END-LOOP CLOSE 1 Does that make sense? You make a file that lists which files you're going to process on, then you open each of those files as you loop through your list, processing however you need to. The unix command might be >> instead of >...I forget which appends and which overwrites. You'll want to check the syntax. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Monday, August 27, 2007 5:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to select multiple files for processing Hello, I have multiple files in the following format in our Unix directory.. BANKREC_XXXXXXXX.TXT where XXXXXX is the date time stamp. I want the SQR to pick each file, open it , read and perform some actions. If it is single file, I can use Open 1 as...... How to open these multiple files? An earlier reply would be highly appreciated. Thanks Regards K.M.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@sqrug.org Mon Aug 27 18:39:22 2007 Subject: RE: [sqr-users] How to select multiple files for processing From: Kaz.Narayanan@averydennison.com Date: Mon, 27 Aug 2007 15:34:16 -0700 Thanks Bob For quick reply. What should I do if the files are in my Windows server? Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org 08/27/2007 03:25 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." cc: Subject: RE: [sqr-users] How to select multiple files for processing Use UNIX to create your list of files, and then loop through it opening each one at a time. LET $cmd = ' LS BANKREC_* > mylist.txt ' CALL SYSTEM USING $cmd OPEN mylist.txt as 1 LOOP 1 READ $line into $filename OPEN $filename as 2 do process-this-file (include moving it to a 'complete' directory?) CLOSE 2 END-LOOP CLOSE 1 Does that make sense? You make a file that lists which files you're going to process on, then you open each of those files as you loop through your list, processing however you need to. The unix command might be >> instead of >...I forget which appends and which overwrites. You'll want to check the syntax. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Monday, August 27, 2007 5:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to select multiple files for processing Hello, I have multiple files in the following format in our Unix directory.. BANKREC_XXXXXXXX.TXT where XXXXXX is the date time stamp. I want the SQR to pick each file, open it , read and perform some actions. If it is single file, I can use Open 1 as...... How to open these multiple files? An earlier reply would be highly appreciated. Thanks Regards K.M.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@sqrug.org Mon Aug 27 18:46:14 2007 Subject: RE: [sqr-users] How to select multiple files for processing Date: Mon, 27 Aug 2007 17:43:17 -0500 From: "Bob Stone" Same thing.=20=20 Just determine what your windows admins would like you to script in, and how to create a file. I'm not as familiar with navigating a Windows prompt, so I don't know the specific commands. Check with a windows admin, or google it. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Monday, August 27, 2007 5:34 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Cc: This list is for discussion about the SQR database reporting language from Hyperion Solutions.; sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org Subject: RE: [sqr-users] How to select multiple files for processing Thanks Bob For quick reply. What should I do if the files are in my Windows server? Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/27/2007 03:25 PM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." cc:=20 Subject: RE: [sqr-users] How to select multiple files for processing Use UNIX to create your list of files, and then loop through it opening each one at a time. LET $cmd =3D ' LS BANKREC_* > mylist.txt ' CALL SYSTEM USING $cmd OPEN mylist.txt as 1 LOOP 1 READ $line into $filename OPEN $filename as 2 do process-this-file (include moving it to a 'complete' directory?) CLOSE 2 END-LOOP CLOSE 1 Does that make sense? You make a file that lists which files you're going to process on, then you open each of those files as you loop through your list, processing however you need to. The unix command might be >> instead of >...I forget which appends and which overwrites. You'll want to check the syntax. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Monday, August 27, 2007 5:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to select multiple files for processing Hello, I have multiple files in the following format in our Unix directory.. BANKREC_XXXXXXXX.TXT where XXXXXX is the date time stamp. I want the SQR to pick each file, open it , read and perform some actions. If it is single file, I can use Open 1 as...... How to open these multiple files? An earlier reply would be highly appreciated. Thanks Regards K.M.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 28 09:46:05 2007 From: "Jean Myles" Date: Tue, 28 Aug 2007 09:43:18 -0400 Subject: [sqr-users] Comparing/Difference of Two Payroll Summaries I have been asked to create a report that compares two consecutive payroll summaries for a specific pay year, pay id, and payroll run (all prompts) The final report would appear like the following: Payroll1 Payroll2 Pay ID Earn Code Total Pay ID Earn Code Total Difference RG ABC 1000.00 RG ABC 400.00 600.00 RG DEF 2000.00 RG DEF 1500.00 500.00 The issue is, both payrolls could have earn codes that do not exist in the other payroll. (Eg: Payroll 1 - GHI , 500.00 but does not exist in Payroll 2) RG GHI 500.00 DOES NOT EXIST IN THIS PAYROLL - CANNOT GET TO PRINT/DIFFERENCE I have stored the first payroll in a temp table and can select the common earn codes to the second payroll. How do I get the earn codes that are unique to each payroll to be listed as well? And is there a way to insert a zero if it does not exists so that it can be subtracted for a difference value? I thank you in advance for your assistance. Jean Myles jean_myles@fitnyc.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 28 10:00:38 2007 From: "the dragon" Subject: RE: [sqr-users] Comparing/Difference of Two Payroll Summaries Date: Tue, 28 Aug 2007 08:57:29 -0500 how about a union or an outer join of some kind? 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- I have been asked to create a report that compares two consecutive payroll summaries for a specific pay year, pay id, and payroll run (all prompts) The final report would appear like the following: Payroll1 Payroll2 Pay ID Earn Code Total Pay ID Earn Code Total Difference RG ABC 1000.00 RG ABC 400.00 600.00 RG DEF 2000.00 RG DEF 1500.00 500.00 The issue is, both payrolls could have earn codes that do not exist in the other payroll. (Eg: Payroll 1 - GHI , 500.00 but does not exist in Payroll 2) RG GHI 500.00 DOES NOT EXIST IN THIS PAYROLL - CANNOT GET TO PRINT/DIFFERENCE I have stored the first payroll in a temp table and can select the common earn codes to the second payroll. How do I get the earn codes that are unique to each payroll to be listed as well? And is there a way to insert a zero if it does not exists so that it can be subtracted for a difference value? I thank you in advance for your assistance. Jean Myles jean_myles@fitnyc.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Now you can see trouble…before he arrives http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 28 10:04:10 2007 Subject: RE: [sqr-users] Comparing/Difference of Two Payroll Summaries Date: Tue, 28 Aug 2007 08:58:38 -0500 From: "Bob Stone" Maybe have an outer procedure that says something like this. Thus you know what earn codes are going to show up for either. And then the sub procedure does all the printing, earn-code by earn-code. BEGIN-SELECT DISTINCT EARN_CODE DO PRINT-PAYROLL-FOR-THIS-EARN_CODE($earncode) FROM table where payroll =3D $x UNION SELECT DISTINCT EARN_CODE FROM table where payroll =3D $y END-SELECT BEGIN-PROCEDURE PRINT-PAYROLL-FOR-THIS-EARN-CODE($earncode) let $exists =3D 'N' BEGIN-SELECT print_data let $exists =3D 'Y' FROM table where payroll =3D $x AND earn_code =3D $earncode END-SELECT IF $exists =3D 'N' PRINT 'DOES NOT EXIST IN ' $x ' CANNOT COMPARE DIFFERENCE' ELSE PRINT print-data (normal printed row). END-IF ...do same for payroll $y. END-PROCEDURE -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Jean Myles Sent: Tuesday, August 28, 2007 8:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Comparing/Difference of Two Payroll Summaries I have been asked to create a report that compares two consecutive payroll summaries for a specific pay year, pay id, and payroll run (all prompts)=20=20 The final report would appear like the following: =20 Payroll1 Payroll2=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 Pay ID Earn Code Total Pay ID Earn Code Total Difference =20 RG ABC 1000.00 RG ABC 400.00 600.00 RG DEF 2000.00 RG DEF 1500.00 500.00 =20 =20 =20 The issue is, both payrolls could have earn codes that do not exist in the other payroll. (Eg: Payroll 1 - GHI , 500.00 but does not exist in Payroll 2)=20=20 =20 RG GHI 500.00 DOES NOT EXIST IN THIS PAYROLL - CANNOT GET TO PRINT/DIFFERENCE =20 I have stored the first payroll in a temp table and can select the common earn codes to the second payroll. How do I get the earn codes that are unique to each payroll to be listed as well? And is there a way to insert a zero if it does not exists so that it can be subtracted for a difference value? =20 I thank you in advance for your assistance. =20 =20 Jean Myles jean_myles@fitnyc.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 28 10:54:42 2007 From: franck.masson2002@laposte.net Subject: RE: [sqr-users] How to select multiple files for processing Date: Tue, 28 Aug 2007 16:51:53 +0200 (CEST) You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =C3=A0 : "This list is for discussion about the SQR database report= ing language from Hyperion Solutions." , sqr-users-bounces+kaz.narayanan= =3Daverydennison.com@sqrug.org > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=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 > Kaz.Narayanan@averydennison.com > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=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 >=20 >=20 >=20 > - ----------------------------------------------------------------- > The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged materi= al. 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 28 13:07:59 2007 Date: Tue, 28 Aug 2007 10:04:58 -0700 From: "Tai Luong" Subject: RE: [sqr-users] How to select multiple files for processing With option \b \o the following will display the file names in bare format = and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' =20 Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= language from Hyperion Solutions." , sqr-users-bounces+kaz.narayanan=3Dav= erydennison.com@sqrug.org=20 > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com=20 > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > - ----------------------------------------------------------------- > The information transmitted is intended only for the person or entity to = which it is addressed and may contain confidential and/or privileged materi= al. 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. >=20 > _______________________________________________ > 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=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 28 14:02:50 2007 Subject: RE: [sqr-users] How to select multiple files for processing From: Kaz.Narayanan@averydennison.com Date: Tue, 28 Aug 2007 10:57:36 -0700 Thanks to all for posting your answers, It really worked... Happy that I am in a great user group. Regards K.M.Narayanan franck.masson2002@laposte.net Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 07:51 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com > A : "This list is for discussion about the SQR database reporting=20 language from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= =20 language from Hyperion Solutions." ,=20 sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=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 > Kaz.Narayanan@averydennison.com > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=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 >=20 >=20 >=20 > - ----------------------------------------------------------------- > 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. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 computer. >=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 - ----------------------------------------------------------------- The information transmitted is intended only for the person or entity to wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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@sqrug.org Tue Aug 28 20:05:25 2007 Subject: RE: [sqr-users] How to select multiple files for processing From: Kaz.Narayanan@averydennison.com Date: Tue, 28 Aug 2007 17:00:08 -0700 Hello , Thanks for your feedback. I am using the following, Still the program is=20 not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th =20 LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe/c DIR=20 H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt'=20 CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: , cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing With option \b \o the following will display the file names in bare format= =20 and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' =20 Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com=20 > A : "This list is for discussion about the SQR database reporting=20 language from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= =20 language from Hyperion Solutions." ,=20 sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com=20 > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > - ----------------------------------------------------------------- > 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. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 computer. >=20 > _______________________________________________ > 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=20 _______________________________________________ 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 wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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@sqrug.org Wed Aug 29 09:41:38 2007 Subject: RE: [sqr-users] How to select multiple files for processing Date: Wed, 29 Aug 2007 08:38:41 -0500 From: "Bob Stone" Is "I:" defined on the machine that is actually running the process? Just = because you have an I: directory, doesn't mean the Production server calls = it the same thing. Try the full path. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-b= ounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averyden= nison.com Sent: Tuesday, August 28, 2007 7:00 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Hello , Thanks for your feedback. I am using the following, Still the program is=20 not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th =20 LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe/c DIR=20 H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt'=20 CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: , cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing With option \b \o the following will display the file names in bare format= =20 and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' =20 Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com=20 > A : "This list is for discussion about the SQR database reporting=20 language from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= =20 language from Hyperion Solutions." ,=20 sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com=20 > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > - ----------------------------------------------------------------- > 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. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 computer. >=20 > _______________________________________________ > 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=20 _______________________________________________ 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 wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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@sqrug.org Wed Aug 29 13:59:43 2007 Subject: RE: [sqr-users] How to select multiple files for processing From: Kaz.Narayanan@averydennison.com Date: Wed, 29 Aug 2007 10:54:37 -0700 Bob, Instead of I: Drive, I try using H: Drive, which is recognizable to all my= =20 SQR programs. $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c DIR/B H:\TEMP\av1377ds* >=20 H:\TEMP\KMDIPLIST.txt' CALL SYSTEM USING $COMMAND #call_status wait=20 I still get nothing. The #call_status value is 3. I see in our forum that= =20 the value need to be more than 10. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/29/2007 06:38 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing Is "I:" defined on the machine that is actually running the process? Just= =20 because you have an I: directory, doesn't mean the Production server calls= =20 it the same thing. Try the full path. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of=20 Kaz.Narayanan@averydennison.com Sent: Tuesday, August 28, 2007 7:00 PM To: This list is for discussion about the SQR database reporting language= =20 from Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Hello , Thanks for your feedback. I am using the following, Still the program is=20 not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th =20 LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe/c DIR=20 H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt'=20 CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: , cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing With option \b \o the following will display the file names in bare format= =20 and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' =20 Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com=20 > A : "This list is for discussion about the SQR database reporting=20 language from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= =20 language from Hyperion Solutions." ,=20 sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com=20 > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > - ----------------------------------------------------------------- > 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. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 computer. >=20 > _______________________________________________ > 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=20 _______________________________________________ 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=20 which it is addressed and may contain confidential and/or privileged=20 material. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 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 wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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@sqrug.org Wed Aug 29 14:20:18 2007 Subject: RE: [sqr-users] How to select multiple files for processing Date: Wed, 29 Aug 2007 13:17:32 -0500 From: "Knapp, Richard" Try the command in a cmd window to debug the syntax. Richard Knapp EAS - Data Warehouse Group University of Missouri 615 Locust Street #200 Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Kaz.Narayanan@averyden= nison.com Sent: Wednesday, August 29, 2007 12:55 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Bob, Instead of I: Drive, I try using H: Drive, which is recognizable to all my= =20 SQR programs. $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c DIR/B H:\TEMP\av1377ds* >=20 H:\TEMP\KMDIPLIST.txt' CALL SYSTEM USING $COMMAND #call_status wait=20 I still get nothing. The #call_status value is 3. I see in our forum that= =20 the value need to be more than 10. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/29/2007 06:38 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing Is "I:" defined on the machine that is actually running the process? Just= =20 because you have an I: directory, doesn't mean the Production server calls= =20 it the same thing. Try the full path. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of=20 Kaz.Narayanan@averydennison.com Sent: Tuesday, August 28, 2007 7:00 PM To: This list is for discussion about the SQR database reporting language= =20 from Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Hello , Thanks for your feedback. I am using the following, Still the program is=20 not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th =20 LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe/c DIR=20 H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt'=20 CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: , cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing With option \b \o the following will display the file names in bare format= =20 and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' =20 Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com=20 > A : "This list is for discussion about the SQR database reporting=20 language from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= =20 language from Hyperion Solutions." ,=20 sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com=20 > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > - ----------------------------------------------------------------- > 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. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 computer. >=20 > _______________________________________________ > 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=20 _______________________________________________ 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=20 which it is addressed and may contain confidential and/or privileged=20 material. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 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 wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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@sqrug.org Wed Aug 29 14:43:57 2007 Subject: RE: [sqr-users] How to select multiple files for processing From: Kaz.Narayanan@averydennison.com Date: Wed, 29 Aug 2007 11:38:31 -0700 Richard, The CMD window it works fine. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Knapp, Richard" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/29/2007 11:17 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: "This list is for discussion about the SQR database=20 reportinglanguage from Hyperion Solutions." cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing Try the command in a cmd window to debug the syntax. Richard Knapp EAS - Data Warehouse Group University of Missouri 615 Locust Street #200 Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of=20 Kaz.Narayanan@averydennison.com Sent: Wednesday, August 29, 2007 12:55 PM To: This list is for discussion about the SQR database reporting=20 languagefrom Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Bob, Instead of I: Drive, I try using H: Drive, which is recognizable to all my= =20 SQR programs. $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c DIR/B H:\TEMP\av1377ds* >=20 H:\TEMP\KMDIPLIST.txt' CALL SYSTEM USING $COMMAND #call_status wait=20 I still get nothing. The #call_status value is 3. I see in our forum that= =20 the value need to be more than 10. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/29/2007 06:38 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing Is "I:" defined on the machine that is actually running the process? Just= =20 because you have an I: directory, doesn't mean the Production server calls= =20 it the same thing. Try the full path. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of=20 Kaz.Narayanan@averydennison.com Sent: Tuesday, August 28, 2007 7:00 PM To: This list is for discussion about the SQR database reporting language= =20 from Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Hello , Thanks for your feedback. I am using the following, Still the program is=20 not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th =20 LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe/c DIR=20 H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt'=20 CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: , cc:=20 Subject: RE: [sqr-users] How to select multiple files for=20 processing With option \b \o the following will display the file names in bare format= =20 and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' =20 Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com=20 > A : "This list is for discussion about the SQR database reporting=20 language from Hyperion Solutions."=20 > Copie =E0 : "This list is for discussion about the SQR database reporting= =20 language from Hyperion Solutions." ,=20 sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. >=20 > What should I do if the files are in my Windows server? >=20 > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell >=20 >=20 >=20 >=20 > "Bob Stone"=20 > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org=20 > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." >=20 > To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions."=20 > cc:=20 > Subject: RE: [sqr-users] How to select multiple files for=20 > processing >=20 >=20 > Use UNIX to create your list of files, and then loop through it opening > each one at a time. >=20 > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' >=20 > CALL SYSTEM USING $cmd >=20 > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 >=20 > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com=20 > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] How to select multiple files for processing >=20 > Hello, >=20 > I have multiple files in the following format in our Unix directory.. >=20 > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. >=20 > I want the SQR to pick each file, open it , read and perform some > actions. >=20 > If it is single file, I can use Open 1 as...... >=20 > How to open these multiple files? >=20 > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.Narayanan >=20 >=20 > - ----------------------------------------------------------------- > 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. >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > - ----------------------------------------------------------------- > 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. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 computer. >=20 > _______________________________________________ > 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=20 _______________________________________________ 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=20 which it is addressed and may contain confidential and/or privileged=20 material. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 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=20 which it is addressed and may contain confidential and/or privileged=20 material. Any review, retransmission, dissemination or other use of, or=20 taking of any action in reliance upon, this information by persons or=20 entities other than the intended recipient is prohibited. If you received= =20 this in error, please contact the sender and delete the material from any= =20 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 wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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@sqrug.org Wed Aug 29 14:48:01 2007 Subject: RE: [sqr-users] How to select multiple files for processing Date: Wed, 29 Aug 2007 13:39:02 -0500 From: "Bob Stone" This is a multi-part message in MIME format... ------_=_NextPart_001_01C7EA6C.33DD6030 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Try opening a command prompt and seeing what works to get you that list. T= hen copy and paste into your SQR $COMMAND variable. ________________________________ From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org on behalf of Kaz.Na= rayanan@averydennison.com Sent: Wed 8/29/2007 12:54 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Bob, Instead of I: Drive, I try using H: Drive, which is recognizable to all my SQR programs. $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c DIR/B H:\TEMP\av1377ds* > H:\TEMP\KMDIPLIST.txt' CALL SYSTEM USING $COMMAND #call_status wait I still get nothing. The #call_status value is 3. I see in our forum that the value need to be more than 10. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/29/2007 06:38 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." cc: Subject: RE: [sqr-users] How to select multiple files for processing Is "I:" defined on the machine that is actually running the process? Just because you have an I: directory, doesn't mean the Production server calls it the same thing. Try the full path. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Tuesday, August 28, 2007 7:00 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Hello , Thanks for your feedback. I am using the following, Still the program is not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe/c DIR H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt' CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: , cc: Subject: RE: [sqr-users] How to select multiple files for processing With option \b \o the following will display the file names in bare format and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com > A : "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Copie =E0 : "This list is for discussion about the SQR database reporting language from Hyperion Solutions." , sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. > > What should I do if the files are in my Windows server? > > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell > > > > > "Bob Stone" > Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database > reporting language from Hyperion Solutions." > > To: "This list is for discussion about the SQR database > reporting language from Hyperion Solutions." > cc: > Subject: RE: [sqr-users] How to select multiple files for > processing > > > Use UNIX to create your list of files, and then loop through it opening > each one at a time. > > LET $cmd =3D ' LS BANKREC_* > mylist.txt ' > > CALL SYSTEM USING $cmd > > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 > > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. > > > > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] How to select multiple files for processing > > Hello, > > I have multiple files in the following format in our Unix directory.. > > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. > > I want the SQR to pick each file, open it , read and perform some > actions. > > If it is single file, I can use Open 1 as...... > > How to open these multiple files? > > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 _______________________________________________ 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 wh= ich it is addressed and may contain confidential and/or privileged material= . Any review, retransmission, dissemination or other use of, or taking of a= ny action in reliance upon, this information by persons or entities other t= han the intended recipient is prohibited. If you received this in error, pl= ease 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 ------_=_NextPart_001_01C7EA6C.33DD6030 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C7EA6C.33DD6030 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C7EA6C.33DD6030-- From sqr-users-bounces@sqrug.org Wed Aug 29 14:53:48 2007 From: "Alexander, Steven" Subject: RE: [sqr-users] How to select multiple files for processing Date: Wed, 29 Aug 2007 11:50:24 -0700 Do you still get the bad status code if you omit the "redirect to file"? I seem to remember a weird problem in using the ">" character in $command. We might have solved it by writing Let $command = 'blah blah blah ' || '>' ! separate line || ' blah blah' -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Wednesday, August 29, 2007 11:39 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Richard, The CMD window it works fine. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Knapp, Richard" Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org 08/29/2007 11:17 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] How to select multiple files for processing Try the command in a cmd window to debug the syntax. Richard Knapp EAS - Data Warehouse Group University of Missouri 615 Locust Street #200 Columbia, MO 65201 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 Kaz.Narayanan@averydennison.com Sent: Wednesday, August 29, 2007 12:55 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Bob, Instead of I: Drive, I try using H: Drive, which is recognizable to all my SQR programs. $COMMAND = 'C:\WINDOWS\system32\cmd.exe /c DIR/B H:\TEMP\av1377ds* > H:\TEMP\KMDIPLIST.txt' CALL SYSTEM USING $COMMAND #call_status wait I still get nothing. The #call_status value is 3. I see in our forum that the value need to be more than 10. Thanks Regards K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Bob Stone" Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org 08/29/2007 06:38 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." cc: Subject: RE: [sqr-users] How to select multiple files for processing Is "I:" defined on the machine that is actually running the process? Just because you have an I: directory, doesn't mean the Production server calls it the same thing. Try the full path. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Kaz.Narayanan@averydennison.com Sent: Tuesday, August 28, 2007 7:00 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] How to select multiple files for processing Hello , Thanks for your feedback. I am using the following, Still the program is not writing the txt file in I:\AR\ directory. Am I making any mistakes? Thanks Regards Th LET $COMMAND = 'C:\WINDOWS\system32\cmd.exe/c DIR H:\TRANSHIPMENT\RIP\bankrec_* > I:\AR\bankrec.txt' CALL SYSTEM USING $COMMAND #call_status wait K.M.Narayanan AVERY DENNISON Corporate IT & Services (702) 968-5727 - Work (702) 332-7118 - Cell "Tai Luong" Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org 08/28/2007 10:04 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: , cc: Subject: RE: [sqr-users] How to select multiple files for processing With option \b \o the following will display the file names in bare format and sorted, one per line: DIR ' D:\DATA\BANKDATA\BANKREC_*.TXT /B /O >BANKLIST.TXT' Use the dos command 'dir /?' for more info. Tai Luong. >>> franck.masson2002@laposte.net 08/28/07 7:51 AM >>> You do the same, replace "ls" by "dir" ' dir BANKREC_* > mylist.txt ' > Message du 28/08/07 00:39 > De : Kaz.Narayanan@averydennison.com > A : "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Copie à : "This list is for discussion about the SQR database reporting language from Hyperion Solutions." , sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org > Objet : RE: [sqr-users] How to select multiple files for processing > > Thanks Bob For quick reply. > > What should I do if the files are in my Windows server? > > Thanks > Regards > K.M.Narayanan > AVERY DENNISON > Corporate IT & Services > (702) 968-5727 - Work > (702) 332-7118 - Cell > > > > > "Bob Stone" > Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org > 08/27/2007 03:25 PM > Please respond to "This list is for discussion about the SQR database > reporting language from Hyperion Solutions." > > To: "This list is for discussion about the SQR database > reporting language from Hyperion Solutions." > cc: > Subject: RE: [sqr-users] How to select multiple files for > processing > > > Use UNIX to create your list of files, and then loop through it opening > each one at a time. > > LET $cmd = ' LS BANKREC_* > mylist.txt ' > > CALL SYSTEM USING $cmd > > OPEN mylist.txt as 1 > LOOP 1 > READ $line into $filename > OPEN $filename as 2 > do process-this-file (include moving it to a 'complete' > directory?) > CLOSE 2 > END-LOOP > CLOSE 1 > > Does that make sense? You make a file that lists which files you're > going to process on, then you open each of those files as you loop > through your list, processing however you need to. The unix command > might be >> instead of >...I forget which appends and which overwrites. > You'll want to check the syntax. > > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of > Kaz.Narayanan@averydennison.com > Sent: Monday, August 27, 2007 5:12 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] How to select multiple files for processing > > Hello, > > I have multiple files in the following format in our Unix directory.. > > BANKREC_XXXXXXXX.TXT > where XXXXXX is the date time stamp. > > I want the SQR to pick each file, open it , read and perform some > actions. > > If it is single file, I can use Open 1 as...... > > How to open these multiple files? > > An earlier reply would be highly appreciated. > Thanks > Regards > K.M.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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 01:26:55 2007 Date: Wed, 29 Aug 2007 22:24:03 -0700 (PDT) From: Subject: [sqr-users] Running SQR Hi All, I have a SQR file.How to run it and get the output? Regards, Priscilla. --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 07:31:40 2007 From: "Steve Cavill" Subject: RE: [sqr-users] Running SQR Date: Thu, 30 Aug 2007 21:28:19 +1000 You need to run sqr.exe from a prompt. The command line syntax, is in the sqr manual which you can find at dev.hyperion.com Sqr.exe is a ,licensed product so I assume you know you need to purchase and install it. 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 prisci_arun@yahoo.com Sent: Thursday, 30 August 2007 3:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] Running SQR Hi All, I have a SQR file.How to run it and get the output? Regards, Priscilla. --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 10:04:15 2007 Date: Thu, 30 Aug 2007 10:01:39 -0400 From: "R. Neal Patterson" Subject: [sqr-users] Call System to execute.bat file I'm interested in using CALL SYSTEM to run a .bat file from SQR. I was able to make the following work based on the the coding suggested earlier by K.M.Narayanan: LET $COMMAND = 'C:\WINDOWS\system32\cmd.exe /c DIR *.* > MyDirResults.txt' CALL SYSTEM USING $COMMAND #call_status wait However, the #call_status returns value 1 when I try the following (and the commands within MyBatFile.bat are not executed): LET $COMMAND = 'C:\WINDOWS\system32\cmd.exe /c MyBatFile.bat' CALL SYSTEM USING $COMMAND #call_status wait How can I get the above to work? Where can I find a list of the status code values and their meanings? Thanks, -Neal ------------------------------------------------------------------- Neal Patterson, Sr. Programmer/Analyst College Relations Operations and Analysis, Colby College 4336 Mayflower Hill, Waterville, ME 04901-8843 Phone: (207)859-4336 E-mail: rnpatter@colby.edu ------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 10:44:28 2007 Date: Thu, 30 Aug 2007 10:42:08 -0400 From: "Don Mellen" Subject: Re: [sqr-users] Call System to execute.bat file If you use "CALL SYSTEM" then the status returned is from the "SYSTEM" you are "CALL"ing. So in your case, it's a windows/dos status On 8/30/07, R. Neal Patterson wrote: > > I'm interested in using CALL SYSTEM to run a .bat file from SQR. > > I was able to make the following work based on the the coding > suggested earlier by K.M.Narayanan: > > LET $COMMAND = 'C:\WINDOWS\system32\cmd.exe /c DIR *.* > MyDirResults.txt' > CALL SYSTEM USING $COMMAND #call_status wait > > However, the #call_status returns value 1 when I try the following > (and the commands within MyBatFile.bat are not executed): > > LET $COMMAND = 'C:\WINDOWS\system32\cmd.exe /c MyBatFile.bat' > CALL SYSTEM USING $COMMAND #call_status wait > > How can I get the above to work? Where can I find a list of the > status code values and their meanings? > > Thanks, > -Neal > > ------------------------------------------------------------------- > Neal Patterson, Sr. Programmer/Analyst > College Relations Operations and Analysis, Colby College > 4336 Mayflower Hill, Waterville, ME 04901-8843 > Phone: (207)859-4336 E-mail: rnpatter@colby.edu > ------------------------------------------------------------------- > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 10:56:16 2007 Subject: RE: [sqr-users] Call System to execute.bat file Date: Thu, 30 Aug 2007 09:53:49 -0500 From: "Knapp, Richard" I've run batch files without invoking the command interpreter. Just put the full path into your call system command. Richard Knapp EAS - Data Warehouse Group University of Missouri 615 Locust Street #200 Columbia, MO 65201 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 Don Mellen Sent: Thursday, August 30, 2007 9:42 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Call System to execute.bat file If you use "CALL SYSTEM" then the status returned is from the "SYSTEM" you are "CALL"ing. So in your case, it's a windows/dos status On 8/30/07, R. Neal Patterson wrote: > > I'm interested in using CALL SYSTEM to run a .bat file from SQR. > > I was able to make the following work based on the the coding > suggested earlier by K.M.Narayanan: > > LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c DIR *.* > MyDirResults.txt' > CALL SYSTEM USING $COMMAND #call_status wait > > However, the #call_status returns value 1 when I try the following > (and the commands within MyBatFile.bat are not executed): > > LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c MyBatFile.bat' > CALL SYSTEM USING $COMMAND #call_status wait > > How can I get the above to work? Where can I find a list of the > status code values and their meanings? > > Thanks, > -Neal > > ------------------------------------------------------------------- > Neal Patterson, Sr. Programmer/Analyst > College Relations Operations and Analysis, Colby College > 4336 Mayflower Hill, Waterville, ME 04901-8843 > Phone: (207)859-4336 E-mail: rnpatter@colby.edu > ------------------------------------------------------------------- > > _______________________________________________ > 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 12:49:43 2007 Date: Thu, 30 Aug 2007 12:46:47 -0400 From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" Subject: [sqr-users] Reading xls Hi , =20 I have a xls spreadsheet. I would like to read the xls from SQR. I kno= w text files can be read but am not sure on xls. How do i achieve this? =20 Thanks in Advance Bob _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 13:10:02 2007 From: "the dragon" Subject: RE: [sqr-users] Reading xls Date: Thu, 30 Aug 2007 12:06:52 -0500 By saving it as a delimited 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Hi , I have a xls spreadsheet. I would like to read the xls from SQR. I know text files can be read but am not sure on xls. How do i achieve this? Thanks in Advance Bob _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Booking a flight? Know when to buy with airfare predictions on MSN Travel. http://travel.msn.com/Articles/aboutfarecast.aspx&ocid=T001MSN25A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 30 15:52:04 2007 From: franck.masson2002@laposte.net Subject: Re:[sqr-users] Call System to execute.bat file Date: Thu, 30 Aug 2007 21:49:12 +0200 (CEST) as you are using this command LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c MyBatFile.bat' windows do not know where to find MyBatFile.bat exept if you have modified = your PATH variable to include the directory of this file. you should specify the full path of your bat file=20 franck, > Message du 30/08/07 16:04 > De : "R. Neal Patterson"=20 > A : sqr-users@sqrug.org > Copie =C3=A0 :=20 > Objet : [sqr-users] Call System to execute.bat file > > I'm interested in using CALL SYSTEM to run a .bat file from SQR. >=20 > I was able to make the following work based on the the coding=20 > suggested earlier by K.M.Narayanan: >=20 > LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c DIR *.* > MyDirResults.t= xt' > CALL SYSTEM USING $COMMAND #call_status wait >=20 > However, the #call_status returns value 1 when I try the following=20 > (and the commands within MyBatFile.bat are not executed): >=20 > LET $COMMAND =3D 'C:\WINDOWS\system32\cmd.exe /c MyBatFile.bat' > CALL SYSTEM USING $COMMAND #call_status wait >=20 > How can I get the above to work? Where can I find a list of the=20 > status code values and their meanings? >=20 > Thanks, > -Neal >=20 > ------------------------------------------------------------------- > Neal Patterson, Sr. Programmer/Analyst > College Relations Operations and Analysis, Colby College > 4336 Mayflower Hill, Waterville, ME 04901-8843 > Phone: (207)859-4336 E-mail: rnpatter@colby.edu > -------------------------------------------------------------------=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 31 03:00:49 2007 Date: Fri, 31 Aug 2007 12:30:34 +0530 From: "Harvinder Singh Narang" Subject: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set Hi=20 =20 I am running a following query=20 =20 SELECT DISTINCT AL1.SUB_ACCT_NO_WOC,AL1.LS_CHG_DTE_WOC FROM=20 WOC_BASE_COMP AL1, WOS_SERV_CODE AL2 WHERE AL1.SYS_WOC=3DAL2.SYS_WOS AND=20 AL2.SERV_NET_CHG_WOS=3D1 AND=20 AL2.SERV_CDE_WOS=3D'RT' AND=20 AL1.LS_CHG_DTE_WOC between sysdate-8 and sysdate-2; =20 =20 Through SQR which is Giving the following error=20 [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set My SQR Version is 8.3 My Oracle version is 9.2 I am using ODBC Driver version 5.75.1117.00 for connecting to Oracle. =20 Can any one provide me a solution for this? =20 =20 Regards, Harvinder Singh Narang Xavient Information Systems C-124, Hosiery Complex Phase - II, Noida Tel. +91-120 436 2500 Extn. XXX Fax +91-120 2461970 Mobile 9899328393 Visit us: www.xavient.com E-mail: hsnarang@xavient.com =20 =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 This communication & accompanying documents ("this e-mail") contains confidential and/or privileged information for exclusive use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify the company & delete this e-mail. Any unauthorized use or disclosure of this e-mail is strictly prohibited. Representations in this e-mail are subject to contract. As an e-mail user please be cautious of the technical & other vulnerabilities of the internet which may result in malicious and/or unauthorized access to / use / alteration of e-mails/e-mail IDs. Thank you.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 31 05:12:48 2007 From: "Peter Burton" Subject: RE: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set Date: Fri, 31 Aug 2007 05:07:37 -0400 Harvinder, Yes ... Use the ODBC drivers supplied with the SQR product rather than the = Micosoft Oracle ODBC driver. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-use= rs-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Harvinder Sing= h Narang Sent: Friday, August 31, 2007 3:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannot use Keyset-d= riven cursor on join, with distinct clause, union, intersect or minus or on= read only result set Hi=20 =20 I am running a following query=20 =20 SELECT DISTINCT AL1.SUB_ACCT_NO_WOC,AL1.LS_CHG_DTE_WOC FROM=20 WOC_BASE_COMP AL1, WOS_SERV_CODE AL2 WHERE AL1.SYS_WOC=3DAL2.SYS_WOS AND=20 AL2.SERV_NET_CHG_WOS=3D1 AND=20 AL2.SERV_CDE_WOS=3D'RT' AND=20 AL1.LS_CHG_DTE_WOC between sysdate-8 and sysdate-2; =20 =20 Through SQR which is Giving the following error=20 [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set My SQR Version is 8.3 My Oracle version is 9.2 I am using ODBC Driver version 5.75.1117.00 for connecting to Oracle. =20 Can any one provide me a solution for this? =20 =20 Regards, Harvinder Singh Narang Xavient Information Systems C-124, Hosiery Complex Phase - II, Noida Tel. +91-120 436 2500 Extn. XXX Fax +91-120 2461970 Mobile 9899328393 Visit us: www.xavient.com E-mail: hsnarang@xavient.com =20 =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 This communication & accompanying documents ("this e-mail") contains confidential and/or privileged information for exclusive use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify the company & delete this e-mail. Any unauthorized use or disclosure of this e-mail is strictly prohibited. Representations in this e-mail are subject to contract. As an e-mail user please be cautious of the technical & other vulnerabilities of the internet which may result in malicious and/or unauthorized access to / use / alteration of e-mails/e-mail IDs. Thank you.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 31 07:44:41 2007 Subject: RE: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannotuse Keyset-driven cursor on join, with distinct clause, union, intersector minus or on read only result set Date: Fri, 31 Aug 2007 17:13:19 +0530 From: "Harvinder Singh Narang" Hi Peter=20 =20 As per your suggestion I have changed the driver now it did not given that error, but giving another error in one more query which was running properly with normal ODBC driver. =20 That query is following Begin-select on-error=3Dwrite_Error CSG_OP_ID &CSG_OP_ID, to_char(HIRE_DATE,'yyyy-mm-dd') &HIRE_DATE, to_char(TERM_DATE,'yyyy-mm-dd') &TERM_DATE, LOCATION_NAME &LOCATION_NAME write 1 from &CSG_OP_ID '|' &HIRE_DATE '|' &TERM_DATE '|' &LOCATION_NAME '|' from xxhr_employee_details=20 where (csc_department =3D 'Y' or csc_department =3D 'P') and csg_op_id is not null and rownum <51=20 End-select =20 In this query I am reading from a table and writing into a flat file. I am selecting from the following table CREATE TABLE XXHR_EMPLOYEE_DETAILS_HS ( CSG_OP_ID VARCHAR2(30) NOT NULL, HIRE_DATE DATE, TERM_DATE DATE, LOCATION_NAME VARCHAR2(60)) =20 In data I have null value in TERM_DATE column in 2 records for which as per my understanding it is giving following=20 Error -->[DataDirect][ODBC Oracle Wire Protocol driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter 3. And for remaining records it is giving the following error [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. While nobody changed the data type for parameter 4 which is " iLOCATION_NAME".Its structure is same as earlier =20 If I mark the comment in comment for the following line as !write 1 from &CSG_OP_ID '|' &HIRE_DATE '|' &TERM_DATE '|' &LOCATION_NAME '|' Then it does not give any error .But I have to write it in the text file Please provide some solution for this problem =20 =20 =20 Following are the collective errors for the above query =20 =20 =20 [DataDirect][ODBC Oracle Wire Protocol driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter 3. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter 3. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. =20 =20 Regards, Harvinder Singh Narang =20 Xavient Information Systems =20 C-124, Hosiery Complex =20 Phase - II, Noida =20 Tel. +91-120 436 2500 Extn. XXX =20 Fax +91-120 2461970 =20 Mobile 9899328393 =20 Visit us: www.xavient.com =20 E-mail: hsnarang@xavient.com =20 =20 =20 =20 =20 =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 This communication & accompanying documents ("this e-mail") contains confidential and/or privileged information for exclusive use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify the company & delete this e-mail. Any unauthorized use or disclosure of this e-mail is strictly prohibited. Representations in this e-mail are subject to contract. As an e-mail user please be cautious of the technical & other vulnerabilities of the internet which may result in malicious and/or unauthorized access to / use / alteration of e-mails/e-mail IDs. Thank you.=20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 =20 =20 -----Original Message----- From: sqr-users-bounces+hsnarang=3Dxavient.com@sqrug.org [mailto:sqr-users-bounces+hsnarang=3Dxavient.com@sqrug.org] On Behalf Of Peter Burton Sent: Friday, August 31, 2007 2:38 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannotuse Keyset-driven cursor on join, with distinct clause, union, intersector minus or on read only result set =20 Harvinder, =20 Yes ... Use the ODBC drivers supplied with the SQR product rather than the Micosoft Oracle ODBC driver. =20 Peter =20 -----Original Message----- From: sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=3Doracle.com@sqrug.org] On Behalf Of Harvinder Singh Narang Sent: Friday, August 31, 2007 3:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set =20 Hi=20 =20 =20 =20 I am running a following query=20 =20 =20 =20 SELECT DISTINCT AL1.SUB_ACCT_NO_WOC,AL1.LS_CHG_DTE_WOC FROM=20 =20 WOC_BASE_COMP AL1, WOS_SERV_CODE AL2 =20 WHERE AL1.SYS_WOC=3DAL2.SYS_WOS AND=20 =20 AL2.SERV_NET_CHG_WOS=3D1 AND=20 =20 AL2.SERV_CDE_WOS=3D'RT' AND=20 =20 AL1.LS_CHG_DTE_WOC between sysdate-8 and sysdate-2; =20 =20 =20 =20 =20 Through SQR which is Giving the following error=20 =20 [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set =20 My SQR Version is 8.3 =20 My Oracle version is 9.2 =20 I am using ODBC Driver version 5.75.1117.00 for connecting to Oracle. =20 =20 =20 Can any one provide me a solution for this? =20 =20 =20 =20 =20 Regards, =20 Harvinder Singh Narang =20 Xavient Information Systems =20 C-124, Hosiery Complex =20 Phase - II, Noida =20 Tel. +91-120 436 2500 Extn. XXX =20 Fax +91-120 2461970 =20 Mobile 9899328393 =20 Visit us: www.xavient.com =20 E-mail: hsnarang@xavient.com =20 =20 =20 =20 =20 =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 This communication & accompanying documents ("this e-mail") contains confidential and/or privileged information for exclusive use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify the company & delete this e-mail. Any unauthorized use or disclosure of this e-mail is strictly prohibited. Representations in this e-mail are subject to contract. As an e-mail user please be cautious of the technical & other vulnerabilities of the internet which may result in malicious and/or unauthorized access to / use / alteration of e-mails/e-mail IDs. Thank you.=20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=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 =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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 31 09:36:09 2007 Subject: Re: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set From: don.barclay@srs.gov Date: Fri, 31 Aug 2007 09:34:03 -0400 Hi Harvinder, The SQL looks good. However, you need to remove the word "SELECT" and place within a begin-select procedure per SQR standards. Don > Hi > > > > I am running a following query > > > > SELECT DISTINCT AL1.SUB_ACCT_NO_WOC,AL1.LS_CHG_DTE_WOC FROM > > WOC_BASE_COMP AL1, WOS_SERV_CODE AL2 > > WHERE AL1.SYS_WOC=AL2.SYS_WOS AND > > AL2.SERV_NET_CHG_WOS=1 AND > > AL2.SERV_CDE_WOS='RT' AND > > AL1.LS_CHG_DTE_WOC between sysdate-8 and sysdate-2; > > > > > > Through SQR which is Giving the following error > > [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on > join, with distinct clause, union, intersect or minus or on read only > result set > > My SQR Version is 8.3 > > My Oracle version is 9.2 > > I am using ODBC Driver version 5.75.1117.00 for connecting to Oracle. > > > > Can any one provide me a solution for this? > > > > > > Regards, > > Harvinder Singh Narang _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 31 10:04:47 2007 From: "the dragon" Subject: RE: [sqr-users] [Microsoft][ODBC driver forOracle]Cannotuse Keyset-driven cursor on join, with distinct clause, union, intersector minus or on read only result set Date: Fri, 31 Aug 2007 09:00:14 -0500 Ok, a couple of things... here is how I'd write the code you have, just for testing... DISCLAIMER... I've been doing Admin work for almost 7 years exclusively, so my sqr coding is a little rusty - you may need to massage this a little. Begin-select on-error=write_Error CSG_OP_ID &CSG_OP_ID to_char(HIRE_DATE,'yyyy-mm-dd') &HIRE_DATE to_char(TERM_DATE,'yyyy-mm-dd') &TERM_DATE LOCATION_NAME &LOCATION_NAME let $CSG_OP_ID = rtrim(ltrim(&CSG_OP_ID, ' '), ' ') let $HIRE_DATE = &HIRE_DATE let $TERM_DATE = &TERM_DATE let $LOCATION_NAME = rtrim(ltrim(&LOCATION_NAME, ' '), ' ') #ifdef debuga do show_variables #end-if do write_file from xxhr_employee_details where csc_department in ('Y', 'P') #ifdef debuga and rownum <51 #end-if End-select begin-procedure show_variables let $HIRE_DATE_DISP = edit($HIRE_DATE, 'yyyy-mm-dd') let $TERM_DATE_DISP = edit($TERM_DATE, 'yyyy-mm-dd') show 'Operator ID = |' || $CSG_OP_ID || '|' show 'Hire Date = |' || $HIRE_DATE_DISP || '|' show 'Term Date = |' || $TERM DATE_DISP || '|' show 'Location = |' || $LOCATION_NAME || '|' end-procedure begin-procedure write_file write 1 from $CSG_OP_ID '|' $HIRE_DATE '|' $TERM_DATE '|' $LOCATION_NAME '|' end-procedure Run your code with debuga turned on!!! This should give you an idea of what is going on. PS, since CSG_OP_ID can never be null you don't need this "and csg_op_id is not null". Also, don't use commas after the print variable designation. Sorry, at work, and can't play with this any more. 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- Hi Peter As per your suggestion I have changed the driver now it did not given that error, but giving another error in one more query which was running properly with normal ODBC driver. That query is following Begin-select on-error=write_Error CSG_OP_ID &CSG_OP_ID, to_char(HIRE_DATE,'yyyy-mm-dd') &HIRE_DATE, to_char(TERM_DATE,'yyyy-mm-dd') &TERM_DATE, LOCATION_NAME &LOCATION_NAME write 1 from &CSG_OP_ID '|' &HIRE_DATE '|' &TERM_DATE '|' &LOCATION_NAME '|' from xxhr_employee_details where (csc_department = 'Y' or csc_department = 'P') and csg_op_id is not null and rownum <51 End-select In this query I am reading from a table and writing into a flat file. I am selecting from the following table CREATE TABLE XXHR_EMPLOYEE_DETAILS_HS ( CSG_OP_ID VARCHAR2(30) NOT NULL, HIRE_DATE DATE, TERM_DATE DATE, LOCATION_NAME VARCHAR2(60)) In data I have null value in TERM_DATE column in 2 records for which as per my understanding it is giving following Error -->[DataDirect][ODBC Oracle Wire Protocol driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter 3. And for remaining records it is giving the following error [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. While nobody changed the data type for parameter 4 which is " iLOCATION_NAME".Its structure is same as earlier If I mark the comment in comment for the following line as !write 1 from &CSG_OP_ID '|' &HIRE_DATE '|' &TERM_DATE '|' &LOCATION_NAME '|' Then it does not give any error .But I have to write it in the text file Please provide some solution for this problem Following are the collective errors for the above query [DataDirect][ODBC Oracle Wire Protocol driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter 3. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter 3. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. [DataDirect][ODBC Oracle Wire Protocol driver]Data type for parameter 4 has changed since first SQLExecute call. Regards, Harvinder Singh Narang Xavient Information Systems C-124, Hosiery Complex Phase - II, Noida Tel. +91-120 436 2500 Extn. XXX Fax +91-120 2461970 Mobile 9899328393 Visit us: www.xavient.com E-mail: hsnarang@xavient.com ======================================================================== ================================== This communication & accompanying documents ("this e-mail") contains confidential and/or privileged information for exclusive use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify the company & delete this e-mail. Any unauthorized use or disclosure of this e-mail is strictly prohibited. Representations in this e-mail are subject to contract. As an e-mail user please be cautious of the technical & other vulnerabilities of the internet which may result in malicious and/or unauthorized access to / use / alteration of e-mails/e-mail IDs. Thank you. ======================================================================== ================================== -----Original Message----- From: sqr-users-bounces+hsnarang=xavient.com@sqrug.org [mailto:sqr-users-bounces+hsnarang=xavient.com@sqrug.org] On Behalf Of Peter Burton Sent: Friday, August 31, 2007 2:38 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannotuse Keyset-driven cursor on join, with distinct clause, union, intersector minus or on read only result set Harvinder, Yes ... Use the ODBC drivers supplied with the SQR product rather than the Micosoft Oracle ODBC driver. Peter -----Original Message----- From: sqr-users-bounces+peter.burton=oracle.com@sqrug.org [mailto:sqr-users-bounces+peter.burton=oracle.com@sqrug.org] On Behalf Of Harvinder Singh Narang Sent: Friday, August 31, 2007 3:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set Hi I am running a following query SELECT DISTINCT AL1.SUB_ACCT_NO_WOC,AL1.LS_CHG_DTE_WOC FROM WOC_BASE_COMP AL1, WOS_SERV_CODE AL2 WHERE AL1.SYS_WOC=AL2.SYS_WOS AND AL2.SERV_NET_CHG_WOS=1 AND AL2.SERV_CDE_WOS='RT' AND AL1.LS_CHG_DTE_WOC between sysdate-8 and sysdate-2; Through SQR which is Giving the following error [Microsoft][ODBC driver for Oracle]Cannot use Keyset-driven cursor on join, with distinct clause, union, intersect or minus or on read only result set My SQR Version is 8.3 My Oracle version is 9.2 I am using ODBC Driver version 5.75.1117.00 for connecting to Oracle. Can any one provide me a solution for this? Regards, Harvinder Singh Narang Xavient Information Systems C-124, Hosiery Complex Phase - II, Noida Tel. +91-120 436 2500 Extn. XXX Fax +91-120 2461970 Mobile 9899328393 Visit us: www.xavient.com E-mail: hsnarang@xavient.com ======================================================================== ================================== This communication & accompanying documents ("this e-mail") contains confidential and/or privileged information for exclusive use of the individual to whom it is addressed. If you are not the intended recipient, please immediately notify the company & delete this e-mail. Any unauthorized use or disclosure of this e-mail is strictly prohibited. Representations in this e-mail are subject to contract. As an e-mail user please be cautious of the technical & other vulnerabilities of the internet which may result in malicious and/or unauthorized access to / use / alteration of e-mails/e-mail IDs. 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Learn.Laugh.Share. Reallivemoms is right place! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 04 16:41:38 2007 Date: Tue, 4 Sep 2007 16:38:39 -0400 From: "Kumar, Ajith" Subject: [sqr-users] (SQR 3601) Out of substitution or #DEFINE variables; use -Mfile to increase SUBVARS. Hi all, I could see the following error when I am trying to execute a Brio Report in windows environment. I could see repeated error lines of the same type. I also tried to increase the SUBVARS size but it gives the same error. Please help me out if anyone as come across with the same issue. Database - Sybase Brio v 6.2 Thanks in advance Kumar The information contained in this communication is highly confidential and = is intended solely for the use of the individual(s) to whom this communicat= ion is directed. If you are not the intended recipient, you are hereby noti= fied that any viewing, copying, disclosure or distribution of this informat= ion is prohibited. Please notify the sender, by electronic mail or telephon= e, of any unintended receipt and delete the original message without making= any copies. =20 Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are no= nprofit corporations and independent licensees of the Blue Cross and Blue S= hield Association. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 06 15:42:03 2007 From: "Jean Myles" Subject: RE: [sqr-users] Comparing/Difference of Two Payroll Summaries Date: Thu, 6 Sep 2007 15:39:20 -0400 Thank you to all that responded! Below is the solution that worked best with credit to Bob Stone. Thanks Bob! Jean -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com] Sent: Tuesday, August 28, 2007 9:59 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Comparing/Difference of Two Payroll Summaries Maybe have an outer procedure that says something like this. Thus you know what earn codes are going to show up for either. And then the sub procedure does all the printing, earn-code by earn-code. BEGIN-SELECT DISTINCT EARN_CODE DO PRINT-PAYROLL-FOR-THIS-EARN_CODE($earncode) FROM table where payroll = $x UNION SELECT DISTINCT EARN_CODE FROM table where payroll = $y END-SELECT BEGIN-PROCEDURE PRINT-PAYROLL-FOR-THIS-EARN-CODE($earncode) let $exists = 'N' BEGIN-SELECT print_data let $exists = 'Y' FROM table where payroll = $x AND earn_code = $earncode END-SELECT IF $exists = 'N' PRINT 'DOES NOT EXIST IN ' $x ' CANNOT COMPARE DIFFERENCE' ELSE PRINT print-data (normal printed row). END-IF ...do same for payroll $y. END-PROCEDURE -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Jean Myles Sent: Tuesday, August 28, 2007 8:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Comparing/Difference of Two Payroll Summaries I have been asked to create a report that compares two consecutive payroll summaries for a specific pay year, pay id, and payroll run (all prompts) The final report would appear like the following: Payroll1 Payroll2 Pay ID Earn Code Total Pay ID Earn Code Total Difference RG ABC 1000.00 RG ABC 400.00 600.00 RG DEF 2000.00 RG DEF 1500.00 500.00 The issue is, both payrolls could have earn codes that do not exist in the other payroll. (Eg: Payroll 1 - GHI , 500.00 but does not exist in Payroll 2) RG GHI 500.00 DOES NOT EXIST IN THIS PAYROLL - CANNOT GET TO PRINT/DIFFERENCE I have stored the first payroll in a temp table and can select the common earn codes to the second payroll. How do I get the earn codes that are unique to each payroll to be listed as well? And is there a way to insert a zero if it does not exists so that it can be subtracted for a difference value? I thank you in advance for your assistance. Jean Myles jean_myles@fitnyc.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 06 18:25:00 2007 Date: Fri, 7 Sep 2007 03:50:22 +0530 From: Sanjay Sambhe Subject: [sqr-users] dynamic variable in sqr Hi , I am passing dynamic variable in sqr in begin-select. But I am getting error like Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER My code is : begin-select [$fieldname $s] from [$recname] [$wheresqlstr] end-select end-procedure Please advice. Thanks ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 06 20:12:16 2007 From: "Alexander, Steven" Subject: RE: [sqr-users] dynamic variable in sqr Date: Thu, 6 Sep 2007 17:09:36 -0700 The compiler is trying to validate your SQL and you've given it nothing. I don't know how the rest of the program is going to use database input if you don't even know the fieldname in advance. There is syntax for telling the compiler what table has a layout like $recname and what type of field is $fieldname. You could write: begin-select [$fieldname] &NAME=char from [$recname] end-select in other situations you could write: begin-select A.NAME from [$recname : PEOPLE_TBL] A end-select -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Thursday, September 06, 2007 3:20 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: [sqr-users] dynamic variable in sqr Hi , I am passing dynamic variable in sqr in begin-select. But I am getting error like Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER My code is : begin-select [$fieldname $s] from [$recname] [$wheresqlstr] end-select end-procedure Please advice. Thanks ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 07 00:45:26 2007 Date: Thu, 6 Sep 2007 21:42:36 -0700 (PDT) From: kuldeep vaidya Subject: [sqr-users] How To Unzip files using Sqr Hi, I am trying to unzip files using sqr. I have following code in my sqr #define UnZipCmd 'e:\program files\winzip\wzunzip -o' let $command = {UnZipCmd} let $parms = $ZipFile || ' ' || $PayFile let $commandline = $command || ' ' || $parms call system using $commandline #sstatus wait where $ZipFile is the path where my zip file is present and $PayFile is the path where I want to unzip the files. Is wzunzip is exe file which I need to unzip the file because I can not see this file in my winzip folder i.e in 'e:\program files\winzip' Please let me if you have any suggestions on it. Thanks a Lot Kuldeep --------------------------------- Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 07 10:43:07 2007 Date: Fri, 7 Sep 2007 20:10:46 +0530 From: "chandra reddy" Subject: Re: [sqr-users] How To Unzip files using Sqr Hi, let $Zip_Exe_Path = '\C$\Progra~1\WinZip\WINZIP32.EXE' let $syscmd = 'cmd /c "c:"' CALL SYSTEM USING $syscmd #stat WAIT let $syscmd = $Zip_Exe_Path||' -min -a -en "'||$Zipfilepath_Path||'.zip" "'||filetobezipped_path||'.dat"' CALL SYSTEM USING $syscmd #stat WAIT if #stat = 0 show 'Zip successful...' else let $Zip_Error = 'Error ' || to_char(#stat) || ' attempting Zip...' show $Zip_Error end-if ------------------- U can try this code On 9/7/07, kuldeep vaidya wrote: > > Hi, > I am trying to unzip files using sqr. I have following code in my sqr > > #define UnZipCmd 'e:\program files\winzip\wzunzip -o' > let $command = {UnZipCmd} > let $parms = $ZipFile || ' ' || $PayFile > let $commandline = $command || ' ' || $parms > call system using $commandline #sstatus wait > > where $ZipFile is the path where my zip file is present and $PayFile is > the path where I want to unzip the files. > > Is wzunzip is exe file which I need to unzip the file because I can not > see this file in my winzip folder i.e in 'e:\program files\winzip' > > Please let me if you have any suggestions on it. > > Thanks a Lot > Kuldeep > > > --------------------------------- > Ready for the edge of your seat? Check out tonight's top picks on Yahoo! > TV. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 07 15:14:22 2007 Date: Fri, 7 Sep 2007 15:12:08 -0400 From: "Schelske, Steve K." Subject: [sqr-users] Odd SQR Behavior - Return code 256 We are running SQRs on a Windows server via Perl scripts against an Oracle 10g RAC database on Linux. =20 I am coming across a very odd situation with various SQR programs. Here is what happens. =20 A program will run that has run successfully many times an it will fail with the following error =20 (SQR 5528) ORACLE OCIStmtExecute error 1861 in cursor 7: ORA-01861: literal does not match format string=20 =20 In this case Cursor 7 is Cursor #7: SQL =3D Insert INTO PS_A_EARN_TOT_TBL (ERNCD, A_EARNS_TOTAL, A_HRS_TOTAL, DESCR) Select AA.ERNCD, 0, 0, AA.DESCR From PS_EARNINGS_TBL AA Where AA.EFFDT =3D (select MAX(AA1.EFFDT) From PS_EARNINGS_TBL AA1 Where AA.ERNCD =3D AA1.ERNCD And AA1.EFFDT <=3D :1)=20 =20 where :1 is a string variable containing the current date =20 Then without making any changes to the program or data, the program is restarted and runs successfully. =20 This seems to happen maybe 1 percent of the time and we have only seen it happen in our production environment. =20 Does anyone have any ideas what could be causing this? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 07 15:26:08 2007 Subject: RE: [sqr-users] Odd SQR Behavior - Return code 256 Date: Fri, 7 Sep 2007 14:23:22 -0500 From: "Bob Stone" Whenever I'm using a date that has to go to the Database I put a TO_DATE($my_var, 'formatstring') around the insert, and use the same format string for selecting from and inserting to. I know that we have 1 file load originating on Sculptor systems where instead of getting a date in the format '07-Sep-07' we get ' 7-Sep-07' - and Oracle and SQR don't like to assume things on date formats. We had to tell it that spaces were 0s, and then still edit mask on the insert. I'm not positive that all of that was necessary, but that's usually what it means for me when I get the ORA-01861. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Schelske, Steve K. Sent: Friday, September 07, 2007 2:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] Odd SQR Behavior - Return code 256 We are running SQRs on a Windows server via Perl scripts against an Oracle 10g RAC database on Linux. =20 I am coming across a very odd situation with various SQR programs. Here is what happens. =20 A program will run that has run successfully many times an it will fail with the following error =20 (SQR 5528) ORACLE OCIStmtExecute error 1861 in cursor 7: ORA-01861: literal does not match format string=20 =20 In this case Cursor 7 is Cursor #7: SQL =3D Insert INTO PS_A_EARN_TOT_TBL (ERNCD, A_EARNS_TOTAL, A_HRS_TOTAL, DESCR) Select AA.ERNCD, 0, 0, AA.DESCR From PS_EARNINGS_TBL AA Where AA.EFFDT =3D (select MAX(AA1.EFFDT) From PS_EARNINGS_TBL AA1 Where AA.ERNCD =3D AA1.ERNCD And AA1.EFFDT <=3D :1)=20 =20 where :1 is a string variable containing the current date =20 Then without making any changes to the program or data, the program is restarted and runs successfully. =20 This seems to happen maybe 1 percent of the time and we have only seen it happen in our production environment. =20 Does anyone have any ideas what could be causing this? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 07 16:12:32 2007 Date: Fri, 07 Sep 2007 16:09:41 -0400 From: "George Jansen" Subject: Re: [sqr-users] Odd SQR Behavior - Return code 256 Agreed with Bob Stone, almost certainly it is the client feeding a slightly= wrong date string. If you are simply providing the current date, then either Sysdate or, if you need just the day Trunc(Sysdate) will eliminate the nuisance of fooling around with To_Date NLS_DATE_FORMAT,= and all that. >>> "Schelske, Steve K." 9/7/2007 3:12 PM >>> We are running SQRs on a Windows server via Perl scripts against an Oracle 10g RAC database on Linux. =20 I am coming across a very odd situation with various SQR programs. Here is what happens. =20 A program will run that has run successfully many times an it will fail with the following error =20 (SQR 5528) ORACLE OCIStmtExecute error 1861 in cursor 7: ORA-01861: literal does not match format string=20 =20 In this case Cursor 7 is Cursor #7: SQL =3D Insert INTO PS_A_EARN_TOT_TBL (ERNCD, A_EARNS_TOTAL, A_HRS_TOTAL, DESCR) Select AA.ERNCD, 0, 0, AA.DESCR From PS_EARNINGS_TBL AA Where AA.EFFDT =3D (select MAX(AA1.EFFDT) From PS_EARNINGS_TBL AA1 Where AA.ERNCD =3D AA1.ERNCD And AA1.EFFDT <=3D :1)=20 =20 where :1 is a string variable containing the current date =20 Then without making any changes to the program or data, the program is restarted and runs successfully. =20 This seems to happen maybe 1 percent of the time and we have only seen it happen in our production environment. =20 Does anyone have any ideas what could be causing this? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Sep 08 09:48:46 2007 Subject: RE: [sqr-users] Odd SQR Behavior - Return code 256 Date: Sat, 8 Sep 2007 09:44:45 -0400 From: "Schelske, Steve K." This is a multi-part message in MIME format... ------_=_NextPart_001_01C7F21E.A18A97C8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I understand the potential issue with the date formatting, but any ideas wh= e the program might run successfully 20 times, then fail, then run 20 times= again without any changes to the program or data? =20 That is the problem I'm trying to get my hands around. ________________________________ From: sqr-users-bounces+skschelske=3Daaamichigan.com@sqrug.org on behalf of= George Jansen Sent: Fri 9/7/2007 4:09 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Odd SQR Behavior - Return code 256 Agreed with Bob Stone, almost certainly it is the client feeding a slightly= wrong date string. If you are simply providing the current date, then either Sysdate or, if you need just the day Trunc(Sysdate) will eliminate the nuisance of fooling around with To_Date NLS_DATE_FORMAT,= and all that. >>> "Schelske, Steve K." 9/7/2007 3:12 PM >>> We are running SQRs on a Windows server via Perl scripts against an Oracle 10g RAC database on Linux. I am coming across a very odd situation with various SQR programs. Here is what happens. A program will run that has run successfully many times an it will fail with the following error (SQR 5528) ORACLE OCIStmtExecute error 1861 in cursor 7: ORA-01861: literal does not match format string In this case Cursor 7 is Cursor #7: SQL =3D Insert INTO PS_A_EARN_TOT_TBL (ERNCD, A_EARNS_TOTAL, A_HRS_TOTAL, DESCR) Select AA.ERNCD, 0, 0, AA.DESCR From PS_EARNINGS_TBL AA Where AA.EFFDT =3D (select MAX(AA1.EFFDT) From PS_EARNINGS_TBL AA1 Where AA.ERNCD =3D AA1.ERNCD And AA1.EFFDT <=3D :1) where :1 is a string variable containing the current date Then without making any changes to the program or data, the program is restarted and runs successfully. This seems to happen maybe 1 percent of the time and we have only seen it happen in our production environment. Does anyone have any ideas what could be causing this? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C7F21E.A18A97C8 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C7F21E.A18A97C8 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C7F21E.A18A97C8-- From sqr-users-bounces@sqrug.org Sat Sep 08 16:07:11 2007 From: "the dragon" Subject: RE: [sqr-users] Odd SQR Behavior - Return code 256 Date: Sat, 08 Sep 2007 15:04:15 -0500 Given the symptoms you're describing the following are the only things that could be wrong: 1) Bad data - but, if you can rerun the same data through this isn't it. 2) Interrupt from the program to the database. should be a log somewhere. 3) table locking and your program loses on the contention. should be a log somewhere. see dba. 4) run out of temp/undo space. should be a log somewhere. see dba. 5) logwriter can't keep up. should be a log somewhere. see dba. I don't see any other ideas; check these out and let us know which it is. 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. I work to live; I don't live to work. "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) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because I notice it always coincides with their own desires." - Susan B. Anthony ----Original Message Follows---- I understand the potential issue with the date formatting, but any ideas whe the program might run successfully 20 times, then fail, then run 20 times again without any changes to the program or data? That is the problem I'm trying to get my hands around. ________________________________ Agreed with Bob Stone, almost certainly it is the client feeding a slightly wrong date string. If you are simply providing the current date, then either Sysdate or, if you need just the day Trunc(Sysdate) will eliminate the nuisance of fooling around with To_Date NLS_DATE_FORMAT, and all that. >>> "Schelske, Steve K." 9/7/2007 3:12 PM >>> We are running SQRs on a Windows server via Perl scripts against an Oracle 10g RAC database on Linux. I am coming across a very odd situation with various SQR programs. Here is what happens. A program will run that has run successfully many times an it will fail with the following error (SQR 5528) ORACLE OCIStmtExecute error 1861 in cursor 7: ORA-01861: literal does not match format string In this case Cursor 7 is Cursor #7: SQL = Insert INTO PS_A_EARN_TOT_TBL (ERNCD, A_EARNS_TOTAL, A_HRS_TOTAL, DESCR) Select AA.ERNCD, 0, 0, AA.DESCR From PS_EARNINGS_TBL AA Where AA.EFFDT = (select MAX(AA1.EFFDT) From PS_EARNINGS_TBL AA1 Where AA.ERNCD = AA1.ERNCD And AA1.EFFDT <= :1) where :1 is a string variable containing the current date Then without making any changes to the program or data, the program is restarted and runs successfully. This seems to happen maybe 1 percent of the time and we have only seen it happen in our production environment. Does anyone have any ideas what could be causing this? _________________________________________________________________ Get a FREE small business Web site and more from Microsoft® Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Sep 08 16:56:24 2007 Subject: RE: [sqr-users] Odd SQR Behavior - Return code 256 Date: Sat, 8 Sep 2007 16:53:50 -0400 From: "Larry Roux" I agree that the source data has either a date formatted not like the code = is expecting, or is sending a null. Another possibility is that the data is= getting out of synch (ie one character off) so the data being read into th= e variables is not being lined up as you would expect.=20=20 =20 In a case like this you could add a display statement in the error to show = the date field being used=20 =20 We had a case like this once, and it was foreign names with cedillas or acc= ents. Those are read as 2 characters and it pushed the position of the dat= a over 1 space - and thus it pushed all the other data elements over 1 spac= e - causing dates to be read wrong and the error you show. =20 =20 =20 =20 =20 =20 ________________________________ From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org on behalf of Schelske, St= eve K. Sent: Sat 9/8/2007 9:44 AM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Odd SQR Behavior - Return code 256 I understand the potential issue with the date formatting, but any ideas wh= e the program might run successfully 20 times, then fail, then run 20 times= again without any changes to the program or data? That is the problem I'm trying to get my hands around. ________________________________ From: sqr-users-bounces+skschelske=3Daaamichigan.com@sqrug.org on behalf of= George Jansen Sent: Fri 9/7/2007 4:09 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Odd SQR Behavior - Return code 256 Agreed with Bob Stone, almost certainly it is the client feeding a slightly= wrong date string. If you are simply providing the current date, then either Sysdate or, if you need just the day Trunc(Sysdate) will eliminate the nuisance of fooling around with To_Date NLS_DATE_FORMAT,= and all that. >>> "Schelske, Steve K." 9/7/2007 3:12 PM >>> We are running SQRs on a Windows server via Perl scripts against an Oracle 10g RAC database on Linux. I am coming across a very odd situation with various SQR programs. Here is what happens. A program will run that has run successfully many times an it will fail with the following error (SQR 5528) ORACLE OCIStmtExecute error 1861 in cursor 7: ORA-01861: literal does not match format string In this case Cursor 7 is Cursor #7: SQL =3D Insert INTO PS_A_EARN_TOT_TBL (ERNCD, A_EARNS_TOTAL, A_HRS_TOTAL, DESCR) Select AA.ERNCD, 0, 0, AA.DESCR From PS_EARNINGS_TBL AA Where AA.EFFDT =3D (select MAX(AA1.EFFDT) From PS_EARNINGS_TBL AA1 Where AA.ERNCD =3D AA1.ERNCD And AA1.EFFDT <=3D :1) where :1 is a string variable containing the current date Then without making any changes to the program or data, the program is restarted and runs successfully. This seems to happen maybe 1 percent of the time and we have only seen it happen in our production environment. Does anyone have any ideas what could be causing this? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 10 05:08:47 2007 Date: Mon, 10 Sep 2007 14:32:58 +0530 From: Sanjay Sambhe Subject: RE: [sqr-users] dynamic variable in sqr Thanks Steven, It is resolved... ss -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of Alexander, Steven Sent: Friday, September 07, 2007 5:40 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] dynamic variable in sqr The compiler is trying to validate your SQL and you've given it nothing. I don't know how the rest of the program is going to use database input if you don't even know the fieldname in advance. There is syntax for telling the compiler what table has a layout like $recname and what type of field is $fieldname. You could write: begin-select [$fieldname] &NAME=char from [$recname] end-select in other situations you could write: begin-select A.NAME from [$recname : PEOPLE_TBL] A end-select -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Thursday, September 06, 2007 3:20 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: [sqr-users] dynamic variable in sqr Hi , I am passing dynamic variable in sqr in begin-select. But I am getting error like Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER My code is : begin-select [$fieldname $s] from [$recname] [$wheresqlstr] end-select end-procedure Please advice. Thanks ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 10 08:43:36 2007 From: "Stevenson, Christine" Date: Mon, 10 Sep 2007 08:40:25 -0400 Subject: [sqr-users] RE: sqr-users Digest, Vol 43, Issue 6 -----Original Message----- From: sqr-users-request@sqrug.org [mailto:sqr-users-request@sqrug.org] Sent: Monday, September 10, 2007 6:03 AM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 43, Issue 6 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: dynamic variable in sqr (Sanjay Sambhe) ---------------------------------------------------------------------- Message: 1 Date: Mon, 10 Sep 2007 14:32:58 +0530 From: Sanjay Sambhe Subject: RE: [sqr-users] dynamic variable in sqr To: "'This list is for discussion about the SQR database reporting language from Hyperion Solutions.'" Message-ID: <5833.74221189415080.pent.cisco.com@MHS> Content-Type: text/plain; charset="us-ascii" Thanks Steven, It is resolved... ss -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of Alexander, Steven Sent: Friday, September 07, 2007 5:40 AM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] dynamic variable in sqr The compiler is trying to validate your SQL and you've given it nothing. I don't know how the rest of the program is going to use database input if you don't even know the fieldname in advance. There is syntax for telling the compiler what table has a layout like $recname and what type of field is $fieldname. You could write: begin-select [$fieldname] &NAME=char from [$recname] end-select in other situations you could write: begin-select A.NAME from [$recname : PEOPLE_TBL] A end-select -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Thursday, September 06, 2007 3:20 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: [sqr-users] dynamic variable in sqr Hi , I am passing dynamic variable in sqr in begin-select. But I am getting error like Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER My code is : begin-select [$fieldname $s] from [$recname] [$wheresqlstr] end-select end-procedure Please advice. Thanks ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 End of sqr-users Digest, Vol 43, Issue 6 **************************************** EMAIL DISCLAIMER Please Note: The information contained in this message may be privileged and confidential, protected from disclosure, and/or intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying or other dissemination of this communication is strictly prohibited. If you received this communication in error, please immediately reply to the sender, delete the message and destroy all copies of it. Thank You _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 10 14:44:02 2007 From: JOHN_HARRIS@qvc.com Date: Mon, 10 Sep 2007 14:40:41 -0400 Subject: [sqr-users] SQR Analyzer link This is a multi-part message in MIME format... --0__=0ABBF9C1DFF5D83E8f9e8a93df938690918c0ABBF9C1DFF5D83E Content-type: text/plain; charset=US-ASCII I was searching through some SQR links and found this link ( http://users.erols.com/sqrtools/tdsqr.htm) posted by Tony DeLia. Unfortunately, the link to d/l the actual program is no longer valid, try clicking on the dolphin. Does anyone have a copy of this program or know where I can get one Any questions, please call or email me Thank you. Regards, John (Embedded image moved to file: John Harris pic06617.jpg) Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. --0__=0ABBF9C1DFF5D83E8f9e8a93df938690918c0ABBF9C1DFF5D83E Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBF9C1DFF5D83E8f9e8a93df938690918c0ABBF9C1DFF5D83E 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 --0__=0ABBF9C1DFF5D83E8f9e8a93df938690918c0ABBF9C1DFF5D83E-- From sqr-users-bounces@sqrug.org Fri Sep 14 13:46:28 2007 Date: Fri, 14 Sep 2007 13:43:34 -0400 From: "Bahney, Barbara J." Subject: [sqr-users] Null characters on input file I am using a PeopleSoft delivered SQR to read in a file from our bank in order to do Check Reconciliation. The file contains null characters and when the SQR encounters the first null character it recognizes it as end-of-file and the remaining records on the file are bypassed. Does anyone have any suggestions on how I can get around this? Thanks.=20 Barbara J. Bahney University of Pittsburgh Medical Center Information Services Division Senior PeopleSoft Analyst (HRMS) Forbes Tower - Room 3025-9 Email: rusnakbj@msx.upmc.edu Phone: 412-647-3081 Fax: 412-647-4499 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 14 14:44:29 2007 Subject: RE: [sqr-users] Null characters on input file Date: Fri, 14 Sep 2007 13:42:14 -0500 From: "Knapp, Richard" Write a callable C routine to read the file? Richard Knapp EAS - Data Warehouse Group University of Missouri 615 Locust Street #200 Columbia, MO 65201 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 Bahney, Barbara J. Sent: Friday, September 14, 2007 12:44 PM To: sqr-users@sqrug.org Subject: [sqr-users] Null characters on input file I am using a PeopleSoft delivered SQR to read in a file from our bank in order to do Check Reconciliation. The file contains null characters and when the SQR encounters the first null character it recognizes it as end-of-file and the remaining records on the file are bypassed. Does anyone have any suggestions on how I can get around this? Thanks.=20 Barbara J. Bahney University of Pittsburgh Medical Center Information Services Division Senior PeopleSoft Analyst (HRMS) Forbes Tower - Room 3025-9 Email: rusnakbj@msx.upmc.edu Phone: 412-647-3081 Fax: 412-647-4499 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Sep 16 17:31:52 2007 Date: Sun, 16 Sep 2007 17:29:21 -0400 From: "..... ....." Subject: [sqr-users] URGENT!!!!!!!! Hi All, Iam new to SQR, Iam working on a task which iam unable to do please some one help me in this regard.. I have a shell script which calls some SQR's each sqr prints some letters now my task is to print the page numbers on each letter starting from first letter of first SQR to the last letter of last SQR in the format "page 1 of n,page 2 of n,........page n of n" where 'n' is the total number of letters printed by all SQR's. Thanks in advance. Thanks, srujan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Sep 16 21:48:24 2007 Date: Sun, 16 Sep 2007 18:45:36 -0700 (PDT) From: Shashidhar Rao A Subject: Re: [sqr-users] URGENT!!!!!!!! hi Srujan' u can use page-number variable to print the page number. begin-footing 1 page-number (1,37) ’Page ’ last-page () ’ of ’ ’.’ end-footing If you have 50 pages and you are on 10th page, it will appear as "Page 10 of 50" at the footer of the report. Regards shdhra "..... ....." wrote: Hi All, Iam new to SQR, Iam working on a task which iam unable to do please some one help me in this regard.. I have a shell script which calls some SQR's each sqr prints some letters now my task is to print the page numbers on each letter starting from first letter of first SQR to the last letter of last SQR in the format "page 1 of n,page 2 of n,........page n of n" where 'n' is the total number of letters printed by all SQR's. Thanks in advance. Thanks, srujan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Sep 16 22:19:12 2007 Date: Sun, 16 Sep 2007 22:17:01 -0400 From: "..... ....." Subject: Re: [sqr-users] URGENT!!!!!!!! hi shashidhar, Thank you for quick response, your answer works for a report printed by single SQR, but i have multiple SQR's ..let us say like I have 3 SQR's first SQR prints 5 pages, second SQR prints 4 pages and third SQR prints 1 page that is total of 10 pages (5+4+1=10) I have to get page numbers printed starting from first page of first SQR to last page of Last SQR ("page 1 of 10, page 2 of 10,.......page 10 of 10"). These SQR's are called by a single shell script. Thanks, srujan On 9/16/07, Shashidhar Rao A wrote: > hi Srujan' > u can use page-number variable to print the page number. > > begin-footing 1 > page-number (1,37) 'Page ' > last-page () ' of ' '.' > end-footing > > If you have 50 pages and you are on 10th page, it will appear as "Page 10 of 50" at the footer of the report. > > Regards > shdhra > > "..... ....." wrote: Hi All, > Iam new to SQR, Iam working on a task which iam unable to do please > some one help me in this regard.. > I have a shell script which calls some SQR's each sqr prints some > letters now my task is to print the page numbers on each letter > starting from first letter of first SQR to the last letter of last SQR > in the format "page 1 of n,page 2 of n,........page n of n" where 'n' > is the total number of letters printed by all SQR's. Thanks in > advance. > > Thanks, > srujan > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > --------------------------------- > Luggage? GPS? Comic books? > Check out fitting gifts for grads at Yahoo! Search. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 17 10:43:45 2007 Date: Mon, 17 Sep 2007 10:41:24 -0400 From: "Don Mellen" Subject: Re: [sqr-users] URGENT!!!!!!!! OK, just off the top of my head..... Since these outputs seem closely related, why have separate SQRs for them? Can it be done through a single SQR? If for some reason that's not possible, then the only thing I can think of off-hand would be to write an include file with 2 procedures. Something like... Get_Master_Page_Num Set_Master_Page_Num Get_Master_Page_Num would look for a file with a specific name (whatever you decide it should be, "My_master_page_no.txt" for this example ) and read the master page num from it and store that + 1 in a variable. If it can't find the file, it stores 1 into that variable Set_Master_Page_Num would write the current master page number to the same named file (overwriting it) Your programs should include this file, call Get_Master_Page_Num first, use this variable for the running count (updating it appropriately) and when done, call Set_Master_Page_Num (assuming something was printed). This will be keep your running count correct. Wherever you want the total, you'll need to print a distinct string that will never appear in the letters themselves or as part of the .spf file You don't say what kind of output your using, but the batch program should start by deleting My_master_page_no.txt, call the programs with the "-keep" flag and no "-printer" flag. This will produce .spf files. Then call either a new SQR that replaces your special string in the files with the value in My_master_page_no.txt, or use whatever OS specific tool you feel comfortable doing this with. The end of your batch file would be calling sqrp on each of the spf files with the appropriate printer flag for the output type you want (or your sqr programs could append a line onto a new batch file that will get called from the first one to do this, in case the sqr files don't always produce a letter). In summary: Try to do it in 1 SQR program. HTH, Don On 9/16/07, ..... ..... wrote: > > hi shashidhar, > Thank you for quick response, your answer works for a report printed > by single SQR, but i have multiple SQR's ..let us say like I have 3 > SQR's first SQR prints 5 pages, second SQR prints 4 pages and third > SQR prints 1 page that is total of 10 pages (5+4+1=10) I have to get > page numbers printed starting from first page of first SQR to last > page of Last SQR ("page 1 of 10, page 2 of 10,.......page 10 of 10"). > These SQR's are called by a single shell script. > Thanks, > srujan > > On 9/16/07, Shashidhar Rao A wrote: > > hi Srujan' > > u can use page-number variable to print the page number. > > > > begin-footing 1 > > page-number (1,37) 'Page ' > > last-page () ' of ' '.' > > end-footing > > > > If you have 50 pages and you are on 10th page, it will appear as "Page > 10 of 50" at the footer of the report. > > > > Regards > > shdhra > > > > "..... ....." wrote: Hi All, > > Iam new to SQR, Iam working on a task which iam unable to do please > > some one help me in this regard.. > > I have a shell script which calls some SQR's each sqr prints some > > letters now my task is to print the page numbers on each letter > > starting from first letter of first SQR to the last letter of last SQR > > in the format "page 1 of n,page 2 of n,........page n of n" where 'n' > > is the total number of letters printed by all SQR's. Thanks in > > advance. > > > > Thanks, > > srujan > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > --------------------------------- > > Luggage? GPS? Comic books? > > Check out fitting gifts for grads at Yahoo! Search. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 17 10:59:49 2007 Date: Mon, 17 Sep 2007 10:57:01 -0400 From: "Don Mellen" Subject: Re: [sqr-users] Null characters on input file There were some items in the archives about this. One was for fixed length records (reading the possible null position into a nemeric var) and the other suggested reading the file character by character (involves a little more "by hand" processing). You could check out those options. HTH, Don On 9/14/07, Bahney, Barbara J. wrote: > > I am using a PeopleSoft delivered SQR to read in a file from our bank in > order to do Check Reconciliation. The file contains null characters and > when the SQR encounters the first null character it recognizes it as > end-of-file and the remaining records on the file are bypassed. Does > anyone have any suggestions on how I can get around this? > > Thanks. > > > Barbara J. Bahney > University of Pittsburgh Medical Center > Information Services Division > Senior PeopleSoft Analyst (HRMS) > Forbes Tower - Room 3025-9 > > Email: rusnakbj@msx.upmc.edu > Phone: 412-647-3081 > Fax: 412-647-4499 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 17 14:13:34 2007 From: Ed Kelly Date: Mon, 17 Sep 2007 18:10:44 +0000 Subject: [sqr-users] URGENT!!!!!!!! There are basically two ways you could approach this: 1) run the reports=20 sequentially and pass the #page-count variable from one to the next, or=20 2) combined the individual SQRs into a single program. In the first=20 case, you would need to write the #Page-Count value to a table or file at= =20 the end of the first program and then read that value into the second=20 program, etc. In the second case, you may need to define separate=20 Declare-Report, Declare-Layout commands for each communication depending up= on the report designs. > Hi All, > Iam new to SQR, Iam working on a task which iam unable to do please > some one help me in this regard.. > I have a shell script which calls some SQR's each sqr prints some > letters now my task is to print the page numbers on each letter > starting from first letter of first SQR to the last letter of last SQR > in the format "page 1 of n,page 2 of n,........page n of n" where 'n' > is the total number of letters printed by all SQR's. Thanks in > advance. >=20 > Thanks, > srujan _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=3DTXT_TAGHM&loc=3Dus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 18 04:51:45 2007 Date: Tue, 18 Sep 2007 10:50:36 +0200 From: Marius Giepz Subject: [sqr-users] line-height/char-width best practice? Hi! I have to draw lots of fine-detailed grids, spreadsheets and boxes. That=20 is why i use the finest grid in sqr with Line-Height =3D 1 char-width =3D 1 The problem I have with this is that printing text one after the other=20 doesnt work as sqr doesnt know how big one letter is. I usually concatenated all strings of a line to avoid=20 that. The big problem i currently have is that i cant use page-number (1,1) 'Page ' last-page () ' of ' What is the best way to do both, working with string items like this and=20 drawing sophisticated grids and layouts? best regards, marius --=20 ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 W=FCrselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 18 05:11:31 2007 Date: Tue, 18 Sep 2007 11:10:15 +0200 From: Marius Giepz Subject: Re: [sqr-users] SQR Analyzer link JOHN_HARRIS@qvc.com schrieb: > I was searching through some SQR links and found this link ( > http://users.erols.com/sqrtools/tdsqr.htm) posted by Tony DeLia. > Unfortunately, the link to d/l the actual program is no longer valid, try > clicking on the dolphin. Does anyone have a copy of this program or know > where I can get one > >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > Any questions, please call or 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 > me=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > Thank you.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > Regards,=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > John=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > (Embedded image moved to file: John Harris=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > pic06617.jpg) Programmer/Analyst=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 > Application Development -=20=20= =20=20=20=20=20=20=20 > Internal=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > > > > > > QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 > > > Telephone 484-701-3303 > Fax 484-701-8437 > e-mail jharris@qvc.com > > > > This message may contain information that is privileged or confidential. > This message may contain information that is privileged or confidential. = If > you are not the intended recipient, you are hereby notified that any > disclosure, copying, distribution, or use of the information contained > herein is STRICTLY PROHIBITED. If you received this transmission in error, > please immediately contact the sender and destroy the material in its > entirety, whether in electronic or hard copy format. > ------------------------------------------------------------------------ > > Here was a non admissible message part of 'image/jpeg' MIME type. It > has been automatically discarded before sending the message to the > list.=20 >=20=20=20 > ------------------------------------------------------------------------ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20=20=20 http://www.psoftpros.net/net/scripts/script.asp?scriptid=3D47 i guess this is the one you're looking for --=20 ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 W=FCrselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 18 08:16:27 2007 Subject: RE: [sqr-users] Null characters on input file Date: Tue, 18 Sep 2007 08:12:36 -0400 From: "Bahney, Barbara J." Don - thanks for your suggestions....I'll give them a shot as I have run out of options! =20 -----Original Message----- From: Don Mellen [mailto:donm@ontko.com]=20 Sent: Monday, September 17, 2007 10:57 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Null characters on input file There were some items in the archives about this. One was for fixed length records (reading the possible null position into a nemeric var) and the other suggested reading the file character by character (involves a little more "by hand" processing). You could check out those options. HTH, Don On 9/14/07, Bahney, Barbara J. wrote: > > I am using a PeopleSoft delivered SQR to read in a file from our bank in > order to do Check Reconciliation. The file contains null characters and > when the SQR encounters the first null character it recognizes it as > end-of-file and the remaining records on the file are bypassed. Does > anyone have any suggestions on how I can get around this? > > Thanks. > > > Barbara J. Bahney > University of Pittsburgh Medical Center > Information Services Division > Senior PeopleSoft Analyst (HRMS) > Forbes Tower - Room 3025-9 > > Email: rusnakbj@msx.upmc.edu > Phone: 412-647-3081 > Fax: 412-647-4499 > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Tue Sep 18 08:54:58 2007 Date: Tue, 18 Sep 2007 08:51:02 -0400 From: "Eric Dimick Eastman" Subject: Re: [sqr-users] Null characters on input file If you are running on a unix-like platform, you could preprocess the file with the "tr" utility translating nulls into spaces or "\001". I don't know if this fits easily into you operating environment, but it might be cheaper than rewriting chunks of your SQR code. Cheers, Eric On 9/18/07, Bahney, Barbara J. wrote: > > Don - thanks for your suggestions....I'll give them a shot as I have run > out of options! > > > > -----Original Message----- > From: Don Mellen [mailto:donm@ontko.com] > Sent: Monday, September 17, 2007 10:57 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Null characters on input file > > There were some items in the archives about this. One was for fixed > length > records (reading the possible null position into a nemeric var) and the > other suggested reading the file character by character (involves a > little > more "by hand" processing). > > You could check out those options. > > HTH, > Don > > > On 9/14/07, Bahney, Barbara J. wrote: > > > > I am using a PeopleSoft delivered SQR to read in a file from our bank > in > > order to do Check Reconciliation. The file contains null characters > and > > when the SQR encounters the first null character it recognizes it as > > end-of-file and the remaining records on the file are bypassed. Does > > anyone have any suggestions on how I can get around this? > > > > Thanks. > > > > > > Barbara J. Bahney > > University of Pittsburgh Medical Center > > Information Services Division > > Senior PeopleSoft Analyst (HRMS) > > Forbes Tower - Room 3025-9 > > > > Email: rusnakbj@msx.upmc.edu > > Phone: 412-647-3081 > > Fax: 412-647-4499 > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > -- > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 18 09:39:29 2007 Date: Tue, 18 Sep 2007 09:36:26 -0400 From: "..... ....." Subject: Re: [sqr-users] URGENT!!!!!!!! Hi Don, Thanks for your suggestions, i'll give it a try... On 9/17/07, Don Mellen wrote: > OK, just off the top of my head..... > > Since these outputs seem closely related, why have separate SQRs for them? > Can it be done through a single SQR? > > If for some reason that's not possible, then the only thing I can think of > off-hand would be to write an include file with 2 procedures. Something > like... > Get_Master_Page_Num > Set_Master_Page_Num > > Get_Master_Page_Num would look for a file with a specific name (whatever you > decide it should be, "My_master_page_no.txt" for this example ) and read the > master page num from it and store that + 1 in a variable. If it can't find > the file, it stores 1 into that variable > > Set_Master_Page_Num would write the current master page number to the same > named file (overwriting it) > > Your programs should include this file, call Get_Master_Page_Num first, use > this variable for the running count (updating it appropriately) and when > done, call Set_Master_Page_Num (assuming something was printed). This will > be keep your running count correct. Wherever you want the total, you'll > need to print a distinct string that will never appear in the letters > themselves or as part of the .spf file > > You don't say what kind of output your using, but the batch program should > start by deleting My_master_page_no.txt, call the programs with the "-keep" > flag and no "-printer" flag. This will produce .spf files. Then call > either a new SQR that replaces your special string in the files with the > value in My_master_page_no.txt, or use whatever OS specific tool you feel > comfortable doing this with. > > The end of your batch file would be calling sqrp on each of the spf files > with the appropriate printer flag for the output type you want (or your sqr > programs could append a line onto a new batch file that will get called from > the first one to do this, in case the sqr files don't always produce a > letter). > > In summary: > Try to do it in 1 SQR program. > > HTH, > Don > > > On 9/16/07, ..... ..... wrote: > > > > hi shashidhar, > > Thank you for quick response, your answer works for a report printed > > by single SQR, but i have multiple SQR's ..let us say like I have 3 > > SQR's first SQR prints 5 pages, second SQR prints 4 pages and third > > SQR prints 1 page that is total of 10 pages (5+4+1=10) I have to get > > page numbers printed starting from first page of first SQR to last > > page of Last SQR ("page 1 of 10, page 2 of 10,.......page 10 of 10"). > > These SQR's are called by a single shell script. > > Thanks, > > srujan > > > > On 9/16/07, Shashidhar Rao A wrote: > > > hi Srujan' > > > u can use page-number variable to print the page number. > > > > > > begin-footing 1 > > > page-number (1,37) 'Page ' > > > last-page () ' of ' '.' > > > end-footing > > > > > > If you have 50 pages and you are on 10th page, it will appear as "Page > > 10 of 50" at the footer of the report. > > > > > > Regards > > > shdhra > > > > > > "..... ....." wrote: Hi All, > > > Iam new to SQR, Iam working on a task which iam unable to do please > > > some one help me in this regard.. > > > I have a shell script which calls some SQR's each sqr prints some > > > letters now my task is to print the page numbers on each letter > > > starting from first letter of first SQR to the last letter of last SQR > > > in the format "page 1 of n,page 2 of n,........page n of n" where 'n' > > > is the total number of letters printed by all SQR's. Thanks in > > > advance. > > > > > > Thanks, > > > srujan > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > --------------------------------- > > > Luggage? GPS? Comic books? > > > Check out fitting gifts for grads at Yahoo! Search. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 19 04:14:16 2007 Date: Wed, 19 Sep 2007 13:38:00 +0530 From: Sanjay Sambhe Subject: [sqr-users] Check the existance of table in SQR Hi All, Hope you are doing good.. I need to modify a sqr . I need to check the existance of temporary tables (which should be created by sqr code if not exists in backend). Could you pls suggest me How to check the existance of temp tables through sqr code ? Thanks and regards Ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 19 09:15:17 2007 From: "Steve Cavill" Subject: RE: [sqr-users] Check the existance of table in SQR Date: Wed, 19 Sep 2007 23:11:53 +1000 One easy way would be to create the tables in a begin-sql block and add an on-error proc to trap errors. You can then check in your on-error proc if the error was that the table already exists. Or you could just try to drop the temp tables and ignore any errors. 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 Sanjay Sambhe Sent: Wednesday, 19 September 2007 6:08 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: [sqr-users] Check the existance of table in SQR Hi All, Hope you are doing good.. I need to modify a sqr . I need to check the existance of temporary tables (which should be created by sqr code if not exists in backend). Could you pls suggest me How to check the existance of temp tables through sqr code ? Thanks and regards Ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 19 11:21:20 2007 Date: Wed, 19 Sep 2007 11:18:29 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Re: Null characters on input file This is a multi-part message in MIME format... --===============0057170082== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline This is a multi-part message in MIME format... --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 18, 2007 at 08:51:02AM -0400, Eric Dimick Eastman wrote: > If you are running on a unix-like platform, you could preprocess the file > with the "tr" utility translating nulls into spaces or "\001". I don't know If "tr" is available in your environment I'd definitely recommend using it, but if you aren't on Unix (or if your particular version of "tr" can't handle files with NULL characters), you should also be able to use a simple SQR program to read the file byte-by-byte to do the same sort of translation. Here's an example program that takes this approach: http://www.sqrug.org/ftp/translate_nulls.sqr I have only tested it under Unix, but believe it should work just as well on most platforms where SQR is available. The idea is that you'd pre-process your file using this utility, and then could run your existing SQR program without needed to do anything fancy string-handling inside that program. Depending on the format of your input file, you can decided whether it's better to replace the NULL characters with some other character or just to strip them out (using the "-debugs" option). 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 --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFG8T3FFfOtzez7YjkRAssaAKDHhlwOmn7uF7mI2OfgZCi5GII6ZwCgiqlK mkFguyCxqCmh8UNbebcXOio= =wAxy -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0-- --===============0057170082== 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 --===============0057170082==-- From sqr-users-bounces@sqrug.org Thu Sep 20 13:18:27 2007 Date: Thu, 20 Sep 2007 13:13:15 -0400 From: "Barilleaux, Rebecca" Subject: [sqr-users] RE: sqr-users Digest, Vol 43, Issue 11 Here are a couple of examples of how we check for the existence of temp tables before creating them in our SQR programs: Begin-SQL -XP if not exists (select 1 from {tmpenv}..sysobjects where name =3D 'ky_groups' and type =3D 'U') CREATE table {tmpenv}..ky_groups ( GRGR_CK int, STAT_EFF_DT datetime, STAT_TERM_DT datetime, STAT_BUS_DIV char(4)); End-SQL=20 Begin-SQL if exists (select 1 from {tmpenv}..sysobjects where name =3D '{claim_table}' and type =3D 'U') drop table {tmpenv}..{claim_table} if exists (select 1 from {tmpenv}..sysobjects where name =3D '{check_table}' and type =3D 'U') drop table {tmpenv}..{check_table}; End-SQL=20 Thanks, Rebecca -----Original Message----- Date: Wed, 19 Sep 2007 13:38:00 +0530 From: Sanjay Sambhe Subject: [sqr-users] Check the existance of table in SQR To: "'This list is for discussion about the SQR database reporting language from Hyperion Solutions.'" Message-ID: <5833.94181190189410.pent.cisco.com@MHS> Content-Type: text/plain; charset=3D"US-ASCII" Hi All, Hope you are doing good.. I need to modify a sqr . I need to check the existance of temporary tables (which should be created by sqr code if not exists in backend). Could you pls suggest me How to check the existance of temp tables through sqr code ? Thanks and regards Ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,=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@sqrug.org Fri Sep 21 11:00:26 2007 Date: Fri, 21 Sep 2007 11:57:55 -0300 From: "PeterG Clark" Subject: RE: [sqr-users] Check the existance of table in SQR And here is the method we use ... Begin-SQL On-Error=3DSkip=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 drop table temp_vagrie01=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=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-SQL=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Begin-SQL=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 create table temp_vagrie01=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 (location varchar(010),=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 union_cd varchar(003),=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 grievance_id varchar(010),=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 etcetera ...=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 )=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =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-SQL=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >>> "Barilleaux, Rebecca" 2007/09/20 14:13 = >>> Here are a couple of examples of how we check for the existence of temp tables before creating them in our SQR programs: Begin-SQL -XP if not exists (select 1 from {tmpenv}..sysobjects where name =3D 'ky_groups' and type =3D 'U') CREATE table {tmpenv}..ky_groups ( GRGR_CK int, STAT_EFF_DT datetime, STAT_TERM_DT datetime, STAT_BUS_DIV char(4)); End-SQL=20 Begin-SQL if exists (select 1 from {tmpenv}..sysobjects where name =3D '{claim_table}' and type =3D 'U') drop table {tmpenv}..{claim_table} if exists (select 1 from {tmpenv}..sysobjects where name =3D '{check_table}' and type =3D 'U') drop table {tmpenv}..{check_table}; End-SQL=20 Thanks, Rebecca -----Original Message----- Date: Wed, 19 Sep 2007 13:38:00 +0530 From: Sanjay Sambhe Subject: [sqr-users] Check the existance of table in SQR To: "'This list is for discussion about the SQR database reporting language from Hyperion Solutions.'" Message-ID: <5833.94181190189410.pent.cisco.com@MHS> Content-Type: text/plain; charset=3D"US-ASCII" Hi All, Hope you are doing good.. I need to modify a sqr . I need to check the existance of temporary tables (which should be created by sqr code if not exists in backend). Could you pls suggest me How to check the existance of temp tables through sqr code ? Thanks and regards Ss _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 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=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 06:08:06 2007 Date: Mon, 24 Sep 2007 12:04:49 +0200 (CEST) From: Joe Subject: [sqr-users] how does last-page work? Hi, How does last-page procedure work? I have to concatenate a page to my report's end, with the page number 1 of = 1. There is a problem with the page numbering, because if I use last-page proc= edure in the report I get a page numbering like this: x of (last-page + 1)= -> because of the bonus page. And I need x of last-page. So I don't want t= o count the bonus page into last-page... Page numbering restart could be good, but I don't know how to... I tried to count the pages in a variable, by the before-pages, but it doesn= 't work, because I get the outcome after the print commands...so I can't us= e that variable from the beginning of the report. Thanks, Zoli J=E1tssz a meg=FAjult Kv=EDzparton! V=E1lassz t=F6bb mint 400 kv=EDz k=F6z= =FCl minden t=E9m=E1ban! ________________________________________________________ http://cthandler.adverticum.net/?cturl=3Dhttp%3A%2F%2Fkvizpart.hu%2F?fmalja _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 08:00:54 2007 From: the dragon Subject: RE: [sqr-users] how does last-page work? Date: Mon, 24 Sep 2007 06:57:15 -0500 ummm, the last page is *the last page* of the report, so there is no proble= m with the page numbering. It sounds like you want a summary after the det= ail, or something like that. Get an sqr language reference manual and look= up the command new report and see if that helps. If that's not what you'r= e looking for, it'll be something close to that. 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 o= nly real finite asset that you have, and once used it can never be recovere= d, so don't waste it by giving it away. I work to live; I don't live to work. "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 sp= end it for you." -- Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. -- William G. McAdoo Religion is regarded by the common people as true, by the wise as false, an= d by the rulers as useful. -- Seneca "I distrust those people who know so well what God wants them to do because= I notice it always coincides with their own desires." - Susan B. Anthony > Date: Mon, 24 Sep 2007 12:04:49 +0200 > From: novorin@freemail.hu > To: sqr-users@sqrug.org > Subject: [sqr-users] how does last-page work? > > > Hi, > > How does last-page procedure work? > > I have to concatenate a page to my report's end, with the page number 1 o= f 1. > There is a problem with the page numbering, because if I use last-page pr= ocedure in the report I get a page numbering like this: x of (last-page + 1= ) -> because of the bonus page. And I need x of last-page. So I don't want = to count the bonus page into last-page... > > Page numbering restart could be good, but I don't know how to... > > I tried to count the pages in a variable, by the before-pages, but it doe= sn't work, because I get the outcome after the print commands...so I can't = use that variable from the beginning of the report. > > > Thanks, > Zoli _________________________________________________________________ Gear up for Halo=AE 3 with free downloads and an exclusive offer. It=92s ou= r way of saying thanks for using Windows Live=99. http://gethalo3gear.com?ocid=3DSeptemberWLHalo3_WLHMTxt_2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 10:01:14 2007 From: JOHN_HARRIS@qvc.com Date: Mon, 24 Sep 2007 09:57:38 -0400 Subject: [sqr-users] Image printing in SQR This is a multi-part message in MIME format... --0__=0ABBF9F3DFDF8DD48f9e8a93df938690918c0ABBF9F3DFDF8DD4 Content-type: text/plain; charset=US-ASCII I am trying to change the image used in my reports. Currently the image has these properties: Height = 56 Width = 118 The code looks like this: PRINT-IMAGE (1,1,0) TYPE = BMP-FILE SOURCE = 'QVC.bmp' IMAGE-SIZE = (12,3) This work fine. The new image has the following properties: Height = 68 Width = 64 The image is stretched on the report. Any suggestions on what the IMAGE-SIZE parms should be? The only information I can find on the IMAGE-SIZE is this: "Specifies the width and height of the image in SQR coordinates." How are the "SQR coordinates" determined? Any questions, please call or email me Thank you. Regards, John (Embedded image moved to file: John Harris pic16519.jpg) Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. --0__=0ABBF9F3DFDF8DD48f9e8a93df938690918c0ABBF9F3DFDF8DD4 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBF9F3DFDF8DD48f9e8a93df938690918c0ABBF9F3DFDF8DD4 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 --0__=0ABBF9F3DFDF8DD48f9e8a93df938690918c0ABBF9F3DFDF8DD4-- From sqr-users-bounces@sqrug.org Mon Sep 24 10:17:32 2007 Subject: RE: [sqr-users] Image printing in SQR Date: Mon, 24 Sep 2007 09:14:01 -0500 From: "Thompson, Betty P" Here are notes out of an old program we no longer use; maybe you will find it useful. Begin-SETUP=20 =20=20=20=20 =20 !----------------------------------------------------------------------- ----- ! The first print stmt executed within this pgm must be with a fixed font (3) ! and with point-size 12 --- this establishes the 'grid' used for calculating=20 ! the graphic positions. =20 !----------------------------------------------------------------------- ----- #include 'setupdb.sqc' DECLARE-PRINTER inv_printer type =3D HPLASERJET font =3D 3 ! Courier (a fixed font)=20 ! font =3D 5 ! Times Roman (a proportional font)=20 point-size =3D 12 ! 12 points (yields 10 characters per horizontal inch in Courier)=20 END-DECLARE DECLARE-LAYOUT inv-layout paper-size =3D (8.5,11) ! 8.5" x 11" orientation =3D portrait left-margin =3D .375 ! 3/8 inch (column 1 offset from left paper edge)=20 top-margin =3D .375 ! 3/8 inch (row 1 offset from top paper edge) bottom-margin =3D .25 ! 1/4 inch=20=20=20=20 line-width =3D 7.875 ! 7.875 inches (printable portion) line-height =3D 9 ! 9 points (yields 8 lines per vertical inch) END-DECLARE !--------------------------------------------------------------------- !=20=20=20 ! line-height =3D 9 ! 9 points (yields 8 lines per vertical inch) !=20=20=20 ! Given top-margin=3D.5, with paper-size=3D(8.5,11), with orientation=3Dportrait, ! specifying max-lines=3D79 will yield 64 printable lines on a page, and any=20 ! additional print lines up to 79 fall into oblivion when explicit line positions ! are specified. ! ! Using max-lines instead of line-height when using a proportional font ! 'turns on' the SQR mechanism that auto-adjusts the print to fit ! without overlapping.=20 ! ! The only way I've found so far to get 8 lines per vertical inch is to use line-height. !=20=20=20 !--------------------------------------------------------------------- ! It appears that referential printing --- such as (+1,1) -- ! is not appropriate with a proportional font. When I tried it, it ! seemed to constantly advance 2 lines, based upon the layout's line-height. !--------------------------------------------------------------------- ! Also, you can't use 'graph' with a proportional font. !----------------------------------------------------------------------- DECLARE-REPORT inv-report layout =3D inv-layout printer-type =3D HPLASERJET END-DECLARE DECLARE-VARIABLE DEFAULT-NUMERIC=3DDECIMAL(18) END-DECLARE End-SETUP=20=20=20=20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of JOHN_HARRIS@qvc.com Sent: Monday, September 24, 2007 8:58 AM To: sqr-users@sqrug.org Subject: [sqr-users] Image printing in SQR I am trying to change the image used in my reports. Currently the image has these properties: Height =3D 56 Width =3D 118 The code looks like this: PRINT-IMAGE (1,1,0) TYPE =3D BMP-FILE SOURCE =3D 'QVC.bmp' IMAGE-SIZE =3D (12,3) This work fine. The new image has the following properties: Height =3D 68 Width =3D 64 The image is stretched on the report. Any suggestions on what the IMAGE-SIZE parms should be? The only information I can find on the IMAGE-SIZE is this: "Specifies the width and height of the image in SQR coordinates." How are the "SQR coordinates" determined? =20 =20 Any questions, please call or email me =20 =20 =20 Thank you. =20 Regards, =20 John =20 =20 =20 (Embedded image moved to file: John Harris pic16519.jpg) Programmer/Analyst Application Development - Internal =20 QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 10:20:45 2007 From: the dragon Subject: RE: [sqr-users] Image printing in SQR Date: Mon, 24 Sep 2007 09:14:17 -0500 I believe the "sqr coordinates" are block sizes based upon the font you're = using as well as the line size. Could be wrong - who knows? Experiment; t= ry changing the values and see what happens. =20 Try IMAGE-SIZE =3D (6,3) peace, clark 'the dragon' willisPSA: 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. I work to = live; I don't live to work. "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)= It is impossible to defeat an ignorant man in argument. -- William G. McAd= oo Religion is regarded by the common people as true, by the wise as false,= and by the rulers as useful. -- Seneca "I distrust those people who know s= o well what God wants them to do because I notice it always coincides with = their own desires." - Susan B. Anthony> To: sqr-users@sqrug.org> From: JOHN= _HARRIS@qvc.com> Date: Mon, 24 Sep 2007 09:57:38 -0400> Subject: [sqr-users= ] Image printing in SQR> > > I am trying to change the image used in my rep= orts.> > Currently the image has these properties:> Height =3D 56> Width = =3D 118> > The code looks like this:> PRINT-IMAGE (1,1,0)> TYPE =3D BMP-FIL= E> SOURCE =3D 'QVC.bmp'> IMAGE-SIZE =3D (12,3)> > This work fine.> > The ne= w image has the following properties:> Height =3D 68> Width =3D 64> > The i= mage is stretched on the report. Any suggestions on what the> IMAGE-SIZE pa= rms should be?> The only information I can find on the IMAGE-SIZE is this: = "Specifies the> width and height of the image in SQR coordinates."> How are= the "SQR coordinates" determined?> > > > > > Any questions, please call or= email > me > > > > Thank you. > > Regards, > > John > >=20 _________________________________________________________________ Can you find the hidden words?=A0 Take a break and play Seekadoo! http://club.live.com/seekadoo.aspx?icid=3Dseek_wlmailtextlink _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 10:26:31 2007 Date: Mon, 24 Sep 2007 10:25:10 -0400 From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" Subject: [sqr-users] Reg. SQR PDF Reports Hi All, I have a query on Override Options that's set if I have multiple reports. Iam running a SQR that produces 3 reports. So I have set as -MR 3. But after running the sqr, it gives only 2 pdf reports. __2.pdf, __3.pdf. When I change to -MR 4. it produces __2.pdf, __3.pdf, and __4.pdf. I don't understand why the reports don't start with __1.pdf, __2.pdf, and __3.pdf. Is there any code issue? Pls help Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 10:30:22 2007 Subject: RE: [sqr-users] Reg. SQR PDF Reports Date: Mon, 24 Sep 2007 10:28:12 -0400 From: "Larry Roux" I believe the first report is created according to the output flag (ie -oc:\ps\sqr.lis). The rest can go to another directory and are named according to the report fashion you indicated. You can get around that by creating a new-report immediately, so the first report is _2, the second is _3, etc. -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, September 24, 2007 10:25 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reg. SQR PDF Reports Hi All, I have a query on Override Options that's set if I have multiple reports. Iam running a SQR that produces 3 reports. So I have set as -MR 3. But after running the sqr, it gives only 2 pdf reports. __2.pdf, __3.pdf. When I change to -MR 4. it produces __2.pdf, __3.pdf, and __4.pdf. I don't understand why the reports don't start with __1.pdf, __2.pdf, and __3.pdf. Is there any code issue? Pls help Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 10:44:38 2007 Subject: RE: [sqr-users] Reg. SQR PDF Reports Date: Mon, 24 Sep 2007 10:43:14 -0400 From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" Hi=20 Thanks for your response. But I don't see NEW-REPORT in the code. I would like to get the pdf format as 1,2,3.pdf files. Any change to be made to the code? Thanks Ram =20=20 -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org] On Behalf Of Larry Roux Sent: Monday, September 24, 2007 10:28 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Reg. SQR PDF Reports I believe the first report is created according to the output flag (ie -oc:\ps\sqr.lis). The rest can go to another directory and are named according to the report fashion you indicated. You can get around that by creating a new-report immediately, so the first report is _2, the second is _3, etc. -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, September 24, 2007 10:25 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reg. SQR PDF Reports Hi All, I have a query on Override Options that's set if I have multiple reports. Iam running a SQR that produces 3 reports. So I have set as -MR 3. But after running the sqr, it gives only 2 pdf reports. __2.pdf, __3.pdf. When I change to -MR 4. it produces __2.pdf, __3.pdf, and __4.pdf. I don't understand why the reports don't start with __1.pdf, __2.pdf, and __3.pdf. Is there any code issue? Pls help Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 12:01:46 2007 Subject: RE: [sqr-users] Reg. SQR PDF Reports Date: Mon, 24 Sep 2007 11:59:31 -0400 From: "Larry Roux" Try this: At the very start of the SQR (after the run control info is retrieved) put in the following commands: Let $report_name =3D 'directory' || 'sqrname' || '_' || $prcs_process_instance || '_1.lis' new-report $report_name substitute the directory and sqr name, of course, with your local info. You will still get an sqr.lis, etc...but it will now be blank. I am not sure if the other reports will end up _3, _4, etc though. So you might end up with 1, 3, 4, 5, etc. You will have to try it. -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, September 24, 2007 10:43 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Reg. SQR PDF Reports Hi=20 Thanks for your response. But I don't see NEW-REPORT in the code. I would like to get the pdf format as 1,2,3.pdf files. Any change to be made to the code? Thanks Ram =20=20 -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org] On Behalf Of Larry Roux Sent: Monday, September 24, 2007 10:28 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Reg. SQR PDF Reports I believe the first report is created according to the output flag (ie -oc:\ps\sqr.lis). The rest can go to another directory and are named according to the report fashion you indicated. You can get around that by creating a new-report immediately, so the first report is _2, the second is _3, etc. -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, September 24, 2007 10:25 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reg. SQR PDF Reports Hi All, I have a query on Override Options that's set if I have multiple reports. Iam running a SQR that produces 3 reports. So I have set as -MR 3. But after running the sqr, it gives only 2 pdf reports. __2.pdf, __3.pdf. When I change to -MR 4. it produces __2.pdf, __3.pdf, and __4.pdf. I don't understand why the reports don't start with __1.pdf, __2.pdf, and __3.pdf. Is there any code issue? Pls help Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 12:32:21 2007 Date: Mon, 24 Sep 2007 12:29:53 -0400 From: "Don Mellen" Subject: Re: [sqr-users] how does last-page work? Or you could try using the delay option of the "Print" command and the "Set-Delay-Print" command (ver 6.0 and higher). (see manual for full explanation) It's basically... Print #Last_Page (#y, #x) edit '899,999' Delay =2E =2E =2E Set-Delay-Print #Last_Page with #My_Page_Count HTH, Don On 9/24/07, the dragon wrote: > > > ummm, the last page is *the last page* of the report, so there is no > problem with the page numbering. It sounds like you want a summary after > the detail, or something like that. Get an sqr language reference manual > and look up the command new report and see if that helps. If that's not > what you're looking for, it'll be something close to that. > > 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. > > I work to live; I don't live to work. > > "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) > > It is impossible to defeat an ignorant man in argument. -- William G. > McAdoo > > Religion is regarded by the common people as true, by the wise as false, > and by the rulers as useful. -- Seneca > > "I distrust those people who know so well what God wants them to do > because I notice it always coincides with their own desires." - Susan B. > Anthony > > > Date: Mon, 24 Sep 2007 12:04:49 +0200 > > From: novorin@freemail.hu > > To: sqr-users@sqrug.org > > Subject: [sqr-users] how does last-page work? > > > > > > Hi, > > > > How does last-page procedure work? > > > > I have to concatenate a page to my report's end, with the page number 1 > of 1. > > There is a problem with the page numbering, because if I use last-page > procedure in the report I get a page numbering like this: x of (last-page= + > 1) -> because of the bonus page. And I need x of last-page. So I don't wa= nt > to count the bonus page into last-page... > > > > Page numbering restart could be good, but I don't know how to... > > > > I tried to count the pages in a variable, by the before-pages, but it > doesn't work, because I get the outcome after the print commands...so I > can't use that variable from the beginning of the report. > > > > > > Thanks, > > Zoli > > _________________________________________________________________ > Gear up for Halo(r) 3 with free downloads and an exclusive offer. It's our > way of saying thanks for using Windows Live=99. > http://gethalo3gear.com?ocid=3DSeptemberWLHalo3_WLHMTxt_2 > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 13:41:00 2007 Date: Mon, 24 Sep 2007 13:38:08 -0400 From: "Hall, Tara" Subject: [sqr-users] Distinct in SQR Hi All, I'm using the following code in an SQR but it is still not returning distin= ct rows. If I used the same code in TOAD, it returns distinct rows of data: BEGIN-SELECT DISTINCT D.ROLEUSER (+1, 15) F.OPRDEFNDESC=09 D.ROLENAME (0, 60) E.CLASSID (0, 100) F.ACCTLOCK=09=09=09 =20 LET #MYOBJNAME =3D 1 =20=20=20=20=20=20=20 FROM PSROLEUSER D, PSROLECLASS E, PSOPRDEFN F WHERE D.ROLENAME =3D E.ROLENAME AND E.CLASSID =3D 'PSADMIN' AND D.ROLEUSER =3D F.OPRID AND F.ACCTLOCK =3D 0 ORDER BY 1 end-select Any suggestions? Thanks, Tara _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 13:46:31 2007 Subject: RE: [sqr-users] Distinct in SQR Date: Mon, 24 Sep 2007 13:44:10 -0400 From: "Larry Roux" Try running the sqr with the -S flag to get the SQL being created by SQR. Then compare that to what you think should happen (and run it in Toad).=20 You are only showing some of the fields. Are you sure you are not getting distinct results and the differences are in the fields you are not printing? =20 -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org] On Behalf Of Hall, Tara Sent: Monday, September 24, 2007 1:38 PM To: sqr-users@sqrug.org Subject: [sqr-users] Distinct in SQR Hi All, I'm using the following code in an SQR but it is still not returning distinct rows. If I used the same code in TOAD, it returns distinct rows of data: BEGIN-SELECT DISTINCT D.ROLEUSER (+1, 15) F.OPRDEFNDESC=09 D.ROLENAME (0, 60) E.CLASSID (0, 100) F.ACCTLOCK=09=09=09 =20 LET #MYOBJNAME =3D 1 =20=20=20=20=20=20=20 FROM PSROLEUSER D, PSROLECLASS E, PSOPRDEFN F WHERE D.ROLENAME =3D E.ROLENAME AND E.CLASSID =3D 'PSADMIN' AND D.ROLEUSER =3D F.OPRID AND F.ACCTLOCK =3D 0 ORDER BY 1 end-select Any suggestions? Thanks, Tara _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 24 13:50:06 2007 Subject: Re: [sqr-users] Distinct in SQR From: JOHN_HARRIS@qvc.com Date: Mon, 24 Sep 2007 13:45:02 -0400 This is a multi-part message in MIME format... --0__=0ABBF9F3DFF2BAD98f9e8a93df938690918c0ABBF9F3DFF2BAD9 Content-type: text/plain; charset=US-ASCII Try this, GROUP BY's are usually more efficient than DISTINCT and produce the same results. BEGIN-SELECT D.ROLEUSER (+1, 15) F.OPRDEFNDESC D.ROLENAME (0, 60) E.CLASSID (0, 100) F.ACCTLOCK LET #MYOBJNAME = 1 FROM PSROLEUSER D, PSROLECLASS E, PSOPRDEFN F WHERE D.ROLENAME = E.ROLENAME AND E.CLASSID = 'PSADMIN' AND D.ROLEUSER = F.OPRID AND F.ACCTLOCK = 0 ORDER BY D.ROLEUSER GROUP BY D.ROLEUSER, F.OPRDEFNDESC, D.ROLENAME, E.CLASSID, F.ACCTLOCK end-select Any questions, please call or email me Thank you. Regards, John (Embedded image moved to file: pic29972.jpg) John Harris Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. "Hall, Tara" To Ext: Sent by: cc sqr-users-bounces +john_harris=qvc. Subject com@sqrug.org [sqr-users] Distinct in SQR 09/24/2007 01:40 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Hi All, I'm using the following code in an SQR but it is still not returning distinct rows. If I used the same code in TOAD, it returns distinct rows of data: BEGIN-SELECT DISTINCT D.ROLEUSER (+1, 15) F.OPRDEFNDESC D.ROLENAME (0, 60) E.CLASSID (0, 100) F.ACCTLOCK LET #MYOBJNAME = 1 FROM PSROLEUSER D, PSROLECLASS E, PSOPRDEFN F WHERE D.ROLENAME = E.ROLENAME AND E.CLASSID = 'PSADMIN' AND D.ROLEUSER = F.OPRID AND F.ACCTLOCK = 0 ORDER BY 1 end-select Any suggestions? Thanks, Tara _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBF9F3DFF2BAD98f9e8a93df938690918c0ABBF9F3DFF2BAD9 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBF9F3DFF2BAD98f9e8a93df938690918c0ABBF9F3DFF2BAD9 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 --0__=0ABBF9F3DFF2BAD98f9e8a93df938690918c0ABBF9F3DFF2BAD9-- From sqr-users-bounces@sqrug.org Sun Oct 07 01:00:58 2007 From: "Bolser, Judith D. Mrs." Date: Wed, 26 Sep 2007 11:39:30 -0400 Subject: [sqr-users] string to decimal error To All Is anyone using version 8.3.1 of Hyperion Developer? If so, are you using = it against the SunGard ODS with Banner? When we try to report on a number = field that is populated with data we get an error about the string to decim= al. We know how to work around this error using the "to_char" function but= have been told that this error is fixed in version 8.3.1. We are on 8.3.0= and would like to be assured that this is fixed before we try to upgrade t= o this version. Thanks Judy We are all angels with one wing. We need each other to fly. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Oct 07 01:54:14 2007 Date: Thu, 27 Sep 2007 14:57:38 -0400 From: maddy Subject: [sqr-users] Loading fixed length flat file into Sybase table Hi, What is the better way to load the data from fixed length flat file into a sybase database table using SQR. Number of rows in the file vary from 10,000 to 50,000 I'm doing something like the code below, but my concern is for each insert statement it goes to the database and could be performance issue. ************************************************************************************************************************** open 'aaaa.txt' AS 100 for-reading record=600:fixed status=#z while 1 read 10 into $name:40 $Id:30 $location:50 if #end-file break end-if begin-sql insert into cust (name, Id, location) values ($name, $ID, $location) end-sql add 1 to #inserts if #inserts >= 100 begin-sql commit transaction begin transaction end-sql move 0 to #inserts end-if end-while ************************************************************************************************************ Thanks!! Maddy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users