From sqr-users-bounces@sqrug.org Thu Oct 01 00:02:39 2009 Date: Thu, 1 Oct 2009 00:00:05 -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 Thu Oct 01 18:25:04 2009 Date: Thu, 1 Oct 2009 18:22:07 -0400 Subject: Re: [sqr-users] SQR query error - help needed From: Rajesh Subramaniam Hi guys, I thank all of you for helping me out. Looks like I did not align the queries and the column names to the left hand side. That was the problem and with the help your comments I fixed it. Thanks, Rajesh. On Wed, Sep 30, 2009 at 12:47 PM, Alexander, Steven < Steven.Alexander@sanjoseca.gov> wrote: > Once you get the code working, there is another thing you can do to make > your programming life easier. Your code (and Dipin's modification) > creates three sets of variables with the same values. For example, the > employee ID is contained in &e.EMP_ID, &empId, and $empId. You could > write a much simpler block of code: > > begin-select > e.emp_id > e.emp_firstname > e.emp_middle_init > e.emp_lastname > e.emp_employee_nbr > e.emp_addr1 > e.emp_addr2 > e.emp_term_reason > do write_output > from emp e > where e.emp_term_reason = 'NULL' > and e.emp_state = $st_abb > end-select > > The write command in the write_output procedure can use the &e.emp_id > variable just as well as it can use $empid. > > > -----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 Ojha, Dipin > Sent: Wednesday, September 30, 2009 7:49 AM > To: This list is for discussion about the SQR database reportinglanguage > fromHyperion Solutions. > Subject: RE: [sqr-users] SQR query error - help needed > > Try the code below. Note the indentation after the "from" part. > > begin-procedure create_SQLquery > > open $input_file as 2 for-reading record=100 > > read 2 into $st_abb:2 > > if length($st_abb)!=2 > > display 'the state abbreviation entered is not valid, please > check > > file' > > end-if > > > > begin-select > > e.EMP_ID &empId > > e.EMP_FIRSTNAME &empFN > > e.EMP_MIDDLE_INIT &empMI > > e.EMP_LASTNAME &empLN > > e.EMP_EMPLOYEE_NBR &empNo > > e.EMP_ADDR1 &empAddr1 > > e.EMP_ADDR2 &empAddr2 > > e.EMP_TERM_REASON &empTermReason > > > > move &empId to $empId > > move &empFN to $empFN > > move &empMI to $empMI > > move &empLN to $empLN > > move &empNo to $empNo > > move &empAddr1 to $empAddr1 > > move &empAddr2 to $empAddr2 > > move &empTermReason to $empTermReason > > do write_output > > from SALES.EMP e > > where e.EMP_TERM_REASON = 'NULL' and e.EMP_STATE = $st_abb > > end-select > > close 2 > > end-procedure > -----Original Message----- > From: sqr-users-bounces+dipin.ojha=fnis.com@sqrug.org > [mailto:sqr-users-bounces+dipin.ojha = > fnis.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Wednesday, September 30, 2009 10:23 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR query error - help needed > > yup sales is the name of the schema. I tried removing it and compiling > but > still getting and SQL syntax error > > On Wed, Sep 30, 2009 at 10:02 AM, Ojha, Dipin > wrote: > > > Hi, > > > > Is "sales" the name of the schema? If yes you may try removing it from > the > > column names in the select part. > > -----Original Message----- > > From: sqr-users-bounces+dipin.ojha=fnis.com@sqrug.org [mailto: > > sqr-users-bounces+dipin.ojha > =fnis.com@ > > sqrug.org] On Behalf Of Rajesh Subramaniam > > Sent: Wednesday, September 30, 2009 9:53 AM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: Re: [sqr-users] SQR query error - help needed > > > > Hi, > > > > Thanks for the reply, but this code snippet was under a > begin-procedure and > > end-procedure. To be more precise I will paste the whole code block. > > > > begin-procedure create_SQLquery > > open $input_file as 2 for-reading record=100 > > read 2 into $st_abb:2 > > if length($st_abb)!=2 > > display 'the state abbreviation entered is not valid, please > check > > file' > > end-if > > > > begin-select > > SALES.EMP_ID &empId > > SALES.EMP_FIRSTNAME &empFN > > SALES.EMP_MIDDLE_INIT &empMI > > SALES.EMP_LASTNAME &empLN > > SALES.EMP_EMPLOYEE_NBR &empNo > > SALES.EMP_ADDR1 &empAddr1 > > SALES.EMP_ADDR2 &empAddr2 > > SALES.EMP_TERM_REASON &empTermReason > > > > move &empId to $empId > > move &empFN to $empFN > > move &empMI to $empMI > > move &empLN to $empLN > > move &empNo to $empNo > > move &empAddr1 to $empAddr1 > > move &empAddr2 to $empAddr2 > > move &empTermReason to $empTermReason > > do write_output > > from SALES.EMP > > where EMP_TERM_REASON = 'NULL' and EMP_STATE = $st_abb > > end-select > > close 2 > > end-procedure > > > > On Wed, Sep 30, 2009 at 9:16 AM, Everett Carr > wrote: > > > > > you likely have an error somewhere physically earlier in your code > such > > > that begin-procedure end-procedure matching enclosures are missing > > > > > > > > > > > > >>> Rajesh Subramaniam 9/30/2009 9:06 AM >>> > > > I am getting the following errors for the below code. As I am new > to > > SQR, > > > I > > > am not able to understand where the problem lies can someone help me > in > > > this > > > one. > > > > > > Sales.emp is the table name and emp_id... etc are columns in it. > > > > > > Code- > > > > > > begin-select > > > emp_id &empId > > > emp_firstname &empFN > > > emp_middle_init &empMI > > > emp_lastname &empLN > > > emp_employee_nbr &empNo > > > emp_addr1 &empAddr1 > > > emp_addr2 &empAddr2 > > > emp_term_reason &empTermReason > > > > > > move &empId to $empId > > > move &empFN to $empFN > > > move &empMI to $empMI > > > move &empLN to $empLN > > > move &empNo to $empNo > > > move &empAddr1 to $empAddr1 > > > move &empAddr2 to $empAddr2 > > > move &empTermReason to $empTermReason > > > > > > do write_output > > > > > > from sales.emp > > > > > > where emp_term_reason = '' and emp_state = $st_abb > > > end-select > > > > > > Error > > > > > > Error on line 40: > > > (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: > > > BEGIN-SELECT [DISTINCT] [-Cnn] [-Bnn] [LOOPS=nn] > > > [ON-ERROR=procedure[(arg1[,argi]...)]] > > > emp_id &empId > > > Error on line 47: > > > (SQR 3704) Missing procedure name. > > > emp_term_reason &empTermReason > > > (SQR 4407) Referenced variables not defined: > > > &empid > > > &empfn > > > &empmi > > > &empln > > > &empno > > > &empaddr1 > > > &empaddr2 > > > &emptermreason > > > Errors were found in the program file. > > > > > > Thanks, > > > Rajesh. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 contained in this message is proprietary and/or > > confidential. If you are not the intended recipient, please: (i) > delete the > > message and all copies; (ii) do not disclose, distribute or use the > message > > in any manner; and (iii) notify the sender immediately. In addition, > please > > be aware that any message addressed to our domain is subject to > archiving > > and review by persons other than the intended recipient. 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 > > _____________ > > The information contained in this message is proprietary and/or > confidential. If you are not the intended recipient, please: (i) delete > the message and all copies; (ii) do not disclose, distribute or use the > message in any manner; and (iii) notify the sender immediately. In > addition, please be aware that any message addressed to our domain is > subject to archiving and review by persons other than the intended > recipient. 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 From sqr-users-bounces@sqrug.org Fri Oct 02 09:20:36 2009 From: "White . Denise" Date: Fri, 2 Oct 2009 09:16:46 -0400 Subject: [sqr-users] RE: FW: PrintFile Hi Nathan, Thanks for trying to figure this out! When I started having this problem, = I did try using Plain Text, because I thought that the first message might = have something to do with the error in the second (even though I had always= gotten that first one back when it worked). The result was that I did not= get the first message, but I still got the second, and my message did not = go through. Well, this one says Plain Text at the top. I'm going to send = it to both you and the list, and see what happens. This is rather frustrating! Thanks, Denise -----Original Message----- From: Nathan Stratton Treadway [mailto:nathanst@ontko.com] Sent: Thursday, October 01, 2009 9:15 AM To: White . Denise Subject: Re: FW: PrintFile On Wed, Sep 30, 2009 at 17:15:23 -0400, White . Denise wrote: > Hi Nathan, > > Here is the second response, that has the error. > > Thanks, > Denise > > -----Original Message----- > From: sqr-users-bounces+dwhite=3Ddrc.com@sqrug.org [mailto:sqr-users-boun= ces+dwhite=3Ddrc.com@sqrug.org] On Behalf Of sqr-users-owner@sqrug.org > Sent: Wednesday, September 30, 2009 5:12 PM > To: White . Denise > Subject: RE: PrintFile > > The message's content type was not explicitly allowed > Thanks for forwarding me these messages... I will have to investigate a bit more to figure you why your messages aren't going through at all, while similar messages from people in similar situations do get distributed successfully. However, for a quick fix, I wondering if your email program has a setting that lets you choose to send "text only" message (i.e. no HTML). If you could do that, you would definitely avoid getting the "some parts have been stripped" warning message... and I'm guessing it would allow you to send messages to the list successfully as well. (Some email programs even have a way to make "text only" be the default for a particular addressee....) If you like, feel free to send test messages directly to me and I will tell you whether or not they come through as text-only. 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 =3D 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 02 13:51:41 2009 Date: Fri, 02 Oct 2009 14:46:29 -0300 From: Robin John West Subject: [sqr-users] UTF-8 characters not displaying properly in PostScript output We are in the process of converting our database to the UTF-8 character set. We have one SQR report (out of 100+) which produces its output in PostScript format (because it needs to include a graphic). The output for this report does not display non-ASCII characters properly, either when printed or via a utility such as GhostView. Our environment: Oracle 10g (10.2.0.4) Hyperion SQR 9.3.1 Solaris 10 In sqr.ini we have "UseUnicodeInternal = True". All the SQR-ENCODING-* settings report "UTF-8" if I log them in the output. Can someone give us some tips on how to get UTF-8 characters to print properly via a PostScript job? I can't seem to find any documentation on this. -Robin -- Robin John West Administrative Computing Information Technology Services (ITS) Dalhousie University (902) 494-1680 Robin.West@Dal.ca _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 02 14:52:33 2009 From: "franck.masson" Subject: Re:[sqr-users] UTF-8 characters not displaying properly in PostScript output Date: Fri, 2 Oct 2009 20:49:46 +0200 (CEST) hi, do you get the correct output with PDF ?=20 if yes then use acrobatreader on unix to send it to your Postcript printer.= (see your acrobat reader readme file on unix) what is the character that is not properly displayed ? i do not thiink that Postscript is Unicode/Utf8 enabled. you should try to specify the output encoding in sqr and use/set the proper= postscri.str file Franck, > Message du 02/10/09 19:51 > De : "Robin John West"=20 > A : sqr-users@sqrug.org > Copie =C3=A0 :=20 > Objet : [sqr-users] UTF-8 characters not displaying properly in PostScrip= t output > >=20 > We are in the process of converting our database to the UTF-8=20 > character set. We have one SQR report (out of 100+) which produces its=20 > output in PostScript format (because it needs to include a graphic).=20 > The output for this report does not display non-ASCII characters=20 > properly, either when printed or via a utility such as GhostView. >=20 > Our environment: > Oracle 10g (10.2.0.4) > Hyperion SQR 9.3.1 > Solaris 10 >=20 > In sqr.ini we have "UseUnicodeInternal =3D True". All the SQR-ENCODING-*= =20 > settings report "UTF-8" if I log them in the output. >=20 > Can someone give us some tips on how to get UTF-8 characters to print=20 > properly via a PostScript job? I can't seem to find any documentation=20 > on this. >=20 > -Robin >=20 > --=20 > Robin John West > Administrative Computing > Information Technology Services (ITS) > Dalhousie University > (902) 494-1680 > Robin.West@Dal.ca >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------= -=20 Laposte.net f=C3=AAte ses 10 ans !=20 Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des milli= ons d'internautes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie=20 ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 06 15:11:48 2009 Date: Tue, 06 Oct 2009 16:09:19 -0300 From: Robin John West Subject: Re:[sqr-users] UTF-8 characters not displaying properly in PostScript output Hi Franck - thanks for the response. Yes the output is correct if I=20=20 use PDF format (at least for latin accented characters). But I would=20=20 rather not go through the extra step of producing PDF output and then=20=20 converting it to PostScript - it will cause complications for other=20=20 scripts that run this report. My understanding is that if I use the post_iso.str file (instead of=20=20 postscri.str) and un-comment the appropriate code section(s), the=20=20 output should display accented characters properly in PostScript=20=20 format. However, this is not the case. For example, it is encoding an=20=20 "=E8" character (e grave) as "\303\250" in the PostScript output,=20=20 instead of "\232" which is what is listed for "=E8" in the code tables=20= =20 in post_iso.str. The same report prints the "=E8" properly in any other output format=20=20 (pdf, text, console). It is only the PostScript format that is=20=20 incorrect. What else needs to be changed to get these characters to=20=20 display properly in PostScript? -Robin --=20 Robin John West Administrative Computing Information Technology Services (ITS) Dalhousie University (902) 494-1680 Robin.West@Dal.ca _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 06 15:21:47 2009 From: "franck.masson" Subject: Re:[sqr-users] UTF-8 characters not displaying properly in PostScript output Date: Tue, 6 Oct 2009 21:18:45 +0200 (CEST) you have to specify that your encoding output is iso-latin1 > Message du 06/10/09 21:11 > De : "Robin John West"=20 > A : sqr-users@sqrug.org > Copie =C3=A0 :=20 > Objet : Re:[sqr-users] UTF-8 characters not displaying properly in PostSc= ript output > >=20 > Hi Franck - thanks for the response. Yes the output is correct if I=20 > use PDF format (at least for latin accented characters). But I would=20 > rather not go through the extra step of producing PDF output and then=20 > converting it to PostScript - it will cause complications for other=20 > scripts that run this report. >=20 > My understanding is that if I use the post_iso.str file (instead of=20 > postscri.str) and un-comment the appropriate code section(s), the=20 > output should display accented characters properly in PostScript=20 > format. However, this is not the case. For example, it is encoding an=20 > "=C3=A8" character (e grave) as "\303\250" in the PostScript output,=20 > instead of "\232" which is what is listed for "=C3=A8" in the code tables= =20 > in post_iso.str. >=20 > The same report prints the "=C3=A8" properly in any other output format= =20 > (pdf, text, console). It is only the PostScript format that is=20 > incorrect. What else needs to be changed to get these characters to=20 > display properly in PostScript? >=20 > -Robin >=20 > --=20 > Robin John West > Administrative Computing > Information Technology Services (ITS) > Dalhousie University > (902) 494-1680 > Robin.West@Dal.ca >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------= -=20 Laposte.net f=C3=AAte ses 10 ans !=20 Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des milli= ons d'internautes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie=20 ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 09 06:37:12 2009 From: Gopalakrishnan Rengasamy Date: Fri, 9 Oct 2009 16:06:46 +0530 Subject: [sqr-users] Reg: Right Alignment of text Dear Friends, Is this possible to print the text as Right aligned using SQR? Thanks and Regards Gopal. R _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 09 12:07:58 2009 From: "Barry E. Cohen" Date: Fri, 9 Oct 2009 12:05:32 -0400 Subject: [sqr-users] Puzzling issue... Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell: 201-805-2598 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Oct 09 12:13:03 2009 From: "Barry E. Cohen" Date: Fri, 9 Oct 2009 12:10:16 -0400 Subject: [sqr-users] Puzzling issue... Hello Listers, =20 I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). =20 The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. =20 Any insight would be greatly appreciated. =20 Regards, Barry =20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Oct 09 12:16:07 2009 From: Larry Roux Date: Fri, 9 Oct 2009 12:11:02 -0400 Subject: [sqr-users] RE: Puzzling issue... So, you don't get the SQR has completed message, and no other error? Could= the server OS be killing it due to a Deadlock issue or something?=20=20 Could a Server Admin be joking with you and killing the process? -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Barry E. Cohen Sent: Friday, October 09, 2009 12:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] Puzzling issue... Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell: 201-805-2598 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 12:29:12 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Fri, 9 Oct 2009 12:26:33 -0400 From: "Pactwa, Marissa" Barry, We have the same issue. We only get the microsoft windows error message and no error log at all. And it fails sporadically, it would fail at one point and after we run the same selections with the same data half an hour later, it would run successfully. I've been working with Oracle support on this and have not gotten any resolution so far. I will be very interested if anybody would have an answer for this. We have SQR 9.3 also on Windows Server 2003.=20 Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Barry E. Cohen Sent: Friday, October 09, 2009 12:10 PM To: sqr-users@sqrug.org Subject: [sqr-users] Puzzling issue... Hello Listers, =20 I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish). =20 The problem is that the SQR just dies with no error written to the sqr.log file. I've run the program to completion when limiting the number of transactions processed, and I've also run it to completion, without limiting the transactions, on a similar but different server. Both runs were against the same physical database. =20 Any insight would be greatly appreciated. =20 Regards, Barry =20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 12:41:06 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Fri, 9 Oct 2009 12:38:21 -0400 From: "Pactwa, Marissa" I forgot to mention, I get the same issue when I ran on my machine and I have Windows XP. Do you, by any chance, have Hyperion BI+ installed? Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Pactwa, Marissa Sent: Friday, October 09, 2009 12:27 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Barry, We have the same issue. We only get the microsoft windows error message and no error log at all. And it fails sporadically, it would fail at one point and after we run the same selections with the same data half an hour later, it would run successfully. I've been working with Oracle support on this and have not gotten any resolution so far. I will be very interested if anybody would have an answer for this. We have SQR 9.3 also on Windows Server 2003.=20 Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Barry E. Cohen Sent: Friday, October 09, 2009 12:10 PM To: sqr-users@sqrug.org Subject: [sqr-users] Puzzling issue... Hello Listers, =20 I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish). =20 The problem is that the SQR just dies with no error written to the sqr.log file. I've run the program to completion when limiting the number of transactions processed, and I've also run it to completion, without limiting the transactions, on a similar but different server. Both runs were against the same physical database. =20 Any insight would be greatly appreciated. =20 Regards, Barry =20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 09 12:49:36 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Fri, 9 Oct 2009 12:46:41 -0400 From: "Simon, Jason (MBS)" Hey Barry and Mellisa, This is kind of a pain but I have used it in the past to TS where and why a sqr is failing. Create new output file at the start of your begin-program. Then write to this file before and after each significant step noting what is successfully completed. Also put " on-error=3DERROR_PROC " in your begin-select statements and point it to the below procedure. It uses reserved variables to capture and write important information to your log file. When you create your log file make sure that you set it up with=20 open-append so you don't overwrite it during your testing.=20=20 Then run it several times and through a couple of failures. Reviewing the log file should give you some idea why it is failing and if there is a common cause. I am assuming that 1 is the file number of your log you create change it to what ever number you assign it so it writes to the correct file. Begin-Procedure ERROR_PROC Write 1 from 'SQR Version' Write 1 from $sqr-ver Write 1 from 'Program File:' Write 1 from $sqr-program Write 1 from 'Platform:' Write 1 from $sqr-platform Write 1 from 'Host Name:' Write 1 from $sqr-hostname Write 1 from 'SQL Sent to DB:' Write 1 from $sql-text Write 1 from 'SQL ERROR MESSAGE:' Write 1 from $sql-error Write 1 from '' End-Procedure ERROR_PROC HTH Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Pactwa, Marissa Sent: Friday, October 09, 2009 12:27 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Barry, We have the same issue. We only get the microsoft windows error message and no error log at all. And it fails sporadically, it would fail at one point and after we run the same selections with the same data half an hour later, it would run successfully. I've been working with Oracle support on this and have not gotten any resolution so far. I will be very interested if anybody would have an answer for this. We have SQR 9.3 also on Windows Server 2003.=20 Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Barry E. Cohen Sent: Friday, October 09, 2009 12:10 PM To: sqr-users@sqrug.org Subject: [sqr-users] Puzzling issue... Hello Listers, =20 I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish). =20 The problem is that the SQR just dies with no error written to the sqr.log file. I've run the program to completion when limiting the number of transactions processed, and I've also run it to completion, without limiting the transactions, on a similar but different server. Both runs were against the same physical database. =20 Any insight would be greatly appreciated. =20 Regards, Barry =20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 09 14:03:32 2009 Date: Fri, 9 Oct 2009 11:00:18 -0700 (PDT) From: Lalit Chaudhry Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make sure the sq= r path is pointing to the right directory on the server where all the sqr's= are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure.=A0 If you are not the intended recipient you may not read, copy, distribute or use this information.=A0 If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 09 14:31:34 2009 From: "Barry E. Cohen" Date: Fri, 9 Oct 2009 14:28:48 -0400 Subject: [sqr-users] RE: Puzzling issue... Thanks for the suggestions so far, but none have hit the mark... Larry, some type of "dead-lock" or "dropped communication" between the app = and db servers is possible, but the db log shows no errors. Jason, I did run with debug and multiple "show" messages as to the progress= of the program, it didn't stop in the same place twice, nor with the same = data being processed. Lalit, the directory is correct. The program starts, the log begins capturi= ng data, the database gets data updated, but the program just stops mid run= , without any messages, error or otherwise. Thanks for the suggestions! _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Oct 09 14:36:22 2009 From: Larry Roux Date: Fri, 9 Oct 2009 14:33:06 -0400 Subject: [sqr-users] RE: Puzzling issue... Could some data be being loaded that contains something that would cause a = memory failure (ie data too long to be held in memory such as a field with = a gig of data) or something? Just guessing here -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Barry E. Cohen Sent: Friday, October 09, 2009 2:29 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Puzzling issue... Thanks for the suggestions so far, but none have hit the mark... Larry, some type of "dead-lock" or "dropped communication" between the app = and db servers is possible, but the db log shows no errors. Jason, I did run with debug and multiple "show" messages as to the progress= of the program, it didn't stop in the same place twice, nor with the same = data being processed. Lalit, the directory is correct. The program starts, the log begins capturi= ng data, the database gets data updated, but the program just stops mid run= , without any messages, error or otherwise. Thanks for the suggestions! _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 14:43:42 2009 From: "Barry E. Cohen" Date: Fri, 9 Oct 2009 14:40:43 -0400 Subject: [sqr-users] RE: Puzzling issue... Hi Larry, No, the program works with data currently stored in the DB, no external dat= a sources. Also I ran the program for the same data-set from a different ap= p with success. Thanks, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Oct 09 14:46:52 2009 Subject: RE: [sqr-users] RE: Puzzling issue... Date: Fri, 9 Oct 2009 14:41:03 -0400 From: "Simon, Jason (MBS)" There is one other issue that does happen to me from time to time that sounds similar to your issue. It is only when I am using Hyperion though not SQR. If there is a invalid date in the date field and I try to limit on that field my query will just stop without warning. At that point I do a binary search to find the issue.=20 HTH Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Barry E. Cohen Sent: Friday, October 09, 2009 2:29 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Puzzling issue... Thanks for the suggestions so far, but none have hit the mark... Larry, some type of "dead-lock" or "dropped communication" between the app and db servers is possible, but the db log shows no errors. Jason, I did run with debug and multiple "show" messages as to the progress of the program, it didn't stop in the same place twice, nor with the same data being processed. Lalit, the directory is correct. The program starts, the log begins capturing data, the database gets data updated, but the program just stops mid run, without any messages, error or otherwise. Thanks for the suggestions! _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 14:53:18 2009 Date: Fri, 9 Oct 2009 14:50:42 -0400 Subject: Re: [sqr-users] Reg: Right Alignment of text From: Don Mellen Yes, it is. The "How" depends on various things... To what output type? What font are you using? What version of SQR? On Fri, Oct 9, 2009 at 6:36 AM, Gopalakrishnan Rengasamy < gopalakrishnan.rengasamy@kumaran.com> wrote: > Dear Friends, > > Is this possible to print the text as Right aligned using SQR? > > Thanks and Regards > Gopal. R > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 09 15:17:26 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Fri, 9 Oct 2009 15:14:06 -0400 From: "Simon, Jason (MBS)" Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make sure the sq= r path is pointing to the right directory on the server where all the sqr's= are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure.=A0 If you are not the intended recipient you may not read, copy, distribute or use this information.=A0 If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 09 15:21:17 2009 From: "Barry E. Cohen" Date: Fri, 9 Oct 2009 15:18:20 -0400 Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Oct 09 15:44:32 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Fri, 9 Oct 2009 15:41:19 -0400 From: "Simon, Jason (MBS)" I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 17:25:59 2009 From: "Barry E. Cohen" Date: Fri, 9 Oct 2009 17:23:11 -0400 Subject: RE: [sqr-users] Puzzling issue... This sounds, like we're moving in the right direction, but I'm uncertain of= what you mean by the term "Job Factory". I was speaking with our DBA, and = the term was unfamiliar to him as well. Would you please explain what that = means. Thanks, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Sat Oct 10 06:17:23 2009 From: Ravi Subject: RE: [sqr-users] Reg: Right Alignment of text Date: Sat, 10 Oct 2009 15:46:58 +0530 Hi Don, Thanks for your information. Following is the details you have asked. Font type used: Alter-Printer Font=4 Point-Size=8 ! [SQR.INI] 4=Arial,proportional Output Format: Generating PDF output. SQR version: Hyperion SQR 8.3 Thanks & Regards Ravi. B Kumaran Systems Extn 3234 -----Original Message----- From: sqr-users-bounces+ravi.balasubramanian=kumaran.com@sqrug.org [mailto:sqr-users-bounces+ravi.balasubramanian=kumaran.com@sqrug.org] On Behalf Of Don Mellen Sent: October 10, 2009 12:21 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Reg: Right Alignment of text Yes, it is. The "How" depends on various things... To what output type? What font are you using? What version of SQR? On Fri, Oct 9, 2009 at 6:36 AM, Gopalakrishnan Rengasamy < gopalakrishnan.rengasamy@kumaran.com> wrote: > Dear Friends, > > Is this possible to print the text as Right aligned using SQR? > > Thanks and Regards > Gopal. R > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 12 09:09:14 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Mon, 12 Oct 2009 09:06:00 -0400 From: "Simon, Jason (MBS)" I believe that the job factories are Hyperion applications that manage the = scheduled jobs on your workspace.=20=20=20=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 5:23 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This sounds, like we're moving in the right direction, but I'm uncertain of= what you mean by the term "Job Factory". I was speaking with our DBA, and = the term was unfamiliar to him as well. Would you please explain what that = means. Thanks, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 12 11:37:33 2009 Date: Mon, 12 Oct 2009 11:34:28 -0400 Subject: Re: [sqr-users] Reg: Right Alignment of text From: Don Mellen For direct PDF, the most exact way is also the most work. You need a 1pt by 1pt grid for your layout (1pt line-height and 1pt char-width). You'll need to find the Adobe Font Metrics files for the font you are using (which by the way, would be Helvetica for number 4 in this case), they have an extension of .afm. Be sure you have all the ones you may need (separate files for regular, bold, italic, bold-italic, etc.) Read the afm and store the widths for individual characters. Add up the individual widths of each character in your string, then there's some calculations needed based on UOM in the afm file and what font size you are using. That would give you the width of the string. OR You can print to a postcript file instead, I believe there's a postcript command for "right aligned" that you can "print-direct" into the output. Then, after you're done with the output, you can convert the postscript file to pdf using any of numerous converters already talked about in the archives. OR For a VERY quick and dirty method if you don't need exact alignment (which, I assume, is not the case here), you can assume an average width for characters and use that to calculate the approximate width of the string (still using 1pt x 1pt). Many fonts have an average character width close to 6.5 times the font-size. If you might have all caps in some strings and not in others, you'd need a "cap-width" and a "non-cap-width" average character width to use in the calc. OR Switch to a non-proportional font. On Sat, Oct 10, 2009 at 6:16 AM, Ravi wrote: > Hi Don, > > > > Thanks for your information. > > > > Following is the details you have asked. > > > > Font type used: Alter-Printer Font=4 Point-Size=8 ! [SQR.INI] > 4=Arial,proportional > > Output Format: Generating PDF output. > > SQR version: Hyperion SQR 8.3 > > > > > > Thanks & Regards > > Ravi. B > > Kumaran Systems > > Extn 3234 > > > > -----Original Message----- > From: sqr-users-bounces+ravi.balasubramanian=kumaran.com@sqrug.org > [mailto:sqr-users-bounces+ravi.balasubramanian > =kumaran.com@sqrug.org] On > Behalf Of Don Mellen > Sent: October 10, 2009 12:21 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Reg: Right Alignment of text > > > > Yes, it is. > > The "How" depends on various things... > > To what output type? > > What font are you using? > > What version of SQR? > > > > On Fri, Oct 9, 2009 at 6:36 AM, Gopalakrishnan Rengasamy < > > gopalakrishnan.rengasamy@kumaran.com> wrote: > > > > > Dear Friends, > > > > > > Is this possible to print the text as Right aligned using SQR? > > > > > > Thanks and Regards > > > Gopal. R > > > > > > _______________________________________________ > > > 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" > > (Terry Pratchett) > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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" (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 Oct 12 14:04:11 2009 Date: Mon, 12 Oct 2009 14:01:25 -0400 Subject: Re: [sqr-users] Reg: Right Alignment of text From: Don Mellen My bad, the rough calculation should be about 0.65 times the font size, not 6.5. On Mon, Oct 12, 2009 at 11:34 AM, Don Mellen wrote: > For direct PDF, the most exact way is also the most work. > You need a 1pt by 1pt grid for your layout (1pt line-height and 1pt > char-width). > You'll need to find the Adobe Font Metrics files for the font you are using > (which by the way, would be Helvetica for number 4 in this case), they have > an extension of .afm. Be sure you have all the ones you may need (separate > files for regular, bold, italic, bold-italic, etc.) > Read the afm and store the widths for individual characters. > Add up the individual widths of each character in your string, then there's > some calculations needed based on UOM in the afm file and what font size you > are using. That would give you the width of the string. > > OR > > You can print to a postcript file instead, I believe there's a postcript > command for "right aligned" that you can "print-direct" into the output. > Then, after you're done with the output, you can convert the postscript file > to pdf using any of numerous converters already talked about in the > archives. > > OR > > For a VERY quick and dirty method if you don't need exact alignment (which, > I assume, is not the case here), you can assume an average width for > characters and use that to calculate the approximate width of the string > (still using 1pt x 1pt). Many fonts have an average character width close > to 6.5 times the font-size. If you might have all caps in some strings and > not in others, you'd need a "cap-width" and a "non-cap-width" average > character width to use in the calc. > > OR > > Switch to a non-proportional font. > > > > On Sat, Oct 10, 2009 at 6:16 AM, Ravi wrote: > >> Hi Don, >> >> >> >> Thanks for your information. >> >> >> >> Following is the details you have asked. >> >> >> >> Font type used: Alter-Printer Font=4 Point-Size=8 ! [SQR.INI] >> 4=Arial,proportional >> >> Output Format: Generating PDF output. >> >> SQR version: Hyperion SQR 8.3 >> >> >> >> >> >> Thanks & Regards >> >> Ravi. B >> >> Kumaran Systems >> >> Extn 3234 >> >> >> >> -----Original Message----- >> From: sqr-users-bounces+ravi.balasubramanian=kumaran.com@sqrug.org >> [mailto:sqr-users-bounces+ravi.balasubramanian >> =kumaran.com@sqrug.org] On >> Behalf Of Don Mellen >> Sent: October 10, 2009 12:21 AM >> To: This list is for discussion about the SQR database reporting >> languagefrom Hyperion Solutions. >> Subject: Re: [sqr-users] Reg: Right Alignment of text >> >> >> >> Yes, it is. >> >> The "How" depends on various things... >> >> To what output type? >> >> What font are you using? >> >> What version of SQR? >> >> >> >> On Fri, Oct 9, 2009 at 6:36 AM, Gopalakrishnan Rengasamy < >> >> gopalakrishnan.rengasamy@kumaran.com> wrote: >> >> >> >> > Dear Friends, >> >> > >> >> > Is this possible to print the text as Right aligned using SQR? >> >> > >> >> > Thanks and Regards >> >> > Gopal. R >> >> > >> >> > _______________________________________________ >> >> > 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" >> >> (Terry Pratchett) >> >> >> >> _______________________________________________ >> >> sqr-users mailing list >> >> sqr-users@sqrug.org >> >> 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" > (Terry Pratchett) > -- ----------------------------------------------------------------------- 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 Fri Oct 16 09:33:13 2009 Date: Fri, 16 Oct 2009 09:30:00 -0400 From: "Simon, Jason (MBS)" Subject: [sqr-users] Blat fails to send an email when using -of and option file. Hey All, We are running into an issue where SQR's set up on the job scheduler are not sending emails when we use an option file (-of). Blat will send emails from the workspace so long as we don't use an option file.=20=20 I have tested this several times and a SQR will run as intended from my desktop using an option file so I am at a loss as to why it is not running. This was working fine until about two weeks ago and now it is not running. I am not an admin but the SQR developer and I have to work with the admins to try and figure this out.=20=20 We are running the Hyperion workspace on Windows Server 2003. Hyperion version 9.3.1 SQR version 9.3.1=20=20 Blat version 2.6.2 Here is our send mail proc Begin-Procedure Send_Emails let $Error_Cnt =3D to_char(#Error_Cnt) let $error_cnt =3D edit($error_cnt, 'xxx') Print $error_cnt (+1,#col1) let $linefeed =3D chr(10) let $enter =3D chr(13) let $htab =3D chr(9) let $vtab =3D chr(11) let $formFeed =3D chr(12) let $Subject =3D $error_cnt||'rows in MY REPORT NAME $0 <> ' let $Cmd_Line =3D 'blat - -of "\\DRIVE\folder1\folder2\folder3\REPORT NAME $0.TXT" -Subject "'||$Subject||'" ' let $system_command =3D $Cmd_Line Call system using $system_command #call_status if #call_status <> 0 write 1 from 'Error Sending Mail' write 1 from $system_command show ' ' show 'Error Sending Mail' show '' show #call_status show $system_command show ' ' else write 1 from 'email successfull' end-if End-Procedure Send_Emails BLAT FILE CONTENTS -log "\\\\DRIVE\\Data\\SQR\\BLAT\\Logs\\REPORT NAME $0 BLAT.log" -timestamp -maxNames 100 -to "soandso@myemail.com,soorso@myemail.com" -cc "mysoandso@myemail.com" -f "worspaceid@myemail.com" -body "This is your report||Your report can also be found in the folder on the website.|||myname|reportname $0|||If you have any questions regarding this report please email me." -attach "\\\\DRive\\folder1\\folder2\\folder3\\folder4\\folder5\\MY REPORT NAME $0.xls" -server "soandso.soandso.com" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 16 09:53:56 2009 From: "Barry E. Cohen" Date: Fri, 16 Oct 2009 09:50:56 -0400 Subject: RE: [sqr-users] Blat fails to send an email when using -of and option file. Did the server passwords, permissions or even addresses change? Some times = the network/opps guys make a change, and process that cross machines will s= top functioning. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 16, 2009 9:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] Blat fails to send an email when using -of and option = file.=20 Hey All, We are running into an issue where SQR's set up on the job scheduler are n= ot sending emails when we use an option file (-of). Blat will send emails f= rom the workspace so long as we don't use an option file.=20=20 I have tested this several times and a SQR will run as intended from = my desktop using an option file so I am at a loss as to why it is not runni= ng. This was working fine until about two weeks ago and now it is not runn= ing. I am not an admin but the SQR developer and I have to work with the a= dmins to try and figure this out.=20=20 We are running the Hyperion workspace on Windows Server 2003. Hyperion version 9.3.1 SQR version 9.3.1 Blat version 2.6.2 Here is our send mail proc Begin-Procedure Send_Emails let $Error_Cnt =3D to_char(#Error_Cnt) let $error_cnt =3D edit($error_cnt, 'xxx') Print $error_cnt (+1,#col1) let $linefeed =3D chr(10) let $enter =3D chr(13) let $htab =3D chr(9) let $vtab =3D chr(11) let $formFeed =3D chr(12) let $Subject =3D $error_cnt||'rows in MY REPORT NAME $0 <> ' let $Cmd_Line =3D 'blat - -of "\\DRIVE\folder1\folder2\folder3\REPORT NAME = $0.TXT" -Subject "'||$Subject||'" ' let $system_command =3D $Cmd_Line Call system using $system_command #call_status if #call_status <> 0 write 1 from 'Error Sending Mail' write 1 from $system_command show ' ' show 'Error Sending Mail' show '' show #call_status show $system_command show ' ' else write 1 from 'email successfull' end-if End-Procedure Send_Emails BLAT FILE CONTENTS -log "\\\\DRIVE\\Data\\SQR\\BLAT\\Logs\\REPORT NAME $0 BLAT.log" -timestamp -maxNames 100 -to "soandso@myemail.com,soorso@myemail.com" -cc "mysoandso@myemail.com" -f "worspaceid@myemail.com" -body "This is your report||Your report can also be found in the folder on = the website.|||myname|reportname $0|||If you have any questions regarding t= his report please email me." -attach "\\\\DRive\\folder1\\folder2\\folder3\\folder4\\folder5\\MY REPORT NAME $0.xls" -server "soandso.soandso.com" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Mon Oct 19 14:10:19 2009 Date: Mon, 19 Oct 2009 14:07:31 -0400 From: Paul Retherford Subject: [sqr-users] 11g compatibility Is anyone using SQR 8 (8.3.1 in our case) with Oracle 11g? Thanks, Paul Retherford AIM: rethepaul _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 19 14:21:27 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Mon, 19 Oct 2009 14:18:42 -0400 From: "Pactwa, Marissa" Jason, How do you add a new job factory or increase the memory from Hyperion? Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Simon,= Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 19 14:25:56 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Mon, 19 Oct 2009 14:22:43 -0400 From: "Simon, Jason (MBS)" I am sorry I am at a loss on how to do this. I only know that is what told = me they had to do in order to get this going. Go to ITTOOLBOX and search i= n the Brio groups and there should be some information to lead you in the r= ight direction.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Pactwa, Marissa Sent: Monday, October 19, 2009 2:19 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Jason, How do you add a new job factory or increase the memory from Hyperion? Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Simon,= Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 19 16:03:06 2009 From: "Barry E. Cohen" Date: Mon, 19 Oct 2009 16:00:16 -0400 Subject: RE: [sqr-users] Puzzling issue... I was talking to our DBA, and he feels it may have something to do with the= version of Java we're running on the machine that is giving us problems. I= 'll post if that was the issue once we get the Java on that machine updated= ...=20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Monday, October 19, 2009 2:23 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am sorry I am at a loss on how to do this. I only know that is what told = me they had to do in order to get this going. Go to ITTOOLBOX and search i= n the Brio groups and there should be some information to lead you in the r= ight direction.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Pactwa, Marissa Sent: Monday, October 19, 2009 2:19 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Jason, How do you add a new job factory or increase the memory from Hyperion? Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Simon,= Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Mon Oct 19 16:10:47 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Mon, 19 Oct 2009 15:07:05 -0500 From: "Aguirre, Jose" Did you run the SQR from a shortcut or an online process? Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of Barry E. Cohen Sent: Monday, October 19, 2009 3:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I was talking to our DBA, and he feels it may have something to do with the= version of Java we're running on the machine that is giving us problems. I= 'll post if that was the issue once we get the Java on that machine updated= ...=20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Monday, October 19, 2009 2:23 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am sorry I am at a loss on how to do this. I only know that is what told = me they had to do in order to get this going. Go to ITTOOLBOX and search i= n the Brio groups and there should be some information to lead you in the r= ight direction.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Pactwa, Marissa Sent: Monday, October 19, 2009 2:19 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Jason, How do you add a new job factory or increase the memory from Hyperion? Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Simon,= Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 19 16:23:47 2009 From: "franck.masson" Subject: RE: [sqr-users] Puzzling issue... Date: Mon, 19 Oct 2009 22:20:56 +0200 (CEST) Hi, What is the output format of your sqr job ? if it is pdf or lp or hp or ps then it is not a java issue but may be a tmp= /working folder issue it is a java issue only if you are producing html, graphics or CSV files. i do not think that Increasing the number of JF will solve your issue. provide us more detail of your sqr ouput (format , content, size ) if you are running a 8.3 version then you can not disable the html output e= xept if you use some workaround. Franck, Franck, > Message du 19/10/09 22:03 > De : "Barry E. Cohen"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : RE: [sqr-users] Puzzling issue... > >=20 > I was talking to our DBA, and he feels it may have something to do with t= he version of Java we're running on the machine that is giving us problems.= I'll post if that was the issue once we get the Java on that machine updat= ed...=20 >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-user= s-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) > Sent: Monday, October 19, 2009 2:23 PM > To: This list is for discussion about the SQR database reportinglanguage = from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > I am sorry I am at a loss on how to do this. I only know that is what tol= d me they had to do in order to get this going. Go to ITTOOLBOX and search = in the Brio groups and there should be some information to lead you in the = right direction.=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f Pactwa, Marissa > Sent: Monday, October 19, 2009 2:19 PM > To: This list is for discussion about the SQR database reportinglanguage = fromHyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 >=20 > Jason, >=20 > How do you add a new job factory or increase the memory from Hyperion? >=20 > Thanks. > Marissa >=20 > -----Original Message----- > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:s= qr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Simo= n, Jason (MBS) > Sent: Friday, October 09, 2009 3:41 PM > To: This list is for discussion about the SQR database reportinglanguage = fromHyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > I am not an admin but I do know that we had to create a several new job f= actories and increase the memory because our jobs were just not running or = dropping out without notice. We have about 2k jobs running a day.=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f Barry E. Cohen > Sent: Friday, October 09, 2009 3:18 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > This is what we're leaning towards, but we're wondering if there is some = parameter or setting in the .ini or allmax file that we could adjust to get= a positive result. >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-user= s-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) > Sent: Friday, October 09, 2009 3:14 PM > To: This list is for discussion about the SQR database reportinglanguage = from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > Could you not have enough memory for the job factories to run correctly s= o it is just dropping the jobs? >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f Lalit Chaudhry > Sent: Friday, October 09, 2009 2:00 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: Re: [sqr-users] Puzzling issue... >=20 > Hi Barry, >=20 > Most of the time this happens, when the system cannot access the sqr prog= ram XXXXX.sqr check you path in the config file of the process scheduler,ma= ke sure the sqr path is pointing to the right directory on the server where= all the sqr's are >=20 > Lalit Chaudhry >=20 > --- On Fri, 10/9/09, Barry E. Cohen wrote: >=20 >=20 > From: Barry E. Cohen=20 > Subject: [sqr-users] Puzzling issue... > To: "sqr-users@sqrug.org"=20 > Date: Friday, October 9, 2009, 12:05 PM >=20 >=20 > Hello Listers, >=20 > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 = database of ADP-Enterprise 5.3(PeopleSoft-ish). >=20 > The problem is that the SQR just dies with no error written to the sqr.lo= g file. I've run the program to completion when limiting the number of tran= sactions processed, and I've also run it to completion, without limiting th= e transactions, on a similar but different server. Both runs were against t= he same physical database. >=20 > Any insight would be greatly appreciated. >=20 > Regards, Barry >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 > Cell: 201-805-2598 >=20 >=20 >=20 > The information contained in this e-mail and any attached documents may b= e privileged, confidential and protected from disclosure. If you are not th= e intended recipient you may not read, copy, distribute or use this informa= tion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached documents may b= e privileged, confidential and protected from disclosure. If you are not th= e intended recipient you may not read, copy, distribute or use this informa= tion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=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 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------= -=20 Laposte.net f=C3=AAte ses 10 ans !=20 Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des milli= ons d'internautes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie=20 ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 20 09:14:22 2009 From: "Barry E. Cohen" Date: Tue, 20 Oct 2009 09:09:18 -0400 Subject: RE: [sqr-users] Puzzling issue... =20 The job is run from a .bat that calls sqrw with command line flags. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Aguirre, Jose Sent: Monday, October 19, 2009 4:07 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Did you run the SQR from a shortcut or an online process? Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of Barry E. Cohen Sent: Monday, October 19, 2009 3:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I was talking to our DBA, and he feels it may have something to do with the= version of Java we're running on the machine that is giving us problems. I= 'll post if that was the issue once we get the Java on that machine updated= ...=20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Monday, October 19, 2009 2:23 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am sorry I am at a loss on how to do this. I only know that is what told = me they had to do in order to get this going. Go to ITTOOLBOX and search i= n the Brio groups and there should be some information to lead you in the r= ight direction.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Pactwa, Marissa Sent: Monday, October 19, 2009 2:19 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Jason, How do you add a new job factory or increase the memory from Hyperion? Thanks. Marissa -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Simon,= Jason (MBS) Sent: Friday, October 09, 2009 3:41 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... I am not an admin but I do know that we had to create a several new job fac= tories and increase the memory because our jobs were just not running or dr= opping out without notice. We have about 2k jobs running a day.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Barry E. Cohen Sent: Friday, October 09, 2009 3:18 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... This is what we're leaning towards, but we're wondering if there is some pa= rameter or setting in the .ini or allmax file that we could adjust to get a= positive result. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, October 09, 2009 3:14 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Could you not have enough memory for the job factories to run correctly so = it is just dropping the jobs? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Lalit Chaudhry Sent: Friday, October 09, 2009 2:00 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Puzzling issue... Hi Barry, =A0 Most of the time this happens, when the system cannot access the sqr progra= m XXXXX.sqr check you path in the config file of the process scheduler,make= sure the sqr path is pointing to the right directory on the server where a= ll the sqr's are =A0 Lalit Chaudhry --- On Fri, 10/9/09, Barry E. Cohen wrote: From: Barry E. Cohen Subject: [sqr-users] Puzzling issue... To: "sqr-users@sqrug.org" Date: Friday, October 9, 2009, 12:05 PM Hello Listers, I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 da= tabase of ADP-Enterprise 5.3(PeopleSoft-ish). The problem is that the SQR just dies with no error written to the sqr.log = file. I've run the program to completion when limiting the number of transa= ctions processed, and I've also run it to completion, without limiting the = transactions, on a similar but different server. Both runs were against the= same physical database. Any insight would be greatly appreciated. Regards, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Cell:=A0=A0=A0201-805-2598 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure.=A0 If you are not t= he intended recipient you may not read, copy, distribute or use this inform= ation.=A0 If you have received this communication in error, please notify t= he sender immediately by replying to this message and then delete it from y= our system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Tue Oct 20 09:19:51 2009 From: "Barry E. Cohen" Date: Tue, 20 Oct 2009 09:15:55 -0400 Subject: RE: [sqr-users] Puzzling issue... Hello Franck, The only output is the sqr.log file. The process reads data from tables, an= d does inserts and updates to other tables with that data. We haven't updated the Java version yet, because we have our old version of= our recently upgraded HR/PR app there. The old version won't run with the = newer Java, and we're not yet ready to put that environment away. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson Sent: Monday, October 19, 2009 4:21 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Hi, What is the output format of your sqr job ? if it is pdf or lp or hp or ps then it is not a java issue but may be a tmp= /working folder issue it is a java issue only if you are producing html, gr= aphics or CSV files. i do not think that Increasing the number of JF will solve your issue. provide us more detail of your sqr ouput (format , content, size ) if you a= re running a 8.3 version then you can not disable the html output exept if = you use some workaround. Franck, Franck, > Message du 19/10/09 22:03 > De : "Barry E. Cohen"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =E0 :=20 > Objet : RE: [sqr-users] Puzzling issue... > >=20 > I was talking to our DBA, and he feels it may have something to do with t= he version of Java we're running on the machine that is giving us problems.= I'll post if that was the issue once we get the Java on that machine updat= ed...=20 >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org=20 > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of= =20 > Simon, Jason (MBS) > Sent: Monday, October 19, 2009 2:23 PM > To: This list is for discussion about the SQR database reportinglanguage = from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > I am sorry I am at a loss on how to do this. I only know that is what tol= d me they had to do in order to get this going. Go to ITTOOLBOX and search = in the Brio groups and there should be some information to lead you in the = right direction.=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On= =20 > Behalf Of Pactwa, Marissa > Sent: Monday, October 19, 2009 2:19 PM > To: This list is for discussion about the SQR database reportinglanguage = fromHyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 >=20 > Jason, >=20 > How do you add a new job factory or increase the memory from Hyperion? >=20 > Thanks. > Marissa >=20 > -----Original Message----- > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org=20 > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On=20 > Behalf Of Simon, Jason (MBS) > Sent: Friday, October 09, 2009 3:41 PM > To: This list is for discussion about the SQR database reportinglanguage = fromHyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > I am not an admin but I do know that we had to create a several new job f= actories and increase the memory because our jobs were just not running or = dropping out without notice. We have about 2k jobs running a day.=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On= =20 > Behalf Of Barry E. Cohen > Sent: Friday, October 09, 2009 3:18 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > This is what we're leaning towards, but we're wondering if there is some = parameter or setting in the .ini or allmax file that we could adjust to get= a positive result. >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org=20 > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of= =20 > Simon, Jason (MBS) > Sent: Friday, October 09, 2009 3:14 PM > To: This list is for discussion about the SQR database reportinglanguage = from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > Could you not have enough memory for the job factories to run correctly s= o it is just dropping the jobs? >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On= =20 > Behalf Of Lalit Chaudhry > Sent: Friday, October 09, 2009 2:00 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: Re: [sqr-users] Puzzling issue... >=20 > Hi Barry, >=20 > Most of the time this happens, when the system cannot access the sqr=20 > program XXXXX.sqr check you path in the config file of the process=20 > scheduler,make sure the sqr path is pointing to the right directory on=20 > the server where all the sqr's are >=20 > Lalit Chaudhry >=20 > --- On Fri, 10/9/09, Barry E. Cohen wrote: >=20 >=20 > From: Barry E. Cohen > Subject: [sqr-users] Puzzling issue... > To: "sqr-users@sqrug.org"=20 > Date: Friday, October 9, 2009, 12:05 PM >=20 >=20 > Hello Listers, >=20 > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.03 = database of ADP-Enterprise 5.3(PeopleSoft-ish). >=20 > The problem is that the SQR just dies with no error written to the sqr.lo= g file. I've run the program to completion when limiting the number of tran= sactions processed, and I've also run it to completion, without limiting th= e transactions, on a similar but different server. Both runs were against t= he same physical database. >=20 > Any insight would be greatly appreciated. >=20 > Regards, Barry >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 > Cell: 201-805-2598 >=20 >=20 >=20 > The information contained in this e-mail and any attached documents=20 > may be privileged, confidential and protected from disclosure. If you=20 > are not the intended recipient you may not read, copy, distribute or=20 > use this information. If you have received this communication in=20 > error, please notify the sender immediately by replying to this=20 > message and then delete it from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached documents=20 > may be privileged, confidential and protected from disclosure. If you=20 > are not the intended recipient you may not read, copy, distribute or=20 > use this information. If you have received this communication in=20 > error, please notify the sender immediately by replying to this=20 > message and then delete it from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=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 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached documents=20 > may be privileged, confidential and protected from disclosure. If you=20 > are not the intended recipient you may not read, copy, distribute or=20 > use this information. If you have received this communication in=20 > error, please notify the sender immediately by replying to this=20 > message and then delete it from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------- Laposte.net f=EAte ses 10 ans !=20 Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'intern= autes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Tue Oct 20 15:36:17 2009 From: "franck.masson" Subject: RE: [sqr-users] Puzzling issue... Date: Tue, 20 Oct 2009 21:33:00 +0200 (CEST) Hi, In this scenario/usage there are no correlation with the java version. You are running on windows.=20 What is your version of Hyperion server ? 8.3 , 8.5 , 9.2=20 So try to login to your windows server using the same user as you have defi= ned to start your Hyperion windows service. and try to launch/execute your sqr using a dos windows To collect the bat file used by the Hyperion Job Factory, launch the RSC co= nsole and set the JF in debug mode then execute your sqr program and then go to the BrioPlatform/server/JF1xxx= /tmp you should find a tmp directory that contain the bat file used by the JF to= run it. Franck, > Message du 20/10/09 15:19 > De : "Barry E. Cohen"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : RE: [sqr-users] Puzzling issue... > >=20 > Hello Franck, >=20 > The only output is the sqr.log file. The process reads data from tables, = and does inserts and updates to other tables with that data. >=20 > We haven't updated the Java version yet, because we have our old version = of our recently upgraded HR/PR app there. The old version won't run with th= e newer Java, and we're not yet ready to put that environment away. >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-user= s-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson > Sent: Monday, October 19, 2009 4:21 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > Hi, >=20 > What is the output format of your sqr job ? > if it is pdf or lp or hp or ps then it is not a java issue but may be a t= mp/working folder issue it is a java issue only if you are producing html, = graphics or CSV files. >=20 > i do not think that Increasing the number of JF will solve your issue. >=20 > provide us more detail of your sqr ouput (format , content, size ) if you= are running a 8.3 version then you can not disable the html output exept i= f you use some workaround. >=20 > Franck, > Franck, >=20 >=20 >=20 > > Message du 19/10/09 22:03 > > De : "Barry E. Cohen"=20 > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions."=20 > > Copie =C3=A0 :=20 > > Objet : RE: [sqr-users] Puzzling issue... > > > >=20 > > I was talking to our DBA, and he feels it may have something to do with= the version of Java we're running on the machine that is giving us problem= s. I'll post if that was the issue once we get the Java on that machine upd= ated...=20 > >=20 > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org=20 > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf O= f=20 > > Simon, Jason (MBS) > > Sent: Monday, October 19, 2009 2:23 PM > > To: This list is for discussion about the SQR database reportinglanguag= e from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > I am sorry I am at a loss on how to do this. I only know that is what t= old me they had to do in order to get this going. Go to ITTOOLBOX and searc= h in the Brio groups and there should be some information to lead you in th= e right direction.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] O= n=20 > > Behalf Of Pactwa, Marissa > > Sent: Monday, October 19, 2009 2:19 PM > > To: This list is for discussion about the SQR database reportinglanguag= e fromHyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > >=20 > > Jason, > >=20 > > How do you add a new job factory or increase the memory from Hyperion? > >=20 > > Thanks. > > Marissa > >=20 > > -----Original Message----- > > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org=20 > > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On= =20 > > Behalf Of Simon, Jason (MBS) > > Sent: Friday, October 09, 2009 3:41 PM > > To: This list is for discussion about the SQR database reportinglanguag= e fromHyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > I am not an admin but I do know that we had to create a several new job= factories and increase the memory because our jobs were just not running o= r dropping out without notice. We have about 2k jobs running a day.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] O= n=20 > > Behalf Of Barry E. Cohen > > Sent: Friday, October 09, 2009 3:18 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > This is what we're leaning towards, but we're wondering if there is som= e parameter or setting in the .ini or allmax file that we could adjust to g= et a positive result. > >=20 > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org=20 > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf O= f=20 > > Simon, Jason (MBS) > > Sent: Friday, October 09, 2009 3:14 PM > > To: This list is for discussion about the SQR database reportinglanguag= e from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > Could you not have enough memory for the job factories to run correctly= so it is just dropping the jobs? > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] O= n=20 > > Behalf Of Lalit Chaudhry > > Sent: Friday, October 09, 2009 2:00 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: Re: [sqr-users] Puzzling issue... > >=20 > > Hi Barry, > >=20 > > Most of the time this happens, when the system cannot access the sqr=20 > > program XXXXX.sqr check you path in the config file of the process=20 > > scheduler,make sure the sqr path is pointing to the right directory on= =20 > > the server where all the sqr's are > >=20 > > Lalit Chaudhry > >=20 > > --- On Fri, 10/9/09, Barry E. Cohen wrote: > >=20 > >=20 > > From: Barry E. Cohen > > Subject: [sqr-users] Puzzling issue... > > To: "sqr-users@sqrug.org"=20 > > Date: Friday, October 9, 2009, 12:05 PM > >=20 > >=20 > > Hello Listers, > >=20 > > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.0= 3 database of ADP-Enterprise 5.3(PeopleSoft-ish). > >=20 > > The problem is that the SQR just dies with no error written to the sqr.= log file. I've run the program to completion when limiting the number of tr= ansactions processed, and I've also run it to completion, without limiting = the transactions, on a similar but different server. Both runs were against= the same physical database. > >=20 > > Any insight would be greatly appreciated. > >=20 > > Regards, Barry > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > > Cell: 201-805-2598 > >=20 > >=20 > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If you= =20 > > are not the intended recipient you may not read, copy, distribute or=20 > > use this information. If you have received this communication in=20 > > error, please notify the sender immediately by replying to this=20 > > message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If you= =20 > > are not the intended recipient you may not read, copy, distribute or=20 > > use this information. If you have received this communication in=20 > > error, please notify the sender immediately by replying to this=20 > > message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=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 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If you= =20 > > are not the intended recipient you may not read, copy, distribute or=20 > > use this information. If you have received this communication in=20 > > error, please notify the sender immediately by replying to this=20 > > message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > -------------------------------------------------------------------------= --- > Laposte.net f=C3=AAte ses 10 ans !=20 >=20 > Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des mil= lions d'internautes...=20 > vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 >=20 > Laposte.net, bien + qu'une messagerie > -------------------------------------------------------------------------= --- >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------= -=20 Laposte.net f=C3=AAte ses 10 ans !=20 Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des milli= ons d'internautes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie=20 ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 20 16:19:39 2009 From: "Barry E. Cohen" Date: Tue, 20 Oct 2009 16:16:45 -0400 Subject: RE: [sqr-users] Puzzling issue... Hi Franck, I'm not sure what you mean by "What is your version of Hyperion server?". We are running SQRW v8.3 on a Windows Server 2003 app server, against an Or= acle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish) also on a Windo= ws 2003 server. We are not running a Hyperion server that I'm aware of. I must also admit that I'm not much of a systems guy, and my main role is r= eally app development, data interfacing, and data mining. Thanks, Barry _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson Sent: Tuesday, October 20, 2009 3:33 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Hi, In this scenario/usage there are no correlation with the java version. You are running on windows.=20 What is your version of Hyperion server ? 8.3 , 8.5 , 9.2 So try to login t= o your windows server using the same user as you have defined to start your= Hyperion windows service. and try to launch/execute your sqr using a dos windows To collect the bat f= ile used by the Hyperion Job Factory, launch the RSC console and set the JF= in debug mode then execute your sqr program and then go to the BrioPlatfor= m/server/JF1xxx/tmp you should find a tmp directory that contain the bat fi= le used by the JF to run it. Franck, > Message du 20/10/09 15:19 > De : "Barry E. Cohen"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =E0 :=20 > Objet : RE: [sqr-users] Puzzling issue... > >=20 > Hello Franck, >=20 > The only output is the sqr.log file. The process reads data from tables, = and does inserts and updates to other tables with that data. >=20 > We haven't updated the Java version yet, because we have our old version = of our recently upgraded HR/PR app there. The old version won't run with th= e newer Java, and we're not yet ready to put that environment away. >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org=20 > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of= =20 > franck.masson > Sent: Monday, October 19, 2009 4:21 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > Hi, >=20 > What is the output format of your sqr job ? > if it is pdf or lp or hp or ps then it is not a java issue but may be a t= mp/working folder issue it is a java issue only if you are producing html, = graphics or CSV files. >=20 > i do not think that Increasing the number of JF will solve your issue. >=20 > provide us more detail of your sqr ouput (format , content, size ) if you= are running a 8.3 version then you can not disable the html output exept i= f you use some workaround. >=20 > Franck, > Franck, >=20 >=20 >=20 > > Message du 19/10/09 22:03 > > De : "Barry E. Cohen"=20 > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : RE: [sqr-users] Puzzling issue... > > > >=20 > > I was talking to our DBA, and he feels it may have something to do with= the version of Java we're running on the machine that is giving us problem= s. I'll post if that was the issue once we get the Java on that machine upd= ated...=20 > >=20 > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf= =20 > > Of Simon, Jason (MBS) > > Sent: Monday, October 19, 2009 2:23 PM > > To: This list is for discussion about the SQR database reportinglanguag= e from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > I am sorry I am at a loss on how to do this. I only know that is what t= old me they had to do in order to get this going. Go to ITTOOLBOX and searc= h in the Brio groups and there should be some information to lead you in th= e right direction.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org]= =20 > > On Behalf Of Pactwa, Marissa > > Sent: Monday, October 19, 2009 2:19 PM > > To: This list is for discussion about the SQR database reportinglanguag= e fromHyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > >=20 > > Jason, > >=20 > > How do you add a new job factory or increase the memory from Hyperion? > >=20 > > Thanks. > > Marissa > >=20 > > -----Original Message----- > > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org > > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On= =20 > > Behalf Of Simon, Jason (MBS) > > Sent: Friday, October 09, 2009 3:41 PM > > To: This list is for discussion about the SQR database reportinglanguag= e fromHyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > I am not an admin but I do know that we had to create a several new job= factories and increase the memory because our jobs were just not running o= r dropping out without notice. We have about 2k jobs running a day.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org]= =20 > > On Behalf Of Barry E. Cohen > > Sent: Friday, October 09, 2009 3:18 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > This is what we're leaning towards, but we're wondering if there is som= e parameter or setting in the .ini or allmax file that we could adjust to g= et a positive result. > >=20 > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf= =20 > > Of Simon, Jason (MBS) > > Sent: Friday, October 09, 2009 3:14 PM > > To: This list is for discussion about the SQR database reportinglanguag= e from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > Could you not have enough memory for the job factories to run correctly= so it is just dropping the jobs? > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org]= =20 > > On Behalf Of Lalit Chaudhry > > Sent: Friday, October 09, 2009 2:00 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: Re: [sqr-users] Puzzling issue... > >=20 > > Hi Barry, > >=20 > > Most of the time this happens, when the system cannot access the sqr=20 > > program XXXXX.sqr check you path in the config file of the process=20 > > scheduler,make sure the sqr path is pointing to the right directory=20 > > on the server where all the sqr's are > >=20 > > Lalit Chaudhry > >=20 > > --- On Fri, 10/9/09, Barry E. Cohen wrote: > >=20 > >=20 > > From: Barry E. Cohen > > Subject: [sqr-users] Puzzling issue... > > To: "sqr-users@sqrug.org"=20 > > Date: Friday, October 9, 2009, 12:05 PM > >=20 > >=20 > > Hello Listers, > >=20 > > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2.0= 3 database of ADP-Enterprise 5.3(PeopleSoft-ish). > >=20 > > The problem is that the SQR just dies with no error written to the sqr.= log file. I've run the program to completion when limiting the number of tr= ansactions processed, and I've also run it to completion, without limiting = the transactions, on a similar but different server. Both runs were against= the same physical database. > >=20 > > Any insight would be greatly appreciated. > >=20 > > Regards, Barry > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > > Cell: 201-805-2598 > >=20 > >=20 > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If=20 > > you are not the intended recipient you may not read, copy,=20 > > distribute or use this information. If you have received this=20 > > communication in error, please notify the sender immediately by=20 > > replying to this message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If=20 > > you are not the intended recipient you may not read, copy,=20 > > distribute or use this information. If you have received this=20 > > communication in error, please notify the sender immediately by=20 > > replying to this message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=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 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If=20 > > you are not the intended recipient you may not read, copy,=20 > > distribute or use this information. If you have received this=20 > > communication in error, please notify the sender immediately by=20 > > replying to this message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > ---------------------------------------------------------------------- > ------ > Laposte.net f=EAte ses 10 ans !=20 >=20 > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'inte= rnautes...=20 > vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 >=20 > Laposte.net, bien + qu'une messagerie > ---------------------------------------------------------------------- > ------ >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached documents=20 > may be privileged, confidential and protected from disclosure. If you=20 > are not the intended recipient you may not read, copy, distribute or=20 > use this information. If you have received this communication in=20 > error, please notify the sender immediately by replying to this=20 > message and then delete it from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------- Laposte.net f=EAte ses 10 ans !=20 Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'intern= autes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Tue Oct 20 16:43:48 2009 From: "franck.masson" Subject: RE: [sqr-users] Puzzling issue... Date: Tue, 20 Oct 2009 22:40:46 +0200 (CEST) Hi, Sorry, i thought you are running Hyperion Performance Suite product as you = are talking about java setting. I have red that you are launching your sqr using a bat file. what is the information that you have been able to collect in the sqr log f= ile or sqr err file ?=20 do you have the Hand on this bat file ?=20 if yes try to add this option within the sqr line -Ec:\tmp\mysqr.err and add this command before the launch of sqr set > c:\tmp\mybat.err with this you will be able to see if you have any windows setting issues and can you share the content of your bat file=20 Franck, > Message du 20/10/09 22:19 > De : "Barry E. Cohen"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : RE: [sqr-users] Puzzling issue... > >=20 > Hi Franck, >=20 > I'm not sure what you mean by "What is your version of Hyperion server?". >=20 > We are running SQRW v8.3 on a Windows Server 2003 app server, against an = Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish) also on a Win= dows 2003 server. We are not running a Hyperion server that I'm aware of. >=20 > I must also admit that I'm not much of a systems guy, and my main role is= really app development, data interfacing, and data mining. >=20 > Thanks, Barry >=20 >=20 > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems >=20 > Office: 201-287-4287 >=20 > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-user= s-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson > Sent: Tuesday, October 20, 2009 3:33 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... >=20 > Hi, > In this scenario/usage there are no correlation with the java version. > You are running on windows.=20 > What is your version of Hyperion server ? 8.3 , 8.5 , 9.2 So try to login= to your windows server using the same user as you have defined to start yo= ur Hyperion windows service. > and try to launch/execute your sqr using a dos windows To collect the bat= file used by the Hyperion Job Factory, launch the RSC console and set the = JF in debug mode then execute your sqr program and then go to the BrioPlatf= orm/server/JF1xxx/tmp you should find a tmp directory that contain the bat = file used by the JF to run it. >=20 > Franck, >=20 >=20 >=20 > > Message du 20/10/09 15:19 > > De : "Barry E. Cohen"=20 > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions."=20 > > Copie =C3=A0 :=20 > > Objet : RE: [sqr-users] Puzzling issue... > > > >=20 > > Hello Franck, > >=20 > > The only output is the sqr.log file. The process reads data from tables= , and does inserts and updates to other tables with that data. > >=20 > > We haven't updated the Java version yet, because we have our old versio= n of our recently upgraded HR/PR app there. The old version won't run with = the newer Java, and we're not yet ready to put that environment away. > >=20 > >=20 > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > >=20 > > Office: 201-287-4287 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org=20 > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf O= f=20 > > franck.masson > > Sent: Monday, October 19, 2009 4:21 PM > > To: This list is for discussion about the SQR database reporting langua= ge from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > >=20 > > Hi, > >=20 > > What is the output format of your sqr job ? > > if it is pdf or lp or hp or ps then it is not a java issue but may be a= tmp/working folder issue it is a java issue only if you are producing html= , graphics or CSV files. > >=20 > > i do not think that Increasing the number of JF will solve your issue. > >=20 > > provide us more detail of your sqr ouput (format , content, size ) if y= ou are running a 8.3 version then you can not disable the html output exept= if you use some workaround. > >=20 > > Franck, > > Franck, > >=20 > >=20 > >=20 > > > Message du 19/10/09 22:03 > > > De : "Barry E. Cohen"=20 > > > A : "This list is for discussion about the SQR database reporting lan= guage from Hyperion Solutions."=20 > > > Copie =C3=A0 :=20 > > > Objet : RE: [sqr-users] Puzzling issue... > > > > > >=20 > > > I was talking to our DBA, and he feels it may have something to do wi= th the version of Java we're running on the machine that is giving us probl= ems. I'll post if that was the issue once we get the Java on that machine u= pdated...=20 > > >=20 > > >=20 > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > >=20 > > > Office: 201-287-4287 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf= =20 > > > Of Simon, Jason (MBS) > > > Sent: Monday, October 19, 2009 2:23 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > >=20 > > > I am sorry I am at a loss on how to do this. I only know that is what= told me they had to do in order to get this going. Go to ITTOOLBOX and sea= rch in the Brio groups and there should be some information to lead you in = the right direction.=20 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org]= =20 > > > On Behalf Of Pactwa, Marissa > > > Sent: Monday, October 19, 2009 2:19 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > >=20 > > >=20 > > > Jason, > > >=20 > > > How do you add a new job factory or increase the memory from Hyperion? > > >=20 > > > Thanks. > > > Marissa > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org > > > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On= =20 > > > Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:41 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > >=20 > > > I am not an admin but I do know that we had to create a several new j= ob factories and increase the memory because our jobs were just not running= or dropping out without notice. We have about 2k jobs running a day.=20 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org]= =20 > > > On Behalf Of Barry E. Cohen > > > Sent: Friday, October 09, 2009 3:18 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > >=20 > > > This is what we're leaning towards, but we're wondering if there is s= ome parameter or setting in the .ini or allmax file that we could adjust to= get a positive result. > > >=20 > > >=20 > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > >=20 > > > Office: 201-287-4287 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf= =20 > > > Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:14 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > >=20 > > > Could you not have enough memory for the job factories to run correct= ly so it is just dropping the jobs? > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org]= =20 > > > On Behalf Of Lalit Chaudhry > > > Sent: Friday, October 09, 2009 2:00 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] Puzzling issue... > > >=20 > > > Hi Barry, > > >=20 > > > Most of the time this happens, when the system cannot access the sqr= =20 > > > program XXXXX.sqr check you path in the config file of the process=20 > > > scheduler,make sure the sqr path is pointing to the right directory= =20 > > > on the server where all the sqr's are > > >=20 > > > Lalit Chaudhry > > >=20 > > > --- On Fri, 10/9/09, Barry E. Cohen wrote: > > >=20 > > >=20 > > > From: Barry E. Cohen > > > Subject: [sqr-users] Puzzling issue... > > > To: "sqr-users@sqrug.org"=20 > > > Date: Friday, October 9, 2009, 12:05 PM > > >=20 > > >=20 > > > Hello Listers, > > >=20 > > > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2= .03 database of ADP-Enterprise 5.3(PeopleSoft-ish). > > >=20 > > > The problem is that the SQR just dies with no error written to the sq= r.log file. I've run the program to completion when limiting the number of = transactions processed, and I've also run it to completion, without limitin= g the transactions, on a similar but different server. Both runs were again= st the same physical database. > > >=20 > > > Any insight would be greatly appreciated. > > >=20 > > > Regards, Barry > > >=20 > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > >=20 > > > Office: 201-287-4287 > > > Cell: 201-805-2598 > > >=20 > > >=20 > > >=20 > > > The information contained in this e-mail and any attached documents= =20 > > > may be privileged, confidential and protected from disclosure. If=20 > > > you are not the intended recipient you may not read, copy,=20 > > > distribute or use this information. If you have received this=20 > > > communication in error, please notify the sender immediately by=20 > > > replying to this message and then delete it from your system > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > > The information contained in this e-mail and any attached documents= =20 > > > may be privileged, confidential and protected from disclosure. If=20 > > > you are not the intended recipient you may not read, copy,=20 > > > distribute or use this information. If you have received this=20 > > > communication in error, please notify the sender immediately by=20 > > > replying to this message and then delete it from your system > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=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 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > > The information contained in this e-mail and any attached documents= =20 > > > may be privileged, confidential and protected from disclosure. If=20 > > > you are not the intended recipient you may not read, copy,=20 > > > distribute or use this information. If you have received this=20 > > > communication in error, please notify the sender immediately by=20 > > > replying to this message and then delete it from your system > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > >=20 > > ---------------------------------------------------------------------- > > ------ > > Laposte.net f=C3=AAte ses 10 ans !=20 > >=20 > > Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des m= illions d'internautes...=20 > > vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 > >=20 > > Laposte.net, bien + qu'une messagerie > > ---------------------------------------------------------------------- > > ------ > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > > The information contained in this e-mail and any attached documents=20 > > may be privileged, confidential and protected from disclosure. If you= =20 > > are not the intended recipient you may not read, copy, distribute or=20 > > use this information. If you have received this communication in=20 > > error, please notify the sender immediately by replying to this=20 > > message and then delete it from your system > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > -------------------------------------------------------------------------= --- > Laposte.net f=C3=AAte ses 10 ans !=20 >=20 > Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des mil= lions d'internautes...=20 > vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 >=20 > Laposte.net, bien + qu'une messagerie > -------------------------------------------------------------------------= --- >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 ---------------------------------------------------------------------------= -=20 Laposte.net f=C3=AAte ses 10 ans !=20 Gratuite, garantie =C3=A0 vie et d=C3=A9j=C3=A0 utilis=C3=A9e par des milli= ons d'internautes...=20 vous aussi, pour votre adresse e-mail, choisissez laposte.net.=20 Laposte.net, bien + qu'une messagerie=20 ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 20 17:22:28 2009 From: "Barry E. Cohen" Date: Tue, 20 Oct 2009 17:19:13 -0400 Subject: RE: [sqr-users] Puzzling issue... Thanks for the continued suggestions Franck, I'll give your suggestions a try. The log contains any "show" information I put into the SQR itself, but when= it quits, it just quits with no additional output. There is error handling= on all the insert and update statements and those don't come into play. Th= e sqr just runs for a while, doing the required processing and then just st= ops. I've added commits to the program, so I know what's been done is still= there after the stop, and it doesn't stop with the same data in process ea= ch time. I've run the SQR from a different app server without issue. Below is the code from the .bat that I used to kick-off the SQR... @echo off :inputDB_NAME set DB_NAME=3D set /P DB_NAME=3DType the Database Name and hit Enter: %=3D% if "%DB_NAME%"=3D=3D"" goto inputDB_NAME :inputsqrname set SQRNAME=3D set /P SQRNAME=3DType the SQR Name and hit Enter: %=3D% if "%SQRNAME%"=3D=3D"" goto inputsqrname call E:\adp\adp500\sqr_uvn\uvn_bat\hidden\vars1%DB_NAME%.bat echo The test environment is: %DB_NAME% > e:\VendorFeeds\sqr_test\%SQRNAME%= _bat.log echo The sqr being tested is: %SQRNAME% >> e:\VendorFeeds\sqr_test\%SQRNAME= %_bat.log echo The user running the test is: %sysadm1% >> e:\VendorFeeds\sqr_test\%SQ= RNAME%_bat.log echo start /wait e:\adp\adp500\sqrbin\windows\sqrw e:\SQR_Test\%SQRNAME% %s= ysadm1%/%sysadm2%@%DB_NAME% -Ie:\adp\adp500\sqr_uvn\;e:\adp\adp500\sqr\ -Ee= :\VendorFeeds\sqr_test\%SQRNAME%_err.dat -PRINTER:EP -EH_DEBUG -Fe:\VendorF= eeds\sqr_test\%SQRNAME%.lis -Oe:\VendorFeeds\sqr_test\%SQRNAME%.log -S -KEE= P -Me:\adp\adp500\sqr\allmaxes.max >> e:\VendorFeeds\sqr_test\%SQRNAME%_ba= t.log >> e:\VendorFeeds\sqr_test\%SQRNAME%_bat.log start /wait e:\adp\adp500\sqrbin\windows\sqrw e:\SQR_Test\%SQRNAME% %sysadm= 1%/%sysadm2%@%DB_NAME% -Ie:\adp\adp500\sqr_uvn\;e:\adp\adp500\sqr\ -Ee:\Ven= dorFeeds\sqr_test\%SQRNAME%_err.dat -PRINTER:EP -EH_DEBUG -Fe:\VendorFeeds\= sqr_test\%SQRNAME%.lis -Oe:\VendorFeeds\sqr_test\%SQRNAME%.log -S -KEEP -Me= :\adp\adp500\sqr\allmaxes.max call E:\adp\adp500\sqr_uvn\uvn_bat\hidden\vars2%DB_NAME%.bat _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson Sent: Tuesday, October 20, 2009 4:41 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Hi, Sorry, i thought you are running Hyperion Performance Suite product as you = are talking about java setting. I have red that you are launching your sqr using a bat file. what is the information that you have been able to collect in the sqr log f= ile or sqr err file ? do you have the Hand on this bat file ? if yes try to add this option within the sqr line -Ec:\tmp\mysqr.err and ad= d this command before the launch of sqr set > c:\tmp\mybat.err with this yo= u will be able to see if you have any windows setting issues and can you share the content of your bat file Franck, > Message du 20/10/09 22:19 > De : "Barry E. Cohen" > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions." > Copie =E0 : > Objet : RE: [sqr-users] Puzzling issue... > > > Hi Franck, > > I'm not sure what you mean by "What is your version of Hyperion server?". > > We are running SQRW v8.3 on a Windows Server 2003 app server, against an = Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish) also on a Win= dows 2003 server. We are not running a Hyperion server that I'm aware of. > > I must also admit that I'm not much of a systems guy, and my main role is= really app development, data interfacing, and data mining. > > Thanks, Barry > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of > franck.masson > Sent: Tuesday, October 20, 2009 3:33 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... > > Hi, > In this scenario/usage there are no correlation with the java version. > You are running on windows. > What is your version of Hyperion server ? 8.3 , 8.5 , 9.2 So try to login= to your windows server using the same user as you have defined to start yo= ur Hyperion windows service. > and try to launch/execute your sqr using a dos windows To collect the bat= file used by the Hyperion Job Factory, launch the RSC console and set the = JF in debug mode then execute your sqr program and then go to the BrioPlatf= orm/server/JF1xxx/tmp you should find a tmp directory that contain the bat = file used by the JF to run it. > > Franck, > > > > > Message du 20/10/09 15:19 > > De : "Barry E. Cohen" > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions." > > Copie =E0 : > > Objet : RE: [sqr-users] Puzzling issue... > > > > > > Hello Franck, > > > > The only output is the sqr.log file. The process reads data from tables= , and does inserts and updates to other tables with that data. > > > > We haven't updated the Java version yet, because we have our old versio= n of our recently upgraded HR/PR app there. The old version won't run with = the newer Java, and we're not yet ready to put that environment away. > > > > > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > > > > Office: 201-287-4287 > > > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf > > Of franck.masson > > Sent: Monday, October 19, 2009 4:21 PM > > To: This list is for discussion about the SQR database reporting langua= ge from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > > > > Hi, > > > > What is the output format of your sqr job ? > > if it is pdf or lp or hp or ps then it is not a java issue but may be a= tmp/working folder issue it is a java issue only if you are producing html= , graphics or CSV files. > > > > i do not think that Increasing the number of JF will solve your issue. > > > > provide us more detail of your sqr ouput (format , content, size ) if y= ou are running a 8.3 version then you can not disable the html output exept= if you use some workaround. > > > > Franck, > > Franck, > > > > > > > > > Message du 19/10/09 22:03 > > > De : "Barry E. Cohen" > > > A : "This list is for discussion about the SQR database reporting lan= guage from Hyperion Solutions." > > > Copie =E0 : > > > Objet : RE: [sqr-users] Puzzling issue... > > > > > > > > > I was talking to our DBA, and he feels it may have something to do wi= th the version of Java we're running on the machine that is giving us probl= ems. I'll post if that was the issue once we get the Java on that machine u= pdated... > > > > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On > > > Behalf Of Simon, Jason (MBS) > > > Sent: Monday, October 19, 2009 2:23 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > I am sorry I am at a loss on how to do this. I only know that is what= told me they had to do in order to get this going. Go to ITTOOLBOX and sea= rch in the Brio groups and there should be some information to lead you in = the right direction. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Pactwa, Marissa > > > Sent: Monday, October 19, 2009 2:19 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > > > > Jason, > > > > > > How do you add a new job factory or increase the memory from Hyperion? > > > > > > Thanks. > > > Marissa > > > > > > -----Original Message----- > > > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org > > > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] > > > On Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:41 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > I am not an admin but I do know that we had to create a several new j= ob factories and increase the memory because our jobs were just not running= or dropping out without notice. We have about 2k jobs running a day. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Barry E. Cohen > > > Sent: Friday, October 09, 2009 3:18 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > This is what we're leaning towards, but we're wondering if there is s= ome parameter or setting in the .ini or allmax file that we could adjust to= get a positive result. > > > > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On > > > Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:14 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > Could you not have enough memory for the job factories to run correct= ly so it is just dropping the jobs? > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Lalit Chaudhry > > > Sent: Friday, October 09, 2009 2:00 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] Puzzling issue... > > > > > > Hi Barry, > > > > > > Most of the time this happens, when the system cannot access the > > > sqr program XXXXX.sqr check you path in the config file of the > > > process scheduler,make sure the sqr path is pointing to the right > > > directory on the server where all the sqr's are > > > > > > Lalit Chaudhry > > > > > > --- On Fri, 10/9/09, Barry E. Cohen wrote: > > > > > > > > > From: Barry E. Cohen > > > Subject: [sqr-users] Puzzling issue... > > > To: "sqr-users@sqrug.org" > > > Date: Friday, October 9, 2009, 12:05 PM > > > > > > > > > Hello Listers, > > > > > > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2= .03 database of ADP-Enterprise 5.3(PeopleSoft-ish). > > > > > > The problem is that the SQR just dies with no error written to the sq= r.log file. I've run the program to completion when limiting the number of = transactions processed, and I've also run it to completion, without limitin= g the transactions, on a similar but different server. Both runs were again= st the same physical database. > > > > > > Any insight would be greatly appreciated. > > > > > > Regards, Barry > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > Cell: 201-805-2598 > > > > > > > > > > > > The information contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > > > > > > The information contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > -------------------------------------------------------------------- > > -- > > ------ > > Laposte.net f=EAte ses 10 ans ! > > > > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'in= ternautes... > > vous aussi, pour votre adresse e-mail, choisissez laposte.net. > > > > Laposte.net, bien + qu'une messagerie > > -------------------------------------------------------------------- > > -- > > ------ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > The information contained in this e-mail and any attached documents > > may be privileged, confidential and protected from disclosure. If > > you are not the intended recipient you may not read, copy, > > distribute or use this information. If you have received this > > communication in error, please notify the sender immediately by > > replying to this message and then delete it from your system > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ---------------------------------------------------------------------- > ------ > Laposte.net f=EAte ses 10 ans ! > > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'inte= rnautes... > vous aussi, pour votre adresse e-mail, choisissez laposte.net. > > Laposte.net, bien + qu'une messagerie > ---------------------------------------------------------------------- > ------ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached documents > may be privileged, confidential and protected from disclosure. If you > are not the intended recipient you may not read, copy, distribute or > use this information. If you have received this communication in > error, please notify the sender immediately by replying to this > message and then delete it from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ---------------------------------------------------------------------------- Laposte.net f=EAte ses 10 ans ! Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'intern= autes... vous aussi, pour votre adresse e-mail, choisissez laposte.net. Laposte.net, bien + qu'une messagerie ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Wed Oct 21 08:36:28 2009 Subject: RE: [sqr-users] Puzzling issue... Date: Wed, 21 Oct 2009 08:32:21 -0400 From: "Pactwa, Marissa" Sorry Barry, for piggyback-ing on your thread. But it's sounding more like = we have the same issue. I notice this happens to us (the occassional SQR fa= ilures with no error logs) when there are a lot of processes running at the= same time. Sort of like a contention issue. We've asked the DBA's to look = at this and they have found nothing. The weird thing is, this only happens = to SQR jobs. None of the pl/sql packages that are running ever failed or st= opped because of contention. -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Barry = E. Cohen Sent: Tuesday, October 20, 2009 5:19 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Thanks for the continued suggestions Franck, I'll give your suggestions a try. The log contains any "show" information I put into the SQR itself, but when= it quits, it just quits with no additional output. There is error handling= on all the insert and update statements and those don't come into play. Th= e sqr just runs for a while, doing the required processing and then just st= ops. I've added commits to the program, so I know what's been done is still= there after the stop, and it doesn't stop with the same data in process ea= ch time. I've run the SQR from a different app server without issue. Below is the code from the .bat that I used to kick-off the SQR... @echo off :inputDB_NAME set DB_NAME=3D set /P DB_NAME=3DType the Database Name and hit Enter: %=3D% if "%DB_NAME%"=3D=3D"" goto inputDB_NAME :inputsqrname set SQRNAME=3D set /P SQRNAME=3DType the SQR Name and hit Enter: %=3D% if "%SQRNAME%"=3D=3D"" goto inputsqrname call E:\adp\adp500\sqr_uvn\uvn_bat\hidden\vars1%DB_NAME%.bat echo The test environment is: %DB_NAME% > e:\VendorFeeds\sqr_test\%SQRNAME%= _bat.log echo The sqr being tested is: %SQRNAME% >> e:\VendorFeeds\sqr_test\%SQRNAME= %_bat.log echo The user running the test is: %sysadm1% >> e:\VendorFeeds\sqr_test\%SQ= RNAME%_bat.log echo start /wait e:\adp\adp500\sqrbin\windows\sqrw e:\SQR_Test\%SQRNAME% %s= ysadm1%/%sysadm2%@%DB_NAME% -Ie:\adp\adp500\sqr_uvn\;e:\adp\adp500\sqr\ -Ee= :\VendorFeeds\sqr_test\%SQRNAME%_err.dat -PRINTER:EP -EH_DEBUG -Fe:\VendorF= eeds\sqr_test\%SQRNAME%.lis -Oe:\VendorFeeds\sqr_test\%SQRNAME%.log -S -KEE= P -Me:\adp\adp500\sqr\allmaxes.max >> e:\VendorFeeds\sqr_test\%SQRNAME%_ba= t.log >> e:\VendorFeeds\sqr_test\%SQRNAME%_bat.log start /wait e:\adp\adp500\sqrbin\windows\sqrw e:\SQR_Test\%SQRNAME% %sysadm= 1%/%sysadm2%@%DB_NAME% -Ie:\adp\adp500\sqr_uvn\;e:\adp\adp500\sqr\ -Ee:\Ven= dorFeeds\sqr_test\%SQRNAME%_err.dat -PRINTER:EP -EH_DEBUG -Fe:\VendorFeeds\= sqr_test\%SQRNAME%.lis -Oe:\VendorFeeds\sqr_test\%SQRNAME%.log -S -KEEP -Me= :\adp\adp500\sqr\allmaxes.max call E:\adp\adp500\sqr_uvn\uvn_bat\hidden\vars2%DB_NAME%.bat _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson Sent: Tuesday, October 20, 2009 4:41 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Hi, Sorry, i thought you are running Hyperion Performance Suite product as you = are talking about java setting. I have red that you are launching your sqr using a bat file. what is the information that you have been able to collect in the sqr log f= ile or sqr err file ? do you have the Hand on this bat file ? if yes try to add this option within the sqr line -Ec:\tmp\mysqr.err and ad= d this command before the launch of sqr set > c:\tmp\mybat.err with this yo= u will be able to see if you have any windows setting issues and can you share the content of your bat file Franck, > Message du 20/10/09 22:19 > De : "Barry E. Cohen" > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions." > Copie =E0 : > Objet : RE: [sqr-users] Puzzling issue... > > > Hi Franck, > > I'm not sure what you mean by "What is your version of Hyperion server?". > > We are running SQRW v8.3 on a Windows Server 2003 app server, against an = Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish) also on a Win= dows 2003 server. We are not running a Hyperion server that I'm aware of. > > I must also admit that I'm not much of a systems guy, and my main role is= really app development, data interfacing, and data mining. > > Thanks, Barry > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of > franck.masson > Sent: Tuesday, October 20, 2009 3:33 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... > > Hi, > In this scenario/usage there are no correlation with the java version. > You are running on windows. > What is your version of Hyperion server ? 8.3 , 8.5 , 9.2 So try to login= to your windows server using the same user as you have defined to start yo= ur Hyperion windows service. > and try to launch/execute your sqr using a dos windows To collect the bat= file used by the Hyperion Job Factory, launch the RSC console and set the = JF in debug mode then execute your sqr program and then go to the BrioPlatf= orm/server/JF1xxx/tmp you should find a tmp directory that contain the bat = file used by the JF to run it. > > Franck, > > > > > Message du 20/10/09 15:19 > > De : "Barry E. Cohen" > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions." > > Copie =E0 : > > Objet : RE: [sqr-users] Puzzling issue... > > > > > > Hello Franck, > > > > The only output is the sqr.log file. The process reads data from tables= , and does inserts and updates to other tables with that data. > > > > We haven't updated the Java version yet, because we have our old versio= n of our recently upgraded HR/PR app there. The old version won't run with = the newer Java, and we're not yet ready to put that environment away. > > > > > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > > > > Office: 201-287-4287 > > > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf > > Of franck.masson > > Sent: Monday, October 19, 2009 4:21 PM > > To: This list is for discussion about the SQR database reporting langua= ge from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > > > > Hi, > > > > What is the output format of your sqr job ? > > if it is pdf or lp or hp or ps then it is not a java issue but may be a= tmp/working folder issue it is a java issue only if you are producing html= , graphics or CSV files. > > > > i do not think that Increasing the number of JF will solve your issue. > > > > provide us more detail of your sqr ouput (format , content, size ) if y= ou are running a 8.3 version then you can not disable the html output exept= if you use some workaround. > > > > Franck, > > Franck, > > > > > > > > > Message du 19/10/09 22:03 > > > De : "Barry E. Cohen" > > > A : "This list is for discussion about the SQR database reporting lan= guage from Hyperion Solutions." > > > Copie =E0 : > > > Objet : RE: [sqr-users] Puzzling issue... > > > > > > > > > I was talking to our DBA, and he feels it may have something to do wi= th the version of Java we're running on the machine that is giving us probl= ems. I'll post if that was the issue once we get the Java on that machine u= pdated... > > > > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On > > > Behalf Of Simon, Jason (MBS) > > > Sent: Monday, October 19, 2009 2:23 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > I am sorry I am at a loss on how to do this. I only know that is what= told me they had to do in order to get this going. Go to ITTOOLBOX and sea= rch in the Brio groups and there should be some information to lead you in = the right direction. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Pactwa, Marissa > > > Sent: Monday, October 19, 2009 2:19 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > > > > Jason, > > > > > > How do you add a new job factory or increase the memory from Hyperion? > > > > > > Thanks. > > > Marissa > > > > > > -----Original Message----- > > > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org > > > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] > > > On Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:41 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > I am not an admin but I do know that we had to create a several new j= ob factories and increase the memory because our jobs were just not running= or dropping out without notice. We have about 2k jobs running a day. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Barry E. Cohen > > > Sent: Friday, October 09, 2009 3:18 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > This is what we're leaning towards, but we're wondering if there is s= ome parameter or setting in the .ini or allmax file that we could adjust to= get a positive result. > > > > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On > > > Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:14 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > Could you not have enough memory for the job factories to run correct= ly so it is just dropping the jobs? > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Lalit Chaudhry > > > Sent: Friday, October 09, 2009 2:00 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] Puzzling issue... > > > > > > Hi Barry, > > > > > > Most of the time this happens, when the system cannot access the > > > sqr program XXXXX.sqr check you path in the config file of the > > > process scheduler,make sure the sqr path is pointing to the right > > > directory on the server where all the sqr's are > > > > > > Lalit Chaudhry > > > > > > --- On Fri, 10/9/09, Barry E. Cohen wrote: > > > > > > > > > From: Barry E. Cohen > > > Subject: [sqr-users] Puzzling issue... > > > To: "sqr-users@sqrug.org" > > > Date: Friday, October 9, 2009, 12:05 PM > > > > > > > > > Hello Listers, > > > > > > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2= .03 database of ADP-Enterprise 5.3(PeopleSoft-ish). > > > > > > The problem is that the SQR just dies with no error written to the sq= r.log file. I've run the program to completion when limiting the number of = transactions processed, and I've also run it to completion, without limitin= g the transactions, on a similar but different server. Both runs were again= st the same physical database. > > > > > > Any insight would be greatly appreciated. > > > > > > Regards, Barry > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > Cell: 201-805-2598 > > > > > > > > > > > > The information contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > > > > > > The information contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > -------------------------------------------------------------------- > > -- > > ------ > > Laposte.net f=EAte ses 10 ans ! > > > > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'in= ternautes... > > vous aussi, pour votre adresse e-mail, choisissez laposte.net. > > > > Laposte.net, bien + qu'une messagerie > > -------------------------------------------------------------------- > > -- > > ------ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > The information contained in this e-mail and any attached documents > > may be privileged, confidential and protected from disclosure. If > > you are not the intended recipient you may not read, copy, > > distribute or use this information. If you have received this > > communication in error, please notify the sender immediately by > > replying to this message and then delete it from your system > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ---------------------------------------------------------------------- > ------ > Laposte.net f=EAte ses 10 ans ! > > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'inte= rnautes... > vous aussi, pour votre adresse e-mail, choisissez laposte.net. > > Laposte.net, bien + qu'une messagerie > ---------------------------------------------------------------------- > ------ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached documents > may be privileged, confidential and protected from disclosure. If you > are not the intended recipient you may not read, copy, distribute or > use this information. If you have received this communication in > error, please notify the sender immediately by replying to this > message and then delete it from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ---------------------------------------------------------------------------- Laposte.net f=EAte ses 10 ans ! Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'intern= autes... vous aussi, pour votre adresse e-mail, choisissez laposte.net. Laposte.net, bien + qu'une messagerie ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 21 09:09:58 2009 From: "Barry E. Cohen" Date: Wed, 21 Oct 2009 09:05:36 -0400 Subject: RE: [sqr-users] Puzzling issue... No problem Marissa, though I don't wish it on anyone, it's nice to know I'm= not the only one with this problem ;~) _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Pactwa, Marissa Sent: Wednesday, October 21, 2009 8:32 AM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Sorry Barry, for piggyback-ing on your thread. But it's sounding more like = we have the same issue. I notice this happens to us (the occassional SQR fa= ilures with no error logs) when there are a lot of processes running at the= same time. Sort of like a contention issue. We've asked the DBA's to look = at this and they have found nothing. The weird thing is, this only happens = to SQR jobs. None of the pl/sql packages that are running ever failed or st= opped because of contention. -----Original Message----- From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org [mailto:sqr= -users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] On Behalf Of Barry = E. Cohen Sent: Tuesday, October 20, 2009 5:19 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Thanks for the continued suggestions Franck, I'll give your suggestions a try. The log contains any "show" information I put into the SQR itself, but when= it quits, it just quits with no additional output. There is error handling= on all the insert and update statements and those don't come into play. Th= e sqr just runs for a while, doing the required processing and then just st= ops. I've added commits to the program, so I know what's been done is still= there after the stop, and it doesn't stop with the same data in process ea= ch time. I've run the SQR from a different app server without issue. Below is the code from the .bat that I used to kick-off the SQR... @echo off :inputDB_NAME set DB_NAME=3D set /P DB_NAME=3DType the Database Name and hit Enter: %=3D% if "%DB_NAME%"= =3D=3D"" goto inputDB_NAME :inputsqrname set SQRNAME=3D set /P SQRNAME=3DType the SQR Name and hit Enter: %=3D% if "%SQRNAME%"=3D= =3D"" goto inputsqrname call E:\adp\adp500\sqr_uvn\uvn_bat\hidden\vars1%DB_NAME%.bat echo The test environment is: %DB_NAME% > e:\VendorFeeds\sqr_test\%SQRNAME%= _bat.log echo The sqr being tested is: %SQRNAME% >> e:\VendorFeeds\sqr_test\%SQRNAME= %_bat.log echo The user running the test is: %sysadm1% >> e:\VendorFeeds\sqr_test\%SQ= RNAME%_bat.log echo start /wait e:\adp\adp500\sqrbin\windows\sqrw e:\SQR_Test\%SQRNAME% %s= ysadm1%/%sysadm2%@%DB_NAME% -Ie:\adp\adp500\sqr_uvn\;e:\adp\adp500\sqr\ -Ee= :\VendorFeeds\sqr_test\%SQRNAME%_err.dat -PRINTER:EP -EH_DEBUG -Fe:\VendorF= eeds\sqr_test\%SQRNAME%.lis -Oe:\VendorFeeds\sqr_test\%SQRNAME%.log -S -KEE= P -Me:\adp\adp500\sqr\allmaxes.max >> e:\VendorFeeds\sqr_test\%SQRNAME%_ba= t.log >> e:\VendorFeeds\sqr_test\%SQRNAME%_bat.log start /wait e:\adp\adp500\sqrbin\windows\sqrw e:\SQR_Test\%SQRNAME% %sysadm= 1%/%sysadm2%@%DB_NAME% -Ie:\adp\adp500\sqr_uvn\;e:\adp\adp500\sqr\ -Ee:\Ven= dorFeeds\sqr_test\%SQRNAME%_err.dat -PRINTER:EP -EH_DEBUG -Fe:\VendorFeeds\= sqr_test\%SQRNAME%.lis -Oe:\VendorFeeds\sqr_test\%SQRNAME%.log -S -KEEP -Me= :\adp\adp500\sqr\allmaxes.max call E:\adp\adp500\sqr_uvn\uvn_bat\hidden\vars2%DB_NAME%.bat _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of franck.masson Sent: Tuesday, October 20, 2009 4:41 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Puzzling issue... Hi, Sorry, i thought you are running Hyperion Performance Suite product as you = are talking about java setting. I have red that you are launching your sqr using a bat file. what is the information that you have been able to collect in the sqr log f= ile or sqr err file ? do you have the Hand on this bat file ? if yes try to add this option within the sqr line -Ec:\tmp\mysqr.err and ad= d this command before the launch of sqr set > c:\tmp\mybat.err with this yo= u will be able to see if you have any windows setting issues and can you share the content of your bat file Franck, > Message du 20/10/09 22:19 > De : "Barry E. Cohen" > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions." > Copie =E0 : > Objet : RE: [sqr-users] Puzzling issue... > > > Hi Franck, > > I'm not sure what you mean by "What is your version of Hyperion server?". > > We are running SQRW v8.3 on a Windows Server 2003 app server, against an = Oracle 10.2.03 database of ADP-Enterprise 5.3(PeopleSoft-ish) also on a Win= dows 2003 server. We are not running a Hyperion server that I'm aware of. > > I must also admit that I'm not much of a systems guy, and my main role is= really app development, data interfacing, and data mining. > > Thanks, Barry > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of > franck.masson > Sent: Tuesday, October 20, 2009 3:33 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] Puzzling issue... > > Hi, > In this scenario/usage there are no correlation with the java version. > You are running on windows. > What is your version of Hyperion server ? 8.3 , 8.5 , 9.2 So try to login= to your windows server using the same user as you have defined to start yo= ur Hyperion windows service. > and try to launch/execute your sqr using a dos windows To collect the bat= file used by the Hyperion Job Factory, launch the RSC console and set the = JF in debug mode then execute your sqr program and then go to the BrioPlatf= orm/server/JF1xxx/tmp you should find a tmp directory that contain the bat = file used by the JF to run it. > > Franck, > > > > > Message du 20/10/09 15:19 > > De : "Barry E. Cohen" > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions." > > Copie =E0 : > > Objet : RE: [sqr-users] Puzzling issue... > > > > > > Hello Franck, > > > > The only output is the sqr.log file. The process reads data from tables= , and does inserts and updates to other tables with that data. > > > > We haven't updated the Java version yet, because we have our old versio= n of our recently upgraded HR/PR app there. The old version won't run with = the newer Java, and we're not yet ready to put that environment away. > > > > > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > > > > Office: 201-287-4287 > > > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf > > Of franck.masson > > Sent: Monday, October 19, 2009 4:21 PM > > To: This list is for discussion about the SQR database reporting langua= ge from Hyperion Solutions. > > Subject: RE: [sqr-users] Puzzling issue... > > > > Hi, > > > > What is the output format of your sqr job ? > > if it is pdf or lp or hp or ps then it is not a java issue but may be a= tmp/working folder issue it is a java issue only if you are producing html= , graphics or CSV files. > > > > i do not think that Increasing the number of JF will solve your issue. > > > > provide us more detail of your sqr ouput (format , content, size ) if y= ou are running a 8.3 version then you can not disable the html output exept= if you use some workaround. > > > > Franck, > > Franck, > > > > > > > > > Message du 19/10/09 22:03 > > > De : "Barry E. Cohen" > > > A : "This list is for discussion about the SQR database reporting lan= guage from Hyperion Solutions." > > > Copie =E0 : > > > Objet : RE: [sqr-users] Puzzling issue... > > > > > > > > > I was talking to our DBA, and he feels it may have something to do wi= th the version of Java we're running on the machine that is giving us probl= ems. I'll post if that was the issue once we get the Java on that machine u= pdated... > > > > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On > > > Behalf Of Simon, Jason (MBS) > > > Sent: Monday, October 19, 2009 2:23 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > I am sorry I am at a loss on how to do this. I only know that is what= told me they had to do in order to get this going. Go to ITTOOLBOX and sea= rch in the Brio groups and there should be some information to lead you in = the right direction. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Pactwa, Marissa > > > Sent: Monday, October 19, 2009 2:19 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > > > > Jason, > > > > > > How do you add a new job factory or increase the memory from Hyperion? > > > > > > Thanks. > > > Marissa > > > > > > -----Original Message----- > > > From: sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org > > > [mailto:sqr-users-bounces+mpactwa=3Dsuburbanpropane.com@sqrug.org] > > > On Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:41 PM > > > To: This list is for discussion about the SQR database reportinglangu= age fromHyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > I am not an admin but I do know that we had to create a several new j= ob factories and increase the memory because our jobs were just not running= or dropping out without notice. We have about 2k jobs running a day. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Barry E. Cohen > > > Sent: Friday, October 09, 2009 3:18 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > This is what we're leaning towards, but we're wondering if there is s= ome parameter or setting in the .ini or allmax file that we could adjust to= get a positive result. > > > > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org > > > [mailto:sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org] On > > > Behalf Of Simon, Jason (MBS) > > > Sent: Friday, October 09, 2009 3:14 PM > > > To: This list is for discussion about the SQR database reportinglangu= age from Hyperion Solutions. > > > Subject: RE: [sqr-users] Puzzling issue... > > > > > > Could you not have enough memory for the job factories to run correct= ly so it is just dropping the jobs? > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > > ] > > > On Behalf Of Lalit Chaudhry > > > Sent: Friday, October 09, 2009 2:00 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] Puzzling issue... > > > > > > Hi Barry, > > > > > > Most of the time this happens, when the system cannot access the > > > sqr program XXXXX.sqr check you path in the config file of the > > > process scheduler,make sure the sqr path is pointing to the right > > > directory on the server where all the sqr's are > > > > > > Lalit Chaudhry > > > > > > --- On Fri, 10/9/09, Barry E. Cohen wrote: > > > > > > > > > From: Barry E. Cohen > > > Subject: [sqr-users] Puzzling issue... > > > To: "sqr-users@sqrug.org" > > > Date: Friday, October 9, 2009, 12:05 PM > > > > > > > > > Hello Listers, > > > > > > I'm running SQR v8.3 on a Windows Server 2003, against an Oracle 10.2= .03 database of ADP-Enterprise 5.3(PeopleSoft-ish). > > > > > > The problem is that the SQR just dies with no error written to the sq= r.log file. I've run the program to completion when limiting the number of = transactions processed, and I've also run it to completion, without limitin= g the transactions, on a similar but different server. Both runs were again= st the same physical database. > > > > > > Any insight would be greatly appreciated. > > > > > > Regards, Barry > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > Cell: 201-805-2598 > > > > > > > > > > > > The information contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > > > > > > The information contained in this e-mail and any attached > > > documents may be privileged, confidential and protected from > > > disclosure. If you are not the intended recipient you may not > > > read, copy, distribute or use this information. If you have > > > received this communication in error, please notify the sender > > > immediately by replying to this message and then delete it from > > > your system > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > -------------------------------------------------------------------- > > -- > > ------ > > Laposte.net f=EAte ses 10 ans ! > > > > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'in= ternautes... > > vous aussi, pour votre adresse e-mail, choisissez laposte.net. > > > > Laposte.net, bien + qu'une messagerie > > -------------------------------------------------------------------- > > -- > > ------ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > The information contained in this e-mail and any attached documents > > may be privileged, confidential and protected from disclosure. If > > you are not the intended recipient you may not read, copy, > > distribute or use this information. If you have received this > > communication in error, please notify the sender immediately by > > replying to this message and then delete it from your system > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ---------------------------------------------------------------------- > ------ > Laposte.net f=EAte ses 10 ans ! > > Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'inte= rnautes... > vous aussi, pour votre adresse e-mail, choisissez laposte.net. > > Laposte.net, bien + qu'une messagerie > ---------------------------------------------------------------------- > ------ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached documents > may be privileged, confidential and protected from disclosure. If you > are not the intended recipient you may not read, copy, distribute or > use this information. If you have received this communication in > error, please notify the sender immediately by replying to this > message and then delete it from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ---------------------------------------------------------------------------- Laposte.net f=EAte ses 10 ans ! Gratuite, garantie =E0 vie et d=E9j=E0 utilis=E9e par des millions d'intern= autes... vous aussi, pour votre adresse e-mail, choisissez laposte.net. Laposte.net, bien + qu'une messagerie ---------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be = privileged, confidential and protected from disclosure. If you are not the= intended recipient you may not read, copy, distribute or use this informat= ion. If you have received this communication in error, please notify the s= ender immediately by replying to this message and then delete it from your = system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Thu Oct 29 14:11:12 2009 Date: Thu, 29 Oct 2009 14:08:39 -0400 From: Rajesh Subramaniam Subject: [sqr-users] Cant fetch all the rows in a particular column!!! Hi, I am trying to fetch data from all the rows from a particular column inside a table. But, to my suprise, there is not " SELECT * " statement in SQR. With the below code only one of the rows is getting fetched. begin-procedure get_client_info_data let $crs_id = ' ' let $branch_nbr = ' ' display 'getting into the select query' begin-select loops=10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr from DMG.CLIENT_INFO dci end-select display 'processing the output' do output_query end-procedure begin-procedure output_query let $output_file='QueryOut.txt' open $output_file as 1 for-writing record = 10000 write 1 from $crs_id:3000 $branch_nbr:3000 display 'output is written' close 1 end-procedure Can someone tell me how to fetch all the rows in CI_CRS_ID and CI_CLIENT_BRANCH_NBR column present in the DMG.CLIENT_INFO table Any help would be really great. Thanks, Rajesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 29 14:19:18 2009 Date: Thu, 29 Oct 2009 11:16:00 -0700 (PDT) From: Peter Burton Subject: RE: [sqr-users] Cant fetch all the rows in a particular column!!! Put the " do output_query" call inside the begin-select loop. -----Original Message----- From: Rajesh Subramaniam [mailto:epsilon11@gmail.com]=20 Sent: Thursday, October 29, 2009 2:09 PM To: sqr-users@sqrug.org Subject: [sqr-users] Cant fetch all the rows in a particular column!!! Hi, I am trying to fetch data from all the rows from a particular column inside a table. But, to my suprise, there is not " SELECT * " statement in SQR. With the below code only one of the rows is getting fetched. begin-procedure get_client_info_data let $crs_id =3D ' ' let $branch_nbr =3D ' ' display 'getting into the select query' begin-select loops=3D10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr from DMG.CLIENT_INFO dci end-select display 'processing the output' do output_query end-procedure begin-procedure output_query let $output_file=3D'QueryOut.txt' open $output_file as 1 for-writing record =3D 10000 write 1 from $crs_id:3000 $branch_nbr:3000 display 'output is written' close 1 end-procedure Can someone tell me how to fetch all the rows in CI_CRS_ID and CI_CLIENT_BRANCH_NBR column present in the DMG.CLIENT_INFO table Any help would be really great. Thanks, Rajesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 29 14:22:56 2009 From: Larry Roux Date: Thu, 29 Oct 2009 14:17:39 -0400 Subject: RE: [sqr-users] Cant fetch all the rows in a particular column!!! Select * has nothing to do with selecting all rows, but rather selecting al= l columns. Your code below DOES select all rows, but only returns one, because you do = not have anything happening in the select loop. You want to do something like this? begin-select loops=3D10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr Do call-some-other procedure from DMG.CLIENT_INFO dci end-select The select loop gets a row, processes the code within the loop, then gets t= he next row. Without the " Do call-some-other procedure" part you don't se= e all the rows, just the last one. -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Thursday, October 29, 2009 2:09 PM To: sqr-users@sqrug.org Subject: [sqr-users] Cant fetch all the rows in a particular column!!! Hi, I am trying to fetch data from all the rows from a particular column inside a table. But, to my suprise, there is not " SELECT * " statement in SQR. With the below code only one of the rows is getting fetched. begin-procedure get_client_info_data let $crs_id =3D ' ' let $branch_nbr =3D ' ' display 'getting into the select query' begin-select loops=3D10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr from DMG.CLIENT_INFO dci end-select display 'processing the output' do output_query end-procedure begin-procedure output_query let $output_file=3D'QueryOut.txt' open $output_file as 1 for-writing record =3D 10000 write 1 from $crs_id:3000 $branch_nbr:3000 display 'output is written' close 1 end-procedure Can someone tell me how to fetch all the rows in CI_CRS_ID and CI_CLIENT_BRANCH_NBR column present in the DMG.CLIENT_INFO table Any help would be really great. Thanks, Rajesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 29 14:26:45 2009 From: "Barry E. Cohen" Date: Thu, 29 Oct 2009 14:19:03 -0400 Subject: RE: [sqr-users] Cant fetch all the rows in a particular column!!! Here you go... begin-procedure get_client_info_data open $output_file as 1 for-writing record =3D 10000 let $crs_id =3D ' ' let $branch_nbr =3D ' ' display 'getting into the select query' begin-select dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr do output_query from DMG.CLIENT_INFO dci end-select close 1 end-procedure begin-procedure output_query display 'processing the output' let $output_file=3D'QueryOut.txt' write 1 from $crs_id:3000 $branch_nbr:3000 display 'output is written' end-procedure=20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 Cell: 201-805-2598 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Thursday, October 29, 2009 2:09 PM To: sqr-users@sqrug.org Subject: [sqr-users] Cant fetch all the rows in a particular column!!! Hi, I am trying to fetch data from all the rows from a particular column inside= a table. But, to my suprise, there is not " SELECT * " statement in SQR. With the below code only one of the rows is getting fetched. begin-procedure get_client_info_data let $crs_id =3D ' ' let $branch_nbr =3D ' ' display 'getting into the select query' begin-select loops=3D10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr from DMG.CLIENT_INFO dci end-select display 'processing the output' do output_query end-procedure begin-procedure output_query let $output_file=3D'QueryOut.txt' open $output_file as 1 for-writing record =3D 10000 write 1 from $crs_id:3000 $branch_nbr:3000 display 'output is written' close 1 end-procedure Can someone tell me how to fetch all the rows in CI_CRS_ID and CI_CLIENT_B= RANCH_NBR column present in the DMG.CLIENT_INFO table Any help would be really great. Thanks, Rajesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Thu Oct 29 14:30:04 2009 Date: Thu, 29 Oct 2009 14:21:04 -0400 Subject: Re: [sqr-users] Cant fetch all the rows in a particular column!!! From: vishnu turugam Hi, "do output_query" should be outside the loop. Try putting into the sql: begin-select loops=10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr from DMG.CLIENT_INFO dci end-select On 10/29/09, Rajesh Subramaniam wrote: > > Hi, > > I am trying to fetch data from all the rows from a particular column inside > a table. But, to my suprise, there is not " SELECT * " statement in SQR. > With the below code only one of the rows is getting fetched. > > begin-procedure get_client_info_data > let $crs_id = ' ' > let $branch_nbr = ' ' > display 'getting into the select query' > > begin-select loops=10000 > dci.CI_CRS_ID &id > dci.CI_CLIENT_BRANCH_NBR &branch_nbr > move &id to $crs_id > move &branch_nbr to $branch_nbr ! display 'processing the output' do output_query > from DMG.CLIENT_INFO dci > end-select Thanks display 'processing the output' > do output_query > end-procedure > > begin-procedure output_query > > let $output_file='QueryOut.txt' > open $output_file as 1 for-writing record = 10000 > write 1 from $crs_id:3000 $branch_nbr:3000 > display 'output is written' > close 1 > end-procedure > > Can someone tell me how to fetch all the rows in CI_CRS_ID and > CI_CLIENT_BRANCH_NBR column present in the DMG.CLIENT_INFO table > > Any help would be really great. > > Thanks, > Rajesh > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Cheers, Vishnu Turugam _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 29 15:07:38 2009 From: "Barry E. Cohen" Date: Thu, 29 Oct 2009 15:04:54 -0400 Subject: RE: [sqr-users] Cant fetch all the rows in a particular column!!! I did fix it in my original post, but I figure I should point out that you = should only open and close the output file once, otherwise you over-write i= t each time unless you specify that it's open for append. But opening and c= losing for each write is a lot of extra processing that isn't needed. I would have written it in one procedure though... begin-procedure get_client_info_data open $output_file as 1 for-writing record =3D 10000 display 'getting into the select query' begin-select dci.CI_CRS_ID dci.CI_CLIENT_BRANCH_NBR string &dci.CI_CRS_ID &dci.CI_CLIENT_BRANCH_NBR by '' into $OutPut write 1 from $OutPut from DMG.CLIENT_INFO dci end-select close 1 end-procedure=20 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Thursday, October 29, 2009 2:09 PM To: sqr-users@sqrug.org Subject: [sqr-users] Cant fetch all the rows in a particular column!!! Hi, I am trying to fetch data from all the rows from a particular column inside= a table. But, to my suprise, there is not " SELECT * " statement in SQR. With the below code only one of the rows is getting fetched. begin-procedure get_client_info_data let $crs_id =3D ' ' let $branch_nbr =3D ' ' display 'getting into the select query' begin-select loops=3D10000 dci.CI_CRS_ID &id dci.CI_CLIENT_BRANCH_NBR &branch_nbr move &id to $crs_id move &branch_nbr to $branch_nbr from DMG.CLIENT_INFO dci end-select display 'processing the output' do output_query end-procedure begin-procedure output_query let $output_file=3D'QueryOut.txt' open $output_file as 1 for-writing record =3D 10000 write 1 from $crs_id:3000 $branch_nbr:3000 display 'output is written' close 1 end-procedure Can someone tell me how to fetch all the rows in CI_CRS_ID and CI_CLIENT_B= RANCH_NBR column present in the DMG.CLIENT_INFO table Any help would be really great. Thanks, Rajesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Thu Oct 29 15:51:15 2009 Date: Thu, 29 Oct 2009 15:48:47 -0400 Subject: Re: [sqr-users] Cant fetch all the rows in a particular column!!! From: Rajesh Subramaniam Hi, Thanks Barry and others, my code worked now. The problems were as you guys pointed out. 1. Calling function after end-select 2. And improper opening and closing of files. Thanks a lot. -Rajesh On Thu, Oct 29, 2009 at 2:19 PM, Barry E. Cohen wrote: > Here you go... > > begin-procedure get_client_info_data > > open $output_file as 1 for-writing record = 10000 > > let $crs_id = ' ' > let $branch_nbr = ' ' > display 'getting into the select query' > > begin-select > dci.CI_CRS_ID &id > dci.CI_CLIENT_BRANCH_NBR &branch_nbr > move &id to $crs_id > move &branch_nbr to $branch_nbr > > > do output_query > > > from DMG.CLIENT_INFO dci > end-select > > close 1 > > end-procedure > > begin-procedure output_query > > display 'processing the output' > > let $output_file='QueryOut.txt' > write 1 from $crs_id:3000 $branch_nbr:3000 > display 'output is written' > end-procedure > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > Cell: 201-805-2598 > > -----Original Message----- > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =univision.net@ > sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Thursday, October 29, 2009 2:09 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Cant fetch all the rows in a particular column!!! > > Hi, > > I am trying to fetch data from all the rows from a particular column inside > a table. But, to my suprise, there is not " SELECT * " statement in SQR. > With the below code only one of the rows is getting fetched. > > begin-procedure get_client_info_data > let $crs_id = ' ' > let $branch_nbr = ' ' > display 'getting into the select query' > > begin-select loops=10000 > dci.CI_CRS_ID &id > dci.CI_CLIENT_BRANCH_NBR &branch_nbr > move &id to $crs_id > move &branch_nbr to $branch_nbr > from DMG.CLIENT_INFO dci > end-select > > display 'processing the output' > do output_query > end-procedure > > begin-procedure output_query > > let $output_file='QueryOut.txt' > open $output_file as 1 for-writing record = 10000 > write 1 from $crs_id:3000 $branch_nbr:3000 > display 'output is written' > close 1 > end-procedure > > Can someone tell me how to fetch all the rows in CI_CRS_ID and > CI_CLIENT_BRANCH_NBR column present in the DMG.CLIENT_INFO table > > Any help would be really great. > > Thanks, > Rajesh > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Oct 30 12:57:19 2009 Date: Fri, 30 Oct 2009 12:54:04 -0400 From: "Lori Walker" Subject: [sqr-users] POPO005.sqr - BOLD comments not working I am trying to Bold the comments section of a PO print (POPO005.sqr to PDF)= . Below is the section of the sqr that prints the comments. All of the co= de is delivered except where I've noted the changes I've attempted. I've c= hanged the font from 4 to 400 per the instructions in the pdf fonts section= s of the pssqr.ini file and I've also inserted bold in the print line. Any= other advice to get the comments to print in bold? =20 !------------------------------------------- ! Print Line Comments !------------------------------------------- begin-procedure Print-Line-Comments #debugh do debug-msg('Entering: Print-Line-Comments') =20 alter-printer point-size=3D7.5 font=3D400 !Changed this from 4 to 400= !Helvetica !Fix for Ice 603095000 starts !#ifdef EBCDIC !print &CMTL.COMMENTS_2000 (#line, 6, 115) wrap 115 100 STRIP=3D<13= > ON=3D<37> !print &CMTL.COMMENTS_2000 (#line, {l_comments_indent}) wrap {l_w_c= omment_indent} {l_h_comment_indent} STRIP=3D<13> ON=3D<37> !#else !print &CMTL.COMMENTS_2000 (#line, 6, 115) wrap 115 100 STRIP=3D<13= > ON=3D<10> !Added bold between the ) and wrap. Have also attempted to place bold in v= arious locations throughout this statement print &CMTL.COMMENTS_2000 (#line, {l_comments_indent}) bold wrap {= l_w_comment_indent} {l_h_comment_indent} STRIP=3D<13> ON=3D<10> !#endif !Fix for Ice 603095000 end let #line =3D #current-line - #pageheadoffset add 1 to #line =20 let #test_line =3D #line do New-Page-Test =20 #debugh do debug-msg('Exiting: Print-Line-Comments') end-procedure !Print-Line-Comments =20 =20 =20 =20 =20 Lori Walker Software Development Frederick Community College 301-846-2679 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 30 15:49:30 2009 Date: Fri, 30 Oct 2009 15:47:10 -0400 From: Rajesh Subramaniam Subject: [sqr-users] How to pass variable from a Shell Script to a SQR program Hi, I wanted to know how to pass a variable from a shell script to a SQR program? My shell script and SQR program is as shown below In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc through a shell script. The output of the shell script is input to the SQR code. So based on what state abbreviation the SQR code receives from the shell script the data will be fetched from the database and the result will be displayed. I ran my SQR code by giving a state abbreviation directly in the Query and got the correct output. The problem I am facing is, I do not know how to get the input from the shell script. Shell Script- if [ $# -eq 0 ] then echo "$0 : you must give a state abbreviations as an argument" exit 1 fi echo $1 echo "entering the function" function returnValue { return $1 } returnValue sqrt ProspectTrial / SQR code- ProspectTrial begin-report do main end-report begin-procedure main let $err_file = 'Error.txt' let $input_file = '/home/jtyson/RajProject1/testVar.sh' // I am getting the input here from the shell script here open $input_file as 1 for-reading record=100 read 1 into $st_abb:2 close 1 display 'checking input conditions' if isnull($st_abb) display 'the state abbreviation is a null value' else let $len_st_abb = length($st_abb) let $upst_abb = upper($st_abb) move $len_st_abb to #len_st_abb evaluate #len_st_abb when > 2 display 'the state abbreviation is greater than 2' break when < 2 display 'the state abbreviation is lesser than 2' break end-evaluate if($upst_abb != $st_abb) display 'the input is not in uppercase' end-if open $err_file as 2 for-writing record=100 write 2 from $err_path 'error has occured and cannot proceed further:' display 'an error has occured due to invalid input' close 2 end-if display 'check 1 before SQL call' do create_SQLquery end-procedure begin-procedure create_SQLquery display 'check 2 before opening output file' let $output_file = 'Output.txt' open $output_file as 3 for-writing record=10000 display 'check 3 before executing query' let $empId = ' ' let $empPN = ' ' let $empMI = ' ' let $empLN = ' ' let $empAddr1 = ' ' let $empAddr2 = ' ' let $empTermReason = ' ' begin-select emp_id &empId emp_firstname &empFN emp_middle_init &empMI emp_lastname &empLN emp_employee_nbr &empNo emp_addr1 &empAddr1 emp_addr2 &empAddr2 emp_term_reason &empTermReason move &empId to $empId move &empFN to $empFN move &empMI to $empMI move &empLN to $empLN move &empNo to $empNo move &empAddr1 to $empAddr1 move &empAddr2 to $empAddr2 move &empTermReason to $empTermReason do write_output from sales.emp where emp_state = $st_abb end-select close 3 end-procedure begin-procedure write_output write 3 from $empId:3 write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 write 3 from $empNo:20 write 3 from $empAddr1:30 if $empAddr2 != ' ' write 3 from $empAddr2:30 end-if write 3 from ' ' end-procedure ~ ~ ~ ~ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 30 16:00:10 2009 Subject: RE: [sqr-users] How to pass variable from a Shell Script to a SQRprogram Date: Fri, 30 Oct 2009 15:53:12 -0400 From: "Putney II, Zynon E" Append the call to the SQR program to include the state, and then use an=0D input statement inside the SQR:=0D =0D i.e.:=0D =0D Program call:=0D sqrt ProspectTrial / NY=0D =0D In SQR:=0D Input $st_abb 'Input State Abbreviation' MAXLEN=3D2=0D Uppercase $st_abb=0D =0D Should be very simple, and you don't need to read it from a file. =0D =0D -----Original Message-----=0D From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org=0D [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of=0D Rajesh Subramaniam=0D Sent: Friday, October 30, 2009 3:47 PM=0D To: This list is for discussion about the SQR database reporting=0D languagefrom Hyperion Solutions.=0D Subject: [sqr-users] How to pass variable from a Shell Script to a=0D SQRprogram=0D =0D Hi,=0D =0D I wanted to know how to pass a variable from a shell script to a SQR=0D program? My shell script and SQR program is as shown below=0D =0D In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc=0D through a shell script. The output of the shell script is input to the=0D SQR code. So based on what state abbreviation the SQR code receives from=0D the shell script the data will be fetched from the database and the=0D result will be displayed.=0D =0D I ran my SQR code by giving a state abbreviation directly in the Query=0D and got the correct output. The problem I am facing is, I do not know=0D how to get the input from the shell script.=0D =0D =0D Shell Script-=0D =0D if [ $# -eq 0 ]=0D then=0D echo "$0 : you must give a state abbreviations as an argument"=0D exit 1=0D fi=0D echo $1=0D echo "entering the function"=0D =0D function returnValue=0D {=0D return $1=0D }=0D returnValue=0D =0D sqrt ProspectTrial /=0D =0D =0D SQR code- ProspectTrial=0D begin-report=0D do main=0D end-report=0D =0D begin-procedure main=0D =0D let $err_file =3D 'Error.txt'=0D let $input_file =3D '/home/jtyson/RajProject1/testVar.sh' // I am getting= =0D the input here from the shell script here open $input_file as 1=0D for-reading record=3D100 read 1 into $st_abb:2 close 1=0D display 'checking input conditions'=0D if isnull($st_abb)=0D display 'the state abbreviation is a null value'=0D else=0D let $len_st_abb =3D length($st_abb)=0D let $upst_abb =3D upper($st_abb)=0D move $len_st_abb to #len_st_abb=0D evaluate #len_st_abb=0D when > 2=0D display 'the state abbreviation is greater than=0D 2'=0D break=0D when < 2=0D display 'the state abbreviation is lesser than=0D 2'=0D break=0D end-evaluate=0D if($upst_abb !=3D $st_abb)=0D display 'the input is not in uppercase'=0D end-if=0D open $err_file as 2 for-writing record=3D100=0D write 2 from $err_path 'error has occured and cannot proceed=0D further:'=0D display 'an error has occured due to invalid input'=0D close 2=0D end-if=0D display 'check 1 before SQL call'=0D do create_SQLquery=0D =0D end-procedure=0D begin-procedure create_SQLquery=0D display 'check 2 before opening output file'=0D let $output_file =3D 'Output.txt'=0D =0D open $output_file as 3 for-writing record=3D10000 display 'check 3 before= =0D executing query'=0D let $empId =3D ' '=0D let $empPN =3D ' '=0D let $empMI =3D ' '=0D let $empLN =3D ' '=0D let $empAddr1 =3D ' '=0D let $empAddr2 =3D ' '=0D let $empTermReason =3D ' '=0D begin-select=0D emp_id &empId=0D emp_firstname &empFN=0D emp_middle_init &empMI=0D emp_lastname &empLN=0D emp_employee_nbr &empNo=0D emp_addr1 &empAddr1=0D emp_addr2 &empAddr2=0D emp_term_reason &empTermReason=0D move &empId to $empId=0D move &empFN to $empFN=0D move &empMI to $empMI=0D move &empLN to $empLN=0D move &empNo to $empNo=0D move &empAddr1 to $empAddr1=0D move &empAddr2 to $empAddr2=0D move &empTermReason to $empTermReason=0D do write_output=0D from sales.emp=0D where emp_state =3D $st_abb=0D end-select=0D close 3=0D end-procedure=0D begin-procedure write_output=0D =0D write 3 from $empId:3=0D write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20=0D write 3 from $empNo:20=0D write 3 from $empAddr1:30=0D if $empAddr2 !=3D ' '=0D write 3 from $empAddr2:30=0D end-if=0D write 3 from ' '=0D =0D end-procedure=0D =0D =0D ~=0D ~=0D ~=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 -----------------------------------------=0D The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. =0D =0D Thank you. Paychex, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 30 16:17:21 2009 Date: Fri, 30 Oct 2009 16:14:30 -0400 Subject: Re: [sqr-users] How to pass variable from a Shell Script to a SQRprogram From: Rajesh Subramaniam Yup, I agree it would make things simple. But due to some reasons, my requirement is to get the input from the shell script and not from the command line while running the SQR code. The bottom line is, I have to run the shell script and the output should be generated i.e the queried results should be displayed. Anyways, thanks for the help -Rajesh. On Fri, Oct 30, 2009 at 3:53 PM, Putney II, Zynon E wrote: > Append the call to the SQR program to include the state, and then use an > input statement inside the SQR: > > i.e.: > > Program call: > sqrt ProspectTrial / NY > > In SQR: > Input $st_abb 'Input State Abbreviation' MAXLEN=2 > Uppercase $st_abb > > Should be very simple, and you don't need to read it from a file. > > -----Original Message----- > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney = > paychex.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Friday, October 30, 2009 3:47 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: [sqr-users] How to pass variable from a Shell Script to a > SQRprogram > > Hi, > > I wanted to know how to pass a variable from a shell script to a SQR > program? My shell script and SQR program is as shown below > > In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc > through a shell script. The output of the shell script is input to the > SQR code. So based on what state abbreviation the SQR code receives from > the shell script the data will be fetched from the database and the > result will be displayed. > > I ran my SQR code by giving a state abbreviation directly in the Query > and got the correct output. The problem I am facing is, I do not know > how to get the input from the shell script. > > > Shell Script- > > if [ $# -eq 0 ] > then > echo "$0 : you must give a state abbreviations as an argument" > exit 1 > fi > echo $1 > echo "entering the function" > > function returnValue > { > return $1 > } > returnValue > > sqrt ProspectTrial / > > > SQR code- ProspectTrial > begin-report > do main > end-report > > begin-procedure main > > let $err_file = 'Error.txt' > let $input_file = '/home/jtyson/RajProject1/testVar.sh' // I am getting > the input here from the shell script here open $input_file as 1 > for-reading record=100 read 1 into $st_abb:2 close 1 > display 'checking input conditions' > if isnull($st_abb) > display 'the state abbreviation is a null value' > else > let $len_st_abb = length($st_abb) > let $upst_abb = upper($st_abb) > move $len_st_abb to #len_st_abb > evaluate #len_st_abb > when > 2 > display 'the state abbreviation is greater than > 2' > break > when < 2 > display 'the state abbreviation is lesser than > 2' > break > end-evaluate > if($upst_abb != $st_abb) > display 'the input is not in uppercase' > end-if > open $err_file as 2 for-writing record=100 > write 2 from $err_path 'error has occured and cannot proceed > further:' > display 'an error has occured due to invalid input' > close 2 > end-if > display 'check 1 before SQL call' > do create_SQLquery > > end-procedure > begin-procedure create_SQLquery > display 'check 2 before opening output file' > let $output_file = 'Output.txt' > > open $output_file as 3 for-writing record=10000 display 'check 3 before > executing query' > let $empId = ' ' > let $empPN = ' ' > let $empMI = ' ' > let $empLN = ' ' > let $empAddr1 = ' ' > let $empAddr2 = ' ' > let $empTermReason = ' ' > begin-select > emp_id &empId > emp_firstname &empFN > emp_middle_init &empMI > emp_lastname &empLN > emp_employee_nbr &empNo > emp_addr1 &empAddr1 > emp_addr2 &empAddr2 > emp_term_reason &empTermReason > move &empId to $empId > move &empFN to $empFN > move &empMI to $empMI > move &empLN to $empLN > move &empNo to $empNo > move &empAddr1 to $empAddr1 > move &empAddr2 to $empAddr2 > move &empTermReason to $empTermReason > do write_output > from sales.emp > where emp_state = $st_abb > end-select > close 3 > end-procedure > begin-procedure write_output > > write 3 from $empId:3 > write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 > write 3 from $empNo:20 > write 3 from $empAddr1:30 > if $empAddr2 != ' ' > write 3 from $empAddr2:30 > end-if > write 3 from ' ' > > end-procedure > > > ~ > ~ > ~ > ~ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ----------------------------------------- > The information contained in this message may be privileged, > confidential, and protected from disclosure. If the reader of this > message is not the intended recipient, or any employee or agent > responsible for delivering this message to the intended recipient, > you are hereby notified that any dissemination, distribution, or > copying of this communication is strictly prohibited. If you have > received this communication in error, please notify us immediately > by replying to the message and deleting it from your computer. > > Thank you. Paychex, Inc. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 30 16:23:15 2009 Subject: RE: [sqr-users] How to pass variable from a Shell Script to a SQRprogram Date: Fri, 30 Oct 2009 16:20:07 -0400 From: "Putney II, Zynon E" And you can still do that. You have the line in the shell script. Change the line in the shell script that says sqrt ProspectTrial / To=20 sqrt ProspectTrial / $1=20 -- or however you store the variable. You run the shell script, and pass the parameter to the SQR.=20 It's very simple. We do this all the time in our SQR development.=20 =20 -----Original Message----- From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Friday, October 30, 2009 4:15 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How to pass variable from a Shell Script to a SQRprogram Yup, I agree it would make things simple. But due to some reasons, my requirement is to get the input from the shell script and not from the command line while running the SQR code. The bottom line is, I have to run the shell script and the output should be generated i.e the queried results should be displayed. Anyways, thanks for the help -Rajesh. On Fri, Oct 30, 2009 at 3:53 PM, Putney II, Zynon E wrote: > Append the call to the SQR program to include the state, and then use=20 > an input statement inside the SQR: > > i.e.: > > Program call: > sqrt ProspectTrial / NY > > In SQR: > Input $st_abb 'Input State Abbreviation' MAXLEN=3D2 Uppercase $st_abb > > Should be very simple, and you don't need to read it from a file. > > -----Original Message----- > From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney =3D=20 > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Friday, October 30, 2009 3:47 PM > To: This list is for discussion about the SQR database reporting=20 > languagefrom Hyperion Solutions. > Subject: [sqr-users] How to pass variable from a Shell Script to a=20 > SQRprogram > > Hi, > > I wanted to know how to pass a variable from a shell script to a SQR=20 > program? My shell script and SQR program is as shown below > > In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc > through a shell script. The output of the shell script is input to the > SQR code. So based on what state abbreviation the SQR code receives=20 > from the shell script the data will be fetched from the database and=20 > the result will be displayed. > > I ran my SQR code by giving a state abbreviation directly in the Query > and got the correct output. The problem I am facing is, I do not know=20 > how to get the input from the shell script. > > > Shell Script- > > if [ $# -eq 0 ] > then > echo "$0 : you must give a state abbreviations as an argument" > exit 1 > fi > echo $1 > echo "entering the function" > > function returnValue > { > return $1 > } > returnValue > > sqrt ProspectTrial / > > > SQR code- ProspectTrial > begin-report > do main > end-report > > begin-procedure main > > let $err_file =3D 'Error.txt' > let $input_file =3D '/home/jtyson/RajProject1/testVar.sh' // I am=20 > getting the input here from the shell script here open $input_file as > 1 for-reading record=3D100 read 1 into $st_abb:2 close 1 > display 'checking input conditions' > if isnull($st_abb) > display 'the state abbreviation is a null value' > else > let $len_st_abb =3D length($st_abb) > let $upst_abb =3D upper($st_abb) > move $len_st_abb to #len_st_abb > evaluate #len_st_abb > when > 2 > display 'the state abbreviation is greater than > 2' > break > when < 2 > display 'the state abbreviation is lesser than=20 > 2' > break > end-evaluate > if($upst_abb !=3D $st_abb) > display 'the input is not in uppercase' > end-if > open $err_file as 2 for-writing record=3D100 > write 2 from $err_path 'error has occured and cannot proceed=20 > further:' > display 'an error has occured due to invalid input' > close 2 > end-if > display 'check 1 before SQL call' > do create_SQLquery > > end-procedure > begin-procedure create_SQLquery > display 'check 2 before opening output file' > let $output_file =3D 'Output.txt' > > open $output_file as 3 for-writing record=3D10000 display 'check 3=20 > before executing query' > let $empId =3D ' ' > let $empPN =3D ' ' > let $empMI =3D ' ' > let $empLN =3D ' ' > let $empAddr1 =3D ' ' > let $empAddr2 =3D ' ' > let $empTermReason =3D ' ' > begin-select > emp_id &empId > emp_firstname &empFN > emp_middle_init &empMI > emp_lastname &empLN > emp_employee_nbr &empNo > emp_addr1 &empAddr1 > emp_addr2 &empAddr2 > emp_term_reason &empTermReason > move &empId to $empId > move &empFN to $empFN > move &empMI to $empMI > move &empLN to $empLN > move &empNo to $empNo > move &empAddr1 to $empAddr1 > move &empAddr2 to $empAddr2 > move &empTermReason to $empTermReason > do write_output > from sales.emp > where emp_state =3D $st_abb > end-select > close 3 > end-procedure > begin-procedure write_output > > write 3 from $empId:3 > write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 write 3 from=20 > $empNo:20 write 3 from $empAddr1:30 if $empAddr2 !=3D ' ' > write 3 from $empAddr2:30 > end-if > write 3 from ' ' > > end-procedure > > > ~ > ~ > ~ > ~ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ----------------------------------------- > The information contained in this message may be privileged,=20 > confidential, and protected from disclosure. If the reader of this=20 > message is not the intended recipient, or any employee or agent=20 > responsible for delivering this message to the intended recipient, you > are hereby notified that any dissemination, distribution, or copying=20 > of this communication is strictly prohibited. If you have received=20 > this communication in error, please notify us immediately by replying=20 > to the message and deleting it from your computer. > > Thank you. Paychex, Inc. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 30 17:47:26 2009 Subject: RE: [sqr-users] How to pass variable from a Shell Script to aSQRprogram Date: Fri, 30 Oct 2009 14:43:16 -0700 From: "Alexander, Steven" Could you set an environment variable and use the getenv() function? -----Original Message----- From: sqr-users-bounces+steven.alexander=3Dsanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=3Dsanjoseca.gov@sqrug.org] On Behalf Of Putney II, Zynon E Sent: Friday, October 30, 2009 1:20 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] How to pass variable from a Shell Script to aSQRprogram And you can still do that. You have the line in the shell script. Change the line in the shell script that says sqrt ProspectTrial / To=20 sqrt ProspectTrial / $1=20 -- or however you store the variable. You run the shell script, and pass the parameter to the SQR.=20 It's very simple. We do this all the time in our SQR development.=20 =20 -----Original Message----- From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Friday, October 30, 2009 4:15 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How to pass variable from a Shell Script to a SQRprogram Yup, I agree it would make things simple. But due to some reasons, my requirement is to get the input from the shell script and not from the command line while running the SQR code. The bottom line is, I have to run the shell script and the output should be generated i.e the queried results should be displayed. Anyways, thanks for the help -Rajesh. On Fri, Oct 30, 2009 at 3:53 PM, Putney II, Zynon E wrote: > Append the call to the SQR program to include the state, and then use=20 > an input statement inside the SQR: > > i.e.: > > Program call: > sqrt ProspectTrial / NY > > In SQR: > Input $st_abb 'Input State Abbreviation' MAXLEN=3D2 Uppercase $st_abb > > Should be very simple, and you don't need to read it from a file. > > -----Original Message----- > From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney =3D=20 > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Friday, October 30, 2009 3:47 PM > To: This list is for discussion about the SQR database reporting=20 > languagefrom Hyperion Solutions. > Subject: [sqr-users] How to pass variable from a Shell Script to a=20 > SQRprogram > > Hi, > > I wanted to know how to pass a variable from a shell script to a SQR=20 > program? My shell script and SQR program is as shown below > > In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc > through a shell script. The output of the shell script is input to the > SQR code. So based on what state abbreviation the SQR code receives=20 > from the shell script the data will be fetched from the database and=20 > the result will be displayed. > > I ran my SQR code by giving a state abbreviation directly in the Query > and got the correct output. The problem I am facing is, I do not know=20 > how to get the input from the shell script. > > > Shell Script- > > if [ $# -eq 0 ] > then > echo "$0 : you must give a state abbreviations as an argument" > exit 1 > fi > echo $1 > echo "entering the function" > > function returnValue > { > return $1 > } > returnValue > > sqrt ProspectTrial / > > > SQR code- ProspectTrial > begin-report > do main > end-report > > begin-procedure main > > let $err_file =3D 'Error.txt' > let $input_file =3D '/home/jtyson/RajProject1/testVar.sh' // I am=20 > getting the input here from the shell script here open $input_file as > 1 for-reading record=3D100 read 1 into $st_abb:2 close 1 > display 'checking input conditions' > if isnull($st_abb) > display 'the state abbreviation is a null value' > else > let $len_st_abb =3D length($st_abb) > let $upst_abb =3D upper($st_abb) > move $len_st_abb to #len_st_abb > evaluate #len_st_abb > when > 2 > display 'the state abbreviation is greater than > 2' > break > when < 2 > display 'the state abbreviation is lesser than=20 > 2' > break > end-evaluate > if($upst_abb !=3D $st_abb) > display 'the input is not in uppercase' > end-if > open $err_file as 2 for-writing record=3D100 > write 2 from $err_path 'error has occured and cannot proceed=20 > further:' > display 'an error has occured due to invalid input' > close 2 > end-if > display 'check 1 before SQL call' > do create_SQLquery > > end-procedure > begin-procedure create_SQLquery > display 'check 2 before opening output file' > let $output_file =3D 'Output.txt' > > open $output_file as 3 for-writing record=3D10000 display 'check 3=20 > before executing query' > let $empId =3D ' ' > let $empPN =3D ' ' > let $empMI =3D ' ' > let $empLN =3D ' ' > let $empAddr1 =3D ' ' > let $empAddr2 =3D ' ' > let $empTermReason =3D ' ' > begin-select > emp_id &empId > emp_firstname &empFN > emp_middle_init &empMI > emp_lastname &empLN > emp_employee_nbr &empNo > emp_addr1 &empAddr1 > emp_addr2 &empAddr2 > emp_term_reason &empTermReason > move &empId to $empId > move &empFN to $empFN > move &empMI to $empMI > move &empLN to $empLN > move &empNo to $empNo > move &empAddr1 to $empAddr1 > move &empAddr2 to $empAddr2 > move &empTermReason to $empTermReason > do write_output > from sales.emp > where emp_state =3D $st_abb > end-select > close 3 > end-procedure > begin-procedure write_output > > write 3 from $empId:3 > write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 write 3 from=20 > $empNo:20 write 3 from $empAddr1:30 if $empAddr2 !=3D ' ' > write 3 from $empAddr2:30 > end-if > write 3 from ' ' > > end-procedure > > > ~ > ~ > ~ > ~ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ----------------------------------------- > The information contained in this message may be privileged,=20 > confidential, and protected from disclosure. If the reader of this=20 > message is not the intended recipient, or any employee or agent=20 > responsible for delivering this message to the intended recipient, you > are hereby notified that any dissemination, distribution, or copying=20 > of this communication is strictly prohibited. If you have received=20 > this communication in error, please notify us immediately by replying=20 > to the message and deleting it from your computer. > > Thank you. Paychex, Inc. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 01 00:02:47 2009 Date: Sun, 1 Nov 2009 00:00:04 -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 Mon Nov 02 10:25:16 2009 Date: Mon, 2 Nov 2009 10:22:18 -0500 Subject: Re: [sqr-users] How to pass variable from a Shell Script to a SQRprogram From: Rajesh Subramaniam To my surprise, your suggestion was the first thing I tried being a SQR programmer :) and was really wondering why this simple thing is not working. Everytime a null value is being passed from the Shell Script to the SQR code. So the SQR code does not fetch the required result. -Raj On Fri, Oct 30, 2009 at 3:20 PM, Putney II, Zynon E wrote: > And you can still do that. You have the line in the shell script. > > Change the line in the shell script that says > sqrt ProspectTrial / > > To > > sqrt ProspectTrial / $1 > -- or however you store the variable. You run the shell script, and > pass the parameter to the SQR. > > It's very simple. We do this all the time in our SQR development. > > > > > -----Original Message----- > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney = > paychex.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Friday, October 30, 2009 4:15 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] How to pass variable from a Shell Script to a > SQRprogram > > Yup, I agree it would make things simple. But due to some reasons, my > requirement is to get the input from the shell script and not from the > command line while running the SQR code. > > The bottom line is, I have to run the shell script and the output should > be generated i.e the queried results should be displayed. > > Anyways, thanks for the help > > -Rajesh. > > On Fri, Oct 30, 2009 at 3:53 PM, Putney II, Zynon E > wrote: > > > Append the call to the SQR program to include the state, and then use > > an input statement inside the SQR: > > > > i.e.: > > > > Program call: > > sqrt ProspectTrial / NY > > > > In SQR: > > Input $st_abb 'Input State Abbreviation' MAXLEN=2 Uppercase $st_abb > > > > Should be very simple, and you don't need to read it from a file. > > > > -----Original Message----- > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > [mailto:sqr-users-bounces+zputney = > > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > Sent: Friday, October 30, 2009 3:47 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: [sqr-users] How to pass variable from a Shell Script to a > > SQRprogram > > > > Hi, > > > > I wanted to know how to pass a variable from a shell script to a SQR > > program? My shell script and SQR program is as shown below > > > > In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc > > > through a shell script. The output of the shell script is input to the > > > SQR code. So based on what state abbreviation the SQR code receives > > from the shell script the data will be fetched from the database and > > the result will be displayed. > > > > I ran my SQR code by giving a state abbreviation directly in the Query > > > and got the correct output. The problem I am facing is, I do not know > > how to get the input from the shell script. > > > > > > Shell Script- > > > > if [ $# -eq 0 ] > > then > > echo "$0 : you must give a state abbreviations as an argument" > > exit 1 > > fi > > echo $1 > > echo "entering the function" > > > > function returnValue > > { > > return $1 > > } > > returnValue > > > > sqrt ProspectTrial / > > > > > > SQR code- ProspectTrial > > begin-report > > do main > > end-report > > > > begin-procedure main > > > > let $err_file = 'Error.txt' > > let $input_file = '/home/jtyson/RajProject1/testVar.sh' // I am > > getting the input here from the shell script here open $input_file as > > > 1 for-reading record=100 read 1 into $st_abb:2 close 1 > > display 'checking input conditions' > > if isnull($st_abb) > > display 'the state abbreviation is a null value' > > else > > let $len_st_abb = length($st_abb) > > let $upst_abb = upper($st_abb) > > move $len_st_abb to #len_st_abb > > evaluate #len_st_abb > > when > 2 > > display 'the state abbreviation is greater than > > > 2' > > break > > when < 2 > > display 'the state abbreviation is lesser than > > 2' > > break > > end-evaluate > > if($upst_abb != $st_abb) > > display 'the input is not in uppercase' > > end-if > > open $err_file as 2 for-writing record=100 > > write 2 from $err_path 'error has occured and cannot proceed > > further:' > > display 'an error has occured due to invalid input' > > close 2 > > end-if > > display 'check 1 before SQL call' > > do create_SQLquery > > > > end-procedure > > begin-procedure create_SQLquery > > display 'check 2 before opening output file' > > let $output_file = 'Output.txt' > > > > open $output_file as 3 for-writing record=10000 display 'check 3 > > before executing query' > > let $empId = ' ' > > let $empPN = ' ' > > let $empMI = ' ' > > let $empLN = ' ' > > let $empAddr1 = ' ' > > let $empAddr2 = ' ' > > let $empTermReason = ' ' > > begin-select > > emp_id &empId > > emp_firstname &empFN > > emp_middle_init &empMI > > emp_lastname &empLN > > emp_employee_nbr &empNo > > emp_addr1 &empAddr1 > > emp_addr2 &empAddr2 > > emp_term_reason &empTermReason > > move &empId to $empId > > move &empFN to $empFN > > move &empMI to $empMI > > move &empLN to $empLN > > move &empNo to $empNo > > move &empAddr1 to $empAddr1 > > move &empAddr2 to $empAddr2 > > move &empTermReason to $empTermReason > > do write_output > > from sales.emp > > where emp_state = $st_abb > > end-select > > close 3 > > end-procedure > > begin-procedure write_output > > > > write 3 from $empId:3 > > write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 write 3 from > > $empNo:20 write 3 from $empAddr1:30 if $empAddr2 != ' ' > > write 3 from $empAddr2:30 > > end-if > > write 3 from ' ' > > > > end-procedure > > > > > > ~ > > ~ > > ~ > > ~ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ----------------------------------------- > > The information contained in this message may be privileged, > > confidential, and protected from disclosure. If the reader of this > > message is not the intended recipient, or any employee or agent > > responsible for delivering this message to the intended recipient, you > > > are hereby notified that any dissemination, distribution, or copying > > of this communication is strictly prohibited. If you have received > > this communication in error, please notify us immediately by replying > > to the message and deleting it from your computer. > > > > Thank you. Paychex, Inc. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Nov 02 10:37:50 2009 From: "Knapp, Richard" Date: Mon, 2 Nov 2009 09:34:15 -0600 Subject: RE: [sqr-users] How to pass variable from a Shell Script to a SQRprogram You have to start from the shell script. Create the environment variable t= here _AND_ run SQR from the script. This is because SQR will create a new = and different command environment every time call system is used so that co= mmand will not work. Richard Knapp EAS - Data Warehouse Group University of Missouri 615 Locust Street #300 or 712 Lewis Hall Columbia, MO 65201 573-882-8856 (LSB) 573-882-4126 (Lewis) 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 Rajesh Subramaniam Sent: Monday, November 02, 2009 9:22 AM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] How to pass variable from a Shell Script to a SQRp= rogram To my surprise, your suggestion was the first thing I tried being a SQR programmer :) and was really wondering why this simple thing is not working. Everytime a null value is being passed from the Shell Script to the SQR code. So the SQR code does not fetch the required result. -Raj On Fri, Oct 30, 2009 at 3:20 PM, Putney II, Zynon E wr= ote: > And you can still do that. You have the line in the shell script. > > Change the line in the shell script that says > sqrt ProspectTrial / > > To > > sqrt ProspectTrial / $1 > -- or however you store the variable. You run the shell script, and > pass the parameter to the SQR. > > It's very simple. We do this all the time in our SQR development. > > > > > -----Original Message----- > From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney =3D > paychex.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Friday, October 30, 2009 4:15 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] How to pass variable from a Shell Script to a > SQRprogram > > Yup, I agree it would make things simple. But due to some reasons, my > requirement is to get the input from the shell script and not from the > command line while running the SQR code. > > The bottom line is, I have to run the shell script and the output should > be generated i.e the queried results should be displayed. > > Anyways, thanks for the help > > -Rajesh. > > On Fri, Oct 30, 2009 at 3:53 PM, Putney II, Zynon E > wrote: > > > Append the call to the SQR program to include the state, and then use > > an input statement inside the SQR: > > > > i.e.: > > > > Program call: > > sqrt ProspectTrial / NY > > > > In SQR: > > Input $st_abb 'Input State Abbreviation' MAXLEN=3D2 Uppercase $st_abb > > > > Should be very simple, and you don't need to read it from a file. > > > > -----Original Message----- > > From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org > > [mailto:sqr-users-bounces+zputney =3D > > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > Sent: Friday, October 30, 2009 3:47 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: [sqr-users] How to pass variable from a Shell Script to a > > SQRprogram > > > > Hi, > > > > I wanted to know how to pass a variable from a shell script to a SQR > > program? My shell script and SQR program is as shown below > > > > In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc > > > through a shell script. The output of the shell script is input to the > > > SQR code. So based on what state abbreviation the SQR code receives > > from the shell script the data will be fetched from the database and > > the result will be displayed. > > > > I ran my SQR code by giving a state abbreviation directly in the Query > > > and got the correct output. The problem I am facing is, I do not know > > how to get the input from the shell script. > > > > > > Shell Script- > > > > if [ $# -eq 0 ] > > then > > echo "$0 : you must give a state abbreviations as an argument" > > exit 1 > > fi > > echo $1 > > echo "entering the function" > > > > function returnValue > > { > > return $1 > > } > > returnValue > > > > sqrt ProspectTrial / > > > > > > SQR code- ProspectTrial > > begin-report > > do main > > end-report > > > > begin-procedure main > > > > let $err_file =3D 'Error.txt' > > let $input_file =3D '/home/jtyson/RajProject1/testVar.sh' // I am > > getting the input here from the shell script here open $input_file as > > > 1 for-reading record=3D100 read 1 into $st_abb:2 close 1 > > display 'checking input conditions' > > if isnull($st_abb) > > display 'the state abbreviation is a null value' > > else > > let $len_st_abb =3D length($st_abb) > > let $upst_abb =3D upper($st_abb) > > move $len_st_abb to #len_st_abb > > evaluate #len_st_abb > > when > 2 > > display 'the state abbreviation is greater than > > > 2' > > break > > when < 2 > > display 'the state abbreviation is lesser than > > 2' > > break > > end-evaluate > > if($upst_abb !=3D $st_abb) > > display 'the input is not in uppercase' > > end-if > > open $err_file as 2 for-writing record=3D100 > > write 2 from $err_path 'error has occured and cannot proceed > > further:' > > display 'an error has occured due to invalid input' > > close 2 > > end-if > > display 'check 1 before SQL call' > > do create_SQLquery > > > > end-procedure > > begin-procedure create_SQLquery > > display 'check 2 before opening output file' > > let $output_file =3D 'Output.txt' > > > > open $output_file as 3 for-writing record=3D10000 display 'check 3 > > before executing query' > > let $empId =3D ' ' > > let $empPN =3D ' ' > > let $empMI =3D ' ' > > let $empLN =3D ' ' > > let $empAddr1 =3D ' ' > > let $empAddr2 =3D ' ' > > let $empTermReason =3D ' ' > > begin-select > > emp_id &empId > > emp_firstname &empFN > > emp_middle_init &empMI > > emp_lastname &empLN > > emp_employee_nbr &empNo > > emp_addr1 &empAddr1 > > emp_addr2 &empAddr2 > > emp_term_reason &empTermReason > > move &empId to $empId > > move &empFN to $empFN > > move &empMI to $empMI > > move &empLN to $empLN > > move &empNo to $empNo > > move &empAddr1 to $empAddr1 > > move &empAddr2 to $empAddr2 > > move &empTermReason to $empTermReason > > do write_output > > from sales.emp > > where emp_state =3D $st_abb > > end-select > > close 3 > > end-procedure > > begin-procedure write_output > > > > write 3 from $empId:3 > > write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 write 3 from > > $empNo:20 write 3 from $empAddr1:30 if $empAddr2 !=3D ' ' > > write 3 from $empAddr2:30 > > end-if > > write 3 from ' ' > > > > end-procedure > > > > > > ~ > > ~ > > ~ > > ~ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ----------------------------------------- > > The information contained in this message may be privileged, > > confidential, and protected from disclosure. If the reader of this > > message is not the intended recipient, or any employee or agent > > responsible for delivering this message to the intended recipient, you > > > are hereby notified that any dissemination, distribution, or copying > > of this communication is strictly prohibited. If you have received > > this communication in error, please notify us immediately by replying > > to the message and deleting it from your computer. > > > > Thank you. Paychex, Inc. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Nov 02 10:43:40 2009 Date: Mon, 2 Nov 2009 10:40:40 -0500 Subject: Re: [sqr-users] How to pass variable from a Shell Script to a SQRprogram From: Don Mellen Rajesh, Try changing your shell script to this.... if [ $# -eq 0 ] then echo "$0 : you must give a state abbreviations as an argument" exit 1 fi echo $1 echo "entering the function" sqrt ProspectTrial / $1 ...And change this section of the sqr... let $input_file = '/home/jtyson/RajProject1/testVar.sh' // I am getting the input here from the shell script here open $input_file as 1 for-reading record=100 read 1 into $st_abb:2 close 1 ...to this... input $st_abb 'Enter state abbr' ...These 2 changes were what people were trying to suggest before, and it should work On Mon, Nov 2, 2009 at 10:22 AM, Rajesh Subramaniam wrote: > To my surprise, your suggestion was the first thing I tried being a SQR > programmer :) and was really wondering why this simple thing is not > working. > > Everytime a null value is being passed from the Shell Script to the SQR > code. So the SQR code does not fetch the required result. > > -Raj > > On Fri, Oct 30, 2009 at 3:20 PM, Putney II, Zynon E >wrote: > > > And you can still do that. You have the line in the shell script. > > > > Change the line in the shell script that says > > sqrt ProspectTrial / > > > > To > > > > sqrt ProspectTrial / $1 > > -- or however you store the variable. You run the shell script, and > > pass the parameter to the SQR. > > > > It's very simple. We do this all the time in our SQR development. > > > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > [mailto:sqr-users-bounces+zputney = > > paychex.com@sqrug.org] On Behalf Of > > Rajesh Subramaniam > > Sent: Friday, October 30, 2009 4:15 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: Re: [sqr-users] How to pass variable from a Shell Script to a > > SQRprogram > > > > Yup, I agree it would make things simple. But due to some reasons, my > > requirement is to get the input from the shell script and not from the > > command line while running the SQR code. > > > > The bottom line is, I have to run the shell script and the output should > > be generated i.e the queried results should be displayed. > > > > Anyways, thanks for the help > > > > -Rajesh. > > > > On Fri, Oct 30, 2009 at 3:53 PM, Putney II, Zynon E > > wrote: > > > > > Append the call to the SQR program to include the state, and then use > > > an input statement inside the SQR: > > > > > > i.e.: > > > > > > Program call: > > > sqrt ProspectTrial / NY > > > > > > In SQR: > > > Input $st_abb 'Input State Abbreviation' MAXLEN=2 Uppercase $st_abb > > > > > > Should be very simple, and you don't need to read it from a file. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > > [mailto:sqr-users-bounces+zputney = > > > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > > Sent: Friday, October 30, 2009 3:47 PM > > > To: This list is for discussion about the SQR database reporting > > > languagefrom Hyperion Solutions. > > > Subject: [sqr-users] How to pass variable from a Shell Script to a > > > SQRprogram > > > > > > Hi, > > > > > > I wanted to know how to pass a variable from a shell script to a SQR > > > program? My shell script and SQR program is as shown below > > > > > > In my program, I have to pass a State Abbreviation like 'NY' ,'TX' etc > > > > > through a shell script. The output of the shell script is input to the > > > > > SQR code. So based on what state abbreviation the SQR code receives > > > from the shell script the data will be fetched from the database and > > > the result will be displayed. > > > > > > I ran my SQR code by giving a state abbreviation directly in the Query > > > > > and got the correct output. The problem I am facing is, I do not know > > > how to get the input from the shell script. > > > > > > > > > Shell Script- > > > > > > if [ $# -eq 0 ] > > > then > > > echo "$0 : you must give a state abbreviations as an argument" > > > exit 1 > > > fi > > > echo $1 > > > echo "entering the function" > > > > > > function returnValue > > > { > > > return $1 > > > } > > > returnValue > > > > > > sqrt ProspectTrial / > > > > > > > > > SQR code- ProspectTrial > > > begin-report > > > do main > > > end-report > > > > > > begin-procedure main > > > > > > let $err_file = 'Error.txt' > > > let $input_file = '/home/jtyson/RajProject1/testVar.sh' // I am > > > getting the input here from the shell script here open $input_file as > > > > > 1 for-reading record=100 read 1 into $st_abb:2 close 1 > > > display 'checking input conditions' > > > if isnull($st_abb) > > > display 'the state abbreviation is a null value' > > > else > > > let $len_st_abb = length($st_abb) > > > let $upst_abb = upper($st_abb) > > > move $len_st_abb to #len_st_abb > > > evaluate #len_st_abb > > > when > 2 > > > display 'the state abbreviation is greater than > > > > > 2' > > > break > > > when < 2 > > > display 'the state abbreviation is lesser than > > > 2' > > > break > > > end-evaluate > > > if($upst_abb != $st_abb) > > > display 'the input is not in uppercase' > > > end-if > > > open $err_file as 2 for-writing record=100 > > > write 2 from $err_path 'error has occured and cannot proceed > > > further:' > > > display 'an error has occured due to invalid input' > > > close 2 > > > end-if > > > display 'check 1 before SQL call' > > > do create_SQLquery > > > > > > end-procedure > > > begin-procedure create_SQLquery > > > display 'check 2 before opening output file' > > > let $output_file = 'Output.txt' > > > > > > open $output_file as 3 for-writing record=10000 display 'check 3 > > > before executing query' > > > let $empId = ' ' > > > let $empPN = ' ' > > > let $empMI = ' ' > > > let $empLN = ' ' > > > let $empAddr1 = ' ' > > > let $empAddr2 = ' ' > > > let $empTermReason = ' ' > > > begin-select > > > emp_id &empId > > > emp_firstname &empFN > > > emp_middle_init &empMI > > > emp_lastname &empLN > > > emp_employee_nbr &empNo > > > emp_addr1 &empAddr1 > > > emp_addr2 &empAddr2 > > > emp_term_reason &empTermReason > > > move &empId to $empId > > > move &empFN to $empFN > > > move &empMI to $empMI > > > move &empLN to $empLN > > > move &empNo to $empNo > > > move &empAddr1 to $empAddr1 > > > move &empAddr2 to $empAddr2 > > > move &empTermReason to $empTermReason > > > do write_output > > > from sales.emp > > > where emp_state = $st_abb > > > end-select > > > close 3 > > > end-procedure > > > begin-procedure write_output > > > > > > write 3 from $empId:3 > > > write 3 from $empFN:20 ' ' $empMI:20 ' ' $empLN:20 write 3 from > > > $empNo:20 write 3 from $empAddr1:30 if $empAddr2 != ' ' > > > write 3 from $empAddr2:30 > > > end-if > > > write 3 from ' ' > > > > > > end-procedure > > > > > > > > > ~ > > > ~ > > > ~ > > > ~ > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > ----------------------------------------- > > > The information contained in this message may be privileged, > > > confidential, and protected from disclosure. If the reader of this > > > message is not the intended recipient, or any employee or agent > > > responsible for delivering this message to the intended recipient, you > > > > > are hereby notified that any dissemination, distribution, or copying > > > of this communication is strictly prohibited. If you have received > > > this communication in error, please notify us immediately by replying > > > to the message and deleting it from your computer. > > > > > > Thank you. Paychex, Inc. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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" (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 Nov 02 12:24:11 2009 From: JenniferSieber@westfieldgrp.com Date: Mon, 2 Nov 2009 12:21:29 -0500 Subject: [sqr-users] re: POPO005.sqr - BOLD comments not working Hi Lori. Remove the Font=400 and just keep the bold after the ) on the print line. That is how we have it in our version of POPO005 when we bolded lines. Good luck! Jen Westfield Group: Sharing Knowledge. Building Trust(R). ********************************************************************** This electronic message transmission contains information from a member company of Westfield Group which is privileged, confidential or otherwise the exclusive property of the intended recipient or that member company of Westfield Group. This information is intended for the use of the individual or entity that is the intended recipient. If you are not the designated recipient, please be aware that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this electronic transmission in error, please notify us by telephone at 1.800.243.0210 or by electronically replying to the sender. Then, promptly destroy the original transmission. ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 09 16:20:00 2009 Date: Mon, 9 Nov 2009 13:17:06 -0800 (PST) From: Greg Rabinovich Subject: [sqr-users] Adding password protection to SQR generated PDF report Hi all - I am working on a task, which would require generating a bunch of reports in PDF format and then by using 'call system' and mailx command, I would email these reports to specific users. I do, however, need to add passwords to these reports and I am not sure if it is possible - either via SQR or via Unix command. Another option would be to encrypt the file via Unix, but I am not sure how the end-users would decrypt them. If anyone has done anything similar to this, I'd greatly appreciate any pointers. Thanks! Greg _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 09 16:25:25 2009 Subject: RE: [sqr-users] Adding password protection to SQR generated PDF report Date: Mon, 9 Nov 2009 16:22:23 -0500 From: "Simon, Jason (MBS)" You can post them to an internal directory and have users click on a link in your email. That way you can use the site minder or other application to manage your security.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Greg Rabinovich Sent: Monday, November 09, 2009 4:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] Adding password protection to SQR generated PDF report Hi all -=20 I am working on a task, which would require generating a bunch of reports in PDF format and then by using 'call system' and mailx command, I would email these reports to specific users. I do, however, need to add passwords to these reports and I am not sure if it is possible - either via SQR or via Unix command. Another option would be to encrypt the file via Unix, but I am not sure how the end-users would decrypt them. If anyone has done anything similar to this, I'd greatly appreciate any pointers. Thanks! Greg =20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 09 16:37:03 2009 Date: Mon, 9 Nov 2009 16:34:32 -0500 Subject: Re: [sqr-users] Adding password protection to SQR generated PDF report From: Don Mellen In sqr 8.2 and later, you can use Alter-Printer. For example (from the docs)... ALTER-PRINTER PDF-SECURITY= ('User-Password', $User_Password, 'Master-Password', &Master_Password, 'Permissions', 'NoPrint NoCopy') where permissions are one of.... NoPrint NoModify NoCopy NoAnnots NoForm NoAccessible NoAssemble NoHiResPrint On Mon, Nov 9, 2009 at 4:17 PM, Greg Rabinovich wrote: > Hi all - > I am working on a task, which would require generating a bunch of reports > in PDF format and then by using 'call system' and mailx command, I would > email these reports to specific users. I do, however, need to add passwords > to these reports and I am not sure if it is possible - either via SQR or via > Unix command. Another option would be to encrypt the file via Unix, but I > am not sure how the end-users would decrypt them. If anyone has done > anything similar to this, I'd greatly appreciate any pointers. > > Thanks! > Greg > > > > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 13 09:00:54 2009 Date: Fri, 13 Nov 2009 08:57:44 -0500 From: Rajesh Subramaniam Subject: [sqr-users] Reg: Rounding off problem - Rajesh Hi, I am doing changes to a payroll related SQR program, where the total revenue of each client is calculated and a report is generated. each clients revenue in different departments is like this- Client 1: Department A -34.36 Department B -45.48 -------------- Total Revenue - 80.84 And a report will be generated after rounding each value- Client 1: Department A -34 Department B -45 -------------- Total Revenue - 79 The problem I am facing is that when the rounding of total revenue there is an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. But, when you view it in the report it looks like there is a problem in addition i.e the total of 34 and 45 is displayed as 80 instead of 79 (since each item is rounded off individually for report purposes). This is what I need in the report- Client 1: Department A -34 Department B -45 -------------- Total Revenue - 79 But this is what I get in the report Client 1: Department A -34 Department B -45 -------------- Total Revenue - 80 How can we solve this issue? I was thinking of truncating the final totoal value but still I will be facing the same problem. Can anyone help me out? Thanks, Rajesh. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 13 09:07:24 2009 Date: Fri, 13 Nov 2009 09:04:29 -0500 From: Rajesh Subramaniam Subject: [sqr-users] Re: Reg: Rounding off problem - Rajesh Hi, Actually I was thinking of rounding off each individual department's revenue using the round function. But, can someone tell me the syntax for it- I read somwhere it is, round(numeric value, place value). What is place value? can someone give me an example for this or suggest some other idea. Thanks, Rajesh. On Fri, Nov 13, 2009 at 8:57 AM, Rajesh Subramaniam wrote: > Hi, > > I am doing changes to a payroll related SQR program, where the total > revenue of each client is calculated and a report is generated. > > each clients revenue in different departments is like this- > > Client 1: Department A -34.36 > Department B -45.48 > -------------- > Total Revenue - 80.84 > > > And a report will be generated after rounding each value- > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 79 > > > The problem I am facing is that when the rounding of total revenue there is > an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. But, > when you view it in the report it looks like there is a problem in addition > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since each item > is rounded off individually for report purposes). > > This is what I need in the report- > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 79 > > But this is what I get in the report > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 80 > > How can we solve this issue? I was thinking of truncating the final totoal > value but still I will be facing the same problem. > > Can anyone help me out? > > Thanks, > Rajesh. > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 13 09:12:46 2009 Subject: RE: [sqr-users] Re: Reg: Rounding off problem - Rajesh Date: Fri, 13 Nov 2009 09:08:30 -0500 From: "Simon, Jason (MBS)" Here is the code from the SQR help files. Returns a value that is num_value rounded to place_value digits after the decimal separator.=20 Value type: Same as num_value Syntax: dst_var =3D round(num_value, place_value) num_value =3D decimal, float, or integer literal, column, variable, or expression. place_value =3D decimal, float, or integer literal, column, variable, or expression. The value is always converted to float. dst_var =3D decimal, float, or integer variable. Example: let #frndvar =3D round(#fvar, #fplace) -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Friday, November 13, 2009 9:04 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] Re: Reg: Rounding off problem - Rajesh Hi, Actually I was thinking of rounding off each individual department's revenue using the round function. But, can someone tell me the syntax for it- I read somwhere it is, round(numeric value, place value). What is place value? can someone give me an example for this or suggest some other idea. Thanks, Rajesh. On Fri, Nov 13, 2009 at 8:57 AM, Rajesh Subramaniam wrote: > Hi, > > I am doing changes to a payroll related SQR program, where the total > revenue of each client is calculated and a report is generated. > > each clients revenue in different departments is like this- > > Client 1: Department A -34.36 > Department B -45.48 > -------------- > Total Revenue - 80.84 > > > And a report will be generated after rounding each value- > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 79 > > > The problem I am facing is that when the rounding of total revenue there is > an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. But, > when you view it in the report it looks like there is a problem in addition > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since each item > is rounded off individually for report purposes). > > This is what I need in the report- > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 79 > > But this is what I get in the report > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 80 > > How can we solve this issue? I was thinking of truncating the final totoal > value but still I will be facing the same problem. > > Can anyone help me out? > > Thanks, > Rajesh. > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 13 09:29:15 2009 Date: Fri, 13 Nov 2009 09:26:08 -0500 Subject: Re: [sqr-users] Re: Reg: Rounding off problem - Rajesh From: Rajesh Subramaniam Hi Jason, Thanks for the reply. From the syntax you gave and another persons post I figured out the solution to the problem. Thanks a lot. -Rajesh On Fri, Nov 13, 2009 at 9:08 AM, Simon, Jason (MBS) < Jason.Simon@mortgagefamily.com> wrote: > Here is the code from the SQR help files. > > Returns a value that is num_value rounded to place_value digits after > the decimal separator. > > Value type: Same as num_value > > Syntax: dst_var = round(num_value, place_value) > > num_value = decimal, float, or integer literal, column, variable, or > expression. > > place_value = decimal, float, or integer literal, column, variable, or > expression. The value is always converted to float. > > dst_var = decimal, float, or integer variable. > > Example: let #frndvar = round(#fvar, #fplace) > > > > > > > -----Original Message----- > From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org > [mailto:sqr-users-bounces+jason.simon = > mortgagefamily.com@sqrug.org] On > Behalf Of Rajesh Subramaniam > Sent: Friday, November 13, 2009 9:04 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: [sqr-users] Re: Reg: Rounding off problem - Rajesh > > Hi, > > Actually I was thinking of rounding off each individual department's > revenue using the round function. But, can someone tell me the syntax > for > it- > > I read somwhere it is, > > round(numeric value, place value). > > What is place value? can someone give me an example for this or suggest > some > other idea. > > Thanks, > Rajesh. > > On Fri, Nov 13, 2009 at 8:57 AM, Rajesh Subramaniam > wrote: > > > Hi, > > > > I am doing changes to a payroll related SQR program, where the total > > revenue of each client is calculated and a report is generated. > > > > each clients revenue in different departments is like this- > > > > Client 1: Department A -34.36 > > Department B -45.48 > > -------------- > > Total Revenue - 80.84 > > > > > > And a report will be generated after rounding each value- > > > > Client 1: Department A -34 > > Department B -45 > > -------------- > > Total Revenue - 79 > > > > > > The problem I am facing is that when the rounding of total revenue > there is > > an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. > But, > > when you view it in the report it looks like there is a problem in > addition > > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since > each item > > is rounded off individually for report purposes). > > > > This is what I need in the report- > > > > Client 1: Department A -34 > > Department B -45 > > -------------- > > Total Revenue - 79 > > > > But this is what I get in the report > > > > Client 1: Department A -34 > > Department B -45 > > -------------- > > Total Revenue - 80 > > > > How can we solve this issue? I was thinking of truncating the final > totoal > > value but still I will be facing the same problem. > > > > Can anyone help me out? > > > > Thanks, > > Rajesh. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Nov 13 09:33:55 2009 Date: Fri, 13 Nov 2009 09:28:23 -0500 Subject: Re: [sqr-users] Re: Reg: Rounding off problem - Rajesh From: Rajesh Subramaniam Hi guys, I figured out the solution to my problem from another solution given by a member from our SQR community. let #revenue = round(#revenue,0) print #revenue (,104) edit 9,999,999 This will round up each individual value before calculation, Thus the total-revenue is always correct Thanks, Rajesh. On Fri, Nov 13, 2009 at 9:26 AM, Rajesh Subramaniam wrote: > Hi Jason, > > Thanks for the reply. From the syntax you gave and another persons post I > figured out the solution to the problem. > > Thanks a lot. > > -Rajesh > > On Fri, Nov 13, 2009 at 9:08 AM, Simon, Jason (MBS) < > Jason.Simon@mortgagefamily.com> wrote: > >> Here is the code from the SQR help files. >> >> Returns a value that is num_value rounded to place_value digits after >> the decimal separator. >> >> Value type: Same as num_value >> >> Syntax: dst_var = round(num_value, place_value) >> >> num_value = decimal, float, or integer literal, column, variable, or >> expression. >> >> place_value = decimal, float, or integer literal, column, variable, or >> expression. The value is always converted to float. >> >> dst_var = decimal, float, or integer variable. >> >> Example: let #frndvar = round(#fvar, #fplace) >> >> >> >> >> >> >> -----Original Message----- >> From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org >> [mailto:sqr-users-bounces+jason.simon = >> mortgagefamily.com@sqrug.org] On >> Behalf Of Rajesh Subramaniam >> Sent: Friday, November 13, 2009 9:04 AM >> To: This list is for discussion about the SQR database reporting >> languagefrom Hyperion Solutions. >> Subject: [sqr-users] Re: Reg: Rounding off problem - Rajesh >> >> Hi, >> >> Actually I was thinking of rounding off each individual department's >> revenue using the round function. But, can someone tell me the syntax >> for >> it- >> >> I read somwhere it is, >> >> round(numeric value, place value). >> >> What is place value? can someone give me an example for this or suggest >> some >> other idea. >> >> Thanks, >> Rajesh. >> >> On Fri, Nov 13, 2009 at 8:57 AM, Rajesh Subramaniam >> wrote: >> >> > Hi, >> > >> > I am doing changes to a payroll related SQR program, where the total >> > revenue of each client is calculated and a report is generated. >> > >> > each clients revenue in different departments is like this- >> > >> > Client 1: Department A -34.36 >> > Department B -45.48 >> > -------------- >> > Total Revenue - 80.84 >> > >> > >> > And a report will be generated after rounding each value- >> > >> > Client 1: Department A -34 >> > Department B -45 >> > -------------- >> > Total Revenue - 79 >> > >> > >> > The problem I am facing is that when the rounding of total revenue >> there is >> > an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. >> But, >> > when you view it in the report it looks like there is a problem in >> addition >> > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since >> each item >> > is rounded off individually for report purposes). >> > >> > This is what I need in the report- >> > >> > Client 1: Department A -34 >> > Department B -45 >> > -------------- >> > Total Revenue - 79 >> > >> > But this is what I get in the report >> > >> > Client 1: Department A -34 >> > Department B -45 >> > -------------- >> > Total Revenue - 80 >> > >> > How can we solve this issue? I was thinking of truncating the final >> totoal >> > value but still I will be facing the same problem. >> > >> > Can anyone help me out? >> > >> > Thanks, >> > Rajesh. >> > >> >> _______________________________________________ >> sqr-users mailing list >> sqr-users@sqrug.org >> 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 Nov 13 09:38:54 2009 Subject: RE: [sqr-users] Re: Reg: Rounding off problem - Rajesh Date: Fri, 13 Nov 2009 09:29:37 -0500 From: "Simon, Jason (MBS)" Anytime and you're welcome. I am glad I could help!=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Friday, November 13, 2009 9:26 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Re: Reg: Rounding off problem - Rajesh Hi Jason, Thanks for the reply. From the syntax you gave and another persons post I figured out the solution to the problem. Thanks a lot. -Rajesh On Fri, Nov 13, 2009 at 9:08 AM, Simon, Jason (MBS) < Jason.Simon@mortgagefamily.com> wrote: > Here is the code from the SQR help files. > > Returns a value that is num_value rounded to place_value digits after > the decimal separator. > > Value type: Same as num_value > > Syntax: dst_var =3D round(num_value, place_value) > > num_value =3D decimal, float, or integer literal, column, variable, or > expression. > > place_value =3D decimal, float, or integer literal, column, variable, or > expression. The value is always converted to float. > > dst_var =3D decimal, float, or integer variable. > > Example: let #frndvar =3D round(#fvar, #fplace) > > > > > > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > [mailto:sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On > Behalf Of Rajesh Subramaniam > Sent: Friday, November 13, 2009 9:04 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: [sqr-users] Re: Reg: Rounding off problem - Rajesh > > Hi, > > Actually I was thinking of rounding off each individual department's > revenue using the round function. But, can someone tell me the syntax > for > it- > > I read somwhere it is, > > round(numeric value, place value). > > What is place value? can someone give me an example for this or suggest > some > other idea. > > Thanks, > Rajesh. > > On Fri, Nov 13, 2009 at 8:57 AM, Rajesh Subramaniam > wrote: > > > Hi, > > > > I am doing changes to a payroll related SQR program, where the total > > revenue of each client is calculated and a report is generated. > > > > each clients revenue in different departments is like this- > > > > Client 1: Department A -34.36 > > Department B -45.48 > > -------------- > > Total Revenue - 80.84 > > > > > > And a report will be generated after rounding each value- > > > > Client 1: Department A -34 > > Department B -45 > > -------------- > > Total Revenue - 79 > > > > > > The problem I am facing is that when the rounding of total revenue > there is > > an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. > But, > > when you view it in the report it looks like there is a problem in > addition > > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since > each item > > is rounded off individually for report purposes). > > > > This is what I need in the report- > > > > Client 1: Department A -34 > > Department B -45 > > -------------- > > Total Revenue - 79 > > > > But this is what I get in the report > > > > Client 1: Department A -34 > > Department B -45 > > -------------- > > Total Revenue - 80 > > > > How can we solve this issue? I was thinking of truncating the final > totoal > > value but still I will be facing the same problem. > > > > Can anyone help me out? > > > > Thanks, > > Rajesh. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Nov 13 09:44:00 2009 From: the dragon Subject: RE: [sqr-users] Reg: Rounding off problem - Rajesh Date: Fri, 13 Nov 2009 08:37:24 -0600 At the risk of stating the obvious, for the total, why not add the rounded = numbers??? =20 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 "Does religion calm your fears of death?" "No, but death will calm my fear of religions." NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 - 2009 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. ---------------------------------------- > > Hi, > > I am doing changes to a payroll related SQR program, where the total reve= nue > of each client is calculated and a report is generated. > > each clients revenue in different departments is like this- > > Client 1: Department A -34.36 > Department B -45.48 > -------------- > Total Revenue - 80.84 > > > And a report will be generated after rounding each value- > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 79 > > > The problem I am facing is that when the rounding of total revenue there = is > an obvious mistake i.e 80.84 is rounded to 80 and total is displayed. But, > when you view it in the report it looks like there is a problem in additi= on > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since each i= tem > is rounded off individually for report purposes). > > This is what I need in the report- > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 79 > > But this is what I get in the report > > Client 1: Department A -34 > Department B -45 > -------------- > Total Revenue - 80 > > How can we solve this issue? I was thinking of truncating the final totoal > value but still I will be facing the same problem. > > Can anyone help me out? > > Thanks, > Rajesh. >=20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Find the right PC with Windows 7 and Windows Live.=20 http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=3Dw= l&filt=3D200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=3D1,2,3,4,5,6&brands= =3D5,6,7,8,9,10,11,12,13,14,15,16&addf=3D4,5,9&ocid=3DPID24727::T:WLMTAGL:O= N:WL:en-US:WWL_WIN_evergreen2:112009 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 13 09:48:46 2009 Subject: RE: [sqr-users] Re: Reg: Rounding off problem - Rajesh Date: Fri, 13 Nov 2009 09:41:13 -0500 From: "Putney II, Zynon E" Also as a note Rajesh, you could use =0D edit $9,999,999.99 =0D to keep the cents and not have to worry about rounding at all, and it=0D will put a dollar sign in front. Since you originally said this was a=0D payroll report.=0D ________________________________=0D Zynon E. Putney II=0D Paychex, Inc.=0D Information Technology * Enterprise Business Solutions=0D 150 Sawgrass Drive * Rochester, New York 14620=0D =0D -----Original Message-----=0D From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org=0D [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of=0D Rajesh Subramaniam=0D Sent: Friday, November 13, 2009 9:28 AM=0D To: This list is for discussion about the SQR database reporting=0D languagefrom Hyperion Solutions.=0D Subject: Re: [sqr-users] Re: Reg: Rounding off problem - Rajesh=0D =0D Hi guys,=0D =0D I figured out the solution to my problem from another solution given by=0D a member from our SQR community.=0D =0D let #revenue =3D round(#revenue,0)=0D print #revenue (,104) edit 9,999,999=0D =0D This will round up each individual value before calculation, Thus the=0D total-revenue is always correct=0D =0D Thanks,=0D Rajesh.=0D =0D On Fri, Nov 13, 2009 at 9:26 AM, Rajesh Subramaniam=0D wrote:=0D =0D > Hi Jason,=0D >=0D > Thanks for the reply. From the syntax you gave and another persons =0D > post I figured out the solution to the problem.=0D >=0D > Thanks a lot.=0D >=0D > -Rajesh=0D >=0D > On Fri, Nov 13, 2009 at 9:08 AM, Simon, Jason (MBS) < =0D > Jason.Simon@mortgagefamily.com> wrote:=0D >=0D >> Here is the code from the SQR help files.=0D >>=0D >> Returns a value that is num_value rounded to place_value digits after=0D =0D >> the decimal separator.=0D >>=0D >> Value type: Same as num_value=0D >>=0D >> Syntax: dst_var =3D round(num_value, place_value)=0D >>=0D >> num_value =3D decimal, float, or integer literal, column, variable, or = =0D >> expression.=0D >>=0D >> place_value =3D decimal, float, or integer literal, column, variable, = =0D >> or expression. The value is always converted to float.=0D >>=0D >> dst_var =3D decimal, float, or integer variable.=0D >>=0D >> Example: let #frndvar =3D round(#fvar, #fplace)=0D >>=0D >>=0D >>=0D >>=0D >>=0D >>=0D >> -----Original Message-----=0D >> From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=0D >> [mailto:sqr-users-bounces+jason.simon =0D >> =3D=0D >> mortgagefamily.com@sqrug.org] On=0D >> Behalf Of Rajesh Subramaniam=0D >> Sent: Friday, November 13, 2009 9:04 AM=0D >> To: This list is for discussion about the SQR database reporting =0D >> languagefrom Hyperion Solutions.=0D >> Subject: [sqr-users] Re: Reg: Rounding off problem - Rajesh=0D >>=0D >> Hi,=0D >>=0D >> Actually I was thinking of rounding off each individual department's=0D =0D >> revenue using the round function. But, can someone tell me the syntax=0D =0D >> for=0D >> it-=0D >>=0D >> I read somwhere it is,=0D >>=0D >> round(numeric value, place value).=0D >>=0D >> What is place value? can someone give me an example for this or =0D >> suggest some other idea.=0D >>=0D >> Thanks,=0D >> Rajesh.=0D >>=0D >> On Fri, Nov 13, 2009 at 8:57 AM, Rajesh Subramaniam=0D >> wrote:=0D >>=0D >> > Hi,=0D >> >=0D >> > I am doing changes to a payroll related SQR program, where the =0D >> > total revenue of each client is calculated and a report is=0D generated.=0D >> >=0D >> > each clients revenue in different departments is like this-=0D >> >=0D >> > Client 1: Department A -34.36=0D >> > Department B -45.48=0D >> > --------------=0D >> > Total Revenue - 80.84=0D >> >=0D >> >=0D >> > And a report will be generated after rounding each value-=0D >> >=0D >> > Client 1: Department A -34=0D >> > Department B -45=0D >> > --------------=0D >> > Total Revenue - 79=0D >> >=0D >> >=0D >> > The problem I am facing is that when the rounding of total revenue=0D >> there is=0D >> > an obvious mistake i.e 80.84 is rounded to 80 and total is=0D displayed.=0D >> But,=0D >> > when you view it in the report it looks like there is a problem in=0D >> addition=0D >> > i.e the total of 34 and 45 is displayed as 80 instead of 79 (since=0D >> each item=0D >> > is rounded off individually for report purposes).=0D >> >=0D >> > This is what I need in the report-=0D >> >=0D >> > Client 1: Department A -34=0D >> > Department B -45=0D >> > --------------=0D >> > Total Revenue - 79=0D >> >=0D >> > But this is what I get in the report=0D >> >=0D >> > Client 1: Department A -34=0D >> > Department B -45=0D >> > --------------=0D >> > Total Revenue - 80=0D >> >=0D >> > How can we solve this issue? I was thinking of truncating the final=0D >> totoal=0D >> > value but still I will be facing the same problem.=0D >> >=0D >> > Can anyone help me out?=0D >> >=0D >> > Thanks,=0D >> > Rajesh.=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 >>=0D >> _______________________________________________=0D >> sqr-users mailing list=0D >> sqr-users@sqrug.org=0D >> http://www.sqrug.org/mailman/listinfo/sqr-users=0D >>=0D >=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 -----------------------------------------=0D The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. =0D =0D Thank you. Paychex, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 13 10:28:05 2009 Date: Fri, 13 Nov 2009 10:25:26 -0500 From: Don Mellen Subject: [sqr-users] New On-Line SQR Programmer Reference available Fellow SQR-Users, The latest (and finally up-to-date) version of our On-Line SQR Programmer Reference is available at ... http://www.ontko.com/sqr/sqrcard.html It covers SQR up to version 11.1.1 and tracks when each command, option, expression etc. was introduced. Of course, if you don't want to be tempted by what you don't have, we also have a list of previous on-line references from version 2.x thru version 9.x (None for 7 or 10, as they skipped those versions) listed at ... https://www.ontko.com/sqr Happy coding! -- ----------------------------------------------------------------------- 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 Wed Nov 18 10:06:17 2009 Date: Wed, 18 Nov 2009 10:03:28 -0500 From: Rajesh Subramaniam Subject: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Hi guys, In the below code, if I use to_number() on the area_code and phone_number, the process that uses this piece of code ends in an error. To prevent this error due to the use of to_number(), I changed the if condition to check $area_code != 0 and $phone_nbr != 0 instead of to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed the if condition in the last section of the code to- if $area_code != 0 and $phone_nbr != 0 do get_full_phone_match end-if This solves the issue, but is there any better way of doing this? Any suggestions would be greatly appreciated. Thanks, Rajesh. Code- _____ begin-procedure get_temp_clients begin-select tci_crs_id &crs_id tci_client_name_mod &client_name nvl(cpn_area_code,0) &area_code nvl(cpn_phone_nbr,0) &phone_nbr tci_pr_client_nbr &client_nbr tci_client_branch_nbr &branch_nbr nvl(tci_fed_id,'NO FED') &fed_id move &crs_id to #crs_id move &client_name to $client_name move &area_code to $area_code move &phone_nbr to $phone_nbr move &client_nbr to $client_nbr move &branch_nbr to $branch_nbr move &fed_id to $fed_id if to_number($area_code) > 0 and to_number($phone_nbr) > 0 do get_full_phone_match end-if end-select end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 18 10:22:50 2009 From: the dragon Subject: RE: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Date: Wed, 18 Nov 2009 09:20:01 -0600 The problem may stems from the fact that the phone number is not usually a = number column, but may contain a special character, such as a ., / or - in = it. You can add a debug statement that shows the values being processed. = Additionally, you can use the &variable column variable in your if statemen= t, rather than changing it to a $character and then back to a number with t= o_number(). =20 Best bet, add a show of the variable before you get to the statement that b= lows up and see what you get. =20 Also, nvl only catches null values, it does not catch spaces, and if you're= using PeopleSoft, the database is full of records with single spaces. You= might want to check the database and determine the type of the columns you= 're dealing with. =20 peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your= =20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away.=20 I work to live; I don't live to work.=20 "Time is the coin of your life. It is the only coin you have, and only=20 you can determine how it will be spent. Be careful lest you let other=20 people spend it for you." -- Carl Sandburg (1878 - 1967)=20 It is impossible to defeat an ignorant man in argument. -- William G. McAdo= o=20 Religion is regarded by the common people as true, by the wise as false, an= d=20 by the rulers as useful. -- Seneca=20 "I distrust those people who know so well what God wants them to do because= =20 I notice it always coincides with their own desires." - Susan B. Anthony =20 "Does religion calm your fears of death?" "No, but death will calm my fear= =20 of religions." =20 NOTICE: The information contained in this message is protected under Unite= d=20 States and international copyright laws and is intended for the personal an= d=20 confidential use of the addressee. If you are not the addressee or an agen= t=20 of the addressee, you are hereby notified that you have received this=20 message in error and that any review, dissemination, distribution, taking o= f=20 any action in reliance upon or copying of this message without the express= =20 written permission of the sender or his agent is strictly prohibited and in= =20 violation of referenced statutes. If you have received this message in=20 error, please notify me (the sender) immediately and you are instructed to= =20 delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good= =20 with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the= =20 rules, then new and sometimes drastic rules must be forged to maintain=20 order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com= =20 aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable= =20 for a $500 per message cost under USC 47, which may be found at=20 http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 - 2009=20 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. =20 > Date: Wed, 18 Nov 2009 10:03:28 -0500 > From: epsilon11@gmail.com > To: sqr-users@sqrug.org > Subject: [sqr-users] SQR members- suggestion needed for a code change - R= ajesh >=20 > Hi guys, >=20 > In the below code, if I use to_number() on the area_code and phone_number, > the process that uses this piece of code ends in an error. >=20 > To prevent this error due to the use of to_number(), I changed the if > condition to check $area_code !=3D 0 and $phone_nbr !=3D 0 instead of > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed the if > condition in the last section of the code to- >=20 > if $area_code !=3D 0 and $phone_nbr !=3D 0 > do get_full_phone_match > end-if > This solves the issue, but is there any better way of doing this? Any > suggestions would be greatly appreciated. >=20 > Thanks, > Rajesh. >=20 > Code- > _____ >=20 > begin-procedure get_temp_clients > begin-select > tci_crs_id &crs_id > tci_client_name_mod &client_name > nvl(cpn_area_code,0) &area_code > nvl(cpn_phone_nbr,0) &phone_nbr > tci_pr_client_nbr &client_nbr > tci_client_branch_nbr &branch_nbr > nvl(tci_fed_id,'NO FED') &fed_id >=20 >=20 > move &crs_id to #crs_id > move &client_name to $client_name > move &area_code to $area_code > move &phone_nbr to $phone_nbr > move &client_nbr to $client_nbr > move &branch_nbr to $branch_nbr > move &fed_id to $fed_id > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 > do get_full_phone_match > end-if >=20 > end-select > end-procedure >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 18 10:34:23 2009 Subject: RE: [sqr-users] SQR members- suggestion needed for a code change -Rajesh Date: Wed, 18 Nov 2009 10:30:35 -0500 From: "Simon, Jason (MBS)" You can use the isblank to search for the nulls or blanks. Here is the help file info on it.=20 Returns a value of one (1) if source_val is an empty string, null string, or composed entirely of whitespace characters; otherwise, returns a value of zero (0). Syntax: dst_var =3D isblank(source_value) source_value =3D date or text literal, column, variable, or expression (character data type columns only, no numeric data type columns) dst_var =3D decimal, float, or integer variable Example: let #blank =3D isblank(&description) Note: isblank can only be used for character data type columns. -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of the dragon Sent: Wednesday, November 18, 2009 10:20 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR members- suggestion needed for a code change -Rajesh The problem may stems from the fact that the phone number is not usually a number column, but may contain a special character, such as a ., / or - in it. You can add a debug statement that shows the values being processed. Additionally, you can use the &variable column variable in your if statement, rather than changing it to a $character and then back to a number with to_number(). =20 Best bet, add a show of the variable before you get to the statement that blows up and see what you get. =20 Also, nvl only catches null values, it does not catch spaces, and if you're using PeopleSoft, the database is full of records with single spaces. You might want to check the database and determine the type of the columns you're dealing with. =20 peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away.=20 I work to live; I don't live to work.=20 "Time is the coin of your life. It is the only coin you have, and only=20 you can determine how it will be spent. Be careful lest you let other=20 people spend it for you." -- Carl Sandburg (1878 - 1967)=20 It is impossible to defeat an ignorant man in argument. -- William G. McAdoo=20 Religion is regarded by the common people as true, by the wise as false, and=20 by the rulers as useful. -- Seneca=20 "I distrust those people who know so well what God wants them to do because=20 I notice it always coincides with their own desires." - Susan B. Anthony =20 "Does religion calm your fears of death?" "No, but death will calm my fear=20 of religions." =20 NOTICE: The information contained in this message is protected under United=20 States and international copyright laws and is intended for the personal and=20 confidential use of the addressee. If you are not the addressee or an agent=20 of the addressee, you are hereby notified that you have received this=20 message in error and that any review, dissemination, distribution, taking of=20 any action in reliance upon or copying of this message without the express=20 written permission of the sender or his agent is strictly prohibited and in=20 violation of referenced statutes. If you have received this message in=20 error, please notify me (the sender) immediately and you are instructed to=20 delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good=20 with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the=20 rules, then new and sometimes drastic rules must be forged to maintain=20 order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com=20 aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable=20 for a $500 per message cost under USC 47, which may be found at=20 http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 - 2009=20 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. =20 > Date: Wed, 18 Nov 2009 10:03:28 -0500 > From: epsilon11@gmail.com > To: sqr-users@sqrug.org > Subject: [sqr-users] SQR members- suggestion needed for a code change - Rajesh >=20 > Hi guys, >=20 > In the below code, if I use to_number() on the area_code and phone_number, > the process that uses this piece of code ends in an error. >=20 > To prevent this error due to the use of to_number(), I changed the if > condition to check $area_code !=3D 0 and $phone_nbr !=3D 0 instead of > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed the if > condition in the last section of the code to- >=20 > if $area_code !=3D 0 and $phone_nbr !=3D 0 > do get_full_phone_match > end-if > This solves the issue, but is there any better way of doing this? Any > suggestions would be greatly appreciated. >=20 > Thanks, > Rajesh. >=20 > Code- > _____ >=20 > begin-procedure get_temp_clients > begin-select > tci_crs_id &crs_id > tci_client_name_mod &client_name > nvl(cpn_area_code,0) &area_code > nvl(cpn_phone_nbr,0) &phone_nbr > tci_pr_client_nbr &client_nbr > tci_client_branch_nbr &branch_nbr > nvl(tci_fed_id,'NO FED') &fed_id >=20 >=20 > move &crs_id to #crs_id > move &client_name to $client_name > move &area_code to $area_code > move &phone_nbr to $phone_nbr > move &client_nbr to $client_nbr > move &branch_nbr to $branch_nbr > move &fed_id to $fed_id > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 > do get_full_phone_match > end-if >=20 > end-select > end-procedure >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 18 12:13:04 2009 Date: Wed, 18 Nov 2009 12:10:49 -0500 Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh From: Rajesh Subramaniam Hi, Thanks for your suggestions, I tried implementing them and observed that, to_number() works fine even if the input is without single quotes i.e not a string. This is for inputs that are numbers and do not have any special character or spaces between them. If there are special characters in between the numbers then a 0 is displayed if it is within single quotes or else gives an error message. For eg- Sample code- let $areacode = '3456' let $alphaNumericAreaCode = 'A3456' let $areacode1= 3456 // area code without single quotes i.e not a string, just like the inputs in our program nssmatch.sqr !let $alphaNumericAreaCode1 = A3456 //alpha numeric area code without single quotes i.e not a string and got an error for this. So, I have commented it. let $conv = to_number($areacode) let $conv1 = to_number($areacode1) let $alphanum = to_number($alphaNumericAreaCode) !let $alphanum1 = to_number($alphaNumericAreaCode1) display $conv display $conv1 display $alphanum !display $alphanum1 end-procedure OUTPUT- 3456.000000000000000 3456.000000000000000 0.000000000000000 And you were right about just using the &variable in my if statement. So, yeah I found out how it works but I was just wondering whether there is any other way to do this without using to_number(). -Rajesh On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > The problem may stems from the fact that the phone number is not usually a > number column, but may contain a special character, such as a ., / or - in > it. You can add a debug statement that shows the values being processed. > Additionally, you can use the &variable column variable in your if > statement, rather than changing it to a $character and then back to a number > with to_number(). > > > > Best bet, add a show of the variable before you get to the statement that > blows up and see what you get. > > > > Also, nvl only catches null values, it does not catch spaces, and if you're > using PeopleSoft, the database is full of records with single spaces. You > might want to check the database and determine the type of the columns > you're dealing with. > > > > 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 > > "Does religion calm your fears of death?" "No, but death will calm my fear > of religions." > > > NOTICE: The information contained in this message is protected under > United > States and international copyright laws and is intended for the personal > and > confidential use of the addressee. If you are not the addressee or an > agent > of the addressee, you are hereby notified that you have received this > message in error and that any review, dissemination, distribution, taking > of > any action in reliance upon or copying of this message without the express > written permission of the sender or his agent is strictly prohibited and in > violation of referenced statutes. If you have received this message in > error, please notify me (the sender) immediately and you are instructed to > delete this message from any computer it resides on, including mail > servers. > > SIGNATURE : > Do not meddle in the affairs of dragons, for you are crunchy and taste good > with ketchup. > You've got to be a Spirit; don't need no Ghosts. > Do or Do Not; There is NO Try. > Any clod can have facts, but having an opinion is an art ! > A conclusion is simply the place where someone got tired of thinking. > When a continuing state of defiance and disorder can not be checked by the > rules, then new and sometimes drastic rules must be forged to maintain > order; the alternative is anarchy. > M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com > aolim:ceprn ICQ 6633136 > > Help stamp out SPAM!! http://www.cauce.org > The senders of unsolicited commercial e-mail to me at any site are liable > for a $500 per message cost under USC 47, which may be found at > http://www.law.cornell.edu/uscode/47 > > Contents of this message, in it's entirety, (c) 2000 - 2009 > M. Clark Willis III / Dragon Enterprises inc. All rights reserved. > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > From: epsilon11@gmail.com > > To: sqr-users@sqrug.org > > Subject: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > > > Hi guys, > > > > In the below code, if I use to_number() on the area_code and > phone_number, > > the process that uses this piece of code ends in an error. > > > > To prevent this error due to the use of to_number(), I changed the if > > condition to check $area_code != 0 and $phone_nbr != 0 instead of > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed the > if > > condition in the last section of the code to- > > > > if $area_code != 0 and $phone_nbr != 0 > > do get_full_phone_match > > end-if > > This solves the issue, but is there any better way of doing this? Any > > suggestions would be greatly appreciated. > > > > Thanks, > > Rajesh. > > > > Code- > > _____ > > > > begin-procedure get_temp_clients > > begin-select > > tci_crs_id &crs_id > > tci_client_name_mod &client_name > > nvl(cpn_area_code,0) &area_code > > nvl(cpn_phone_nbr,0) &phone_nbr > > tci_pr_client_nbr &client_nbr > > tci_client_branch_nbr &branch_nbr > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > move &crs_id to #crs_id > > move &client_name to $client_name > > move &area_code to $area_code > > move &phone_nbr to $phone_nbr > > move &client_nbr to $client_nbr > > move &branch_nbr to $branch_nbr > > move &fed_id to $fed_id > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 > > do get_full_phone_match > > end-if > > > > end-select > > end-procedure > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Hotmail: Trusted email with powerful SPAM protection. > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 18 12:26:10 2009 Subject: RE: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Date: Wed, 18 Nov 2009 12:22:40 -0500 From: "Simon, Jason (MBS)" There are probably many different ways to do this. But if I had to format a phone number right now I would convert them to a string remove any characters by looping the string multiple times through the replace function each time removing a non number item. Then I would use the edit to format the phone number to the format I wanted.=20 Here is the help file for both of the functions I would use.=20=20 REPLACE Inspects the contents of source_value and replaces all occurrences of from_string with to_string and returns the modified string. Syntax: dst_var =3D replace(source_value, from_string, to_string) source_value =3D date or text literal, column, variable, or expression from_string =3D text literal, column, variable, or expression to_string =3D text literal, column, variable, or expression dst_var =3D text variable Example: let $replaced =3D replace($paragraph, 'good', 'excellent') EDIT Formats source_value according to edit_mask and returns a string containing the result. Syntax: dst_var =3D edit(source_value, edit_mask) source_value =3D Any literal, column, variable, or expression edit_mask =3D text literal, column, variable, or expression dst_var =3D text variable Example: let $phone =3D edit(&phone, '(xxx) xxx-xxxxx') let $price =3D edit(#price, '999.99') let $today =3D edit($date, 'DD/MM/YYYY') -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Wednesday, November 18, 2009 12:11 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Hi, Thanks for your suggestions, I tried implementing them and observed that, to_number() works fine even if the input is without single quotes i.e not a string. This is for inputs that are numbers and do not have any special character or spaces between them. If there are special characters in between the numbers then a 0 is displayed if it is within single quotes or else gives an error message. For eg- Sample code- let $areacode =3D '3456' let $alphaNumericAreaCode =3D 'A3456' let $areacode1=3D 3456 // area code without single quotes i.e not a string, just like the inputs in our program nssmatch.sqr !let $alphaNumericAreaCode1 =3D A3456 //alpha numeric area code without single quotes i.e not a string and got an error for this. So, I have commented it. let $conv =3D to_number($areacode) let $conv1 =3D to_number($areacode1) let $alphanum =3D to_number($alphaNumericAreaCode) !let $alphanum1 =3D to_number($alphaNumericAreaCode1) display $conv display $conv1 display $alphanum !display $alphanum1 end-procedure OUTPUT- 3456.000000000000000 3456.000000000000000 0.000000000000000 And you were right about just using the &variable in my if statement. So, yeah I found out how it works but I was just wondering whether there is any other way to do this without using to_number(). -Rajesh On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > The problem may stems from the fact that the phone number is not usually a > number column, but may contain a special character, such as a ., / or - in > it. You can add a debug statement that shows the values being processed. > Additionally, you can use the &variable column variable in your if > statement, rather than changing it to a $character and then back to a number > with to_number(). > > > > Best bet, add a show of the variable before you get to the statement that > blows up and see what you get. > > > > Also, nvl only catches null values, it does not catch spaces, and if you're > using PeopleSoft, the database is full of records with single spaces. You > might want to check the database and determine the type of the columns > you're dealing with. > > > > 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 > > "Does religion calm your fears of death?" "No, but death will calm my fear > of religions." > > > NOTICE: The information contained in this message is protected under > United > States and international copyright laws and is intended for the personal > and > confidential use of the addressee. If you are not the addressee or an > agent > of the addressee, you are hereby notified that you have received this > message in error and that any review, dissemination, distribution, taking > of > any action in reliance upon or copying of this message without the express > written permission of the sender or his agent is strictly prohibited and in > violation of referenced statutes. If you have received this message in > error, please notify me (the sender) immediately and you are instructed to > delete this message from any computer it resides on, including mail > servers. > > SIGNATURE : > Do not meddle in the affairs of dragons, for you are crunchy and taste good > with ketchup. > You've got to be a Spirit; don't need no Ghosts. > Do or Do Not; There is NO Try. > Any clod can have facts, but having an opinion is an art ! > A conclusion is simply the place where someone got tired of thinking. > When a continuing state of defiance and disorder can not be checked by the > rules, then new and sometimes drastic rules must be forged to maintain > order; the alternative is anarchy. > M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com > aolim:ceprn ICQ 6633136 > > Help stamp out SPAM!! http://www.cauce.org > The senders of unsolicited commercial e-mail to me at any site are liable > for a $500 per message cost under USC 47, which may be found at > http://www.law.cornell.edu/uscode/47 > > Contents of this message, in it's entirety, (c) 2000 - 2009 > M. Clark Willis III / Dragon Enterprises inc. All rights reserved. > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > From: epsilon11@gmail.com > > To: sqr-users@sqrug.org > > Subject: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > > > Hi guys, > > > > In the below code, if I use to_number() on the area_code and > phone_number, > > the process that uses this piece of code ends in an error. > > > > To prevent this error due to the use of to_number(), I changed the if > > condition to check $area_code !=3D 0 and $phone_nbr !=3D 0 instead of > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed the > if > > condition in the last section of the code to- > > > > if $area_code !=3D 0 and $phone_nbr !=3D 0 > > do get_full_phone_match > > end-if > > This solves the issue, but is there any better way of doing this? Any > > suggestions would be greatly appreciated. > > > > Thanks, > > Rajesh. > > > > Code- > > _____ > > > > begin-procedure get_temp_clients > > begin-select > > tci_crs_id &crs_id > > tci_client_name_mod &client_name > > nvl(cpn_area_code,0) &area_code > > nvl(cpn_phone_nbr,0) &phone_nbr > > tci_pr_client_nbr &client_nbr > > tci_client_branch_nbr &branch_nbr > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > move &crs_id to #crs_id > > move &client_name to $client_name > > move &area_code to $area_code > > move &phone_nbr to $phone_nbr > > move &client_nbr to $client_nbr > > move &branch_nbr to $branch_nbr > > move &fed_id to $fed_id > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 > > do get_full_phone_match > > end-if > > > > end-select > > end-procedure > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Hotmail: Trusted email with powerful SPAM protection. > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 18 12:59:37 2009 From: "Barry E. Cohen" Date: Wed, 18 Nov 2009 12:56:30 -0500 Subject: RE: [sqr-users] SQR members- suggestion needed for a code change - Rajesh I'd likely just run 'translate'... Let $phone_nbr =3D translate($phone_nbr, '()-/ ', '')=20 That would eliminate any of the special characters your likely to encounter= in a phone number in one shot rather than having to repeat the process wit= h 'replace'. Next you could evaluate for length, to postulate on how much of the number = you have. Let #phone_len =3D length($phone_nbr) evaluate #phone_len when =3D 11 parse accordingly break when =3D 10 parse accordingly break when =3D 7 parse accordingly break End-evaluate Ask 10 different programmers how to handle a situation, and you'll likely e= nd up with 10 different answers... _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 =20 Please consider the environment before printing this email -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Wednesday, November 18, 2009 12:23 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] SQR members- suggestion needed for a code change -= Rajesh There are probably many different ways to do this. But if I had to format = a phone number right now I would convert them to a string remove any charac= ters by looping the string multiple times through the replace function each= time removing a non number item. Then I would use the edit to format the p= hone number to the format I wanted.=20 Here is the help file for both of the functions I would use.=20=20 REPLACE Inspects the contents of source_value and replaces all occurrences of from= _string with to_string and returns the modified string. Syntax: dst_var =3D replace(source_value, from_string, to_string) source_value =3D date or text literal, column, variable, or expression from_string =3D text literal, column, variable, or expression to_string =3D text literal, column, variable, or expression dst_var =3D text variable Example: let $replaced =3D replace($paragraph, 'good', 'excellent') EDIT Formats source_value according to edit_mask and returns a string containing= the result. Syntax: dst_var =3D edit(source_value, edit_mask) source_value =3D Any literal, column, variable, or expression edit_mask =3D text literal, column, variable, or expression dst_var =3D text variable Example: let $phone =3D edit(&phone, '(xxx) xxx-xxxxx') let $price =3D edit= (#price, '999.99') let $today =3D edit($date, 'DD/MM/YYYY') -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Be= half Of Rajesh Subramaniam Sent: Wednesday, November 18, 2009 12:11 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] SQR members- suggestion needed for a code change -= Rajesh Hi, Thanks for your suggestions, I tried implementing them and observed that, to_number() works fine even if the input is without single quotes i.e not a= string. This is for inputs that are numbers and do not have any special ch= aracter or spaces between them. If there are special characters in between the numbers then a 0 is displaye= d if it is within single quotes or else gives an error message. For eg- Sample code- let $areacode =3D '3456' let $alphaNumericAreaCode =3D 'A3456' let $areacode1=3D 3456 // area code without single quotes i.e not a string= , just like the inputs in our program nssmatch.sqr !let $alphaNumericAreaC= ode1 =3D A3456 //alpha numeric area code without single quotes i.e not a st= ring and got an error for this. So, I have commented it. let $conv =3D to_number($areacode) let $conv1 =3D to_number($areacode1) let $alphanum =3D to_number($alphaNumericAreaCode) !let $alphanum1 =3D to= _number($alphaNumericAreaCode1) display $conv display $conv1 display $alphanum !display $alphanum1 end-procedure OUTPUT- 3456.000000000000000 3456.000000000000000 0.000000000000000 And you were right about just using the &variable in my if statement. So, yeah I found out how it works but I was just wondering whether there is= any other way to do this without using to_number(). -Rajesh On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > The problem may stems from the fact that the phone number is not usually a > number column, but may contain a special character, such as a ., / or - in > it. You can add a debug statement that shows the values being processed. > Additionally, you can use the &variable column variable in your if=20 > statement, rather than changing it to a $character and then back to a number > with to_number(). > > > > Best bet, add a show of the variable before you get to the statement that > blows up and see what you get. > > > > Also, nvl only catches null values, it does not catch spaces, and if you're > using PeopleSoft, the database is full of records with single spaces. You > might want to check the database and determine the type of the columns=20 > you're dealing with. > > > > 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=20 > 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=20 > you can determine how it will be spent. Be careful lest you let other=20 > 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 > > "Does religion calm your fears of death?" "No, but death will calm my fear > of religions." > > > NOTICE: The information contained in this message is protected under=20 > United States and international copyright laws and is intended for the personal > and > confidential use of the addressee. If you are not the addressee or an=20 > agent of the addressee, you are hereby notified that you have received=20 > this message in error and that any review, dissemination,=20 > distribution, taking > of > any action in reliance upon or copying of this message without the express > written permission of the sender or his agent is strictly prohibited and in > violation of referenced statutes. If you have received this message in > error, please notify me (the sender) immediately and you are instructed to > delete this message from any computer it resides on, including mail=20 > servers. > > SIGNATURE : > Do not meddle in the affairs of dragons, for you are crunchy and taste good > with ketchup. > You've got to be a Spirit; don't need no Ghosts. > Do or Do Not; There is NO Try. > Any clod can have facts, but having an opinion is an art ! > A conclusion is simply the place where someone got tired of thinking. > When a continuing state of defiance and disorder can not be checked by the > rules, then new and sometimes drastic rules must be forged to maintain=20 > order; the alternative is anarchy. > M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com > aolim:ceprn ICQ 6633136 > > Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited=20 > commercial e-mail to me at any site are liable > for a $500 per message cost under USC 47, which may be found at > http://www.law.cornell.edu/uscode/47 > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. Clark=20 > Willis III / Dragon Enterprises inc. All rights reserved. > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > From: epsilon11@gmail.com > > To: sqr-users@sqrug.org > > Subject: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > > > Hi guys, > > > > In the below code, if I use to_number() on the area_code and > phone_number, > > the process that uses this piece of code ends in an error. > > > > To prevent this error due to the use of to_number(), I changed the if > > condition to check $area_code !=3D 0 and $phone_nbr !=3D 0 instead of > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed the > if > > condition in the last section of the code to- > > > > if $area_code !=3D 0 and $phone_nbr !=3D 0 do get_full_phone_match=20 > > end-if This solves the issue, but is there any better way of doing=20 > > this? Any > > suggestions would be greatly appreciated. > > > > Thanks, > > Rajesh. > > > > Code- > > _____ > > > > begin-procedure get_temp_clients > > begin-select > > tci_crs_id &crs_id > > tci_client_name_mod &client_name > > nvl(cpn_area_code,0) &area_code > > nvl(cpn_phone_nbr,0) &phone_nbr > > tci_pr_client_nbr &client_nbr > > tci_client_branch_nbr &branch_nbr > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > move &crs_id to #crs_id > > move &client_name to $client_name > > move &area_code to $area_code > > move &phone_nbr to $phone_nbr > > move &client_nbr to $client_nbr > > move &branch_nbr to $branch_nbr > > move &fed_id to $fed_id > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 do=20 > > get_full_phone_match end-if > > > > end-select > > end-procedure > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Hotmail: Trusted email with powerful SPAM protection. > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Wed Nov 18 13:14:45 2009 Date: Wed, 18 Nov 2009 13:11:36 -0500 Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh From: Rajesh Subramaniam Yup, I was thinking about this before. This would definitely be effective. Thanks for the sample implementation to give me some idea. -Rajesh. On Wed, Nov 18, 2009 at 12:56 PM, Barry E. Cohen wrote: > I'd likely just run 'translate'... > > Let $phone_nbr = translate($phone_nbr, '()-/ ', '') > > That would eliminate any of the special characters your likely to encounter > in a phone number in one shot rather than having to repeat the process with > 'replace'. > > > Next you could evaluate for length, to postulate on how much of the number > you have. > > Let #phone_len = length($phone_nbr) > evaluate #phone_len > when = 11 > parse accordingly > break > when = 10 > parse accordingly > break > when = 7 > parse accordingly > break > End-evaluate > > Ask 10 different programmers how to handle a situation, and you'll likely > end up with 10 different answers... > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > > -----Original Message----- > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =univision.net@ > sqrug.org] On Behalf Of Simon, Jason (MBS) > Sent: Wednesday, November 18, 2009 12:23 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] SQR members- suggestion needed for a code change > - Rajesh > > There are probably many different ways to do this. But if I had to format > a phone number right now I would convert them to a string remove any > characters by looping the string multiple times through the replace function > each time removing a non number item. Then I would use the edit to format > the phone number to the format I wanted. > > Here is the help file for both of the functions I would use. > > > > REPLACE > Inspects the contents of source_value and replaces all occurrences of > from_string with to_string and returns the modified string. > > Syntax: dst_var = replace(source_value, from_string, to_string) > > source_value = date or text literal, column, variable, or expression > > from_string = text literal, column, variable, or expression > > to_string = text literal, column, variable, or expression > > dst_var = text variable > > Example: let $replaced = replace($paragraph, 'good', 'excellent') > > > > EDIT > > Formats source_value according to edit_mask and returns a string containing > the result. > > Syntax: dst_var = edit(source_value, edit_mask) > > source_value = Any literal, column, variable, or expression > > edit_mask = text literal, column, variable, or expression > > dst_var = text variable > > Example: let $phone = edit(&phone, '(xxx) xxx-xxxxx') let $price = > edit(#price, '999.99') let $today = edit($date, 'DD/MM/YYYY') > > > > > > -----Original Message----- > From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org > [mailto:sqr-users-bounces+jason.simon = > mortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Wednesday, November 18, 2009 12:11 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > Hi, > > Thanks for your suggestions, I tried implementing them and observed that, > > to_number() works fine even if the input is without single quotes i.e not a > string. This is for inputs that are numbers and do not have any special > character or spaces between them. > > If there are special characters in between the numbers then a 0 is > displayed if it is within single quotes or else gives an error message. > > For eg- > Sample code- > > let $areacode = '3456' > let $alphaNumericAreaCode = 'A3456' > let $areacode1= 3456 // area code without single quotes i.e not a string, > just like the inputs in our program nssmatch.sqr !let > $alphaNumericAreaCode1 = A3456 //alpha numeric area code without single > quotes i.e not a string and got an error for this. So, I have commented it. > > let $conv = to_number($areacode) > let $conv1 = to_number($areacode1) > let $alphanum = to_number($alphaNumericAreaCode) !let $alphanum1 = > to_number($alphaNumericAreaCode1) > > display $conv > display $conv1 > display $alphanum > !display $alphanum1 > > end-procedure > > OUTPUT- > 3456.000000000000000 > 3456.000000000000000 > 0.000000000000000 > > And you were right about just using the &variable in my if statement. > > So, yeah I found out how it works but I was just wondering whether there is > any other way to do this without using to_number(). > > -Rajesh > On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > > > > The problem may stems from the fact that the phone number is not > usually a > > number column, but may contain a special character, such as a ., / or > - in > > it. You can add a debug statement that shows the values being > processed. > > Additionally, you can use the &variable column variable in your if > > statement, rather than changing it to a $character and then back to a > number > > with to_number(). > > > > > > > > Best bet, add a show of the variable before you get to the statement > that > > blows up and see what you get. > > > > > > > > Also, nvl only catches null values, it does not catch spaces, and if > you're > > using PeopleSoft, the database is full of records with single spaces. > You > > might want to check the database and determine the type of the columns > > you're dealing with. > > > > > > > > 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 > > > > "Does religion calm your fears of death?" "No, but death will calm my > fear > > of religions." > > > > > > NOTICE: The information contained in this message is protected under > > United States and international copyright laws and is intended for the > personal > > and > > confidential use of the addressee. If you are not the addressee or an > > agent of the addressee, you are hereby notified that you have received > > this message in error and that any review, dissemination, > > distribution, > taking > > of > > any action in reliance upon or copying of this message without the > express > > written permission of the sender or his agent is strictly prohibited > and in > > violation of referenced statutes. If you have received this message > in > > error, please notify me (the sender) immediately and you are > instructed to > > delete this message from any computer it resides on, including mail > > servers. > > > > SIGNATURE : > > Do not meddle in the affairs of dragons, for you are crunchy and taste > good > > with ketchup. > > You've got to be a Spirit; don't need no Ghosts. > > Do or Do Not; There is NO Try. > > Any clod can have facts, but having an opinion is an art ! > > A conclusion is simply the place where someone got tired of thinking. > > When a continuing state of defiance and disorder can not be checked by > the > > rules, then new and sometimes drastic rules must be forged to maintain > > order; the alternative is anarchy. > > M. Clark Willis III - Sr Systems Analyst, Sr Consultant > ceprn@hotmail.com > > aolim:ceprn ICQ 6633136 > > > > Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited > > commercial e-mail to me at any site are > liable > > for a $500 per message cost under USC 47, which may be found at > > http://www.law.cornell.edu/uscode/47 > > > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. Clark > > Willis III / Dragon Enterprises inc. All rights reserved. > > > > > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > > From: epsilon11@gmail.com > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] SQR members- suggestion needed for a code > change - > > Rajesh > > > > > > Hi guys, > > > > > > In the below code, if I use to_number() on the area_code and > > phone_number, > > > the process that uses this piece of code ends in an error. > > > > > > To prevent this error due to the use of to_number(), I changed the > if > > > condition to check $area_code != 0 and $phone_nbr != 0 instead of > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed > the > > if > > > condition in the last section of the code to- > > > > > > if $area_code != 0 and $phone_nbr != 0 do get_full_phone_match > > > end-if This solves the issue, but is there any better way of doing > > > this? > Any > > > suggestions would be greatly appreciated. > > > > > > Thanks, > > > Rajesh. > > > > > > Code- > > > _____ > > > > > > begin-procedure get_temp_clients > > > begin-select > > > tci_crs_id &crs_id > > > tci_client_name_mod &client_name > > > nvl(cpn_area_code,0) &area_code > > > nvl(cpn_phone_nbr,0) &phone_nbr > > > tci_pr_client_nbr &client_nbr > > > tci_client_branch_nbr &branch_nbr > > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > > > > move &crs_id to #crs_id > > > move &client_name to $client_name > > > move &area_code to $area_code > > > move &phone_nbr to $phone_nbr > > > move &client_nbr to $client_nbr > > > move &branch_nbr to $branch_nbr > > > move &fed_id to $fed_id > > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 do > > > get_full_phone_match end-if > > > > > > end-select > > > end-procedure > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _________________________________________________________________ > > Hotmail: Trusted email with powerful SPAM protection. > > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Nov 18 13:22:34 2009 Subject: RE: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Date: Wed, 18 Nov 2009 13:19:03 -0500 From: "Simon, Jason (MBS)" Nice and clean, that just made it into my snippet document thanks Barry! -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Wednesday, November 18, 2009 1:12 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Yup, I was thinking about this before. This would definitely be effective. Thanks for the sample implementation to give me some idea. -Rajesh. On Wed, Nov 18, 2009 at 12:56 PM, Barry E. Cohen wrote: > I'd likely just run 'translate'... > > Let $phone_nbr =3D translate($phone_nbr, '()-/ ', '') > > That would eliminate any of the special characters your likely to encounter > in a phone number in one shot rather than having to repeat the process with > 'replace'. > > > Next you could evaluate for length, to postulate on how much of the number > you have. > > Let #phone_len =3D length($phone_nbr) > evaluate #phone_len > when =3D 11 > parse accordingly > break > when =3D 10 > parse accordingly > break > when =3D 7 > parse accordingly > break > End-evaluate > > Ask 10 different programmers how to handle a situation, and you'll likely > end up with 10 different answers... > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =3Dunivision.net@ > sqrug.org] On Behalf Of Simon, Jason (MBS) > Sent: Wednesday, November 18, 2009 12:23 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] SQR members- suggestion needed for a code change > - Rajesh > > There are probably many different ways to do this. But if I had to format > a phone number right now I would convert them to a string remove any > characters by looping the string multiple times through the replace function > each time removing a non number item. Then I would use the edit to format > the phone number to the format I wanted. > > Here is the help file for both of the functions I would use. > > > > REPLACE > Inspects the contents of source_value and replaces all occurrences of > from_string with to_string and returns the modified string. > > Syntax: dst_var =3D replace(source_value, from_string, to_string) > > source_value =3D date or text literal, column, variable, or expression > > from_string =3D text literal, column, variable, or expression > > to_string =3D text literal, column, variable, or expression > > dst_var =3D text variable > > Example: let $replaced =3D replace($paragraph, 'good', 'excellent') > > > > EDIT > > Formats source_value according to edit_mask and returns a string containing > the result. > > Syntax: dst_var =3D edit(source_value, edit_mask) > > source_value =3D Any literal, column, variable, or expression > > edit_mask =3D text literal, column, variable, or expression > > dst_var =3D text variable > > Example: let $phone =3D edit(&phone, '(xxx) xxx-xxxxx') let $price =3D > edit(#price, '999.99') let $today =3D edit($date, 'DD/MM/YYYY') > > > > > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > [mailto:sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Wednesday, November 18, 2009 12:11 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > Hi, > > Thanks for your suggestions, I tried implementing them and observed that, > > to_number() works fine even if the input is without single quotes i.e not a > string. This is for inputs that are numbers and do not have any special > character or spaces between them. > > If there are special characters in between the numbers then a 0 is > displayed if it is within single quotes or else gives an error message. > > For eg- > Sample code- > > let $areacode =3D '3456' > let $alphaNumericAreaCode =3D 'A3456' > let $areacode1=3D 3456 // area code without single quotes i.e not a string, > just like the inputs in our program nssmatch.sqr !let > $alphaNumericAreaCode1 =3D A3456 //alpha numeric area code without single > quotes i.e not a string and got an error for this. So, I have commented it. > > let $conv =3D to_number($areacode) > let $conv1 =3D to_number($areacode1) > let $alphanum =3D to_number($alphaNumericAreaCode) !let $alphanum1 =3D > to_number($alphaNumericAreaCode1) > > display $conv > display $conv1 > display $alphanum > !display $alphanum1 > > end-procedure > > OUTPUT- > 3456.000000000000000 > 3456.000000000000000 > 0.000000000000000 > > And you were right about just using the &variable in my if statement. > > So, yeah I found out how it works but I was just wondering whether there is > any other way to do this without using to_number(). > > -Rajesh > On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > > > > The problem may stems from the fact that the phone number is not > usually a > > number column, but may contain a special character, such as a ., / or > - in > > it. You can add a debug statement that shows the values being > processed. > > Additionally, you can use the &variable column variable in your if > > statement, rather than changing it to a $character and then back to a > number > > with to_number(). > > > > > > > > Best bet, add a show of the variable before you get to the statement > that > > blows up and see what you get. > > > > > > > > Also, nvl only catches null values, it does not catch spaces, and if > you're > > using PeopleSoft, the database is full of records with single spaces. > You > > might want to check the database and determine the type of the columns > > you're dealing with. > > > > > > > > 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 > > > > "Does religion calm your fears of death?" "No, but death will calm my > fear > > of religions." > > > > > > NOTICE: The information contained in this message is protected under > > United States and international copyright laws and is intended for the > personal > > and > > confidential use of the addressee. If you are not the addressee or an > > agent of the addressee, you are hereby notified that you have received > > this message in error and that any review, dissemination, > > distribution, > taking > > of > > any action in reliance upon or copying of this message without the > express > > written permission of the sender or his agent is strictly prohibited > and in > > violation of referenced statutes. If you have received this message > in > > error, please notify me (the sender) immediately and you are > instructed to > > delete this message from any computer it resides on, including mail > > servers. > > > > SIGNATURE : > > Do not meddle in the affairs of dragons, for you are crunchy and taste > good > > with ketchup. > > You've got to be a Spirit; don't need no Ghosts. > > Do or Do Not; There is NO Try. > > Any clod can have facts, but having an opinion is an art ! > > A conclusion is simply the place where someone got tired of thinking. > > When a continuing state of defiance and disorder can not be checked by > the > > rules, then new and sometimes drastic rules must be forged to maintain > > order; the alternative is anarchy. > > M. Clark Willis III - Sr Systems Analyst, Sr Consultant > ceprn@hotmail.com > > aolim:ceprn ICQ 6633136 > > > > Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited > > commercial e-mail to me at any site are > liable > > for a $500 per message cost under USC 47, which may be found at > > http://www.law.cornell.edu/uscode/47 > > > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. Clark > > Willis III / Dragon Enterprises inc. All rights reserved. > > > > > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > > From: epsilon11@gmail.com > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] SQR members- suggestion needed for a code > change - > > Rajesh > > > > > > Hi guys, > > > > > > In the below code, if I use to_number() on the area_code and > > phone_number, > > > the process that uses this piece of code ends in an error. > > > > > > To prevent this error due to the use of to_number(), I changed the > if > > > condition to check $area_code !=3D 0 and $phone_nbr !=3D 0 instead of > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed > the > > if > > > condition in the last section of the code to- > > > > > > if $area_code !=3D 0 and $phone_nbr !=3D 0 do get_full_phone_match > > > end-if This solves the issue, but is there any better way of doing > > > this? > Any > > > suggestions would be greatly appreciated. > > > > > > Thanks, > > > Rajesh. > > > > > > Code- > > > _____ > > > > > > begin-procedure get_temp_clients > > > begin-select > > > tci_crs_id &crs_id > > > tci_client_name_mod &client_name > > > nvl(cpn_area_code,0) &area_code > > > nvl(cpn_phone_nbr,0) &phone_nbr > > > tci_pr_client_nbr &client_nbr > > > tci_client_branch_nbr &branch_nbr > > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > > > > move &crs_id to #crs_id > > > move &client_name to $client_name > > > move &area_code to $area_code > > > move &phone_nbr to $phone_nbr > > > move &client_nbr to $client_nbr > > > move &branch_nbr to $branch_nbr > > > move &fed_id to $fed_id > > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 do > > > get_full_phone_match end-if > > > > > > end-select > > > end-procedure > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _________________________________________________________________ > > Hotmail: Trusted email with powerful SPAM protection. > > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Nov 18 16:12:09 2009 Date: Wed, 18 Nov 2009 16:09:21 -0500 Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh From: Don Mellen You can also genericize the translate to do any string of numbers that might also contain text, such as... begin-procedure just_numbers(:$txt) let $remove_chars = translate($txt, '0123456789', '') let $txt = translate($txt, $remove_chars, '') end-procedure On Wed, Nov 18, 2009 at 12:56 PM, Barry E. Cohen wrote: > I'd likely just run 'translate'... > > Let $phone_nbr = translate($phone_nbr, '()-/ ', '') > > That would eliminate any of the special characters your likely to encounter > in a phone number in one shot rather than having to repeat the process with > 'replace'. > > > Next you could evaluate for length, to postulate on how much of the number > you have. > > Let #phone_len = length($phone_nbr) > evaluate #phone_len > when = 11 > parse accordingly > break > when = 10 > parse accordingly > break > when = 7 > parse accordingly > break > End-evaluate > > Ask 10 different programmers how to handle a situation, and you'll likely > end up with 10 different answers... > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > > -----Original Message----- > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =univision.net@ > sqrug.org] On Behalf Of Simon, Jason (MBS) > Sent: Wednesday, November 18, 2009 12:23 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: RE: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > There are probably many different ways to do this. But if I had to format > a phone number right now I would convert them to a string remove any > characters by looping the string multiple times through the replace function > each time removing a non number item. Then I would use the edit to format > the phone number to the format I wanted. > > Here is the help file for both of the functions I would use. > > > > REPLACE > Inspects the contents of source_value and replaces all occurrences of > from_string with to_string and returns the modified string. > > Syntax: dst_var = replace(source_value, from_string, to_string) > > source_value = date or text literal, column, variable, or expression > > from_string = text literal, column, variable, or expression > > to_string = text literal, column, variable, or expression > > dst_var = text variable > > Example: let $replaced = replace($paragraph, 'good', 'excellent') > > > > EDIT > > Formats source_value according to edit_mask and returns a string containing > the result. > > Syntax: dst_var = edit(source_value, edit_mask) > > source_value = Any literal, column, variable, or expression > > edit_mask = text literal, column, variable, or expression > > dst_var = text variable > > Example: let $phone = edit(&phone, '(xxx) xxx-xxxxx') let $price = > edit(#price, '999.99') let $today = edit($date, 'DD/MM/YYYY') > > > > > > -----Original Message----- > From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org > [mailto:sqr-users-bounces+jason.simon = > mortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Wednesday, November 18, 2009 12:11 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > Hi, > > Thanks for your suggestions, I tried implementing them and observed that, > > to_number() works fine even if the input is without single quotes i.e not a > string. This is for inputs that are numbers and do not have any special > character or spaces between them. > > If there are special characters in between the numbers then a 0 is > displayed if it is within single quotes or else gives an error message. > > For eg- > Sample code- > > let $areacode = '3456' > let $alphaNumericAreaCode = 'A3456' > let $areacode1= 3456 // area code without single quotes i.e not a string, > just like the inputs in our program nssmatch.sqr !let > $alphaNumericAreaCode1 = A3456 //alpha numeric area code without single > quotes i.e not a string and got an error for this. So, I have commented it. > > let $conv = to_number($areacode) > let $conv1 = to_number($areacode1) > let $alphanum = to_number($alphaNumericAreaCode) !let $alphanum1 = > to_number($alphaNumericAreaCode1) > > display $conv > display $conv1 > display $alphanum > !display $alphanum1 > > end-procedure > > OUTPUT- > 3456.000000000000000 > 3456.000000000000000 > 0.000000000000000 > > And you were right about just using the &variable in my if statement. > > So, yeah I found out how it works but I was just wondering whether there is > any other way to do this without using to_number(). > > -Rajesh > On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > > > > The problem may stems from the fact that the phone number is not > usually a > > number column, but may contain a special character, such as a ., / or > - in > > it. You can add a debug statement that shows the values being > processed. > > Additionally, you can use the &variable column variable in your if > > statement, rather than changing it to a $character and then back to a > number > > with to_number(). > > > > > > > > Best bet, add a show of the variable before you get to the statement > that > > blows up and see what you get. > > > > > > > > Also, nvl only catches null values, it does not catch spaces, and if > you're > > using PeopleSoft, the database is full of records with single spaces. > You > > might want to check the database and determine the type of the columns > > you're dealing with. > > > > > > > > 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 > > > > "Does religion calm your fears of death?" "No, but death will calm my > fear > > of religions." > > > > > > NOTICE: The information contained in this message is protected under > > United States and international copyright laws and is intended for the > personal > > and > > confidential use of the addressee. If you are not the addressee or an > > agent of the addressee, you are hereby notified that you have received > > this message in error and that any review, dissemination, > > distribution, > taking > > of > > any action in reliance upon or copying of this message without the > express > > written permission of the sender or his agent is strictly prohibited > and in > > violation of referenced statutes. If you have received this message > in > > error, please notify me (the sender) immediately and you are > instructed to > > delete this message from any computer it resides on, including mail > > servers. > > > > SIGNATURE : > > Do not meddle in the affairs of dragons, for you are crunchy and taste > good > > with ketchup. > > You've got to be a Spirit; don't need no Ghosts. > > Do or Do Not; There is NO Try. > > Any clod can have facts, but having an opinion is an art ! > > A conclusion is simply the place where someone got tired of thinking. > > When a continuing state of defiance and disorder can not be checked by > the > > rules, then new and sometimes drastic rules must be forged to maintain > > order; the alternative is anarchy. > > M. Clark Willis III - Sr Systems Analyst, Sr Consultant > ceprn@hotmail.com > > aolim:ceprn ICQ 6633136 > > > > Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited > > commercial e-mail to me at any site are > liable > > for a $500 per message cost under USC 47, which may be found at > > http://www.law.cornell.edu/uscode/47 > > > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. Clark > > Willis III / Dragon Enterprises inc. All rights reserved. > > > > > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > > From: epsilon11@gmail.com > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] SQR members- suggestion needed for a code > change - > > Rajesh > > > > > > Hi guys, > > > > > > In the below code, if I use to_number() on the area_code and > > phone_number, > > > the process that uses this piece of code ends in an error. > > > > > > To prevent this error due to the use of to_number(), I changed the > if > > > condition to check $area_code != 0 and $phone_nbr != 0 instead of > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed > the > > if > > > condition in the last section of the code to- > > > > > > if $area_code != 0 and $phone_nbr != 0 do get_full_phone_match > > > end-if This solves the issue, but is there any better way of doing > > > this? > Any > > > suggestions would be greatly appreciated. > > > > > > Thanks, > > > Rajesh. > > > > > > Code- > > > _____ > > > > > > begin-procedure get_temp_clients > > > begin-select > > > tci_crs_id &crs_id > > > tci_client_name_mod &client_name > > > nvl(cpn_area_code,0) &area_code > > > nvl(cpn_phone_nbr,0) &phone_nbr > > > tci_pr_client_nbr &client_nbr > > > tci_client_branch_nbr &branch_nbr > > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > > > > move &crs_id to #crs_id > > > move &client_name to $client_name > > > move &area_code to $area_code > > > move &phone_nbr to $phone_nbr > > > move &client_nbr to $client_nbr > > > move &branch_nbr to $branch_nbr > > > move &fed_id to $fed_id > > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 do > > > get_full_phone_match end-if > > > > > > end-select > > > end-procedure > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _________________________________________________________________ > > Hotmail: Trusted email with powerful SPAM protection. > > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 19 09:23:02 2009 Date: Thu, 19 Nov 2009 09:18:43 -0500 Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh From: Rajesh Subramaniam Hi guys, Thanks for your input on this. I got so many ideas and at last implemented Barry's idea of using the translation function. I added this to the code along with other changes I did and ran the file which takes 5 hours to finish execution. The run was successful. Thanks again!!! Code Snippet of the change I did using tranlsation()- begin-procedure get_temp_clients begin-select tci_crs_id &crs_id tci_client_name_mod &client_name nvl(cpn_area_code,0) &area_code nvl(cpn_phone_nbr,0) &phone_nbr tci_pr_client_nbr &client_nbr tci_client_branch_nbr &branch_nbr nvl(tci_fed_id,'NO FED') &fed_id move &crs_id to #crs_id move &client_name to $client_name move &area_code to $area_code move &phone_nbr to $phone_nbr move &client_nbr to $client_nbr move &branch_nbr to $branch_nbr move &fed_id to $fed_id let $new_area_code = translate($area_code, '()-/.#~*_ ', '') let $new_phone_nbr = translate($phone_nbr, '()-/.#~*_ ', '') if length($new_area_code) > 0 and length($new_phone_nbr) > 0 do get_full_phone_match end-if if length($new_phone_nbr) > 0 do get_phone_nbr_match end-if end-select end-procedure -Rajesh. On Wed, Nov 18, 2009 at 4:09 PM, Don Mellen wrote: > You can also genericize the translate to do any string of numbers that > might > also contain text, such as... > > begin-procedure just_numbers(:$txt) > let $remove_chars = translate($txt, '0123456789', '') > let $txt = translate($txt, $remove_chars, '') > end-procedure > > > On Wed, Nov 18, 2009 at 12:56 PM, Barry E. Cohen >wrote: > > > I'd likely just run 'translate'... > > > > Let $phone_nbr = translate($phone_nbr, '()-/ ', '') > > > > That would eliminate any of the special characters your likely to > encounter > > in a phone number in one shot rather than having to repeat the process > with > > 'replace'. > > > > > > Next you could evaluate for length, to postulate on how much of the > number > > you have. > > > > Let #phone_len = length($phone_nbr) > > evaluate #phone_len > > when = 11 > > parse accordingly > > break > > when = 10 > > parse accordingly > > break > > when = 7 > > parse accordingly > > break > > End-evaluate > > > > Ask 10 different programmers how to handle a situation, and you'll likely > > end up with 10 different answers... > > > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > > > > Office: 201-287-4287 > > > > Please consider the environment before printing this email > > > > -----Original Message----- > > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > > sqr-users-bounces+bcohen =univision.net@ > > sqrug.org] On Behalf Of Simon, Jason (MBS) > > Sent: Wednesday, November 18, 2009 12:23 PM > > To: This list is for discussion about the SQR database reportinglanguage > > from Hyperion Solutions. > > Subject: RE: [sqr-users] SQR members- suggestion needed for a code change > - > > Rajesh > > > > There are probably many different ways to do this. But if I had to > format > > a phone number right now I would convert them to a string remove any > > characters by looping the string multiple times through the replace > function > > each time removing a non number item. Then I would use the edit to format > > the phone number to the format I wanted. > > > > Here is the help file for both of the functions I would use. > > > > > > > > REPLACE > > Inspects the contents of source_value and replaces all occurrences of > > from_string with to_string and returns the modified string. > > > > Syntax: dst_var = replace(source_value, from_string, to_string) > > > > source_value = date or text literal, column, variable, or expression > > > > from_string = text literal, column, variable, or expression > > > > to_string = text literal, column, variable, or expression > > > > dst_var = text variable > > > > Example: let $replaced = replace($paragraph, 'good', 'excellent') > > > > > > > > EDIT > > > > Formats source_value according to edit_mask and returns a string > containing > > the result. > > > > Syntax: dst_var = edit(source_value, edit_mask) > > > > source_value = Any literal, column, variable, or expression > > > > edit_mask = text literal, column, variable, or expression > > > > dst_var = text variable > > > > Example: let $phone = edit(&phone, '(xxx) xxx-xxxxx') let $price = > > edit(#price, '999.99') let $today = edit($date, 'DD/MM/YYYY') > > > > > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org > > [mailto:sqr-users-bounces+jason.simon = > > mortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > Sent: Wednesday, November 18, 2009 12:11 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: Re: [sqr-users] SQR members- suggestion needed for a code change > - > > Rajesh > > > > Hi, > > > > Thanks for your suggestions, I tried implementing them and observed that, > > > > to_number() works fine even if the input is without single quotes i.e not > a > > string. This is for inputs that are numbers and do not have any special > > character or spaces between them. > > > > If there are special characters in between the numbers then a 0 is > > displayed if it is within single quotes or else gives an error message. > > > > For eg- > > Sample code- > > > > let $areacode = '3456' > > let $alphaNumericAreaCode = 'A3456' > > let $areacode1= 3456 // area code without single quotes i.e not a > string, > > just like the inputs in our program nssmatch.sqr !let > > $alphaNumericAreaCode1 = A3456 //alpha numeric area code without single > > quotes i.e not a string and got an error for this. So, I have commented > it. > > > > let $conv = to_number($areacode) > > let $conv1 = to_number($areacode1) > > let $alphanum = to_number($alphaNumericAreaCode) !let $alphanum1 = > > to_number($alphaNumericAreaCode1) > > > > display $conv > > display $conv1 > > display $alphanum > > !display $alphanum1 > > > > end-procedure > > > > OUTPUT- > > 3456.000000000000000 > > 3456.000000000000000 > > 0.000000000000000 > > > > And you were right about just using the &variable in my if statement. > > > > So, yeah I found out how it works but I was just wondering whether there > is > > any other way to do this without using to_number(). > > > > -Rajesh > > On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > > > > > > > The problem may stems from the fact that the phone number is not > > usually a > > > number column, but may contain a special character, such as a ., / or > > - in > > > it. You can add a debug statement that shows the values being > > processed. > > > Additionally, you can use the &variable column variable in your if > > > statement, rather than changing it to a $character and then back to a > > number > > > with to_number(). > > > > > > > > > > > > Best bet, add a show of the variable before you get to the statement > > that > > > blows up and see what you get. > > > > > > > > > > > > Also, nvl only catches null values, it does not catch spaces, and if > > you're > > > using PeopleSoft, the database is full of records with single spaces. > > You > > > might want to check the database and determine the type of the columns > > > you're dealing with. > > > > > > > > > > > > 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 > > > > > > "Does religion calm your fears of death?" "No, but death will calm my > > fear > > > of religions." > > > > > > > > > NOTICE: The information contained in this message is protected under > > > United States and international copyright laws and is intended for the > > personal > > > and > > > confidential use of the addressee. If you are not the addressee or an > > > agent of the addressee, you are hereby notified that you have received > > > this message in error and that any review, dissemination, > > > distribution, > > taking > > > of > > > any action in reliance upon or copying of this message without the > > express > > > written permission of the sender or his agent is strictly prohibited > > and in > > > violation of referenced statutes. If you have received this message > > in > > > error, please notify me (the sender) immediately and you are > > instructed to > > > delete this message from any computer it resides on, including mail > > > servers. > > > > > > SIGNATURE : > > > Do not meddle in the affairs of dragons, for you are crunchy and taste > > good > > > with ketchup. > > > You've got to be a Spirit; don't need no Ghosts. > > > Do or Do Not; There is NO Try. > > > Any clod can have facts, but having an opinion is an art ! > > > A conclusion is simply the place where someone got tired of thinking. > > > When a continuing state of defiance and disorder can not be checked by > > the > > > rules, then new and sometimes drastic rules must be forged to maintain > > > order; the alternative is anarchy. > > > M. Clark Willis III - Sr Systems Analyst, Sr Consultant > > ceprn@hotmail.com > > > aolim:ceprn ICQ 6633136 > > > > > > Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited > > > commercial e-mail to me at any site are > > liable > > > for a $500 per message cost under USC 47, which may be found at > > > http://www.law.cornell.edu/uscode/47 > > > > > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. Clark > > > Willis III / Dragon Enterprises inc. All rights reserved. > > > > > > > > > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > > > From: epsilon11@gmail.com > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] SQR members- suggestion needed for a code > > change - > > > Rajesh > > > > > > > > Hi guys, > > > > > > > > In the below code, if I use to_number() on the area_code and > > > phone_number, > > > > the process that uses this piece of code ends in an error. > > > > > > > > To prevent this error due to the use of to_number(), I changed the > > if > > > > condition to check $area_code != 0 and $phone_nbr != 0 instead of > > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e changed > > the > > > if > > > > condition in the last section of the code to- > > > > > > > > if $area_code != 0 and $phone_nbr != 0 do get_full_phone_match > > > > end-if This solves the issue, but is there any better way of doing > > > > this? > > Any > > > > suggestions would be greatly appreciated. > > > > > > > > Thanks, > > > > Rajesh. > > > > > > > > Code- > > > > _____ > > > > > > > > begin-procedure get_temp_clients > > > > begin-select > > > > tci_crs_id &crs_id > > > > tci_client_name_mod &client_name > > > > nvl(cpn_area_code,0) &area_code > > > > nvl(cpn_phone_nbr,0) &phone_nbr > > > > tci_pr_client_nbr &client_nbr > > > > tci_client_branch_nbr &branch_nbr > > > > nvl(tci_fed_id,'NO FED') &fed_id > > > > > > > > > > > > move &crs_id to #crs_id > > > > move &client_name to $client_name > > > > move &area_code to $area_code > > > > move &phone_nbr to $phone_nbr > > > > move &client_nbr to $client_nbr > > > > move &branch_nbr to $branch_nbr > > > > move &fed_id to $fed_id > > > > if to_number($area_code) > 0 and to_number($phone_nbr) > 0 do > > > > get_full_phone_match end-if > > > > > > > > end-select > > > > end-procedure > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _________________________________________________________________ > > > Hotmail: Trusted email with powerful SPAM protection. > > > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > The information contained in this e-mail and any attached > > documents may be privileged, confidential and protected from > > disclosure. If you are not the intended recipient you may not > > read, copy, distribute or use this information. If you have > > received this communication in error, please notify the sender > > immediately by replying to this message and then delete it > > from your system > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Nov 19 10:09:36 2009 From: "Barry E. Cohen" Date: Thu, 19 Nov 2009 10:06:27 -0500 Subject: RE: [sqr-users] SQR members- suggestion needed for a code change - Rajesh Glad to have been a help Rajesh, As an FYI, there is no need to give an alias in the select statement, to yo= ur selected values, if your not doing any processing in the select. Or even= move those values to a variable. They can be referenced through-out the pr= ogram as they were selected, unless of course you're going to be using them= in various sqc procedures, then moving to variables can make things easier= . Also because you did an nvl() in your select statement with the area_code= , and phone_nbr, you will get a value there '0' even if none was stored in = the DB, so EVERY phone number will have a look-up done, even if none was st= ored in the DB. I also really liked Don's translate, as it really takes car= e of everything not numeric, that may be stored within the phone_nbr field.= I would have written it like the below begin-procedure get_temp_clients begin-select tci_crs_id tci_client_name_mod cpn_area_code cpn_phone_nbr tci_pr_client_nbr tci_client_branch_nbr nvl(tci_fed_id,'NO FED') &fed_id let $remove_chars =3D translate(&cpn_area_code, '0123456789', '') let $new_area_code =3D translate(&cpn_area_code, $remove_chars, '') let $remove_chars =3D translate(&cpn_phone_nbr, '0123456789', '') let $new_phone_nbr =3D translate(&cpn_phone_nbr, $remove_chars, '') if length($new_area_code) > 0 and length($new_phone_nbr) > 0 do get_full_phone_match end-if if length($new_phone_nbr) > 0 do get_phone_nbr_match end-if end-select end-procedure _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems Office: 201-287-4287 Please consider the environment before printing this email -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Thursday, November 19, 2009 9:19 AM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] SQR members- suggestion needed for a code change -= Rajesh Hi guys, Thanks for your input on this. I got so many ideas and at last implemented = Barry's idea of using the translation function. I added this to the code along with other changes I did and ran the file wh= ich takes 5 hours to finish execution. The run was successful. Thanks again!!! Code Snippet of the change I did using tranlsation()- begin-procedure get_temp_clients begin-select tci_crs_id &crs_id tci_client_name_mod &client_name nvl(cpn_area_code,0) &area_code nvl(cpn_phone_nbr,0) &phone_nbr tci_pr_client_nbr &client_nbr tci_client_branch_nbr &branch_nbr nvl(tci_fed_id,'NO FED') &fed_id move &crs_id to #crs_id move &client_name to $client_name move &area_code to $area_code move &phone_nbr to $phone_nbr move &client_nbr to $client_nbr move &branch_nbr to $branch_nbr move &fed_id to $fed_id let $new_area_code =3D translate($area_code, '()-/.#~*_ ', '') let $new_phone_nbr =3D translate($phone_nbr, '()-/.#~*_ ', '') if length($new_area_code) > 0 and length($new_phone_nbr) > 0 do get_full_phone_match end-if if length($new_phone_nbr) > 0 do get_phone_nbr_match end-if end-select end-procedure -Rajesh. On Wed, Nov 18, 2009 at 4:09 PM, Don Mellen wrote: > You can also genericize the translate to do any string of numbers that > might also contain text, such as... > > begin-procedure just_numbers(:$txt) > let $remove_chars =3D translate($txt, '0123456789', '') let $txt =3D > translate($txt, $remove_chars, '') end-procedure > > > On Wed, Nov 18, 2009 at 12:56 PM, Barry E. Cohen >wrote: > > > I'd likely just run 'translate'... > > > > Let $phone_nbr =3D translate($phone_nbr, '()-/ ', '') > > > > That would eliminate any of the special characters your likely to > encounter > > in a phone number in one shot rather than having to repeat the > > process > with > > 'replace'. > > > > > > Next you could evaluate for length, to postulate on how much of the > number > > you have. > > > > Let #phone_len =3D length($phone_nbr) > > evaluate #phone_len > > when =3D 11 > > parse accordingly > > break > > when =3D 10 > > parse accordingly > > break > > when =3D 7 > > parse accordingly > > break > > End-evaluate > > > > Ask 10 different programmers how to handle a situation, and you'll > > likely end up with 10 different answers... > > > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > > > > Office: 201-287-4287 > > > > Please consider the environment before printing this email > > > > -----Original Message----- > > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto: > > sqr-users-bounces+bcohen =3Dunivision.net@ > > sqrug.org] On Behalf Of Simon, Jason (MBS) > > Sent: Wednesday, November 18, 2009 12:23 PM > > To: This list is for discussion about the SQR database > > reportinglanguage from Hyperion Solutions. > > Subject: RE: [sqr-users] SQR members- suggestion needed for a code > > change > - > > Rajesh > > > > There are probably many different ways to do this. But if I had to > format > > a phone number right now I would convert them to a string remove any > > characters by looping the string multiple times through the replace > function > > each time removing a non number item. Then I would use the edit to > > format the phone number to the format I wanted. > > > > Here is the help file for both of the functions I would use. > > > > > > > > REPLACE > > Inspects the contents of source_value and replaces all occurrences > > of from_string with to_string and returns the modified string. > > > > Syntax: dst_var =3D replace(source_value, from_string, to_string) > > > > source_value =3D date or text literal, column, variable, or expression > > > > from_string =3D text literal, column, variable, or expression > > > > to_string =3D text literal, column, variable, or expression > > > > dst_var =3D text variable > > > > Example: let $replaced =3D replace($paragraph, 'good', 'excellent') > > > > > > > > EDIT > > > > Formats source_value according to edit_mask and returns a string > containing > > the result. > > > > Syntax: dst_var =3D edit(source_value, edit_mask) > > > > source_value =3D Any literal, column, variable, or expression > > > > edit_mask =3D text literal, column, variable, or expression > > > > dst_var =3D text variable > > > > Example: let $phone =3D edit(&phone, '(xxx) xxx-xxxxx') let $price =3D > > edit(#price, '999.99') let $today =3D edit($date, 'DD/MM/YYYY') > > > > > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > > [mailto:sqr-users-bounces+jason.simon > > =3D > > mortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > Sent: Wednesday, November 18, 2009 12:11 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: Re: [sqr-users] SQR members- suggestion needed for a code > > change > - > > Rajesh > > > > Hi, > > > > Thanks for your suggestions, I tried implementing them and observed > > that, > > > > to_number() works fine even if the input is without single quotes > > i.e not > a > > string. This is for inputs that are numbers and do not have any > > special character or spaces between them. > > > > If there are special characters in between the numbers then a 0 is > > displayed if it is within single quotes or else gives an error message. > > > > For eg- > > Sample code- > > > > let $areacode =3D '3456' > > let $alphaNumericAreaCode =3D 'A3456' > > let $areacode1=3D 3456 // area code without single quotes i.e not a > string, > > just like the inputs in our program nssmatch.sqr !let > > $alphaNumericAreaCode1 =3D A3456 //alpha numeric area code without > > single quotes i.e not a string and got an error for this. So, I have > > commented > it. > > > > let $conv =3D to_number($areacode) > > let $conv1 =3D to_number($areacode1) > > let $alphanum =3D to_number($alphaNumericAreaCode) !let $alphanum1 = =3D > > to_number($alphaNumericAreaCode1) > > > > display $conv > > display $conv1 > > display $alphanum > > !display $alphanum1 > > > > end-procedure > > > > OUTPUT- > > 3456.000000000000000 > > 3456.000000000000000 > > 0.000000000000000 > > > > And you were right about just using the &variable in my if statement. > > > > So, yeah I found out how it works but I was just wondering whether > > there > is > > any other way to do this without using to_number(). > > > > -Rajesh > > On Wed, Nov 18, 2009 at 10:20 AM, the dragon wrote: > > > > > > > > The problem may stems from the fact that the phone number is not > > usually a > > > number column, but may contain a special character, such as a ., / > > > or > > - in > > > it. You can add a debug statement that shows the values being > > processed. > > > Additionally, you can use the &variable column variable in your > > > if statement, rather than changing it to a $character and then > > > back to a > > number > > > with to_number(). > > > > > > > > > > > > Best bet, add a show of the variable before you get to the > > > statement > > that > > > blows up and see what you get. > > > > > > > > > > > > Also, nvl only catches null values, it does not catch spaces, and > > > if > > you're > > > using PeopleSoft, the database is full of records with single spaces. > > You > > > might want to check the database and determine the type of the > > > columns you're dealing with. > > > > > > > > > > > > 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 > > > > > > "Does religion calm your fears of death?" "No, but death will calm > > > my > > fear > > > of religions." > > > > > > > > > NOTICE: The information contained in this message is protected > > > under United States and international copyright laws and is > > > intended for the > > personal > > > and > > > confidential use of the addressee. If you are not the addressee > > > or an agent of the addressee, you are hereby notified that you > > > have received this message in error and that any review, > > > dissemination, distribution, > > taking > > > of > > > any action in reliance upon or copying of this message without the > > express > > > written permission of the sender or his agent is strictly > > > prohibited > > and in > > > violation of referenced statutes. If you have received this > > > message > > in > > > error, please notify me (the sender) immediately and you are > > instructed to > > > delete this message from any computer it resides on, including > > > mail servers. > > > > > > SIGNATURE : > > > Do not meddle in the affairs of dragons, for you are crunchy and > > > taste > > good > > > with ketchup. > > > You've got to be a Spirit; don't need no Ghosts. > > > Do or Do Not; There is NO Try. > > > Any clod can have facts, but having an opinion is an art ! > > > A conclusion is simply the place where someone got tired of thinking. > > > When a continuing state of defiance and disorder can not be > > > checked by > > the > > > rules, then new and sometimes drastic rules must be forged to > > > maintain order; the alternative is anarchy. > > > M. Clark Willis III - Sr Systems Analyst, Sr Consultant > > ceprn@hotmail.com > > > aolim:ceprn ICQ 6633136 > > > > > > Help stamp out SPAM!! http://www.cauce.org The senders of > > > unsolicited commercial e-mail to me at any site are > > liable > > > for a $500 per message cost under USC 47, which may be found at > > > http://www.law.cornell.edu/uscode/47 > > > > > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. > > > Clark Willis III / Dragon Enterprises inc. All rights reserved. > > > > > > > > > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > > > From: epsilon11@gmail.com > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] SQR members- suggestion needed for a code > > change - > > > Rajesh > > > > > > > > Hi guys, > > > > > > > > In the below code, if I use to_number() on the area_code and > > > phone_number, > > > > the process that uses this piece of code ends in an error. > > > > > > > > To prevent this error due to the use of to_number(), I changed > > > > the > > if > > > > condition to check $area_code !=3D 0 and $phone_nbr !=3D 0 instead > > > > of > > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e > > > > changed > > the > > > if > > > > condition in the last section of the code to- > > > > > > > > if $area_code !=3D 0 and $phone_nbr !=3D 0 do get_full_phone_match > > > > end-if This solves the issue, but is there any better way of > > > > doing this? > > Any > > > > suggestions would be greatly appreciated. > > > > > > > > Thanks, > > > > Rajesh. > > > > > > > > Code- > > > > _____ > > > > > > > > begin-procedure get_temp_clients begin-select tci_crs_id &crs_id > > > > tci_client_name_mod &client_name > > > > nvl(cpn_area_code,0) &area_code > > > > nvl(cpn_phone_nbr,0) &phone_nbr > > > > tci_pr_client_nbr &client_nbr > > > > tci_client_branch_nbr &branch_nbr nvl(tci_fed_id,'NO FED') > > > > &fed_id > > > > > > > > > > > > move &crs_id to #crs_id > > > > move &client_name to $client_name move &area_code to $area_code > > > > move &phone_nbr to $phone_nbr move &client_nbr to $client_nbr > > > > move &branch_nbr to $branch_nbr move &fed_id to $fed_id if > > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 do > > > > get_full_phone_match end-if > > > > > > > > end-select > > > > end-procedure > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _________________________________________________________________ > > > Hotmail: Trusted email with powerful SPAM protection. > > > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > The information contained in this e-mail and any attached documents > > may be privileged, confidential and protected from disclosure. If > > you are not the intended recipient you may not read, copy, > > distribute or use this information. If you have received this > > communication in error, please notify the sender immediately by > > replying to this message and then delete it from your system > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it 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 Thu Nov 19 10:34:30 2009 Date: Thu, 19 Nov 2009 10:31:26 -0500 Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - Rajesh From: Rajesh Subramaniam Yup, you had indicated to me earlier that there is no need for the conversions I am doing but this is a very large module and the variables are used elsewhere and in a different way. So, I should not touch any other thing than what is needed i.e to take care of the phone-numbers and area-code to make the process run properly. But, yeah you gave a great suggestion and will keep that in mind in future implementations. And Dan, I can use your code snippet for a lot of stuff that need to be done over here. Thanks, Rajesh. On Thu, Nov 19, 2009 at 10:06 AM, Barry E. Cohen wrote: > Glad to have been a help Rajesh, > > As an FYI, there is no need to give an alias in the select statement, to > your selected values, if your not doing any processing in the select. Or > even move those values to a variable. They can be referenced through-out the > program as they were selected, unless of course you're going to be using > them in various sqc procedures, then moving to variables can make things > easier. Also because you did an nvl() in your select statement with the > area_code, and phone_nbr, you will get a value there '0' even if none was > stored in the DB, so EVERY phone number will have a look-up done, even if > none was stored in the DB. I also really liked Don's translate, as it really > takes care of everything not numeric, that may be stored within the > phone_nbr field. I would have written it like the below > > begin-procedure get_temp_clients > begin-select > tci_crs_id > tci_client_name_mod > cpn_area_code > cpn_phone_nbr > tci_pr_client_nbr > tci_client_branch_nbr > nvl(tci_fed_id,'NO FED') &fed_id > > let $remove_chars = translate(&cpn_area_code, '0123456789', '') > let $new_area_code = translate(&cpn_area_code, $remove_chars, '') > > let $remove_chars = translate(&cpn_phone_nbr, '0123456789', '') > let $new_phone_nbr = translate(&cpn_phone_nbr, $remove_chars, '') > > if length($new_area_code) > 0 and length($new_phone_nbr) > 0 > do get_full_phone_match > end-if > if length($new_phone_nbr) > 0 > do get_phone_nbr_match > end-if > > end-select > end-procedure > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > > -----Original Message----- > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =univision.net@ > sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Thursday, November 19, 2009 9:19 AM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] SQR members- suggestion needed for a code change - > Rajesh > > Hi guys, > > Thanks for your input on this. I got so many ideas and at last implemented > Barry's idea of using the translation function. > > I added this to the code along with other changes I did and ran the file > which takes 5 hours to finish execution. The run was successful. > > Thanks again!!! > > Code Snippet of the change I did using tranlsation()- > > begin-procedure get_temp_clients > begin-select > tci_crs_id &crs_id > tci_client_name_mod &client_name > nvl(cpn_area_code,0) &area_code > nvl(cpn_phone_nbr,0) &phone_nbr > tci_pr_client_nbr &client_nbr > tci_client_branch_nbr &branch_nbr > nvl(tci_fed_id,'NO FED') &fed_id > > move &crs_id to #crs_id > move &client_name to $client_name > move &area_code to $area_code > move &phone_nbr to $phone_nbr > move &client_nbr to $client_nbr > move &branch_nbr to $branch_nbr > move &fed_id to $fed_id > > let $new_area_code = translate($area_code, '()-/.#~*_ ', '') > let $new_phone_nbr = translate($phone_nbr, '()-/.#~*_ ', '') > if length($new_area_code) > 0 and length($new_phone_nbr) > 0 > do get_full_phone_match > end-if > if length($new_phone_nbr) > 0 > do get_phone_nbr_match > end-if > > end-select > end-procedure > > -Rajesh. > > On Wed, Nov 18, 2009 at 4:09 PM, Don Mellen wrote: > > > You can also genericize the translate to do any string of numbers that > > might also contain text, such as... > > > > begin-procedure just_numbers(:$txt) > > let $remove_chars = translate($txt, '0123456789', '') let $txt = > > translate($txt, $remove_chars, '') end-procedure > > > > > > On Wed, Nov 18, 2009 at 12:56 PM, Barry E. Cohen > >wrote: > > > > > I'd likely just run 'translate'... > > > > > > Let $phone_nbr = translate($phone_nbr, '()-/ ', '') > > > > > > That would eliminate any of the special characters your likely to > > encounter > > > in a phone number in one shot rather than having to repeat the > > > process > > with > > > 'replace'. > > > > > > > > > Next you could evaluate for length, to postulate on how much of the > > number > > > you have. > > > > > > Let #phone_len = length($phone_nbr) > > > evaluate #phone_len > > > when = 11 > > > parse accordingly > > > break > > > when = 10 > > > parse accordingly > > > break > > > when = 7 > > > parse accordingly > > > break > > > End-evaluate > > > > > > Ask 10 different programmers how to handle a situation, and you'll > > > likely end up with 10 different answers... > > > > > > _____________________ > > > Barry E. Cohen > > > Senior Programmer Analyst > > > Univision HR and Financial Systems > > > > > > Office: 201-287-4287 > > > > > > Please consider the environment before printing this email > > > > > > -----Original Message----- > > > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > > > sqr-users-bounces+bcohen =univision.net@ > > > sqrug.org] On Behalf Of Simon, Jason (MBS) > > > Sent: Wednesday, November 18, 2009 12:23 PM > > > To: This list is for discussion about the SQR database > > > reportinglanguage from Hyperion Solutions. > > > Subject: RE: [sqr-users] SQR members- suggestion needed for a code > > > change > > - > > > Rajesh > > > > > > There are probably many different ways to do this. But if I had to > > format > > > a phone number right now I would convert them to a string remove any > > > characters by looping the string multiple times through the replace > > function > > > each time removing a non number item. Then I would use the edit to > > > format the phone number to the format I wanted. > > > > > > Here is the help file for both of the functions I would use. > > > > > > > > > > > > REPLACE > > > Inspects the contents of source_value and replaces all occurrences > > > of from_string with to_string and returns the modified string. > > > > > > Syntax: dst_var = replace(source_value, from_string, to_string) > > > > > > source_value = date or text literal, column, variable, or expression > > > > > > from_string = text literal, column, variable, or expression > > > > > > to_string = text literal, column, variable, or expression > > > > > > dst_var = text variable > > > > > > Example: let $replaced = replace($paragraph, 'good', 'excellent') > > > > > > > > > > > > EDIT > > > > > > Formats source_value according to edit_mask and returns a string > > containing > > > the result. > > > > > > Syntax: dst_var = edit(source_value, edit_mask) > > > > > > source_value = Any literal, column, variable, or expression > > > > > > edit_mask = text literal, column, variable, or expression > > > > > > dst_var = text variable > > > > > > Example: let $phone = edit(&phone, '(xxx) xxx-xxxxx') let $price = > > > edit(#price, '999.99') let $today = edit($date, 'DD/MM/YYYY') > > > > > > > > > > > > > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org > > > [mailto:sqr-users-bounces+jason.simon > > > = > > > mortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > > Sent: Wednesday, November 18, 2009 12:11 PM > > > To: This list is for discussion about the SQR database reporting > > > languagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] SQR members- suggestion needed for a code > > > change > > - > > > Rajesh > > > > > > Hi, > > > > > > Thanks for your suggestions, I tried implementing them and observed > > > that, > > > > > > to_number() works fine even if the input is without single quotes > > > i.e not > > a > > > string. This is for inputs that are numbers and do not have any > > > special character or spaces between them. > > > > > > If there are special characters in between the numbers then a 0 is > > > displayed if it is within single quotes or else gives an error message. > > > > > > For eg- > > > Sample code- > > > > > > let $areacode = '3456' > > > let $alphaNumericAreaCode = 'A3456' > > > let $areacode1= 3456 // area code without single quotes i.e not a > > string, > > > just like the inputs in our program nssmatch.sqr !let > > > $alphaNumericAreaCode1 = A3456 //alpha numeric area code without > > > single quotes i.e not a string and got an error for this. So, I have > > > commented > > it. > > > > > > let $conv = to_number($areacode) > > > let $conv1 = to_number($areacode1) > > > let $alphanum = to_number($alphaNumericAreaCode) !let $alphanum1 = > > > to_number($alphaNumericAreaCode1) > > > > > > display $conv > > > display $conv1 > > > display $alphanum > > > !display $alphanum1 > > > > > > end-procedure > > > > > > OUTPUT- > > > 3456.000000000000000 > > > 3456.000000000000000 > > > 0.000000000000000 > > > > > > And you were right about just using the &variable in my if statement. > > > > > > So, yeah I found out how it works but I was just wondering whether > > > there > > is > > > any other way to do this without using to_number(). > > > > > > -Rajesh > > > On Wed, Nov 18, 2009 at 10:20 AM, the dragon > wrote: > > > > > > > > > > > The problem may stems from the fact that the phone number is not > > > usually a > > > > number column, but may contain a special character, such as a ., / > > > > or > > > - in > > > > it. You can add a debug statement that shows the values being > > > processed. > > > > Additionally, you can use the &variable column variable in your > > > > if statement, rather than changing it to a $character and then > > > > back to a > > > number > > > > with to_number(). > > > > > > > > > > > > > > > > Best bet, add a show of the variable before you get to the > > > > statement > > > that > > > > blows up and see what you get. > > > > > > > > > > > > > > > > Also, nvl only catches null values, it does not catch spaces, and > > > > if > > > you're > > > > using PeopleSoft, the database is full of records with single spaces. > > > You > > > > might want to check the database and determine the type of the > > > > columns you're dealing with. > > > > > > > > > > > > > > > > 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 > > > > > > > > "Does religion calm your fears of death?" "No, but death will calm > > > > my > > > fear > > > > of religions." > > > > > > > > > > > > NOTICE: The information contained in this message is protected > > > > under United States and international copyright laws and is > > > > intended for the > > > personal > > > > and > > > > confidential use of the addressee. If you are not the addressee > > > > or an agent of the addressee, you are hereby notified that you > > > > have received this message in error and that any review, > > > > dissemination, distribution, > > > taking > > > > of > > > > any action in reliance upon or copying of this message without the > > > express > > > > written permission of the sender or his agent is strictly > > > > prohibited > > > and in > > > > violation of referenced statutes. If you have received this > > > > message > > > in > > > > error, please notify me (the sender) immediately and you are > > > instructed to > > > > delete this message from any computer it resides on, including > > > > mail servers. > > > > > > > > SIGNATURE : > > > > Do not meddle in the affairs of dragons, for you are crunchy and > > > > taste > > > good > > > > with ketchup. > > > > You've got to be a Spirit; don't need no Ghosts. > > > > Do or Do Not; There is NO Try. > > > > Any clod can have facts, but having an opinion is an art ! > > > > A conclusion is simply the place where someone got tired of thinking. > > > > When a continuing state of defiance and disorder can not be > > > > checked by > > > the > > > > rules, then new and sometimes drastic rules must be forged to > > > > maintain order; the alternative is anarchy. > > > > M. Clark Willis III - Sr Systems Analyst, Sr Consultant > > > ceprn@hotmail.com > > > > aolim:ceprn ICQ 6633136 > > > > > > > > Help stamp out SPAM!! http://www.cauce.org The senders of > > > > unsolicited commercial e-mail to me at any site are > > > liable > > > > for a $500 per message cost under USC 47, which may be found at > > > > http://www.law.cornell.edu/uscode/47 > > > > > > > > Contents of this message, in it's entirety, (c) 2000 - 2009 M. > > > > Clark Willis III / Dragon Enterprises inc. All rights reserved. > > > > > > > > > > > > > > > > > Date: Wed, 18 Nov 2009 10:03:28 -0500 > > > > > From: epsilon11@gmail.com > > > > > To: sqr-users@sqrug.org > > > > > Subject: [sqr-users] SQR members- suggestion needed for a code > > > change - > > > > Rajesh > > > > > > > > > > Hi guys, > > > > > > > > > > In the below code, if I use to_number() on the area_code and > > > > phone_number, > > > > > the process that uses this piece of code ends in an error. > > > > > > > > > > To prevent this error due to the use of to_number(), I changed > > > > > the > > > if > > > > > condition to check $area_code != 0 and $phone_nbr != 0 instead > > > > > of > > > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 i.e > > > > > changed > > > the > > > > if > > > > > condition in the last section of the code to- > > > > > > > > > > if $area_code != 0 and $phone_nbr != 0 do get_full_phone_match > > > > > end-if This solves the issue, but is there any better way of > > > > > doing this? > > > Any > > > > > suggestions would be greatly appreciated. > > > > > > > > > > Thanks, > > > > > Rajesh. > > > > > > > > > > Code- > > > > > _____ > > > > > > > > > > begin-procedure get_temp_clients begin-select tci_crs_id &crs_id > > > > > tci_client_name_mod &client_name > > > > > nvl(cpn_area_code,0) &area_code > > > > > nvl(cpn_phone_nbr,0) &phone_nbr > > > > > tci_pr_client_nbr &client_nbr > > > > > tci_client_branch_nbr &branch_nbr nvl(tci_fed_id,'NO FED') > > > > > &fed_id > > > > > > > > > > > > > > > move &crs_id to #crs_id > > > > > move &client_name to $client_name move &area_code to $area_code > > > > > move &phone_nbr to $phone_nbr move &client_nbr to $client_nbr > > > > > move &branch_nbr to $branch_nbr move &fed_id to $fed_id if > > > > > to_number($area_code) > 0 and to_number($phone_nbr) > 0 do > > > > > get_full_phone_match end-if > > > > > > > > > > end-select > > > > > end-procedure > > > > > > > > > > _______________________________________________ > > > > > sqr-users mailing list > > > > > sqr-users@sqrug.org > > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _________________________________________________________________ > > > > Hotmail: Trusted email with powerful SPAM protection. > > > > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > The information contained in this e-mail and any attached documents > > > may be privileged, confidential and protected from disclosure. If > > > you are not the intended recipient you may not read, copy, > > > distribute or use this information. If you have received this > > > communication in error, please notify the sender immediately by > > > replying to this message and then delete it from your system > > > > > > _______________________________________________ > > > 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" > > (Terry Pratchett) > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Dec 01 00:02:41 2009 Date: Tue, 1 Dec 2009 00:00:04 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.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 subscrip