From sqr-users-bounces@sqrug.org Fri Jul 01 00:00:44 2005 Date: Fri, 1 Jul 2005 00:00:03 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 00:41:52 2005 Date: Fri, 01 Jul 2005 15:10:46 +0930 From: Tim Peters Subject: Re: [sqr-users] print How about something like this (untested): begin-procedure print-unless-blank ($str) if not isblank($str) print $str (+1,1) end-if end-procedure ... print $address1 (0,1) do print-unless-blank($address2) do print-unless-blank($address3) ! etc... Regards, Tim radhika reddy wrote: > Hi, > > I have to print the in the following format: > > Address1 > Address2 > Address3 > phone > county - line by line > > I would do something like this: > > print address1 (0,1) > print address2 (+1,1) > print address3 (+1,1) > print phone (+1,1) > print county (+1,1) > > My problem is sometimes address2, addr3,phone,county might be empty then > there would be 4 lines of space which i don't want to have. > > I don't want to put If statement for each of these to see if they are > empty. Is there any better way to do this? > > Thanks. Any help is great. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 10:54:52 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] print Date: Fri, 1 Jul 2005 08:54:27 -0700 Now I feel dumb for not thinking of a subroutine. Thanks, Tim. -----Original Message----- From: Tim Peters [mailto:timothy.peters@adelaide.edu.au] Sent: Thursday, June 30, 2005 10:41 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] print How about something like this (untested): begin-procedure print-unless-blank ($str) if not isblank($str) print $str (+1,1) end-if end-procedure ... print $address1 (0,1) do print-unless-blank($address2) do print-unless-blank($address3) ! etc... Regards, Tim radhika reddy wrote: > Hi, > > I have to print the in the following format: > > Address1 > Address2 > Address3 > phone > county - line by line > > I would do something like this: > > print address1 (0,1) > print address2 (+1,1) > print address3 (+1,1) > print phone (+1,1) > print county (+1,1) > > My problem is sometimes address2, addr3,phone,county might be empty then > there would be 4 lines of space which i don't want to have. > > I don't want to put If statement for each of these to see if they are > empty. Is there any better way to do this? > > Thanks. Any help is great. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 11:00:50 2005 Subject: RE: [sqr-users] print Date: Fri, 1 Jul 2005 11:59:37 -0400 From: "Peter Burton" Tim, However using a routine is a lot slower than just putting the "if" around t= he print and it also makes assumptions about the print itself (location, at= tributes, etc.). Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]On Behalf Of Alexander, Steve Sent: Friday, July 01, 2005 11:54 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] print Now I feel dumb for not thinking of a subroutine. Thanks, Tim. -----Original Message----- From: Tim Peters [mailto:timothy.peters@adelaide.edu.au] Sent: Thursday, June 30, 2005 10:41 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] print How about something like this (untested): begin-procedure print-unless-blank ($str) if not isblank($str) print $str (+1,1) end-if end-procedure ... print $address1 (0,1) do print-unless-blank($address2) do print-unless-blank($address3) ! etc... Regards, Tim radhika reddy wrote: > Hi, >=20 > I have to print the in the following format: >=20 > Address1 > Address2 > Address3 > phone > county - line by line >=20 > I would do something like this: >=20 > print address1 (0,1) > print address2 (+1,1) > print address3 (+1,1) > print phone (+1,1) > print county (+1,1) >=20 > My problem is sometimes address2, addr3,phone,county might be empty then= =20 > there would be 4 lines of space which i don't want to have. >=20 > I don't want to put If statement for each of these to see if they are=20 > empty. Is there any better way to do this? >=20 > Thanks. Any help is great. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 11:13:02 2005 From: "radhika reddy" Subject: RE: [sqr-users] print Date: Fri, 01 Jul 2005 11:11:59 -0500 Thanks to all. I finally decided to have If statements. I wanted to have a second opinion on this which i always get from this group. Thanks again. >From: "Peter Burton" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] print >Date: Fri, 1 Jul 2005 11:59:37 -0400 > >Tim, > >However using a routine is a lot slower than just putting the "if" around >the print and it also makes assumptions about the print itself (location, >attributes, etc.). > >Peter > >-----Original Message----- >From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org >[mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org]On Behalf >Of Alexander, Steve >Sent: Friday, July 01, 2005 11:54 AM >To: 'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.' >Subject: RE: [sqr-users] print > > >Now I feel dumb for not thinking of a subroutine. Thanks, Tim. > >-----Original Message----- >From: Tim Peters [mailto:timothy.peters@adelaide.edu.au] >Sent: Thursday, June 30, 2005 10:41 PM >To: This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions. >Subject: Re: [sqr-users] print > > >How about something like this (untested): > >begin-procedure print-unless-blank ($str) > if not isblank($str) > print $str (+1,1) > end-if >end-procedure > >... > > print $address1 (0,1) > do print-unless-blank($address2) > do print-unless-blank($address3) > ! etc... > >Regards, >Tim > >radhika reddy wrote: > > Hi, > > > > I have to print the in the following format: > > > > Address1 > > Address2 > > Address3 > > phone > > county - line by line > > > > I would do something like this: > > > > print address1 (0,1) > > print address2 (+1,1) > > print address3 (+1,1) > > print phone (+1,1) > > print county (+1,1) > > > > My problem is sometimes address2, addr3,phone,county might be empty then > > there would be 4 lines of space which i don't want to have. > > > > I don't want to put If statement for each of these to see if they are > > empty. Is there any better way to do this? > > > > Thanks. Any help is great. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >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 _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 17:23:13 2005 From: "Steve Cavill" Subject: RE: [sqr-users] print Date: Sat, 2 Jul 2005 08:23:55 +1000 If the fields are empty, rather than containing blanks, Maybe next-listing no-advance would help? (I haven't tested that) Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Alexander, Steve Sent: Friday, 1 July 2005 9:18 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] print I don't blame Radhika for looking for another way. It's frustrating to have to repeat the same concept to the compiler over and over. It would be nice if SQR had a conditional print statement that only advanced the position pointer and printed a variable if that variable weren't null. Even if the address lines were in an array, the loop would be awkward because the print statement doesn't take array elements. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com] Sent: Thursday, June 30, 2005 2:47 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] print Good word, Steve: verbose. I think Steve's right...the easiest way to do it is with an IF statement for each of them. Not just easiest to write, but also easiest to follow. The if statements won't slow up the program any noticeable amount...I'm not sure why you would want to find a harder way to do it?? Just because it's the 'easy way' doesn't mean it's not also smart, good programming. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Alexander, Steve Sent: Thursday, June 30, 2005 3:45 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] print I can think of other ways to handle this, but they're all more complex and verbose than putting each print in an IF statement. -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Thursday, June 30, 2005 1:30 PM To: sqr-users@sqrug.org Subject: [sqr-users] print Hi, I have to print the in the following format: Address1 Address2 Address3 phone county - line by line I would do something like this: print address1 (0,1) print address2 (+1,1) print address3 (+1,1) print phone (+1,1) print county (+1,1) My problem is sometimes address2, addr3,phone,county might be empty then there would be 4 lines of space which i don't want to have. I don't want to put If statement for each of these to see if they are empty. Is there any better way to do this? Thanks. Any help is great. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 12:14:00 2005 Date: Fri, 1 Jul 2005 12:12:55 -0500 From: Chandra Yarlagadda Subject: [sqr-users] Eliminate printer specific character from SQR report Hi, I am trying to produce an SQR report from an Unix machine in .lis format. I am using the option of printer:lp. The report looks fine when I view in VI editor except for the first line which looks like ^[E^[(0N^[&l1O^[&l6C^[&l0E^[&l60F^[(s17.60H^[&k2G I know this are printer specific character. But I need to send the report output to mainframe and viewed from there. So I need an option to eliminate these characters. Can anyone help me in eliminating these character using any options. Thanks, Chandra _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 12:59:43 2005 Subject: RE: [sqr-users] Eliminate printer specific character from SQR report Date: Fri, 1 Jul 2005 12:59:05 -0500 From: "Turner, Ivan" The purpose of that line is to send control charachers to the printer for things such as paper orientation, center, bold, etc. There is no way I know of to remove them. If you copy the file to windows, you can then COPY it to a printer path and it will give you the orientation specified by the control characters. Fron the command line of windows,=20 copy abc.lis //device/printer/abc.lis -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Chandra Yarlagadda Sent: Friday, July 01, 2005 1:13 PM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate printer specific character from SQR report Hi, I am trying to produce an SQR report from an Unix machine in .lis format. I am using the option of printer:lp. The report looks fine when I view in VI editor except for the first line which looks like ^[E^[(0N^[&l1O^[&l6C^[&l0E^[&l60F^[(s17.60H^[&k2G I know this are printer specific character. But I need to send the report output to mainframe and viewed from there. So I need an option to eliminate these characters. Can anyone help me in eliminating these character using any options. Thanks, Chandra _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 15:16:36 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] Eliminate printer specific character from SQR report Date: Fri, 1 Jul 2005 13:16:09 -0700 I think those codes are specified in a "printer-init" command. In the Peoplesoft world, that command is part of the SETUPxxx.SQC include files. -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] Sent: Friday, July 01, 2005 10:59 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Eliminate printer specific character from SQR report The purpose of that line is to send control charachers to the printer for things such as paper orientation, center, bold, etc. There is no way I know of to remove them. If you copy the file to windows, you can then COPY it to a printer path and it will give you the orientation specified by the control characters. Fron the command line of windows, copy abc.lis //device/printer/abc.lis -----Original Message----- From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of Chandra Yarlagadda Sent: Friday, July 01, 2005 1:13 PM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate printer specific character from SQR report Hi, I am trying to produce an SQR report from an Unix machine in .lis format. I am using the option of printer:lp. The report looks fine when I view in VI editor except for the first line which looks like ^[E^[(0N^[&l1O^[&l6C^[&l0E^[&l60F^[(s17.60H^[&k2G I know this are printer specific character. But I need to send the report output to mainframe and viewed from there. So I need an option to eliminate these characters. Can anyone help me in eliminating these character using any options. Thanks, Chandra _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 01 17:26:38 2005 From: "Steve Cavill" Subject: RE: [sqr-users] Eliminate printer specific character from SQR report Date: Sat, 2 Jul 2005 08:27:35 +1000 That doesn't look like printer:lp that looks like PCL (printer:hp) Printer:lp should be plain text. You should check if you have a priner-init command in your sqr code which looks like it may be incorrect. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Alexander, Steve Sent: Saturday, 2 July 2005 6:16 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Eliminate printer specific character from SQR report I think those codes are specified in a "printer-init" command. In the Peoplesoft world, that command is part of the SETUPxxx.SQC include files. -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] Sent: Friday, July 01, 2005 10:59 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Eliminate printer specific character from SQR report The purpose of that line is to send control charachers to the printer for things such as paper orientation, center, bold, etc. There is no way I know of to remove them. If you copy the file to windows, you can then COPY it to a printer path and it will give you the orientation specified by the control characters. Fron the command line of windows, copy abc.lis //device/printer/abc.lis -----Original Message----- From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of Chandra Yarlagadda Sent: Friday, July 01, 2005 1:13 PM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate printer specific character from SQR report Hi, I am trying to produce an SQR report from an Unix machine in .lis format. I am using the option of printer:lp. The report looks fine when I view in VI editor except for the first line which looks like ^[E^[(0N^[&l1O^[&l6C^[&l0E^[&l60F^[(s17.60H^[&k2G I know this are printer specific character. But I need to send the report output to mainframe and viewed from there. So I need an option to eliminate these characters. Can anyone help me in eliminating these character using any options. Thanks, Chandra _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 08:56:48 2005 Date: Tue, 5 Jul 2005 08:55:43 -0500 From: Chandra Yarlagadda Subject: Re: [sqr-users] Eliminate printer specific character from SQR report I use setup32.sqc to produce the report. It has Printer-init command in it. Is there another sqc to produce a landscape layout and not produce the printer characters. Chandra. On 7/1/05, Steve Cavill wrote: > That doesn't look like printer:lp that looks like PCL (printer:hp) > Printer:lp should be plain text. > You should check if you have a priner-init command in your sqr code which= looks like it may be incorrect. > Steve. >=20 > -----Original Message----- > From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org > [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On= Behalf Of Alexander, Steve > Sent: Saturday, 2 July 2005 6:16 AM > To: 'This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions.' > Subject: RE: [sqr-users] Eliminate printer specific character from SQR re= port >=20 > I think those codes are specified in a "printer-init" command. In the Pe= oplesoft world, that command is part of the SETUPxxx.SQC > include files. >=20 > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] > Sent: Friday, July 01, 2005 10:59 AM > To: This list is for discussion about the SQR database reportinglanguage = fromHyperion Solutions. > Subject: RE: [sqr-users] Eliminate printer specific character from SQR re= port >=20 >=20 > The purpose of that line is to send control charachers to the printer for= things such as paper orientation, center, bold, etc. > There is no way I know of to remove them. If you copy the file to window= s, you can then COPY it to a printer path and it will give > you the orientation specified by the control characters. >=20 > Fron the command line of windows, > copy abc.lis //device/printer/abc.lis >=20 > -----Original Message----- > From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org > [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of= Chandra Yarlagadda > Sent: Friday, July 01, 2005 1:13 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Eliminate printer specific character from SQR report >=20 > Hi, >=20 > I am trying to produce an SQR report from an Unix machine in .lis format.= I am using the option of printer:lp. The report looks fine > when I view in VI editor except for the first line which looks like >=20 > ^[E^[(0N^[&l1O^[&l6C^[&l0E^[&l60F^[(s17.60H^[&k2G >=20 > I know this are printer specific character. But I need to send the report= output to mainframe and viewed from there. So I need an > option to eliminate these characters. >=20 > Can anyone help me in eliminating these character using any options. >=20 > Thanks, > Chandra >=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 > _______________________________________________ > 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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 09:29:53 2005 Date: Tue, 05 Jul 2005 11:29:30 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] Eliminate printer specific character from SQR report Yes, there are other sqc's (and if there isn't, it is no big deal to create= your own). But don't lose sight of the fact that by using "print" aspects = (PRINT commands, printer declarations, page setup declarations, etc) you ca= nnot expect SQR to *not* prepare your output for actual printing (in any of= the many print mediums available in SQR). If you want a file that contains= no printer control characters in it (and don't want to pass it through a s= ubsequent process to strip the print control characters), it seems to me th= at you would have to create a flat file (with sufficient formatting to repl= icate your report layout) using OPEN, WRITE, CLOSE statements. >>> yarlagaddacs@gmail.com 2005/07/05 10:55:43 >>> I use setup32.sqc to produce the report. It has Printer-init command in it. Is there another sqc to produce a landscape layout and not produce the printer characters. Chandra. On 7/1/05, Steve Cavill wrote: > That doesn't look like printer:lp that looks like PCL (printer:hp) > Printer:lp should be plain text. > You should check if you have a priner-init command in your sqr code which= looks like it may be incorrect. > Steve. >=20 > -----Original Message----- > From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org=20 > [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On= Behalf Of Alexander, Steve > Sent: Saturday, 2 July 2005 6:16 AM > To: 'This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions.' > Subject: RE: [sqr-users] Eliminate printer specific character from SQR re= port >=20 > I think those codes are specified in a "printer-init" command. In the Pe= oplesoft world, that command is part of the SETUPxxx.SQC > include files. >=20 > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@qwest.com]=20 > Sent: Friday, July 01, 2005 10:59 AM > To: This list is for discussion about the SQR database reportinglanguage = fromHyperion Solutions. > Subject: RE: [sqr-users] Eliminate printer specific character from SQR re= port >=20 >=20 > The purpose of that line is to send control charachers to the printer for= things such as paper orientation, center, bold, etc. > There is no way I know of to remove them. If you copy the file to window= s, you can then COPY it to a printer path and it will give > you the orientation specified by the control characters. >=20 > Fron the command line of windows, > copy abc.lis //device/printer/abc.lis >=20 > -----Original Message----- > From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org=20 > [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of= Chandra Yarlagadda > Sent: Friday, July 01, 2005 1:13 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] Eliminate printer specific character from SQR report >=20 > Hi, >=20 > I am trying to produce an SQR report from an Unix machine in .lis format.= I am using the option of printer:lp. The report looks fine > when I view in VI editor except for the first line which looks like >=20 > ^[E^[(0N^[&l1O^[&l6C^[&l0E^[&l60F^[(s17.60H^[&k2G >=20 > I know this are printer specific character. But I need to send the report= output to mainframe and viewed from there. So I need an > option to eliminate these characters. >=20 > Can anyone help me in eliminating these character using any options. >=20 > Thanks, > Chandra >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Jul 03 22:04:49 2005 From: "ANUPEE PERLMUTTER" Date: Mon, 04 Jul 2005 03:03:48 +0000 Subject: [sqr-users] Re: Printing blank page after printing checks thru pay003 Hi, We have recently added a new logo and signature to our check print program pay003.sqr (PeoplSoft). Whenever we print a range of manual checks, it prints an extra blank page at the end. I have tried formfeed =NO. it printed more extra blank pages. It is printing to a HP laserjet TROY printer. I cannot find anything in the program that is causing this issue. The only part in the code is as follows: IF #begincheck <= #thrucheck new-page else end-if Please let me know if anybody has come across this problem or has a resolution. Thanks, Aupee IS Analyst _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 04 12:21:34 2005 From: "Denise White" Date: Mon, 4 Jul 2005 13:20:55 -0400 Subject: [sqr-users] Re: Printing blank page after printing checks Hi Aupee, I'm not familiar with that program, but if the code you posted is the only place it is causing a formfeed, I would try changing the <= to just <, as it would appear it is the time when they are equal that is causing that last formfeed. HTH, Denise White denisemwhite@earthlink.net EarthLink Revolves Around You. ---------------------------------------------------------------------- Message: 1 Date: Mon, 04 Jul 2005 03:03:48 +0000 From: "ANUPEE PERLMUTTER" Subject: [sqr-users] Re: Printing blank page after printing checks thru pay003 To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; format=flowed Hi, We have recently added a new logo and signature to our check print program pay003.sqr (PeoplSoft). Whenever we print a range of manual checks, it prints an extra blank page at the end. I have tried formfeed =NO. it printed more extra blank pages. It is printing to a HP laserjet TROY printer. I cannot find anything in the program that is causing this issue. The only part in the code is as follows: IF #begincheck <= #thrucheck new-page else end-if Please let me know if anybody has come across this problem or has a resolution. Thanks, Aupee IS Analyst _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 08:06:28 2005 From: June_Whelan-Contractor@adp.com Subject: RE: [sqr-users] Any suggestions for a book on optimizing Oracle S ql commands? Date: Tue, 5 Jul 2005 09:08:14 -0400 Does anyone have any recommendations for useful (good) books on this subject? Thanks, June ----------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 08:18:52 2005 From: "the dragon" Subject: RE: [sqr-users] Any suggestions for a book on optimizing OracleS ql commands? Date: Tue, 05 Jul 2005 08:17:45 -0500 Download the pdf Sqr Reference manual for your version... http://dev.hyperion.com/resource_library/technical_documentation/ Also, amazon.com: SQR Programmer Reference-Second Edition SQR in PeopleSoft and Other Applications Second Edition: PeopleSoft v.8 8.4 SQR Cheat Sheet 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) ----Original Message Follows---- Does anyone have any recommendations for useful (good) books on this subject? Thanks, June _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 08:50:10 2005 Subject: RE: [sqr-users] Any suggestions for a book on optimizing OracleS ql commands? Date: Tue, 5 Jul 2005 13:49:31 -0000 From: Hi. See also Harnessing SQR at http://www.sqrevangelism.com/ John Willson http://www.dssltd.com the dragon said: > Download the pdf Sqr Reference manual for your version... > http://dev.hyperion.com/resource_library/technical_documentation/ > > Also, amazon.com: > SQR Programmer Reference-Second Edition > SQR in PeopleSoft and Other Applications Second Edition: PeopleSoft v.8 > 8.4 SQR Cheat Sheet > > 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) > > ----Original Message Follows---- > > Does anyone have any recommendations for useful (good) books on this > subject? > > Thanks, > June > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 09:21:10 2005 From: "the dragon" Subject: RE: [sqr-users] Any suggestions for a book on optimizing OracleS qlcommands? Date: Tue, 05 Jul 2005 09:20:06 -0500 Thanks! I wanted to include that one, but I couldn't remember it. dragon 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) ----Original Message Follows---- Hi. See also Harnessing SQR at http://www.sqrevangelism.com/ John Willson http://www.dssltd.com the dragon said: > Download the pdf Sqr Reference manual for your version... > http://dev.hyperion.com/resource_library/technical_documentation/ > > Also, amazon.com: > SQR Programmer Reference-Second Edition > SQR in PeopleSoft and Other Applications Second Edition: PeopleSoft v.8 > 8.4 SQR Cheat Sheet > > peace, > clark 'the dragon' willis > > > > ----Original Message Follows---- > > Does anyone have any recommendations for useful (good) books on this > subject? > > Thanks, > June > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 09:14:31 2005 Date: Tue, 05 Jul 2005 10:12:57 -0400 From: "George Jansen" Subject: RE: [sqr-users] Any suggestions for a book on optimizing Oracle S ql commands? Have a look at _Optimizing Oracle Performance_ by Cary Millsap with Jeff Ho= lt, about $35 US from O'Reilly Associates.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 11:08:37 2005 From: June_Whelan-Contractor@adp.com Subject: RE: [sqr-users] Any suggestions for a book on optimizing Oracle S ql commands? Date: Tue, 5 Jul 2005 12:10:34 -0400 Thanks. I'll check into it! -----Original Message----- From: George Jansen [mailto:GJANSEN@aflcio.org] Sent: Tuesday, July 05, 2005 10:13 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Any suggestions for a book on optimizing Oracle S ql commands? Have a look at _Optimizing Oracle Performance_ by Cary Millsap with Jeff Holt, about $35 US from O'Reilly Associates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ----------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 05 11:00:02 2005 Date: Tue, 05 Jul 2005 12:02:14 -0400 From: "Robert K. Foster" Subject: [sqr-users] Re: Printing blank page after printing checks thru pay003 This is a multi-part message in MIME format... --------------020305080908020501090500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Aupee, You say you added a logo and signature. The problem might be as simple as too many lines or dots on the page now that the new data is added. You might try counting lines or dots or shortening the page down to the bare minimum and see if that indicates the problem. Also check the page definition to make sure it matches the height of the logo and the number of lines. Once you introduce a bitmap or other graphic you need to calculate using dots instead of lines. Bob. sqr-users-request@sqrug.org wrote: > Hi, > > We have recently added a new logo and signature to our check print > program pay003.sqr (PeoplSoft). Whenever we print a range of manual > checks, it prints an extra blank page at the end. I have tried > formfeed =NO. it printed more extra blank pages. -- === Bob Foster Info. Systems Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 rkf@radiology.msu.edu Need a Better Web Browser? Get Firefox! --------------020305080908020501090500 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------020305080908020501090500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------020305080908020501090500-- From sqr-users-bounces@sqrug.org Tue Jul 05 11:15:15 2005 Subject: RE: [sqr-users] Re: Printing blank page after printing checks thrupay003 Date: Tue, 5 Jul 2005 12:14:08 -0400 From: "Beller, Jay" Aupee, You might want to examine your "signature". Depending on how your signatur= e was created (e.g., stripping bitmap data from another program), it might = contain a character (decimal 12) as the last byte and you would = need to strip it off.=20=20 Jay -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Robert K. Foster Sent: Tuesday, July 05, 2005 12:02 PM To: sqr-users@sqrug.org Subject: [sqr-users] Re: Printing blank page after printing checks thrupay003 Aupee, You say you added a logo and signature. The problem might be as simple=20 as too many lines or dots on the page now that the new data is added.=20 You might try counting lines or dots or shortening the page down to the=20 bare minimum and see if that indicates the problem. Also check the page=20 definition to make sure it matches the height of the logo and the number=20 of lines. Once you introduce a bitmap or other graphic you need to=20 calculate using dots instead of lines. Bob. sqr-users-request@sqrug.org wrote: > Hi, > > We have recently added a new logo and signature to our check print=20 > program pay003.sqr (PeoplSoft). Whenever we print a range of manual=20 > checks, it prints an extra blank page at the end. I have tried=20 > formfeed =3DNO. it printed more extra blank pages. --=20 =3D=3D=3D Bob Foster Info. Systems Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 rkf@radiology.msu.edu Need a Better Web Browser? Get Firefox! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 06 15:40:21 2005 Subject: RE: [sqr-users] Any suggestions for a book on optimizing Date: Wed, 6 Jul 2005 16:39:18 -0400 From: "Barilleaux, Rebecca" I really like SQL Performance Tuning by Peter Gulutzan and Trudy Pelzer. It's not Oracle specific, but covers performance tuning techniques for the "big 8 databases" including Oracle.=20 =20 =20 Date: Tue, 5 Jul 2005 09:08:14 -0400 From: June_Whelan-Contractor@adp.com Subject: RE: [sqr-users] Any suggestions for a book on optimizing Oracle S ql commands? To: sqr-users@sqrug.org Message-ID: <4D6D27333868D611BD190002B3A6E4EB2802BE14@ROSEEXCHMB> Content-Type: text/plain Does anyone have any recommendations for useful (good) books on this subject? Thanks, June CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,=20 is for the sole use of the intended recipient(s) and may contain confidenti= al and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 06 15:47:11 2005 From: June_Whelan-Contractor@adp.com Subject: RE: [sqr-users] Any suggestions for a book on optimizing Date: Wed, 6 Jul 2005 16:49:11 -0400 Thanks! I'll check into it. I appreciate the feedback. -----Original Message----- From: Barilleaux, Rebecca [mailto:Rebecca.Barilleaux@anthem.com] Sent: Wednesday, July 06, 2005 4:39 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Any suggestions for a book on optimizing I really like SQL Performance Tuning by Peter Gulutzan and Trudy Pelzer. It's not Oracle specific, but covers performance tuning techniques for the "big 8 databases" including Oracle. Date: Tue, 5 Jul 2005 09:08:14 -0400 From: June_Whelan-Contractor@adp.com Subject: RE: [sqr-users] Any suggestions for a book on optimizing Oracle S ql commands? To: sqr-users@sqrug.org Message-ID: <4D6D27333868D611BD190002B3A6E4EB2802BE14@ROSEEXCHMB> Content-Type: text/plain Does anyone have any recommendations for useful (good) books on this subject? Thanks, June CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ----------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 11 08:43:41 2005 From: "tam kag" Date: Mon, 11 Jul 2005 13:42:38 +0000 Subject: [sqr-users] Exceptions in SQR Hello, I'm trying to write an exception report, I have copied this code from the Brio Manual. then published the file in Brio Portal and allowed exceptions to occur then subscribed to receive exceptions, then ran the job but I have not received the exception report. the code used: begin-program print 'testing exceptions' (5,5) move 'testing exceptions in SQR' to $excpetion_text do exception end-program begin-procedure exception open 'output.properties' as 0 for-append record=32767:vary write 0 from 'rating=high_priority' write 0 from 'exception.default=on' write 0 from $excpetion_text close 0 end-procedure Please advice. Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 12 06:25:15 2005 Subject: RE: [sqr-users] Exceptions in SQR Date: Tue, 12 Jul 2005 07:23:49 -0400 From: "Bob Buford" Hi Tam, Try fully qualifying the filename with complete path - it's possible that the file is being created in a folder that you didn't expect to be used.=20 Also you could get the status value when opening the 'output.properties' file and print that to the log. Code looks valid and you should have 2 files created: - output.properties - sqr.log, with 1 line entry 'testing exceptions'. Note that sqr.log might be named and located differently if you run it at batch server vs. client.=20 =20 Bob Buford -----Original Message----- From: tam kag [mailto:kaghdot@hotmail.com]=20 Sent: Monday, July 11, 2005 9:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] Exceptions in SQR Hello, I'm trying to write an exception report, I have copied this code from the Brio Manual. then published the file in Brio Portal and allowed exceptions to occur then subscribed to receive exceptions, then ran the job but I have not received the exception report. the code used: begin-program print 'testing exceptions' (5,5) move 'testing exceptions in SQR' to $excpetion_text do exception end-program begin-procedure exception open 'output.properties' as 0 for-append record=3D32767:vary write 0 from 'rating=3Dhigh_priority' write 0 from 'exception.default=3Don' write 0 from $excpetion_text close 0 end-procedure Please advice. Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 14 05:20:12 2005 From: "Steve Cavill" Subject: RE: [sqr-users] Exceptions in SQR Date: Thu, 14 Jul 2005 20:18:50 +1000 I think you need: move 'exception.text=testing exceptions in SQR' to $excpetion_text Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of tam kag Sent: Monday, 11 July 2005 11:43 PM To: sqr-users@sqrug.org Subject: [sqr-users] Exceptions in SQR Hello, I'm trying to write an exception report, I have copied this code from the Brio Manual. then published the file in Brio Portal and allowed exceptions to occur then subscribed to receive exceptions, then ran the job but I have not received the exception report. the code used: begin-program print 'testing exceptions' (5,5) move 'testing exceptions in SQR' to $excpetion_text do exception end-program begin-procedure exception open 'output.properties' as 0 for-append record=32767:vary write 0 from 'rating=high_priority' write 0 from 'exception.default=on' write 0 from $excpetion_text close 0 end-procedure Please advice. Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 11 17:01:59 2005 Date: Mon, 11 Jul 2005 18:04:57 -0400 From: "Jolene Osei" Subject: [sqr-users] Extrating a CLOB and formating the output Hi Can someone help Please with a query to extract from Banner tables. I am extracting from a CLOB field and I would like the output to be in paragraph format. I have been looking at this SQR program http://www.sqrug.org/ftp/reflow_text.sq If there is anyone who can help expand on this program I would greatly appreciate it. Please help if there is anyone who can help crack this CLOB problem Thanks Sibonginkosi Jolene Osei Data Base Analyst Kalamazoo Valley Community College 6767 West 'O' Avenue Kalamazoo, MI 49003-4070 (269) 488-4139 phone (269) 488-4565 fax _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 12 10:55:03 2005 Date: Tue, 12 Jul 2005 08:54:04 -0700 From: "Howard Thompson" Subject: [sqr-users] SQR-4503 Errors with 0 line offset in print command (There is probably a way better way to accomplish what I'm trying to do...;= if so, let me know). I have a report that lists a person's name and from 0 to many messages for/= about the person. Person Name Message =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Abel, Alan This is message 1 for Alan This is message 2 for Alan Builder, Betty This is the only message for Betty Corva, Charles=20=20=20=20=20=20=20=20=20 Davis, Danielle This is message 1 for Danielle This is message 2 for Danielle As I go through the process for a person, I store the messages in an array = and at the end of the person I print the name and then loop through the array to print any accumulated m= essages. On my first message for a person, I want the line offset to be 0; for subse= quent messages, I want the line offset to be +1 I tried the followoing and got the SQR 4503 error (presumably because if th= e line offset is a variable it can't be 0) PRINT $fmt_name (+1, {COL01}) Let #LineOffset =3D 0 LET #AryIdx =3D 0 WHILE #AryIdx <=3D #AryLimit ! AryLimit is the number if me= ssages GET $RptMsg FROM MsgArray(#AryIdx) Msg PRINT $RptMsg (#LineOffset, {COL02}, 0) LET #LineOffset =3D +1 ADD 1 TO #AryIdx END-WHILE=20 The only way I can get it to work is this: LET #AryIdx =3D 0 WHILE #AryIdx <=3D #AryLimit GET $RptMsg FROM MsgArray(#AryIdx) Msg IF #AryIdx =3D 0 ! First message PRINT $RptMsg (0, {COL03}, 0) ELSE PRINT $RptMsg (+1, {COL03}, 0) END-IF ADD 1 TO #AryIdx END-WHILE I appreciate any ideas. -- Howard Thompson Senior IS Project Lead Oregon Health & Science University thompsoh@ohsu.edu 503-494-5936 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 12 11:01:21 2005 Subject: RE: [sqr-users] SQR-4503 Errors with 0 line offset in print command Date: Tue, 12 Jul 2005 12:00:02 -0400 From: "Peter Burton" Howard, Begin-Report Print 'Line 1' (10,10) Let #Advance =3D 0 Print 'Part A' (+#Advance, 20) Let #Advance =3D 1 Print 'Part B' (+#Advance, 20) End-Report Produces Line 1 Part A Part B Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Howard Thompson Sent: Tuesday, July 12, 2005 11:54 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR-4503 Errors with 0 line offset in print command (There is probably a way better way to accomplish what I'm trying to do...; if so, let me know). I have a report that lists a person's name and from 0 to many messages for/about the person. Person Name Message =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Abel, Alan This is message 1 for Alan This is message 2 for Alan Builder, Betty This is the only message for Betty Corva, Charles=20=20=20=20=20=20=20=20=20 Davis, Danielle This is message 1 for Danielle This is message 2 for Danielle As I go through the process for a person, I store the messages in an array and at the end of the person I print the name and then loop through the array to print any accumulated messages. On my first message for a person, I want the line offset to be 0; for subsequent messages, I want the line offset to be +1 I tried the followoing and got the SQR 4503 error (presumably because if the line offset is a variable it can't be 0) PRINT $fmt_name (+1, {COL01}) Let #LineOffset =3D 0 LET #AryIdx =3D 0 WHILE #AryIdx <=3D #AryLimit ! AryLimit is the number if messages GET $RptMsg FROM MsgArray(#AryIdx) Msg PRINT $RptMsg (#LineOffset, {COL02}, 0) LET #LineOffset =3D +1 ADD 1 TO #AryIdx END-WHILE=20 The only way I can get it to work is this: LET #AryIdx =3D 0 WHILE #AryIdx <=3D #AryLimit GET $RptMsg FROM MsgArray(#AryIdx) Msg IF #AryIdx =3D 0 ! First message PRINT $RptMsg (0, {COL03}, 0) ELSE PRINT $RptMsg (+1, {COL03}, 0) END-IF ADD 1 TO #AryIdx END-WHILE I appreciate any ideas. -- Howard Thompson Senior IS Project Lead Oregon Health & Science University thompsoh@ohsu.edu 503-494-5936 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 12 11:07:20 2005 Date: Tue, 12 Jul 2005 09:06:22 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] SQR-4503 Errors with 0 line offset in print command Try putting the plus sign in front of your offset variable: (+#LineOffset,,0) One line of your code is "LET #LineOffset = +1". In that situation, the plus sign doesn't count. SQR is simply treating that as the value 1. You need to code the plus sign in the PRINT offset to tell SQR that it's a relative offset and not an absolute position. Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] SQR-4503 Errors with 0 line offset in print command From: "Howard Thompson" Date: Tue, July 12, 2005 8:54 am To: sqr-users@sqrug.org (There is probably a way better way to accomplish what I'm trying to do...; if so, let me know). I have a report that lists a person's name and from 0 to many messages for/about the person. Person Name Message ===================== =================================== Abel, Alan This is message 1 for Alan This is message 2 for Alan Builder, Betty This is the only message for Betty Corva, Charles Davis, Danielle This is message 1 for Danielle This is message 2 for Danielle As I go through the process for a person, I store the messages in an array and at the end of the person I print the name and then loop through the array to print any accumulated messages. On my first message for a person, I want the line offset to be 0; for subsequent messages, I want the line offset to be +1 I tried the followoing and got the SQR 4503 error (presumably because if the line offset is a variable it can't be 0) PRINT $fmt_name (+1, ) Let #LineOffset = 0 LET #AryIdx = 0 WHILE #AryIdx <= #AryLimit ! AryLimit is the number if messages GET $RptMsg FROM MsgArray(#AryIdx) Msg PRINT $RptMsg (#LineOffset, , 0) LET #LineOffset = +1 ADD 1 TO #AryIdx END-WHILE The only way I can get it to work is this: LET #AryIdx = 0 WHILE #AryIdx <= #AryLimit GET $RptMsg FROM MsgArray(#AryIdx) Msg IF #AryIdx = 0 ! First message PRINT $RptMsg (0, , 0) ELSE PRINT $RptMsg (+1, , 0) END-IF ADD 1 TO #AryIdx END-WHILE I appreciate any ideas. -- Howard Thompson Senior IS Project Lead Oregon Health & Science University thompsoh@ohsu.edu 503-494-5936 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 12 11:20:08 2005 Date: Tue, 12 Jul 2005 09:19:15 -0700 From: "Howard Thompson" Subject: RE: [sqr-users] SQR-4503 Errors with 0 line offset in print command Perfect, that did it; reading the error message I thought it was saying it = didn't like "+0" as a position, but I must not have deciphered the message = correctly. =20 I totally appreciate your quick response.=20 =20 =20 -- Howard Thompson Senior IS Project Lead Oregon Health & Science University thompsoh@ohsu.edu 503-494-5936 >>> kevin.reschenberg@sparkpath.com 07/12/05 9:06 AM >>> Try putting the plus sign in front of your offset variable:=20 (+#LineOffset,,0) One line of your code is "LET #LineOffset =3D +1". In that situation, the plus sign doesn't count. SQR is simply treating that as the value 1. You need to code the plus sign in the PRINT offset to tell SQR that it's a relative offset and not an absolute position. =20=20 Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] SQR-4503 Errors with 0 line offset in print command From: "Howard Thompson" Date: Tue, July 12, 2005 8:54 am To: sqr-users@sqrug.org (There is probably a way better way to accomplish what I'm trying to do...; if so, let me know). I have a report that lists a person's name and from 0 to many messages for/about the person. Person Name Message =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Abel, Alan This is message 1 for Alan This is message 2 for Alan Builder, Betty This is the only message for Betty Corva, Charles=20=20=20=20=20=20=20=20=20 Davis, Danielle This is message 1 for Danielle This is message 2 for Danielle As I go through the process for a person, I store the messages in an array and at the end of the person I print the name and then loop through the array to print any accumulated messages. On my first message for a person, I want the line offset to be 0; for subsequent messages, I want the line offset to be +1 I tried the followoing and got the SQR 4503 error (presumably because if the line offset is a variable it can't be 0) PRINT $fmt_name (+1, ) Let #LineOffset =3D 0 LET #AryIdx =3D 0 WHILE #AryIdx <=3D #AryLimit ! AryLimit is the number if messages GET $RptMsg FROM MsgArray(#AryIdx) Msg PRINT $RptMsg (#LineOffset, , 0) LET #LineOffset =3D +1 ADD 1 TO #AryIdx END-WHILE=20 The only way I can get it to work is this: LET #AryIdx =3D 0 WHILE #AryIdx <=3D #AryLimit GET $RptMsg FROM MsgArray(#AryIdx) Msg IF #AryIdx =3D 0 ! First message PRINT $RptMsg (0, , 0) ELSE PRINT $RptMsg (+1, , 0) END-IF ADD 1 TO #AryIdx END-WHILE I appreciate any ideas. -- Howard Thompson Senior IS Project Lead Oregon Health & Science University thompsoh@ohsu.edu 503-494-5936 _______________________________________________ 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 11:48:09 2005 From: "tam kag" Date: Tue, 19 Jul 2005 16:47:05 +0000 Subject: [sqr-users] Running a SQR program from another SQR program Hello, Within my SQR(program A), I'm trying to execute another SQR(program B) by building a string variable and using the CALL SYSTEM command. I have tested my command by typing it manually and running it in our AIX box, the command ran successfully, but when I copy the same command an paste it in program A it is returning an error code 6. any info is most appreciated Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 12:06:36 2005 Subject: RE: [sqr-users] Running a SQR program from another SQR program Date: Tue, 19 Jul 2005 12:05:55 -0500 From: "Knapp, Richard" Is there any text with the error code? Is it SQR or the operating system that is originating the error? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of tam kag Sent: Tuesday, July 19, 2005 11:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] Running a SQR program from another SQR program Hello, Within my SQR(program A), I'm trying to execute another SQR(program B) by=20 building a string variable and using the CALL SYSTEM command. I have tested my command by typing it manually and running it in our AIX box, the command ran successfully, but when I copy the same command an paste=20 it in program A it is returning an error code 6. any info is most appreciated Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 12:25:55 2005 From: "tam kag" Subject: RE: [sqr-users] Running a SQR program from another SQR program Date: Tue, 19 Jul 2005 17:24:50 +0000 the error code is the code returned from CALL SYSTEM USING $cmd_ln #return_status. #return_status is equal to 6, I couldn't find out what error code 6 means >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Running a SQR program from another SQR program >Date: Tue, 19 Jul 2005 12:05:55 -0500 > > >Is there any text with the error code? Is it SQR or the operating >system that is originating the error? > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >tam kag >Sent: Tuesday, July 19, 2005 11:47 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Running a SQR program from another SQR program > >Hello, >Within my SQR(program A), I'm trying to execute another SQR(program B) >by >building a string variable and using the CALL SYSTEM command. > >I have tested my command by typing it manually and running it in our AIX > >box, the command ran successfully, but when I copy the same command an >paste >it in program A it is returning an error code 6. > >any info is most appreciated > >Thanks > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 12:33:06 2005 Subject: RE: [sqr-users] Running a SQR program from another SQR program Date: Tue, 19 Jul 2005 12:32:30 -0500 From: "Knapp, Richard" That's the operating system. Somewhere AIX documents what that error code means. All of the operations are run on the AIX box, right? No windows clients involved? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of tam kag Sent: Tuesday, July 19, 2005 12:25 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Running a SQR program from another SQR program the error code is the code returned from CALL SYSTEM USING $cmd_ln=20 #return_status. #return_status is equal to 6, I couldn't find out what error code 6 means >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage=20 >fromHyperion Solutions." >Subject: RE: [sqr-users] Running a SQR program from another SQR program >Date: Tue, 19 Jul 2005 12:05:55 -0500 > > >Is there any text with the error code? Is it SQR or the operating >system that is originating the error? > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of >tam kag >Sent: Tuesday, July 19, 2005 11:47 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Running a SQR program from another SQR program > >Hello, >Within my SQR(program A), I'm trying to execute another SQR(program B) >by >building a string variable and using the CALL SYSTEM command. > >I have tested my command by typing it manually and running it in our AIX > >box, the command ran successfully, but when I copy the same command an >paste >it in program A it is returning an error code 6. > >any info is most appreciated > >Thanks > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 12:37:10 2005 From: "tam kag" Subject: RE: [sqr-users] Running a SQR program from another SQR program Date: Tue, 19 Jul 2005 17:36:06 +0000 Yes all the operations are on the AIX machine >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Running a SQR program from another SQR program >Date: Tue, 19 Jul 2005 12:32:30 -0500 > > >That's the operating system. Somewhere AIX documents what that error >code means. > >All of the operations are run on the AIX box, right? No windows clients >involved? > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >tam kag >Sent: Tuesday, July 19, 2005 12:25 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Running a SQR program from another SQR program > >the error code is the code returned from CALL SYSTEM USING $cmd_ln >#return_status. > >#return_status is equal to 6, I couldn't find out what error code 6 >means > > > > >From: "Knapp, Richard" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "This list is for discussion about the SQR database >reportinglanguage > >fromHyperion Solutions." > >Subject: RE: [sqr-users] Running a SQR program from another SQR program > >Date: Tue, 19 Jul 2005 12:05:55 -0500 > > > > > >Is there any text with the error code? Is it SQR or the operating > >system that is originating the error? > > > >Richard Knapp > >Database Programmer/Analyst > >Institutional Research and Planning > >University of Missouri System > >573-882-8856 > >knappr@umsystem.edu > > > >-----Original Message----- > >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > >tam kag > >Sent: Tuesday, July 19, 2005 11:47 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Running a SQR program from another SQR program > > > >Hello, > >Within my SQR(program A), I'm trying to execute another SQR(program B) > >by > >building a string variable and using the CALL SYSTEM command. > > > >I have tested my command by typing it manually and running it in our >AIX > > > >box, the command ran successfully, but when I copy the same command an > >paste > >it in program A it is returning an error code 6. > > > >any info is most appreciated > > > >Thanks > > > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 14:30:36 2005 From: "the dragon" Subject: RE: [sqr-users] Running a SQR program from another SQR program Date: Tue, 19 Jul 2005 14:28:31 -0500 My guess off the top of my head.... When you call the new sqr from the old sqr you're shelling out without inheriting the environment variables. You'll probably need to use fully qualified paths. 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) ----Original Message Follows---- Yes all the operations are on the AIX machine >That's the operating system. Somewhere AIX documents what that error >code means. > >All of the operations are run on the AIX box, right? No windows clients >involved? > >Richard Knapp > >-----Original Message----- > >the error code is the code returned from CALL SYSTEM USING $cmd_ln >#return_status. > >#return_status is equal to 6, I couldn't find out what error code 6 >means > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 19 15:44:35 2005 Subject: RE: [sqr-users] Running a SQR program from another SQR program Date: Tue, 19 Jul 2005 15:43:45 -0500 From: "Knapp, Richard" Also my intuition. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of the dragon Sent: Tuesday, July 19, 2005 2:29 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Running a SQR program from another SQR program My guess off the top of my head.... When you call the new sqr from the old=20 sqr you're shelling out without inheriting the environment variables.=20=20 You'll probably need to use fully qualified paths. 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. 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=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Yes all the operations are on the AIX machine >That's the operating system. Somewhere AIX documents what that error >code means. > >All of the operations are run on the AIX box, right? No windows clients >involved? > >Richard Knapp > >-----Original Message----- > >the error code is the code returned from CALL SYSTEM USING $cmd_ln >#return_status. > >#return_status is equal to 6, I couldn't find out what error code 6 >means > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 01:56:13 2005 From: Amol Gokhale Date: Wed, 20 Jul 2005 12:25:40 +0530 Subject: [sqr-users] sqr command line parameters not being accepted Hi, I am trying to accept parameters in an SQR file from the command line and unfortunately the parameters are not being accepted. I have given a print command on the parameter and it is not being printed.. I've posted my program below. I dont know whats wrong. begin-setup Declare-Variable ! default-numeric = Decimal(12) Text $num End-Declare ask $num !random number end-setup begin-program print $num (1) center do accept_params end-program !-----------------------------------------------------------------------! ! Function: ! Description: This procedure !-----------------------------------------------------------------------! begin-procedure accept_params #debug show '===>' #debug show $num print $num (1) center end-procedure Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 04:36:23 2005 From: "Syed Husain" Subject: RE: [sqr-users] sqr command line parameters not being accepted Date: Wed, 20 Jul 2005 15:04:10 +0530 Hi Amol, Try the code below.I think this should work fine. begin-setup Declare-Variable ! default-numeric = Decimal(12) Text $num End-Declare ask number end-setup begin-program let $num = {number} print $num (1) center do accept_params end-program !-----------------------------------------------------------------------! ! Function: ! Description: This procedure !-----------------------------------------------------------------------! begin-procedure accept_params #debug show '===>' #debug show $num print $num (1) center end-procedure -----Original Message----- From: sqr-users-bounces+syed.husain=patni.com@sqrug.org [mailto:sqr-users-bounces+syed.husain=patni.com@sqrug.org]On Behalf Of Amol Gokhale Sent: Wednesday, July 20, 2005 12:26 PM To: sqr-users@sqrug.org Subject: [sqr-users] sqr command line parameters not being accepted Hi, I am trying to accept parameters in an SQR file from the command line and unfortunately the parameters are not being accepted. I have given a print command on the parameter and it is not being printed.. I've posted my program below. I dont know whats wrong. begin-setup Declare-Variable ! default-numeric = Decimal(12) Text $num End-Declare ask $num !random number end-setup begin-program print $num (1) center do accept_params end-program !-----------------------------------------------------------------------! ! Function: ! Description: This procedure !-----------------------------------------------------------------------! begin-procedure accept_params #debug show '===>' #debug show $num print $num (1) center end-procedure Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 06:45:13 2005 Subject: RE: [sqr-users] sqr command line parameters not being accepted From: Amol Gokhale Date: Wed, 20 Jul 2005 17:14:33 +0530 -----sqr-users-bounces+amol.gokhale=mindcraftsoftware.com@sqrug.org wrote: ----- > >Hi Amol, > >Try the code below.I think this should work fine. > >begin-setup >Declare-Variable >! default-numeric = Decimal(12) > Text $num >End-Declare > ask number > >end-setup >begin-program > > let $num = {number} > print $num (1) center > do accept_params > >end-program >!-------------------------------------------------------------------- >---! >! Function: >! Description: This procedure >!-------------------------------------------------------------------- >---! >begin-procedure accept_params > #debug show '===>' > #debug show $num > print $num (1) center >end-procedure > Nope did not work. Gave the following error. What say??? Error on line 11: (SQR 4008) Unknown function or variable in expression: amol let $num = amol Bye, Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 06:49:05 2005 Subject: RE: [sqr-users] sqr command line parameters not being accepted From: Amol Gokhale Date: Wed, 20 Jul 2005 17:16:16 +0530 -----sqr-users-bounces+amol.gokhale=mindcraftsoftware.com@sqrug.org wrote: ----- >Hi Amol, > >Try the code below.I think this should work fine. > >begin-setup >Declare-Variable >! default-numeric = Decimal(12) > Text $num >End-Declare > ask number > >end-setup >begin-program > > let $num = {number} > print $num (1) center > do accept_params > >end-program >!-------------------------------------------------------------------- >---! >! Function: >! Description: This procedure >!-------------------------------------------------------------------- >---! >begin-procedure accept_params > #debug show '===>' > #debug show $num > print $num (1) center >end-procedure Nope gave the following error Error on line 11: (SQR 4008) Unknown function or variable in expression: amol let $num = amol Any ideas???? Bye, Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 21 01:20:24 2005 From: "Syed Husain" Subject: RE: [sqr-users] sqr command line parameters not being accepted Date: Thu, 21 Jul 2005 11:49:25 +0530 Amol, Give the input parameter ('amol') in quotes if you are using 'ask' command. If you want to enter a number then you can enter 1,2,3 etc without quotes. Other option is use Input command in the program section itself. Syed -----Original Message----- From: sqr-users-bounces+syed.husain=patni.com@sqrug.org [mailto:sqr-users-bounces+syed.husain=patni.com@sqrug.org]On Behalf Of Amol Gokhale Sent: Wednesday, July 20, 2005 5:16 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sqr command line parameters not being accepted -----sqr-users-bounces+amol.gokhale=mindcraftsoftware.com@sqrug.org wrote: ----- >Hi Amol, > >Try the code below.I think this should work fine. > >begin-setup >Declare-Variable >! default-numeric = Decimal(12) > Text $num >End-Declare > ask number > >end-setup >begin-program > > let $num = {number} > print $num (1) center > do accept_params > >end-program >!-------------------------------------------------------------------- >---! >! Function: >! Description: This procedure >!-------------------------------------------------------------------- >---! >begin-procedure accept_params > #debug show '===>' > #debug show $num > print $num (1) center >end-procedure Nope gave the following error Error on line 11: (SQR 4008) Unknown function or variable in expression: amol let $num = amol Any ideas???? Bye, Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 08:35:09 2005 From: "Steve Cavill" Subject: RE: [sqr-users] sqr command line parameters not being accepted Date: Wed, 20 Jul 2005 23:33:57 +1000 Change your ASK to INPUT, and move it to the main part of the program (not the setup section) Unless you really need a substitution variable. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Amol Gokhale Sent: Wednesday, 20 July 2005 4:56 PM To: sqr-users@sqrug.org Subject: [sqr-users] sqr command line parameters not being accepted Hi, I am trying to accept parameters in an SQR file from the command line and unfortunately the parameters are not being accepted. I have given a print command on the parameter and it is not being printed.. I've posted my program below. I dont know whats wrong. begin-setup Declare-Variable ! default-numeric = Decimal(12) Text $num End-Declare ask $num !random number end-setup begin-program print $num (1) center do accept_params end-program !-----------------------------------------------------------------------! ! Function: ! Description: This procedure !-----------------------------------------------------------------------! begin-procedure accept_params #debug show '===>' #debug show $num print $num (1) center end-procedure Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 21 00:09:56 2005 Subject: RE: [sqr-users] sqr command line parameters not being accepted From: Amol Gokhale Date: Thu, 21 Jul 2005 10:39:28 +0530 >From: "Steve Cavill" >Change your ASK to INPUT, and move it to the main part of the program >(not the setup section) >Unless you really need a substitution variable. >Steve. I made those changes and it worked. I am pasting the working program below. begin-setup Declare-Variable Text $num End-Declare end-setup begin-program input $num print $num (1) center do accept_params end-program !-----------------------------------------------------------------------! ! Function: ! Description: This procedure !-----------------------------------------------------------------------! begin-procedure accept_params #debug show '===>' #debug show $num print $num (1) center end-procedure Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 03:37:45 2005 Date: Wed, 20 Jul 2005 14:05:20 +0530 From: "Manas Ranjan Nayak" Subject: [sqr-users] list Box and Drop Down for filter condition in Hyperion SQR Hi I have earlier worked with Brio Query 6.5, Brio Insight (web version of the same), On Demand Server and Broadcast server. I will be working on BRIO SQR in my present assignment for 4 weeks. I have gone through the user manual of 'Hyperion SQR Developer'. I need the following clarification from the group. =0D 1. I have the understanding that Brio SQR is a scale down version of Brio Reports. Brio report has EIS section, Dashboard, VB Scripting etc. Is my assumption correct?=0D 2. We can use the Wizard Based SQR Report Developer or simply write the report code in a note pad and save it as .sqr extension file. Are both these facilities are available with the package?=0D 3. Users want to filter the where condition using list box and drop down box. (i.e. List of all employees can be shown and user can have the option of selecting one or many from it). I have read about prompts at the run time, where the user can key in a particular value. However not sure if a list box to select one or multiple values can be provided (This is possible in EIS Section of Brio Query). =0D =0D Thanks & Regards, Manas=0D =0D =0D **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solel= y for the use of the addressee(s). If you are not the intended recipient, p= lease notify the sender by e-mail and delete the original message. Further,= you are not to copy, disclose, or distribute this e-mail or its contents t= o any other person and any such actions are unlawful. This e-mail may conta= in viruses. Infosys has taken every reasonable precaution to minimize this = risk, but is not liable for any damage you may sustain as a result of any v= irus in this e-mail. You should carry out your own virus checks before open= ing the e-mail or attachment. Infosys reserves the right to monitor and rev= iew the content of all messages sent to or from this e-mail address. Messag= es sent to or from this e-mail address may be stored on the Infosys e-mail = system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 12:41:38 2005 From: "Marc Taquoi" Date: Wed, 20 Jul 2005 19:41:03 +0200 Subject: [sqr-users] Error during execution with NewGraphic Hello, I use SQR 8.2.0 with NewGraphic. During the execution I have this error : FAiled to start the Java Virtual Machine . Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. I have verify my SQR.INI. The [JRE] section is correct. I have the good programs at the good place. I don't understand. Do you have an idee ? Please advice. Thank you M.T. Technologies Marc TAQUOI marc.taquoi@bluewin.ch T=E9l=E9phone : +41 (0)21 624 21 27 Mobile : +41 (0)79 818 52 35 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 14:10:31 2005 Subject: RE: [sqr-users] Error during execution with NewGraphic Date: Wed, 20 Jul 2005 14:09:59 -0500 From: "Knapp, Richard" Are you able to run any java code on your machine? Are you using SQRW? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Marc Taquoi Sent: Wednesday, July 20, 2005 12:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error during execution with NewGraphic Hello, I use SQR 8.2.0 with NewGraphic. During the execution I have this error : FAiled to start the Java Virtual Machine . Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. I have verify my SQR.INI. The [JRE] section is correct. I have the good programs at the good place. I don't understand. Do you have an idee ? Please advice. Thank you M.T. Technologies Marc TAQUOI marc.taquoi@bluewin.ch T=E9l=E9phone : +41 (0)21 624 21 27 Mobile : +41 (0)79 818 52 35 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 16:09:56 2005 From: "Marc Taquoi" Subject: RE: [sqr-users] Error during execution with NewGraphic Date: Wed, 20 Jul 2005 23:09:20 +0200 Yes, I use SQRW -----Message d'origine----- De : sqr-users-bounces+marc.taquoi=3Dbluewin.ch@sqrug.org [mailto:sqr-users-bounces+marc.taquoi=3Dbluewin.ch@sqrug.org]De la part de Knapp, Richard Envoy=E9 : mercredi 20 juillet 2005 21:10 =C0 : This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Objet : RE: [sqr-users] Error during execution with NewGraphic Are you able to run any java code on your machine? Are you using SQRW? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Marc Taquoi Sent: Wednesday, July 20, 2005 12:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] Error during execution with NewGraphic Hello, I use SQR 8.2.0 with NewGraphic. During the execution I have this error : FAiled to start the Java Virtual Machine . Possible causes are: missing or invalid jre files, incorrect CLASSPATH, or insufficient resources. I have verify my SQR.INI. The [JRE] section is correct. I have the good programs at the good place. I don't understand. Do you have an idee ? Please advice. Thank you M.T. Technologies Marc TAQUOI marc.taquoi@bluewin.ch T=E9l=E9phone : +41 (0)21 624 21 27 Mobile : +41 (0)79 818 52 35 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 20 22:07:15 2005 From: "Victor Loghin" Date: Wed, 20 Jul 2005 23:06:08 -0400 Subject: [sqr-users] DB2 timing report of SQL statements in a SQR program Fellow Listers, I have developed a program to produce a timing report of the SQL statements in a SQR programs run on DB2 for z/OS. I have been using it for a while and have found it very useful in identifying SQL performance problems. I have made it available for download on my web site. I call this tool the SQL Timor. It is used in conjunction with another tool called the Formator. The Formator reads in a SQR program and insert calls to the SQL Timor for all SQL statements. The modified code is run and the timing report is displayed at the end of the program. Even though it is written specifically for DB2 on z/OS, it should work with DB2 UDB on Linux, UNIX and Windows. The only call to the database is to get the current timestamp from SYSIBM.SYSDUMMY1 and my understanding it is supported on UDB. If anyone tries it on DB2 UDB, please let me know if it works. Documentation for can be found at SQLTimor and Formator. Both can be downloaded from http://www.vgl.ca/Download/_main.htm. Victor Loghin VGL Consulting Inc. VictorLoghin@vgl.ca www.vgl.ca _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 21 08:10:50 2005 From: Amol Gokhale Date: Thu, 21 Jul 2005 18:40:24 +0530 Subject: [sqr-users] A bit Off Topic Hi, Is there a list for Application Designer as well?? This forum is not the right one to solve my problems on those issues. Lemme know if anybody knows of anything Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorized. Any use, distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. DISCLAIMER The information in this email is confidential and intended solely for the addressee. Access to this email by anyone else is unauthorised. Any use,distribution, copying or disclosure by any other person is strictly prohibited and may be illegal. If you received this in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of MindCraft shall be understood to be neither given nor endorsed by MindCraft. When addressed to our clients the contents in this email are subject to the terms and conditions expressed in the governing client engagement policy. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 21 16:12:39 2005 From: "radhika reddy" Date: Thu, 21 Jul 2005 16:11:33 -0500 Subject: [sqr-users] SPF Hi, My program generates a PDF format error report. But when the program abends it generated an SPF format. What is the reason for this to happen? and can i view this file. Documentation says that i can view using SPF viewer. Does this come with the SQR? I am running through Process Scheduler. Thanks. Any input would be great. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 07:23:34 2005 Subject: Re: [sqr-users] SPF From: Ramzi_Salameh@daveandbusters.com Date: Fri, 22 Jul 2005 07:20:39 -0500 --===============1892972139== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 WWVzLCB0aGUgZXhlY3V0YWJsZSBpcyBjYWxsZWQgc3Fyd3YuZXhlLiAgRGVw ZW5kaW5nIG9uIHdoaWNoIHZlcnNpb24gb2YgDQpQZW9wbGVUb29scyB5b3Un cmUgcnVubmluZywgaXQgd2lsbCByZXNpZGUgaW4gdmFyaW91cyBsb2NhdGlv bnMsIGJ1dCB3aWxsIA0KYmUgc29tZXRoaW5nIGxpa2UgW1BTX0hPTUVdXGJp blxzcXJcTVNTXEJJTldcLg0KDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KUmFtemkgU2FsYW1laA0K U2VuaW9yIFRlY2huaWNhbCBBbmFseXN0DQooMjE0KSA5MDQtMjU1MA0KDQpE YXZlIGFuZCBCdXN0ZXIncywgSW5jLg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCg0KDQoNCg0KInJh ZGhpa2EgcmVkZHkiIDxyYWRoaWthXzA1QGhvdG1haWwuY29tPg0KU2VudCBi eTogc3FyLXVzZXJzLWJvdW5jZXMrcmFtemlfc2FsYW1laD1kYXZlYW5kYnVz dGVycy5jb21Ac3FydWcub3JnDQowNy8yMS8yMDA1IDA0OjExIFBNDQpQbGVh c2UgcmVzcG9uZCB0byAiVGhpcyBsaXN0IGlzIGZvciBkaXNjdXNzaW9uIGFi b3V0IHRoZSBTUVIgZGF0YWJhc2UgDQpyZXBvcnRpbmcgICAgICAgbGFuZ3Vh Z2UgZnJvbSBIeXBlcmlvbiBTb2x1dGlvbnMuIg0KIA0KICAgICAgICBUbzog ICAgIHNxci11c2Vyc0BzcXJ1Zy5vcmcNCiAgICAgICAgY2M6IA0KICAgICAg ICBTdWJqZWN0OiAgICAgICAgW3Nxci11c2Vyc10gU1BGDQoNCg0KSGksDQoN CiAgIE15IHByb2dyYW0gZ2VuZXJhdGVzIGEgUERGIGZvcm1hdCBlcnJvciBy ZXBvcnQuIEJ1dCB3aGVuIHRoZSBwcm9ncmFtIA0KYWJlbmRzIGl0IGdlbmVy YXRlZCBhbiBTUEYgZm9ybWF0LiBXaGF0IGlzIHRoZSByZWFzb24gZm9yIHRo aXMgdG8gaGFwcGVuPyANCmFuZCBjYW4gaSB2aWV3IHRoaXMgZmlsZS4gRG9j dW1lbnRhdGlvbiBzYXlzIHRoYXQgaSBjYW4gdmlldyB1c2luZyBTUEYgDQp2 aWV3ZXIuIERvZXMgdGhpcyBjb21lIHdpdGggdGhlIFNRUj8NCg0KSSBhbSBy dW5uaW5nIHRocm91Z2ggUHJvY2VzcyBTY2hlZHVsZXIuDQoNClRoYW5rcy4g QW55IGlucHV0IHdvdWxkIGJlIGdyZWF0Lg0KDQpfX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fXw0KRlJFRSBwb3AtdXAgYmxvY2tpbmcgd2l0aCB0aGUgbmV3IE1TTiBU b29sYmFyIOKAkyBnZXQgaXQgbm93ISANCmh0dHA6Ly90b29sYmFyLm1zbi5j bGljay11cmwuY29tL2dvL29ubTAwMjAwNDE1YXZlL2RpcmVjdC8wMS8NCg0K DQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fXw0Kc3FyLXVzZXJzIG1haWxpbmcgbGlzdA0Kc3FyLXVzZXJzQHNxcnVn Lm9yZw0KaHR0cDovL3d3dy5zcXJ1Zy5vcmcvbWFpbG1hbi9saXN0aW5mby9z cXItdXNlcnMNCg0KDQo= --===============1892972139== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============1892972139==-- From sqr-users-bounces@sqrug.org Fri Jul 22 03:36:09 2005 From: "Pradnya Jawale" Date: Fri, 22 Jul 2005 14:04:52 +0530 Subject: [sqr-users] Error running SQR - SQR 5528 Hi, I am on peopleTools 8.46 and Oracle 9i.When I am running SQR, it gives me following error. (SQR 5528) ORACLE OCISessionBegin(RDBMS) error 1017 in cursor 0: ORA-01017: invalid username/password; logon denied (SQR 4701) Cannot logon to the database. SQR for PeopleSoft: Program Aborting. Any ideas about this error? Thanks in advance. Regards, Pradnya _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 06:08:22 2005 From: "the dragon" Subject: RE: [sqr-users] Error running SQR - SQR 5528 Date: Fri, 22 Jul 2005 06:07:01 -0500 I've got an idea. How about supplying a valid user name and password..... 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) ----Original Message Follows---- Hi, I am on peopleTools 8.46 and Oracle 9i.When I am running SQR, it gives me following error. (SQR 5528) ORACLE OCISessionBegin(RDBMS) error 1017 in cursor 0: ORA-01017: invalid username/password; logon denied (SQR 4701) Cannot logon to the database. SQR for PeopleSoft: Program Aborting. Any ideas about this error? Thanks in advance. Regards, Pradnya _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 07:36:01 2005 Date: Fri, 22 Jul 2005 08:35:06 -0400 From: "White . Denise" Subject: [sqr-users] re: A bit Off Topic Hi Amol, It sounds like you are looking for a PeopleSoft users group. There are lots out there! A good one is PeopleSoft Fans. You can find it at www.yahoogroups.com. Denise M. White EBS Programmer/Analyst III Enterprise Business Systems Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Thu, 21 Jul 2005 18:40:24 +0530 From: Amol Gokhale Subject: [sqr-users] A bit Off Topic To: sqr-users@sqrug.org Message-ID: =09 =09 Content-Type: text/plain; charset=3DUS-ASCII Hi, Is there a list for Application Designer as well?? This forum is not the right one to solve my problems on those issues. Lemme know if anybody knows of anything Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 07:42:44 2005 Date: Fri, 22 Jul 2005 08:41:41 -0400 From: "White . Denise" Subject: [sqr-users] RE: SPF Hi Radhika, While SQR is running, it writes the output to an .spf file. After SQR closes the file (usually at the end of the program, but you can force it to close if you use the new-report command), it converts it to .lis or .pdf. Because your program is abending before it does this conversion, you are left with the .spf file. I believe you should be able to view it with the SQR Viewer, which does come with SQR; the executable is sqrwv.exe, and should be in the same directory where you have sqrw.exe. In my case, this is on the PSoft file server, under the bin\sqr\ora\binw directory. You may have to save the .spf file out of the Process Monitor in order to have a file name to open. HTH, Denise M. White EBS Programmer/Analyst III Enterprise Business Systems Dynamics Research Corporation ------------------------------ Message: 2 Date: Thu, 21 Jul 2005 16:11:33 -0500 From: "radhika reddy" Subject: [sqr-users] SPF To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; format=3Dflowed Hi, My program generates a PDF format error report. But when the program abends it generated an SPF format. What is the reason for this to happen?=20 and can i view this file. Documentation says that i can view using SPF viewer. Does this come with the SQR? I am running through Process Scheduler. Thanks. Any input would be great. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 13:52:02 2005 From: "radhika reddy" Subject: RE: [sqr-users] RE: SPF Date: Fri, 22 Jul 2005 13:50:55 -0500 Thanks a lot for your inputs. It helped me a lot to understand about SPF. But is it better to ask the users to look in SPF viewer whenever there is an error or is it possible to convert it to PDF by forcing it to close. But the second scenario is cumbersome as there is lot of error checking in my program. Thanks again. >From: "White . Denise" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: [sqr-users] RE: SPF >Date: Fri, 22 Jul 2005 08:41:41 -0400 > >Hi Radhika, > >While SQR is running, it writes the output to an .spf file. After SQR >closes the file (usually at the end of the program, but you can force it >to close if you use the new-report command), it converts it to .lis or >.pdf. Because your program is abending before it does this conversion, >you are left with the .spf file. I believe you should be able to view >it with the SQR Viewer, which does come with SQR; the executable is >sqrwv.exe, and should be in the same directory where you have sqrw.exe. >In my case, this is on the PSoft file server, under the bin\sqr\ora\binw >directory. You may have to save the .spf file out of the Process >Monitor in order to have a file name to open. > >HTH, > >Denise M. White >EBS Programmer/Analyst III >Enterprise Business Systems >Dynamics Research Corporation >------------------------------ > >Message: 2 >Date: Thu, 21 Jul 2005 16:11:33 -0500 >From: "radhika reddy" >Subject: [sqr-users] SPF >To: sqr-users@sqrug.org >Message-ID: >Content-Type: text/plain; format=flowed > >Hi, > > My program generates a PDF format error report. But when the program >abends it generated an SPF format. What is the reason for this to >happen? >and can i view this file. Documentation says that i can view using SPF >viewer. Does this come with the SQR? > >I am running through Process Scheduler. > >Thanks. Any input would be great. > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 14:00:08 2005 Date: Fri, 22 Jul 2005 14:59:08 -0400 From: don.barclay@srs.gov Subject: RE: [sqr-users] RE: SPF Hi Radhika, Since you are using PeopleSoft, what we normally do is anytime an edit check failed, and the program is stopped, we write a line to the trace file (using a show command) indicating why the process errored out. Our users normally do not want to see the report if the process did not successfully complete. They are only interested in why the process failed -- so they look to the trace file. Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 07/22/2005 02:50:55 PM: > > Thanks a lot for your inputs. It helped me a lot to understand about SPF. > But is it better to ask the users to look in SPF viewer whenever there is an > error or is it possible to convert it to PDF by forcing it to close. But the > second scenario is cumbersome as there is lot of error checking in my > program. > > Thanks again. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 22 14:15:13 2005 Date: Fri, 22 Jul 2005 15:14:36 -0400 From: Gina Bencke Subject: RE: [sqr-users] RE: SPF I have 'tricked' the Report Manager into picking up the .PDF file even when a report fails by adding the following code prior to the STOP command. This code is added to the stdapi.sqc file (of course we cloned this sqc and renamed it). show ' ' show 'ERRORS FOUND.' new-report 'junk.lis' ! this will allow the current report file to be ! written to disk so that the Process scheduler ! and Report Manager can pick it up. stop Gina Bencke Business Analyst Information Services & Technology Cleveland State University Phone: (216) 875-9630 Fax: (216) 687-9200 -----Original Message----- From: sqr-users-bounces+gina.work=bencke.com@sqrug.org [mailto:sqr-users-bounces+gina.work=bencke.com@sqrug.org] On Behalf Of radhika reddy Sent: Friday, July 22, 2005 2:51 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] RE: SPF Thanks a lot for your inputs. It helped me a lot to understand about SPF. But is it better to ask the users to look in SPF viewer whenever there is an error or is it possible to convert it to PDF by forcing it to close. But the second scenario is cumbersome as there is lot of error checking in my program. Thanks again. >From: "White . Denise" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: [sqr-users] RE: SPF >Date: Fri, 22 Jul 2005 08:41:41 -0400 > >Hi Radhika, > >While SQR is running, it writes the output to an .spf file. After SQR >closes the file (usually at the end of the program, but you can force it >to close if you use the new-report command), it converts it to .lis or >.pdf. Because your program is abending before it does this conversion, >you are left with the .spf file. I believe you should be able to view >it with the SQR Viewer, which does come with SQR; the executable is >sqrwv.exe, and should be in the same directory where you have sqrw.exe. >In my case, this is on the PSoft file server, under the bin\sqr\ora\binw >directory. You may have to save the .spf file out of the Process >Monitor in order to have a file name to open. > >HTH, > >Denise M. White >EBS Programmer/Analyst III >Enterprise Business Systems >Dynamics Research Corporation >------------------------------ > >Message: 2 >Date: Thu, 21 Jul 2005 16:11:33 -0500 >From: "radhika reddy" >Subject: [sqr-users] SPF >To: sqr-users@sqrug.org >Message-ID: >Content-Type: text/plain; format=flowed > >Hi, > > My program generates a PDF format error report. But when the program >abends it generated an SPF format. What is the reason for this to >happen? >and can i view this file. Documentation says that i can view using SPF >viewer. Does this come with the SQR? > >I am running through Process Scheduler. > >Thanks. Any input would be great. > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 25 05:39:05 2005 Date: Mon, 25 Jul 2005 07:39:23 -0300 From: "PeterG Clark" Subject: [sqr-users] re: A bit Off Topic More specifically (for PeopleSoft Fans) http://groups.yahoo.com/group/peo= plesoft_fans/ Plus there are several other PeopleSoft related groups on Yahoo Groups. There is also a discussion board at http://www.peoplesoftfans.com/=20=20=20 >>> DWhite@drc.com 2005/07/22 09:35:06 >>> Hi Amol, It sounds like you are looking for a PeopleSoft users group. There are lots out there! A good one is PeopleSoft Fans. You can find it at www.yahoogroups.com. Denise M. White EBS Programmer/Analyst III Enterprise Business Systems Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Thu, 21 Jul 2005 18:40:24 +0530 From: Amol Gokhale Subject: [sqr-users] A bit Off Topic To: sqr-users@sqrug.org=20 Message-ID: =09 =09 Content-Type: text/plain; charset=3DUS-ASCII Hi, Is there a list for Application Designer as well?? This forum is not the right one to solve my problems on those issues. Lemme know if anybody knows of anything Amol Gokhale Consultant MindCraft Software Pvt. Ltd. 'Building excellence, delivering value..' www.mcsil.com=20 Tel :+91-22-5692-6200/ 5699-6200 Fax:+91-22-5693-9730 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 25 05:44:04 2005 Date: Mon, 25 Jul 2005 06:42:37 -0400 From: "William Atkinson" Subject: Re: [sqr-users] re: A bit Off Topic I will be out of the office until Aug. 2, 2005. I will respond to all emai= ls when I return. :o) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 26 09:19:59 2005 Date: Tue, 26 Jul 2005 10:19:14 -0400 From: Matt Rogish Subject: [sqr-users] Printing Entire Lookup Table? List members: If you reply, could you reply directly to me as well as the list since I receive a digest and sometimes it takes a while for that to end up in my inbox. Thanks! I have a lookup table which stores some code -> description combinations (somewhat more complicated than that). What I'd like to do is iterate over the entire thing so I can print out the code -> description pairs as some sort of a footnote at the bottom of the report. I can do something goofy like put all of the codes in an array and iterate through them and perform a lookup, but that's not really optimal (I might as well store the description in the array and not use the lookup table to begin with). Otherwise I have to hard code the descriptions etc. at the bottom and since the codes are dynamic then, well, that won't work either. There's no real good alternative -- I need to be able to go over the entire lookup table. Anything else is going to be sucky, but if there's no way, then I'll take advice as to which is the least sucky method. :) Thanks, -- Matt Rogish Programmer Advancement Services Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 26 09:33:05 2005 Subject: RE: [sqr-users] Printing Entire Lookup Table? Date: Tue, 26 Jul 2005 09:32:32 -0500 From: "Knapp, Richard" The SQR lookup is both a table in the database and an array in your computer's memory. The sad part is: you can't access either except through the load-lookup command. It would be more efficient to skip the load-lookup, select your pairs from the db using the same logic used to load the lookup table and load these into an array that you can traverse at will. Chances are that if your lookup data set is small enough to print at the end of the report, the load-lookup mechanism is not an efficient way to do the lookup anyway. (Just guessing here about the size of the lookup table/array.) Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Matt Rogish Sent: Tuesday, July 26, 2005 9:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing Entire Lookup Table? List members: If you reply, could you reply directly to me as well as the list since I receive a digest and sometimes it takes a while for that to end up in my inbox. Thanks! I have a lookup table which stores some code -> description combinations (somewhat more complicated than that). What I'd like to do is iterate over=20 the entire thing so I can print out the code -> description pairs as some=20 sort of a footnote at the bottom of the report. I can do something goofy like put all of the codes in an array and iterate=20 through them and perform a lookup, but that's not really optimal (I might=20 as well store the description in the array and not use the lookup table to=20 begin with). Otherwise I have to hard code the descriptions etc. at the=20 bottom and since the codes are dynamic then, well, that won't work either. There's no real good alternative -- I need to be able to go over the entire=20 lookup table. Anything else is going to be sucky, but if there's no way, then I'll take advice as to which is the least sucky method. :) Thanks, -- Matt Rogish Programmer Advancement Services Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 26 09:56:46 2005 Date: Tue, 26 Jul 2005 09:56:01 -0500 From: Mac Sandridge Subject: Re: [sqr-users] Printing Entire Lookup Table? Knapp, Richard wrote: >The SQR lookup is both a table in the database and an array in your >computer's memory. The sad part is: you can't access either except >through the load-lookup command. It would be more efficient to skip the >load-lookup, select your pairs from the db using the same logic used to >load the lookup table and load these into an array that you can traverse >at will. Chances are that if your lookup data set is small enough to >print at the end of the report, the load-lookup mechanism is not an >efficient way to do the lookup anyway. (Just guessing here about the >size of the lookup table/array.) > > I agree with Richard but have one suggestion, build an index string for finding the values. Basically, take the size of your key and use that to pad the key to the max length and add a value that cannot appear in the key. I often use \ | or ; to do this. Then, you find the position of the look-up key in the string with the separator concatenated to find the array index to use (based on 0). For example: let $StateIndexString = 'AL;AK;AZ;' ! Obviously, continuing for all 50 values, or you can build this when populating the array so if you have a key value in $StateCode let $FindState = rpad($StateCode,2,' ') || ';' let #StateIndex = instr($StateCode, $StateIndexString) / 3 ! The length of the key and separater. You may have to truncate this number to get the index right. Please forgive me if the code is not perfect, I do not have my references here and I no longer work with SQR (such a shame too!) so I am not exactly sure of the syntax. Good luck! Mac _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 26 13:20:57 2005 Date: Tue, 26 Jul 2005 14:20:09 -0400 From: Matt Rogish Subject: Re: [sqr-users] Printing Entire Lookup Table? Richard and Mac and everyone else: Thanks for the replies. The load-lookup usage is actually a little more annoying than the simple use to eliminate a small table join (unfortunately). The use of the lookup in this case actually saves a bunch of coding elsewhere and I was hoping it would save me time in the footnote process as well (kill another bird with the same stone). As the footnote is printed on the bottom of every page, executing one SQL statement over and over doesn't seem like a great idea. So, since it seems impossible to access a lookup table directly, from everyone's comments the "best" option is to create an array which duplicates the lookup table and I simply run through that every time. Thanks again, -- Matt At 10:56 AM 7/26/2005, Mac Sandridge wrote: >Knapp, Richard wrote: > >>The SQR lookup is both a table in the database and an array in your >>computer's memory. The sad part is: you can't access either except >>through the load-lookup command. It would be more efficient to skip the >>load-lookup, select your pairs from the db using the same logic used to >>load the lookup table and load these into an array that you can traverse >>at will. Chances are that if your lookup data set is small enough to >>print at the end of the report, the load-lookup mechanism is not an >>efficient way to do the lookup anyway. (Just guessing here about the >>size of the lookup table/array.) >> >I agree with Richard but have one suggestion, build an index string for >finding the values. Basically, take the size of your key and use that to >pad the key to the max length and add a value that cannot appear in the >key. I often use \ | or ; to do this. Then, you find the position of the >look-up key in the string with the separator concatenated to find the >array index to use (based on 0). For example: > >let $StateIndexString = 'AL;AK;AZ;' ! Obviously, continuing for all 50 >values, or you can build this when populating the array > >so if you have a key value in $StateCode > >let $FindState = rpad($StateCode,2,' ') || ';' >let #StateIndex = instr($StateCode, $StateIndexString) / 3 ! The length of >the key and separater. You may have to truncate this number to get the >index right. > >Please forgive me if the code is not perfect, I do not have my references >here and I no longer work with SQR (such a shame too!) so I am not exactly >sure of the syntax. > >Good luck! >Mac > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 26 10:40:03 2005 Subject: RE: [sqr-users] Printing Entire Lookup Table? Date: Tue, 26 Jul 2005 10:38:52 -0500 From: "James Womeldorf" Matt, This may not be exactly what you are looking for but it does allow iteratin= g through a LOAD-LOOKUP (in Oracle at least). LET $WHERE =3D 'ROWNUM < 100' Load-Lookup NAME =3D TEST Table =3D PS_DEPARTMENT_TBL Key =3D ROWNUM Return_value =3DDESCR||'|'||DESCRSHORT WHERE =3D $WHERE LET #COUNTER =3D 1 WHILE 1 MOVE #COUNTER TO $X 9999999999999999 LET $X =3D LTRIM($X,' ') LOOKUP TEST $X $Z=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 IF $Z =3D '' BREAK END-IF SHOW $X ' ' $Z LET #COUNTER =3D #COUNTER + 1 END-WHILE Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of Matt Rogish Sent: Tuesday, July 26, 2005 9:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing Entire Lookup Table? List members: If you reply, could you reply directly to me as well as the list since I=20 receive a digest and sometimes it takes a while for that to end up in my=20 inbox. Thanks! I have a lookup table which stores some code -> description combinations=20 (somewhat more complicated than that). What I'd like to do is iterate over= =20 the entire thing so I can print out the code -> description pairs as some= =20 sort of a footnote at the bottom of the report. I can do something goofy like put all of the codes in an array and iterate= =20 through them and perform a lookup, but that's not really optimal (I might= =20 as well store the description in the array and not use the lookup table to= =20 begin with). Otherwise I have to hard code the descriptions etc. at the=20 bottom and since the codes are dynamic then, well, that won't work either. There's no real good alternative -- I need to be able to go over the entire= =20 lookup table. Anything else is going to be sucky, but if there's no way,=20 then I'll take advice as to which is the least sucky method. :) Thanks, -- Matt Rogish Programmer Advancement Services Miami University _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 29 16:29:00 2005 From: "radhika reddy" Date: Fri, 29 Jul 2005 16:27:58 -0500 Subject: [sqr-users] Date comparision Hi, I have to check whether the $load-dt is less than $Union-date( '1JAN2006' ) which is always constant. When my $load-dt is '17FEB2005' it is not going into the IF loop but when I changed my $Union-date to '1Mar2006' cursor is going into the IF loop. Why is it that it is not looking at the year? Here $load-dt = ' 02/17/2005' Let $load-dt = edit(strtodate($load-date,'DD-MON-YYYY'),'MM/DD/YYYY') Let $Union-date = edit(strtodate('01-JAN-2006','DD-MON-YYYY'),'MM/DD/YYYY') IF $load-dt < $Union-date show 'enter ben.planRSP' Let $benefit_plan = 'RSP' End-If Any help would be great. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 29 17:33:43 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] Date comparision Date: Fri, 29 Jul 2005 15:33:32 -0700 Strtodate converts a string that looks like a date to a date value. Edit converts it back to a string. If you want to work with strings, you have to format them like 'YYYY-MM-DD'. But you can also work with dates, starting in SQR version 6. You would have to declare the variables as date variables first. begin-setup declare-variable date $date1 $date2 end-declare end-setup let $date1 = strtodate($load-date, 'DD-MON-YYYY') let $date2 = strtodate('01-JAN-2006', 'DD-MON-YYYY') if $date1 < $date2 .... -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Friday, July 29, 2005 2:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Date comparision Hi, I have to check whether the $load-dt is less than $Union-date( '1JAN2006' ) which is always constant. When my $load-dt is '17FEB2005' it is not going into the IF loop but when I changed my $Union-date to '1Mar2006' cursor is going into the IF loop. Why is it that it is not looking at the year? Here $load-dt = ' 02/17/2005' Let $load-dt = edit(strtodate($load-date,'DD-MON-YYYY'),'MM/DD/YYYY') Let $Union-date = edit(strtodate('01-JAN-2006','DD-MON-YYYY'),'MM/DD/YYYY') IF $load-dt < $Union-date show 'enter ben.planRSP' Let $benefit_plan = 'RSP' End-If Any help would be great. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 10:59:38 2005 From: "radhika reddy" Subject: RE: [sqr-users] Date comparision Date: Mon, 01 Aug 2005 10:58:32 -0500 Thanks Steve. Both worked i.e., comparing strings and also dates. >From: "Alexander, Steve" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Date comparision >Date: Fri, 29 Jul 2005 15:33:32 -0700 > >Strtodate converts a string that looks like a date to a date value. Edit >converts it back to a string. If you want to work with strings, you have >to >format them like 'YYYY-MM-DD'. But you can also work with dates, starting >in SQR version 6. You would have to declare the variables as date >variables >first. > >begin-setup >declare-variable >date $date1 $date2 >end-declare >end-setup > >let $date1 = strtodate($load-date, 'DD-MON-YYYY') >let $date2 = strtodate('01-JAN-2006', 'DD-MON-YYYY') >if $date1 < $date2 >.... > > >-----Original Message----- >From: radhika reddy [mailto:radhika_05@hotmail.com] >Sent: Friday, July 29, 2005 2:28 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Date comparision > > >Hi, > > I have to check whether the $load-dt is less than $Union-date( >'1JAN2006' ) which is always constant. When my $load-dt is '17FEB2005' it >is not going into the IF loop but when I changed my $Union-date to >'1Mar2006' cursor is going into the IF loop. > >Why is it that it is not looking at the year? > >Here $load-dt = ' 02/17/2005' >Let $load-dt = edit(strtodate($load-date,'DD-MON-YYYY'),'MM/DD/YYYY') >Let $Union-date = edit(strtodate('01-JAN-2006','DD-MON-YYYY'),'MM/DD/YYYY') > > IF $load-dt < $Union-date > > show 'enter ben.planRSP' > Let $benefit_plan = 'RSP' > > End-If > >Any help would be great. > >Thanks. > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 13:44:01 2005 From: "Anu Bagde" Date: Mon, 01 Aug 2005 18:42:53 +0000 Subject: [sqr-users] Crystal report question Hello all, I am modifying a crystal report and saving it on my local machine. Is there any way I can set the path in configuration manager --> process schedular, so that when i run crystal report, it will pick up my customized report from my local machine? Thanks, Anu _________________________________________________________________ Formula One fan? http://server1.msn.co.in/sp05/tataracing/ Get news, wallpapers and photos of Narain Karthikeyan. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 14:15:38 2005 From: "the dragon" Subject: RE: [sqr-users] Crystal report question Date: Mon, 01 Aug 2005 14:14:35 -0500 I may be wrong, but I believe the crystal report repository and executable have to be accessible from the process scheduler. 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) ----Original Message Follows---- Hello all, I am modifying a crystal report and saving it on my local machine. Is there any way I can set the path in configuration manager --> process schedular, so that when i run crystal report, it will pick up my customized report from my local machine? Thanks, Anu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 14:20:04 2005 Subject: RE: [sqr-users] Crystal report question Date: Mon, 1 Aug 2005 14:19:22 -0500 From: "Turner, Ivan" If you have crystal on the pc, which isn't hard to do if you have PS, you can run from the c: drive. -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of the dragon Sent: Monday, August 01, 2005 3:15 PM To: sqr-users@sqrug.org Cc: anubagde@hotmail.c Subject: RE: [sqr-users] Crystal report question I may be wrong, but I believe the crystal report repository and executable=20 have to be accessible from the process scheduler. 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. 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=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello all, I am modifying a crystal report and saving it on my local machine. Is there=20 any way I can set the path in configuration manager --> process schedular,=20 so that when i run crystal report, it will pick up my customized report from=20 my local machine? Thanks, Anu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 14:28:14 2005 From: "Anu Bagde" Subject: RE: [sqr-users] Crystal report question Date: Mon, 01 Aug 2005 19:27:06 +0000 Hi, I have crystal on my PC. Can you please tell me step by step how to do it? Thanks for all your help. Regards, Anu >From: "Turner, Ivan" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Crystal report question >Date: Mon, 1 Aug 2005 14:19:22 -0500 > >If you have crystal on the pc, which isn't hard to do if you have PS, >you can run from the c: drive. > >-----Original Message----- >From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org >[mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of >the dragon >Sent: Monday, August 01, 2005 3:15 PM >To: sqr-users@sqrug.org >Cc: anubagde@hotmail.c >Subject: RE: [sqr-users] Crystal report question > >I may be wrong, but I believe the crystal report repository and >executable >have to be accessible from the process scheduler. > >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) > >----Original Message Follows---- > >Hello all, > >I am modifying a crystal report and saving it on my local machine. Is >there >any way I can set the path in configuration manager --> process >schedular, >so that when i run crystal report, it will pick up my customized report >from >my local machine? > >Thanks, > >Anu > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Post FREE Classifieds. http://www.sulekha.com/classifieds/cllist.aspx?nma=IN&ref=msn Reach out to over a million NRIs. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 09:25:02 2005 Date: Mon, 1 Aug 2005 09:17:27 -0500 From: Chandra Yarlagadda Subject: Re: [sqr-users] Date comparision Do the date difference function found in delivered datetime.sqc/datemath.sqc and then compare return code. On 7/29/05, radhika reddy wrote: > Hi, >=20 > I have to check whether the $load-dt is less than $Union-date( > '1JAN2006' ) which is always constant. When my $load-dt is '17FEB2005' it > is not going into the IF loop but when I changed my $Union-date to > '1Mar2006' cursor is going into the IF loop. >=20 > Why is it that it is not looking at the year? >=20 > Here $load-dt =3D ' 02/17/2005' > Let $load-dt =3D edit(strtodate($load-date,'DD-MON-YYYY'),'MM/DD/YYYY') > Let $Union-date =3D edit(strtodate('01-JAN-2006','DD-MON-YYYY'),'MM/DD/YY= YY') >=20 > IF $load-dt < $Union-date >=20 > show 'enter ben.planRSP' > Let $benefit_plan =3D 'RSP' >=20 > End-If >=20 > Any help would be great. >=20 > Thanks. >=20 > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >=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 Aug 01 00:00:40 2005 Date: Mon, 1 Aug 2005 00:00:03 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.21 $ $Date: 2004-03-04 02:47:15-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 01 15:23:13 2005 From: Tammy.Fuller@axa-financial.com Date: Mon, 1 Aug 2005 16:21:30 -0400 Subject: [sqr-users] Retro general deductions question I realize that this is an sqr users list but I thought I would throw out this question. We have outsourced our benefits processing and now the benefits clients are struggling with retro active deduction and refund processing. They don't want to (and it doesn't seem to work) when they try using retro ben (obviously for benefit deductions). Have any of your companies outsourced benefits processing and been asked to 'automate' retro general deduction processing? If so, did you create your own retro process? thanks. Tammy Fuller | Information Technology | Axa Financial | Office 315-477-3630 | Fax 315-477-2815 | Tammy.Fuller@Axa-Financial.com ----------------------------------------- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Confidentiality Note: This message and any attachments may contain legally privileged and/or confidential information. Any unauthorized disclosure, use or dissemination of this e-mail message or its contents, either in whole or in part, is prohibited. If you are not the intended recipient of this e-mail message, kindly notify the sender and then destroy it. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 02 07:32:50 2005 Date: Tue, 2 Aug 2005 05:31:23 -0700 (PDT) From: Alma Luckett Subject: Re: [sqr-users] Retro general deductions question Is this the same Tammy Fuller that worked at Cornell? Tammy.Fuller@axa-financial.com wrote: I realize that this is an sqr users list but I thought I would throw out this question. We have outsourced our benefits processing and now the benefits clients are struggling with retro active deduction and refund processing. They don't want to (and it doesn't seem to work) when they try using retro ben (obviously for benefit deductions). Have any of your companies outsourced benefits processing and been asked to 'automate' retro general deduction processing? If so, did you create your own retro process? thanks. Tammy Fuller | Information Technology | Axa Financial | Office 315-477-3630 | Fax 315-477-2815 | Tammy.Fuller@Axa-Financial.com ----------------------------------------- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Confidentiality Note: This message and any attachments may contain legally privileged and/or confidential information. Any unauthorized disclosure, use or dissemination of this e-mail message or its contents, either in whole or in part, is prohibited. If you are not the intended recipient of this e-mail message, kindly notify the sender and then destroy it. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 02 13:13:15 2005 Subject: RE: [sqr-users] Retro general deductions question Date: Tue, 2 Aug 2005 14:12:05 -0400 From: "Beller, Jay" As long as the provider is feeding you elections, you should be able to hav= e PeopleSoft generate current and retro deductions. It's like using the web= or a VRU to capture the election and PeopleSoft does the calculations. If the provider is only supplying the deduction amount and it's being treat= ed as a general deduction, then there's no easy way to generate retro deduc= tions. -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Tammy.Fuller@axa-financial.com Sent: Monday, August 01, 2005 4:22 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: sqr-users@sqrug.org; sqr-users-bounces+tammy.fuller=3Daxa-financial.com@sqrug.org Subject: [sqr-users] Retro general deductions question I realize that this is an sqr users list but I thought I would throw out=20 this question. We have outsourced our benefits processing and now the=20 benefits clients are struggling with retro active deduction and refund=20 processing. They don't want to (and it doesn't seem to work) when they=20 try using retro ben (obviously for benefit deductions). Have any of your= =20 companies outsourced benefits processing and been asked to 'automate'=20 retro general deduction processing? If so, did you create your own retro= =20 process? thanks. =20 Tammy Fuller | Information Technology | Axa Financial | Office 315-477-3630= | Fax 315-477-2815 | Tammy.Fuller@Axa-Financial.com ----------------------------------------- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Confidentiality Note: This message and any attachments may contain legally privileged and/or confidential information. Any unauthorized disclosure, use or dissemination of this e-mail message or its contents, either in whole or in part, is prohibited. If you are not the intended recipient of this e-mail message, kindly notify the sender and then destroy it. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 02 09:47:26 2005 Date: Tue, 2 Aug 2005 07:46:12 -0700 (PDT) From: Gowri Srinivas Subject: [sqr-users] Using parenthesis in a dynamic where cond. Can anybody tell me how to generate a dynamic where condition in which I need to incorporate parenthesis between AND statements? Here's the condition without the parenthesis: LET $DATE_RANGE = 'and A.SHIP_DATE <= '''|| $ToDate || '''' || ' AND A.SHIP_DATE >= '''|| $FromDate ||'''' THis should look like select * from ps_zsc_ld_seq A where (A.SHIP_DATE >= '01-AUG-05' and A.ADD_DTTM >= '01-AUG-05') AND (A.SHIP_DATE <= '31-AUG-05' and A.ADD_DTTM <= '31-AUG-05') Thanks very much. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 02 10:52:10 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] Using parenthesis in a dynamic where cond. Date: Tue, 2 Aug 2005 08:51:55 -0700 In your example you don't need parentheses. Generally, you only need them when you're combining "and" and "or": where (a and b) or (c and d) where (a or b) and (c or d) Even here, the precedence between "and" and "or" makes the parentheses unnecessary in one of these cases, but I can never remember which one, so I use them anyway. If you really want to use parentheses here, go ahead. Put them in the literal like any other character: LET $DATE_RANGE = 'and (A.SHIP_DATE <= '''|| $ToDate || '''' || ' AND A.SHIP_DATE >= '''|| $FromDate ||''')' -----Original Message----- From: Gowri Srinivas [mailto:gow_srinivas@yahoo.com] Sent: Tuesday, August 02, 2005 7:46 AM To: sqr-users@sqrug.org Subject: [sqr-users] Using parenthesis in a dynamic where cond. Can anybody tell me how to generate a dynamic where condition in which I need to incorporate parenthesis between AND statements? Here's the condition without the parenthesis: LET $DATE_RANGE = 'and A.SHIP_DATE <= '''|| $ToDate || '''' || ' AND A.SHIP_DATE >= '''|| $FromDate ||'''' THis should look like select * from ps_zsc_ld_seq A where (A.SHIP_DATE >= '01-AUG-05' and A.ADD_DTTM >= '01-AUG-05') AND (A.SHIP_DATE <= '31-AUG-05' and A.ADD_DTTM <= '31-AUG-05') Thanks very much. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 03 06:47:03 2005 Subject: RE: [sqr-users] Using parenthesis in a dynamic where cond. Date: Wed, 3 Aug 2005 17:15:35 +0530 From: "Vikas.Vernwal" Hi There Use it as: LET $DATE_RANGE =3D 'and A.SHIP_DATE <=3D '''|| $ToDate || '''' || ' AND A.SHIP_DATE >=3D '''|| $FromDate ||'''' Then select * from ps_zsc_ld_seq A=20 where (A.SHIP_DATE >=3D '01-AUG-05' and A.ADD_DTTM >=3D '01-AUG-05') [$DATE_RANGE] Regards, Vikas Vernwal Rsystems International Ltd. Noida. 201301 -----Original Message----- From: Gowri Srinivas [mailto:gow_srinivas@yahoo.com]=20 Sent: Tuesday, August 02, 2005 8:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using parenthesis in a dynamic where cond. Can anybody tell me how to generate a dynamic where condition in which I need to incorporate parenthesis between AND statements? Here's the condition without the parenthesis: LET $DATE_RANGE =3D 'and A.SHIP_DATE <=3D '''|| $ToDate || '''' || ' AND A.SHIP_DATE >=3D '''|| $FromDate ||''''=20 =20 THis should look like=20 select * from ps_zsc_ld_seq A=20 where (A.SHIP_DATE >=3D '01-AUG-05' and A.ADD_DTTM >=3D '01-AUG-05') AND (A.SHIP_DATE <=3D '31-AUG-05' and A.ADD_DTTM <=3D '31-AUG-05') Thanks very much. =09=09 --------------------------------- Start your day with Yahoo! - make it your home page=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 03 07:45:32 2005 Date: Wed, 3 Aug 2005 08:44:23 -0400 From: "White . Denise" Subject: [sqr-users] RE: Using parenthesis in a dynamic where cond. "And" takes precedence over "or"; in other words, if there are no parentheses, "and" will get executed first. So the one that doesn't need parentheses is "where (a and b) or (c and d)". "where a and b or c and d" will produce the same result. If you leave the parentheses out of "where (a or b) and (c or d)", you would end up with the equivalent of "where a or (b and c) or d", which is not what you want, so you need parentheses in this case. Just imagine that there are invisible parentheses around every "and" clause and you will be all set! To make up a rule that's easy to remember, you could also keep in mind that "and" is alphabetically before "or", so it comes first. Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 3 Date: Tue, 2 Aug 2005 08:51:55 -0700=20 From: "Alexander, Steve" Subject: RE: [sqr-users] Using parenthesis in a dynamic where cond. To: "'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.'" Message-ID: =09 <62AFC819CCF3D611827A00065B3F798106BA8CF7@sj-exchange.ci.sj.ca.us> Content-Type: text/plain; charset=3Diso-8859-1 In your example you don't need parentheses. Generally, you only need them when you're combining "and" and "or": where (a and b) or (c and d) where (a or b) and (c or d) Even here, the precedence between "and" and "or" makes the parentheses unnecessary in one of these cases, but I can never remember which one, so I use them anyway. If you really want to use parentheses here, go ahead. Put them in the literal like any other character: LET $DATE_RANGE =3D 'and (A.SHIP_DATE <=3D '''|| $ToDate || '''' || ' AND A.SHIP_DATE >=3D '''|| $FromDate ||''')' -----Original Message----- From: Gowri Srinivas [mailto:gow_srinivas@yahoo.com] Sent: Tuesday, August 02, 2005 7:46 AM To: sqr-users@sqrug.org Subject: [sqr-users] Using parenthesis in a dynamic where cond. Can anybody tell me how to generate a dynamic where condition in which I need to incorporate parenthesis between AND statements? Here's the condition without the parenthesis: LET $DATE_RANGE =3D 'and A.SHIP_DATE <=3D '''|| $ToDate || '''' || ' AND A.SHIP_DATE >=3D '''|| $FromDate ||''''=20 =20 THis should look like=20 select * from ps_zsc_ld_seq A=20 where (A.SHIP_DATE >=3D '01-AUG-05' and A.ADD_DTTM >=3D '01-AUG-05') AND (A.SHIP_DATE <=3D '31-AUG-05' and A.ADD_DTTM <=3D '31-AUG-05') Thanks very much. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 03 12:10:53 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Using parenthesis in a dynamic where cond. Date: Wed, 3 Aug 2005 10:10:17 -0700 That's good to know, Denise. Thanks. -----Original Message----- From: White . Denise [mailto:DWhite@drc.com] Sent: Wednesday, August 03, 2005 5:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: Using parenthesis in a dynamic where cond. "And" takes precedence over "or"; in other words, if there are no parentheses, "and" will get executed first. So the one that doesn't need parentheses is "where (a and b) or (c and d)". "where a and b or c and d" will produce the same result. If you leave the parentheses out of "where (a or b) and (c or d)", you would end up with the equivalent of "where a or (b and c) or d", which is not what you want, so you need parentheses in this case. Just imagine that there are invisible parentheses around every "and" clause and you will be all set! To make up a rule that's easy to remember, you could also keep in mind that "and" is alphabetically before "or", so it comes first. Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 3 Date: Tue, 2 Aug 2005 08:51:55 -0700 From: "Alexander, Steve" Subject: RE: [sqr-users] Using parenthesis in a dynamic where cond. To: "'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.'" Message-ID: <62AFC819CCF3D611827A00065B3F798106BA8CF7@sj-exchange.ci.sj.ca.us> Content-Type: text/plain; charset=iso-8859-1 In your example you don't need parentheses. Generally, you only need them when you're combining "and" and "or": where (a and b) or (c and d) where (a or b) and (c or d) Even here, the precedence between "and" and "or" makes the parentheses unnecessary in one of these cases, but I can never remember which one, so I use them anyway. If you really want to use parentheses here, go ahead. Put them in the literal like any other character: LET $DATE_RANGE = 'and (A.SHIP_DATE <= '''|| $ToDate || '''' || ' AND A.SHIP_DATE >= '''|| $FromDate ||''')' -----Original Message----- From: Gowri Srinivas [mailto:gow_srinivas@yahoo.com] Sent: Tuesday, August 02, 2005 7:46 AM To: sqr-users@sqrug.org Subject: [sqr-users] Using parenthesis in a dynamic where cond. Can anybody tell me how to generate a dynamic where condition in which I need to incorporate parenthesis between AND statements? Here's the condition without the parenthesis: LET $DATE_RANGE = 'and A.SHIP_DATE <= '''|| $ToDate || '''' || ' AND A.SHIP_DATE >= '''|| $FromDate ||'''' THis should look like select * from ps_zsc_ld_seq A where (A.SHIP_DATE >= '01-AUG-05' and A.ADD_DTTM >= '01-AUG-05') AND (A.SHIP_DATE <= '31-AUG-05' and A.ADD_DTTM <= '31-AUG-05') Thanks very much. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 04 12:12:00 2005 Date: Thu, 4 Aug 2005 10:09:48 -0700 (GMT-07:00) From: Long Haired Frique Subject: [sqr-users] Out of Memory on Brio Portal Portal 7 SQR 6.2 Oracle 9 I have an SQR program that runs fine on my desktop. It will output 1000 pages in about 2.5 minutes. When it runs on the portal it runs out of memory. During the work day it can successfully produce about 250 pages. After work I have seen it do 700 pages. I don't know if it could do more. What, other than a bigger machine, could be done to the portal or the program to reduce memory usage. What can I tell you about the program or portal configuration that will help you answer the question. Sorry to be so vague but I know so little about this topic that I am not sure what specifcs will help. Andrew :) p.s. Hi, Paul _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 04 12:26:40 2005 Subject: RE: [sqr-users] Out of Memory on Brio Portal Date: Thu, 4 Aug 2005 13:25:23 -0400 From: "Peter Burton" Andrew, If you are running SQR on a Unix box you need to see how much memory is allocated for a process. Some DBAs limit the amount of memory a process can access so a single process cannot consume all the memory on a machine. Also look at how much virtual memory is available on the mamchine. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Long Haired Frique Sent: Thursday, August 04, 2005 1:10 PM To: rm-users@sqrug.org; sqr-users@sqrug.org Subject: [sqr-users] Out of Memory on Brio Portal Portal 7 SQR 6.2 Oracle 9 I have an SQR program that runs fine on my desktop. It will output 1000 pages in=20 about 2.5 minutes. When it runs on the portal it runs out of memory. During the=20 work day it can successfully produce about 250 pages. After work I have seen it=20 do 700 pages. I don't know if it could do more.=20=20 What, other than a bigger machine, could be done to the portal or the program to reduce memory usage. What can I tell you about the program or portal configuration that will help you answer the question. Sorry to be so vague but I know so little about this topic that I am not sure what specifcs will help. Andrew :) p.s. Hi, Paul _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 05 09:46:34 2005 Date: Fri, 05 Aug 2005 10:49:38 -0400 From: "Jolene Osei" Subject: [sqr-users] CLOBs Hi Has anyone worked with the tables having CLOB fields. I am creating a report where by I have to extract from a CLOB field. Has anyone worked with this kind of a field? I am working with Banner tables and this CLOB issue is new to us. Please help if you can Jolene _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 05 11:48:23 2005 Date: Fri, 05 Aug 2005 08:47:49 -0800 From: Melody Sayles Subject: Re: [sqr-users] CLOBs What's your question? I've had two recent report projects that used CLOB's. Melody Jolene Osei wrote: > Hi > > Has anyone worked with the tables having CLOB fields. I am creating a > report where by I have to extract from a CLOB field. Has anyone worked > with this kind of a field? I am working with Banner tables and this > CLOB issue is new to us. > > Please help if you can > > Jolene > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 08 08:26:18 2005 Date: Mon, 08 Aug 2005 09:29:11 -0400 From: "Jolene Osei" Subject: Re: [sqr-users] CLOBs Morning Melody Thanks for the reply. I want to extract the course descriptions in the SCBDESC table. I have to order the report by subject and course. I have a problem of the description not wrapping around correctly. This is the example that I am using as a test. Select to_char(scbdesc_text_narrative) "Course Description" from scbdesc where scbdesc_subj_code = 'ACC' and scbdesc_crse_numb = '100'; Course Description -------------------------------------------------------------------------------- This is an introductory course to the Accounting cycle. The course is designed t o provide the student with a basic understanding of fundamental bookkeeping conc epts and procedures. Emphasis is placed on procedures, techniques, and applicati ons of generally accepted accounting principles. This course will meet the need s of the small business owner or employee. It is required for Accounting majors. **************************************************** Hope to hear from you Melody. I have run out of ideas. Thanks Jolene >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> What's your question? I've had two recent report projects that used CLOB's. Melody Jolene Osei wrote: > Hi > > Has anyone worked with the tables having CLOB fields. I am creating a > report where by I have to extract from a CLOB field. Has anyone worked > with this kind of a field? I am working with Banner tables and this > CLOB issue is new to us. > > Please help if you can > > Jolene > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 08 12:50:08 2005 Date: Mon, 08 Aug 2005 09:49:24 -0800 From: Melody Sayles Subject: Re: [sqr-users] CLOBs Jolene, This is what I came up with. I hope it helps. Melody Sayles Univ of Alaska > In mainline: > Do Get-Text > ----- > begin-procedure Get-Text > > Let $comments = '' > Let $commment_flag = 'N' > Begin-SELECT > DISTINCT DBMS_LOB.Substr(sor2ppt_text,4000,1) &comments > Let $comments = &comments > If $comments <> '' > Let $commment_flag = 'Y' > End-if > FROM sor2ppt > where sor2ppt_pidm = $control_pidm > and sor2ppt_contact_date = $contact_date > and sor2ppt_contact_from_time = $contact_from_time > end-select > > end-procedure Get-Text > --- > > Print student procedure-- > Let #Number_Lines = wrapdepth($comments, 36, 1, '', '') > Print $comments (,96) Wrap 36 #Number_Lines > Jolene Osei wrote: > Morning Melody > > Thanks for the reply. I want to extract the course descriptions in the > SCBDESC table. I have to order the report by subject and course. > I have a problem of the description not wrapping around correctly. This > is the example that I am using as a test. > > Select to_char(scbdesc_text_narrative) "Course Description" > from scbdesc > where scbdesc_subj_code = 'ACC' > and scbdesc_crse_numb = '100'; > > Course Description > -------------------------------------------------------------------------------- > This is an introductory course to the Accounting cycle. The course is > designed t > o provide the student with a basic understanding of fundamental > bookkeeping conc > epts and procedures. Emphasis is placed on procedures, techniques, and > applicati > ons of generally accepted accounting principles. This course will meet > the need > s of the small business owner or employee. It is required for > Accounting majors. > > **************************************************** > > Hope to hear from you Melody. I have run out of ideas. Thanks > > Jolene > > > > >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> > What's your question? I've had two recent report projects that used > CLOB's. > > Melody > > Jolene Osei wrote: > > > Hi > > > > Has anyone worked with the tables having CLOB fields. I am creating > a > > report where by I have to extract from a CLOB field. Has anyone > worked > > with this kind of a field? I am working with Banner tables and this > > CLOB issue is new to us. > > > > Please help if you can > > > > Jolene > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 08 09:18:41 2005 Subject: RE: [sqr-users] CLOBs Date: Mon, 8 Aug 2005 09:18:03 -0500 From: "Knapp, Richard" I dealt with this problem once but can't find the code. I think all that was necessary was to get the clob into a variable and then split it "manually" into the line lengths needed. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Jolene Osei Sent: Monday, August 08, 2005 8:29 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] CLOBs Morning Melody Thanks for the reply. I want to extract the course descriptions in the SCBDESC table. I have to order the report by subject and course. I have a problem of the description not wrapping around correctly. This is the example that I am using as a test. Select to_char(scbdesc_text_narrative) "Course Description" from scbdesc where scbdesc_subj_code =3D 'ACC' and scbdesc_crse_numb =3D '100'; Course Description ------------------------------------------------------------------------ -------- This is an introductory course to the Accounting cycle. The course is designed t o provide the student with a basic understanding of fundamental bookkeeping conc epts and procedures. Emphasis is placed on procedures, techniques, and applicati ons of generally accepted accounting principles. This course will meet the need s of the small business owner or employee. It is required for Accounting majors. **************************************************** Hope to hear from you Melody. I have run out of ideas. Thanks=20 Jolene =20 >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> What's your question? I've had two recent report projects that used CLOB's. Melody Jolene Osei wrote: > Hi > > Has anyone worked with the tables having CLOB fields. I am creating a > report where by I have to extract from a CLOB field. Has anyone worked > with this kind of a field? I am working with Banner tables and this > CLOB issue is new to us. > > Please help if you can > > Jolene > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 08 10:56:51 2005 From: Elaine Liu Subject: RE: [sqr-users] CLOBs Date: Mon, 8 Aug 2005 10:51:56 -0500 Hi Richard, I am current leaning/assistant an DBA, while creating table space and new database, we are wondering where those table space store into. I would appreciate any input from you. We are using DB2. Thank you, Elaine -----Original Message----- From: sqr-users-bounces+eliu=icc.edu@sqrug.org [mailto:sqr-users-bounces+eliu=icc.edu@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, August 08, 2005 9:18 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] CLOBs I dealt with this problem once but can't find the code. I think all that was necessary was to get the clob into a variable and then split it "manually" into the line lengths needed. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Jolene Osei Sent: Monday, August 08, 2005 8:29 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] CLOBs Morning Melody Thanks for the reply. I want to extract the course descriptions in the SCBDESC table. I have to order the report by subject and course. I have a problem of the description not wrapping around correctly. This is the example that I am using as a test. Select to_char(scbdesc_text_narrative) "Course Description" from scbdesc where scbdesc_subj_code = 'ACC' and scbdesc_crse_numb = '100'; Course Description ------------------------------------------------------------------------ -------- This is an introductory course to the Accounting cycle. The course is designed t o provide the student with a basic understanding of fundamental bookkeeping conc epts and procedures. Emphasis is placed on procedures, techniques, and applicati ons of generally accepted accounting principles. This course will meet the need s of the small business owner or employee. It is required for Accounting majors. **************************************************** Hope to hear from you Melody. I have run out of ideas. Thanks Jolene >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> What's your question? I've had two recent report projects that used CLOB's. Melody Jolene Osei wrote: > Hi > > Has anyone worked with the tables having CLOB fields. I am creating a > report where by I have to extract from a CLOB field. Has anyone worked > with this kind of a field? I am working with Banner tables and this > CLOB issue is new to us. > > Please help if you can > > Jolene > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 08 14:01:54 2005 Subject: RE: [sqr-users] CLOBs Date: Mon, 8 Aug 2005 14:01:20 -0500 From: "Knapp, Richard" Hi Elaine, I'm sorry. Almost all my experience is with Oracle. In Oracle there are tablespace files that can be increased. Hoping this will help. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Elaine Liu Sent: Monday, August 08, 2005 10:52 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] CLOBs Hi Richard, I am current leaning/assistant an DBA, while creating table space and new database, we are wondering where those table space store into. I would appreciate any input from you. We are using DB2. Thank you, Elaine=20 -----Original Message----- From: sqr-users-bounces+eliu=3Dicc.edu@sqrug.org [mailto:sqr-users-bounces+eliu=3Dicc.edu@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, August 08, 2005 9:18 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] CLOBs I dealt with this problem once but can't find the code. I think all that was necessary was to get the clob into a variable and then split it "manually" into the line lengths needed. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Jolene Osei Sent: Monday, August 08, 2005 8:29 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] CLOBs Morning Melody Thanks for the reply. I want to extract the course descriptions in the SCBDESC table. I have to order the report by subject and course. I have a problem of the description not wrapping around correctly. This is the example that I am using as a test. Select to_char(scbdesc_text_narrative) "Course Description" from scbdesc where scbdesc_subj_code =3D 'ACC' and scbdesc_crse_numb =3D '100'; Course Description ------------------------------------------------------------------------ -------- This is an introductory course to the Accounting cycle. The course is designed t o provide the student with a basic understanding of fundamental bookkeeping conc epts and procedures. Emphasis is placed on procedures, techniques, and applicati ons of generally accepted accounting principles. This course will meet the need s of the small business owner or employee. It is required for Accounting majors. **************************************************** Hope to hear from you Melody. I have run out of ideas. Thanks=20 Jolene =20 >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> What's your question? I've had two recent report projects that used CLOB's. Melody Jolene Osei wrote: > Hi > > Has anyone worked with the tables having CLOB fields. I am creating a > report where by I have to extract from a CLOB field. Has anyone worked > with this kind of a field? I am working with Banner tables and this > CLOB issue is new to us. > > Please help if you can > > Jolene > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 08 14:12:47 2005 From: Elaine Liu Subject: RE: [sqr-users] CLOBs Date: Mon, 8 Aug 2005 14:07:43 -0500 Hi Richard, Perhaps, I did not explain my question clear enough. Either DB2 or Oracle table's space can be increased. After we are creating or/and increasing table spaces, where and what is the name of table actual those store data ?I can create a new database - table container and table spaces and such, or I can increase table space when it is needed, but I am wondering where those data store into.....( the fist space and after resized) Thanks anyway, Elaine -----Original Message----- From: sqr-users-bounces+eliu=icc.edu@sqrug.org [mailto:sqr-users-bounces+eliu=icc.edu@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, August 08, 2005 2:01 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] CLOBs Hi Elaine, I'm sorry. Almost all my experience is with Oracle. In Oracle there are tablespace files that can be increased. Hoping this will help. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Elaine Liu Sent: Monday, August 08, 2005 10:52 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] CLOBs Hi Richard, I am current leaning/assistant an DBA, while creating table space and new database, we are wondering where those table space store into. I would appreciate any input from you. We are using DB2. Thank you, Elaine -----Original Message----- From: sqr-users-bounces+eliu=icc.edu@sqrug.org [mailto:sqr-users-bounces+eliu=icc.edu@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, August 08, 2005 9:18 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] CLOBs I dealt with this problem once but can't find the code. I think all that was necessary was to get the clob into a variable and then split it "manually" into the line lengths needed. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Jolene Osei Sent: Monday, August 08, 2005 8:29 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] CLOBs Morning Melody Thanks for the reply. I want to extract the course descriptions in the SCBDESC table. I have to order the report by subject and course. I have a problem of the description not wrapping around correctly. This is the example that I am using as a test. Select to_char(scbdesc_text_narrative) "Course Description" from scbdesc where scbdesc_subj_code = 'ACC' and scbdesc_crse_numb = '100'; Course Description ------------------------------------------------------------------------ -------- This is an introductory course to the Accounting cycle. The course is designed t o provide the student with a basic understanding of fundamental bookkeeping conc epts and procedures. Emphasis is placed on procedures, techniques, and applicati ons of generally accepted accounting principles. This course will meet the need s of the small business owner or employee. It is required for Accounting majors. **************************************************** Hope to hear from you Melody. I have run out of ideas. Thanks Jolene >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> What's your question? I've had two recent report projects that used CLOB's. Melody Jolene Osei wrote: > Hi > > Has anyone worked with the tables having CLOB fields. I am creating a > report where by I have to extract from a CLOB field. Has anyone worked > with this kind of a field? I am working with Banner tables and this > CLOB issue is new to us. > > Please help if you can > > Jolene > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 11:58:55 2005 Date: Tue, 9 Aug 2005 11:57:54 -0500 From: "Weed, Dick" Subject: [sqr-users] Multi reports? Document & Report I am generating letters to customers in an SQR program via the Begin-Document. I need to add the generation of mailing labels to the same program. Does this constitute a "Multiple Report" scenario or not? Thanks, Dick _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 13:43:41 2005 Date: Tue, 9 Aug 2005 13:43:05 -0500 From: "Turner, Ivan" Subject: [sqr-users] CSV output via PS My csv is wraping prematurely. Only half the columns are populated and then a wrap for the rest of the row. In the Process Scheduler Request page the user can specify Type:web and Output:CSV Are there better include files to make the .csv format work than the two listed?=20=20 #include 'setup02.sqc' ! Printer and page-size initialization #include 'arhdg01.sqc' _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 14:40:46 2005 Date: Tue, 09 Aug 2005 15:43:43 -0400 From: "Jolene Osei" Subject: [sqr-users] Re: CLOBs Melody I surely don't know how much I can thank you . I was at a point of giving up and thank you again for your help. Your script worked very well, now I have to just add a few fields I need and see what happens. Thank you , thank you !!!! Keep the good work Melody. Jolene >>> Melody.Sayles@alaska.edu 8/8/2005 1:49:24 PM >>> Jolene, This is what I came up with. I hope it helps. Melody Sayles Univ of Alaska > In mainline: > Do Get-Text > ----- > begin-procedure Get-Text > > Let $comments = '' > Let $commment_flag = 'N' > Begin-SELECT > DISTINCT DBMS_LOB.Substr(sor2ppt_text,4000,1) &comments > Let $comments = &comments > If $comments <> '' > Let $commment_flag = 'Y' > End-if > FROM sor2ppt > where sor2ppt_pidm = $control_pidm > and sor2ppt_contact_date = $contact_date > and sor2ppt_contact_from_time = $contact_from_time > end-select > > end-procedure Get-Text > --- > > Print student procedure-- > Let #Number_Lines = wrapdepth($comments, 36, 1, '', '') > Print $comments (,96) Wrap 36 #Number_Lines > Jolene Osei wrote: > Morning Melody > > Thanks for the reply. I want to extract the course descriptions in the > SCBDESC table. I have to order the report by subject and course. > I have a problem of the description not wrapping around correctly. This > is the example that I am using as a test. > > Select to_char(scbdesc_text_narrative) "Course Description" > from scbdesc > where scbdesc_subj_code = 'ACC' > and scbdesc_crse_numb = '100'; > > Course Description > -------------------------------------------------------------------------------- > This is an introductory course to the Accounting cycle. The course is > designed t > o provide the student with a basic understanding of fundamental > bookkeeping conc > epts and procedures. Emphasis is placed on procedures, techniques, and > applicati > ons of generally accepted accounting principles. This course will meet > the need > s of the small business owner or employee. It is required for > Accounting majors. > > **************************************************** > > Hope to hear from you Melody. I have run out of ideas. Thanks > > Jolene > > > > >>> Melody.Sayles@alaska.edu 8/5/2005 12:47:49 PM >>> > What's your question? I've had two recent report projects that used > CLOB's. > > Melody > > Jolene Osei wrote: > > > Hi > > > > Has anyone worked with the tables having CLOB fields. I am creating > a > > report where by I have to extract from a CLOB field. Has anyone > worked > > with this kind of a field? I am working with Banner tables and this > > CLOB issue is new to us. > > > > Please help if you can > > > > Jolene > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 15:00:46 2005 Date: Tue, 09 Aug 2005 16:00:00 -0400 From: Amy Eldridge Subject: [sqr-users] sub-query question This is a fake query to illustrate my question. I'm using a sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm from spriden end-select but I want to wrap the sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm from spriden end-select Why wrap it, you ask? My sub-query is really long and I don't want to make it all one line stretching out to infinity. In addition, SQR will only allow a line to be so long and my sub-query one big line exceeds that. Thus, I want to wrap it. When writing the above as a SQL query, wrapping is not a problem but when I try to wrap it in SQR, though, it is giving me an error: Error on line 14: (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. from pebempl It does not like that return after the "select pebempl_pidm". Yes, I can use a separate procedure instead of the sub-query - I have lots of alternatives so don't pass alternative suggestions along, please. I'm just curious if wrapping the subquery is possible. Thanks in advance. Amy Eldridge Systems Analyst Miami University (nope, the one in Ohio) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 15:09:02 2005 Subject: RE: [sqr-users] sub-query question Date: Tue, 9 Aug 2005 15:07:54 -0500 From: "Bob Stone" dont line it up on the lefthand side. It thinks that each thing on the lef= t hand side is a new column/expression. ident. if that doesn't work, you = can just use a subquery inside the table (nest a procedure).=20=20 begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm =3D spriden_pidm) &pidm from spriden end-select=20 -------------------------nest procedure begin-select spriden_id let $spriden_id =3D &spriden_id do get-peb-id( $spriden_id, $peb_id) from spriden end-select=20 !procedure GET-PEB-ID: used to get the pebid. begin-procedure get-peb-id($sprid_in , :$peb_id_out) begin-select select=20 pebempl_pidm let $peb_id_out =3D &pebempl_pidm from pebempl where pebempl_pidm =3D sprid_in end-select end-proceddure -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Amy Eldridge Sent: Tuesday, August 09, 2005 3:00 PM To: sqr-users@sqrug.org Subject: [sqr-users] sub-query question This is a fake query to illustrate my question. I'm using a sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm =3D spriden_pidm) &pi= dm from spriden end-select but I want to wrap the sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm =3D spriden_pidm) &pidm from spriden end-select Why wrap it, you ask? My sub-query is really long and I don't want to make= =20 it all one line stretching out to infinity. In addition, SQR will only=20 allow a line to be so long and my sub-query one big line exceeds=20 that. Thus, I want to wrap it. When writing the above as a SQL query, wrapping is not a problem but when I= =20 try to wrap it in SQR, though, it is giving me an error: Error on line 14: (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. from pebempl It does not like that return after the "select pebempl_pidm". Yes, I can use a separate procedure instead of the sub-query - I have lots= =20 of alternatives so don't pass alternative suggestions along, please. I'm just curious if wrapping the subquery is possible. Thanks in advance. Amy Eldridge Systems Analyst Miami University (nope, the one in Ohio) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 15:17:30 2005 Date: Tue, 09 Aug 2005 16:16:43 -0400 From: Amy Eldridge Subject: RE: [sqr-users] sub-query question Indenting does not help - sorry, I should have noted that in the original email. As I wrote, I know there are many alternatives to the sub-query (including calling a procedure) but what I'm really wanting to know is if wrapping the sub-query will work. Thanks. a. At 04:07 PM 8/9/2005, Bob Stone wrote: >dont line it up on the lefthand side. It thinks that each thing on the >left hand side is a new column/expression. ident. if that doesn't work, >you can just use a subquery inside the table (nest a procedure). > >begin-select >spriden_id, >(select pebempl_pidm > from pebempl > where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select > >-------------------------nest procedure >begin-select >spriden_id > let $spriden_id = &spriden_id > do get-peb-id( $spriden_id, $peb_id) > >from spriden >end-select > >!procedure GET-PEB-ID: used to get the pebid. >begin-procedure get-peb-id($sprid_in , :$peb_id_out) >begin-select >select >pebempl_pidm > let $peb_id_out = &pebempl_pidm >from pebempl >where pebempl_pidm = sprid_in >end-select >end-proceddure > > > >-----Original Message----- >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Amy >Eldridge >Sent: Tuesday, August 09, 2005 3:00 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] sub-query question > > > >This is a fake query to illustrate my question. > >I'm using a sub-query like this: > >begin-select >spriden_id, >(select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select > >but I want to wrap the sub-query like this: > >begin-select >spriden_id, >(select pebempl_pidm >from pebempl >where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select >Why wrap it, you ask? My sub-query is really long and I don't want to make >it all one line stretching out to infinity. In addition, SQR will only >allow a line to be so long and my sub-query one big line exceeds >that. Thus, I want to wrap it. > >When writing the above as a SQL query, wrapping is not a problem but when I >try to wrap it in SQR, though, it is giving me an error: > >Error on line 14: > (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. >from pebempl > >It does not like that return after the "select pebempl_pidm". > >Yes, I can use a separate procedure instead of the sub-query - I have lots >of alternatives so don't pass alternative suggestions along, please. > >I'm just curious if wrapping the subquery is possible. > >Thanks in advance. > >Amy Eldridge >Systems Analyst >Miami University (nope, the one in Ohio) > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 16:41:37 2005 Date: Tue, 9 Aug 2005 16:40:57 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] sub-query question Amy, When SQR is looking at your code, it will consider the first line that begins with a "from" as the from for the begin-select statement. This is also a problem for how you format lines with a "get" from an array within a begin-select. Just make sure that the "from" has something before it, like ... begin-select sysdate &now=date (select sysdate - 1 from dual ,dual d3 where 1 = 1 and 2 = 2 ) &yest=date sysdate - 3 &three_days_ago=date show 'Now ' &now edit 'MM/DD/YYYY HH24:MI:SS' show 'Yesterday ' &yest edit 'MM/DD/YYYY HH24:MI:SS' show '3 days ago ' &three_days_ago edit 'MM/DD/YYYY HH24:MI:SS' from dual d1 where 1 = 1 end-select HTH, Don On Tue, 9 Aug 2005, Amy Eldridge wrote: > Indenting does not help - sorry, I should have noted that in the original > email. > > As I wrote, I know there are many alternatives to the sub-query (including > calling a procedure) but what I'm really wanting to know is if wrapping the > sub-query will work. > > Thanks. > > a. > > At 04:07 PM 8/9/2005, Bob Stone wrote: > >dont line it up on the lefthand side. It thinks that each thing on the > >left hand side is a new column/expression. ident. if that doesn't work, > >you can just use a subquery inside the table (nest a procedure). > > > >begin-select > >spriden_id, > >(select pebempl_pidm > > from pebempl > > where pebempl_pidm = spriden_pidm) &pidm > > > >from spriden > >end-select > > > >-------------------------nest procedure > >begin-select > >spriden_id > > let $spriden_id = &spriden_id > > do get-peb-id( $spriden_id, $peb_id) > > > >from spriden > >end-select > > > >!procedure GET-PEB-ID: used to get the pebid. > >begin-procedure get-peb-id($sprid_in , :$peb_id_out) > >begin-select > >select > >pebempl_pidm > > let $peb_id_out = &pebempl_pidm > >from pebempl > >where pebempl_pidm = sprid_in > >end-select > >end-proceddure > > > > > > > >-----Original Message----- > >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Amy > >Eldridge > >Sent: Tuesday, August 09, 2005 3:00 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] sub-query question > > > > > > > >This is a fake query to illustrate my question. > > > >I'm using a sub-query like this: > > > >begin-select > >spriden_id, > >(select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm > > > >from spriden > >end-select > > > >but I want to wrap the sub-query like this: > > > >begin-select > >spriden_id, > >(select pebempl_pidm > >from pebempl > >where pebempl_pidm = spriden_pidm) &pidm > > > >from spriden > >end-select > >Why wrap it, you ask? My sub-query is really long and I don't want to make > >it all one line stretching out to infinity. In addition, SQR will only > >allow a line to be so long and my sub-query one big line exceeds > >that. Thus, I want to wrap it. > > > >When writing the above as a SQL query, wrapping is not a problem but when I > >try to wrap it in SQR, though, it is giving me an error: > > > >Error on line 14: > > (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. > >from pebempl > > > >It does not like that return after the "select pebempl_pidm". > > > >Yes, I can use a separate procedure instead of the sub-query - I have lots > >of alternatives so don't pass alternative suggestions along, please. > > > >I'm just curious if wrapping the subquery is possible. > > > >Thanks in advance. > > > >Amy Eldridge > >Systems Analyst > >Miami University (nope, the one in Ohio) > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 10 06:18:46 2005 Date: Wed, 10 Aug 2005 07:16:47 -0400 From: Amy Eldridge Subject: RE: [sqr-users] sub-query question - solved! You're the man, Don! You are right. This query runs: begin-select spriden_id &id (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm print &id (+1,1) print &pidm (,30) from spriden end-select Now I know! Thanks for all who replied and especially Don for the answer. A. At 05:40 PM 8/9/2005, Don Mellen wrote: >Amy, > >When SQR is looking at your code, it will consider the first line that >begins with a "from" as the from for the begin-select statement. > >This is also a problem for how you format lines with a "get" from an array >within a begin-select. > >Just make sure that the "from" has something before it, like ... > >begin-select >sysdate &now=date >(select sysdate - 1 from dual > ,dual d3 > where 1 = 1 > and 2 = 2 ) &yest=date >sysdate - 3 &three_days_ago=date > > show 'Now ' &now edit 'MM/DD/YYYY HH24:MI:SS' > show 'Yesterday ' &yest edit 'MM/DD/YYYY HH24:MI:SS' > show '3 days ago ' &three_days_ago edit 'MM/DD/YYYY HH24:MI:SS' > >from dual d1 >where 1 = 1 >end-select > >HTH, >Don > > >On Tue, 9 Aug 2005, Amy Eldridge wrote: > > > Indenting does not help - sorry, I should have noted that in the original > > email. > > > > As I wrote, I know there are many alternatives to the sub-query (including > > calling a procedure) but what I'm really wanting to know is if wrapping > the > > sub-query will work. > > > > Thanks. > > > > a. > > > > At 04:07 PM 8/9/2005, Bob Stone wrote: > > >dont line it up on the lefthand side. It thinks that each thing on the > > >left hand side is a new column/expression. ident. if that doesn't work, > > >you can just use a subquery inside the table (nest a procedure). > > > > > >begin-select > > >spriden_id, > > >(select pebempl_pidm > > > from pebempl > > > where pebempl_pidm = spriden_pidm) &pidm > > > > > >from spriden > > >end-select > > > > > >-------------------------nest procedure > > >begin-select > > >spriden_id > > > let $spriden_id = &spriden_id > > > do get-peb-id( $spriden_id, $peb_id) > > > > > >from spriden > > >end-select > > > > > >!procedure GET-PEB-ID: used to get the pebid. > > >begin-procedure get-peb-id($sprid_in , :$peb_id_out) > > >begin-select > > >select > > >pebempl_pidm > > > let $peb_id_out = &pebempl_pidm > > >from pebempl > > >where pebempl_pidm = sprid_in > > >end-select > > >end-proceddure > > > > > > > > > > > >-----Original Message----- > > >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > > >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Amy > > >Eldridge > > >Sent: Tuesday, August 09, 2005 3:00 PM > > >To: sqr-users@sqrug.org > > >Subject: [sqr-users] sub-query question > > > > > > > > > > > >This is a fake query to illustrate my question. > > > > > >I'm using a sub-query like this: > > > > > >begin-select > > >spriden_id, > > >(select pebempl_pidm from pebempl where pebempl_pidm = > spriden_pidm) &pidm > > > > > >from spriden > > >end-select > > > > > >but I want to wrap the sub-query like this: > > > > > >begin-select > > >spriden_id, > > >(select pebempl_pidm > > >from pebempl > > >where pebempl_pidm = spriden_pidm) &pidm > > > > > >from spriden > > >end-select > > >Why wrap it, you ask? My sub-query is really long and I don't want to > make > > >it all one line stretching out to infinity. In addition, SQR will only > > >allow a line to be so long and my sub-query one big line exceeds > > >that. Thus, I want to wrap it. > > > > > >When writing the above as a SQL query, wrapping is not a problem but > when I > > >try to wrap it in SQR, though, it is giving me an error: > > > > > >Error on line 14: > > > (SQR 3727) SQL expression not ended, perhaps parentheses not > balanced. > > >from pebempl > > > > > >It does not like that return after the "select pebempl_pidm". > > > > > >Yes, I can use a separate procedure instead of the sub-query - I have lots > > >of alternatives so don't pass alternative suggestions along, please. > > > > > >I'm just curious if wrapping the subquery is possible. > > > > > >Thanks in advance. > > > > > >Amy Eldridge > > >Systems Analyst > > >Miami University (nope, the one in Ohio) > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > >----------------------------------------------------------------------- >Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ >donm@ontko.com | "In the beginning, there was nothing, which exploded" > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 15:12:07 2005 Subject: RE: [sqr-users] sub-query question Date: Tue, 9 Aug 2005 15:08:59 -0500 From: "Knapp, Richard" I routinely wrap. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Amy Eldridge Sent: Tuesday, August 09, 2005 3:00 PM To: sqr-users@sqrug.org Subject: [sqr-users] sub-query question This is a fake query to illustrate my question. I'm using a sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm =3D spriden_pidm) &pidm from spriden end-select but I want to wrap the sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm =3D spriden_pidm) &pidm from spriden end-select Why wrap it, you ask? My sub-query is really long and I don't want to make=20 it all one line stretching out to infinity. In addition, SQR will only=20 allow a line to be so long and my sub-query one big line exceeds=20 that. Thus, I want to wrap it. When writing the above as a SQL query, wrapping is not a problem but when I=20 try to wrap it in SQR, though, it is giving me an error: Error on line 14: (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. from pebempl It does not like that return after the "select pebempl_pidm". Yes, I can use a separate procedure instead of the sub-query - I have lots=20 of alternatives so don't pass alternative suggestions along, please. I'm just curious if wrapping the subquery is possible. Thanks in advance. Amy Eldridge Systems Analyst Miami University (nope, the one in Ohio) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 15:21:15 2005 Subject: Re: [sqr-users] sub-query question From: Roger.Harris@certegy.com Date: Tue, 9 Aug 2005 16:19:47 -0400 Could it be that when you put the return/newline your From and Where and any subsequent lines now start in the first column which SQR does not like? Try indenting every line except the first at least one space. |---------+----------------------------------------------------> | | "Amy Eldridge" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/09/2005 04:00 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] sub-query question | >----------------------------------------------------------------------------------------------| This is a fake query to illustrate my question. I'm using a sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm from spriden end-select but I want to wrap the sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm from spriden end-select Why wrap it, you ask? My sub-query is really long and I don't want to make it all one line stretching out to infinity. In addition, SQR will only allow a line to be so long and my sub-query one big line exceeds that. Thus, I want to wrap it. When writing the above as a SQL query, wrapping is not a problem but when I try to wrap it in SQR, though, it is giving me an error: Error on line 14: (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. from pebempl It does not like that return after the "select pebempl_pidm". Yes, I can use a separate procedure instead of the sub-query - I have lots of alternatives so don't pass alternative suggestions along, please. I'm just curious if wrapping the subquery is possible. Thanks in advance. Amy Eldridge Systems Analyst Miami University (nope, the one in Ohio) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 15:24:31 2005 Subject: RE: [sqr-users] sub-query question From: Roger.Harris@certegy.com Date: Tue, 9 Aug 2005 16:21:33 -0400 Ok, just sent the same suggestion. Here is another. Have you left the comma after spriden_id? |---------+----------------------------------------------------> | | "Amy Eldridge" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/09/2005 04:16 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: RE: [sqr-users] sub-query question | >----------------------------------------------------------------------------------------------| Indenting does not help - sorry, I should have noted that in the original email. As I wrote, I know there are many alternatives to the sub-query (including calling a procedure) but what I'm really wanting to know is if wrapping the sub-query will work. Thanks. a. At 04:07 PM 8/9/2005, Bob Stone wrote: >dont line it up on the lefthand side. It thinks that each thing on the >left hand side is a new column/expression. ident. if that doesn't work, >you can just use a subquery inside the table (nest a procedure). > >begin-select >spriden_id, >(select pebempl_pidm > from pebempl > where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select > >-------------------------nest procedure >begin-select >spriden_id > let $spriden_id = &spriden_id > do get-peb-id( $spriden_id, $peb_id) > >from spriden >end-select > >!procedure GET-PEB-ID: used to get the pebid. >begin-procedure get-peb-id($sprid_in , :$peb_id_out) >begin-select >select >pebempl_pidm > let $peb_id_out = &pebempl_pidm >from pebempl >where pebempl_pidm = sprid_in >end-select >end-proceddure > > > >-----Original Message----- >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Amy >Eldridge >Sent: Tuesday, August 09, 2005 3:00 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] sub-query question > > > >This is a fake query to illustrate my question. > >I'm using a sub-query like this: > >begin-select >spriden_id, >(select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select > >but I want to wrap the sub-query like this: > >begin-select >spriden_id, >(select pebempl_pidm >from pebempl >where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select >Why wrap it, you ask? My sub-query is really long and I don't want to make >it all one line stretching out to infinity. In addition, SQR will only >allow a line to be so long and my sub-query one big line exceeds >that. Thus, I want to wrap it. > >When writing the above as a SQL query, wrapping is not a problem but when I >try to wrap it in SQR, though, it is giving me an error: > >Error on line 14: > (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. >from pebempl > >It does not like that return after the "select pebempl_pidm". > >Yes, I can use a separate procedure instead of the sub-query - I have lots >of alternatives so don't pass alternative suggestions along, please. > >I'm just curious if wrapping the subquery is possible. > >Thanks in advance. > >Amy Eldridge >Systems Analyst >Miami University (nope, the one in Ohio) > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >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 ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 09 16:45:26 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] sub-query question Date: Tue, 9 Aug 2005 14:45:13 -0700 Database optimizers often promote subqueries to joins. In this case, begin-select a.spriden_id b.pebempl_pidm &pidm from spriden a, pebempl b where b.pebempl_pidm = a.spriden_pidm end-select Alternately, you could try: begin-select a.spriden_id b.pebempl_pidm &pidm from spriden a, (select pebempl_pidm from pebempl b where b.pebempl_pidm = a.spriden_pidm) end-select -----Original Message----- From: Roger.Harris@certegy.com [mailto:Roger.Harris@certegy.com] Sent: Tuesday, August 09, 2005 1:22 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] sub-query question Ok, just sent the same suggestion. Here is another. Have you left the comma after spriden_id? |---------+----------------------------------------------------> | | "Amy Eldridge" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/09/2005 04:16 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >--------------------------------------------------------------------------- -------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: RE: [sqr-users] sub-query question | >--------------------------------------------------------------------------- -------------------| Indenting does not help - sorry, I should have noted that in the original email. As I wrote, I know there are many alternatives to the sub-query (including calling a procedure) but what I'm really wanting to know is if wrapping the sub-query will work. Thanks. a. At 04:07 PM 8/9/2005, Bob Stone wrote: >dont line it up on the lefthand side. It thinks that each thing on the >left hand side is a new column/expression. ident. if that doesn't work, >you can just use a subquery inside the table (nest a procedure). > >begin-select >spriden_id, >(select pebempl_pidm > from pebempl > where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select > >-------------------------nest procedure >begin-select >spriden_id > let $spriden_id = &spriden_id > do get-peb-id( $spriden_id, $peb_id) > >from spriden >end-select > >!procedure GET-PEB-ID: used to get the pebid. >begin-procedure get-peb-id($sprid_in , :$peb_id_out) >begin-select >select >pebempl_pidm > let $peb_id_out = &pebempl_pidm >from pebempl >where pebempl_pidm = sprid_in >end-select >end-proceddure > > > >-----Original Message----- >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Amy >Eldridge >Sent: Tuesday, August 09, 2005 3:00 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] sub-query question > > > >This is a fake query to illustrate my question. > >I'm using a sub-query like this: > >begin-select >spriden_id, >(select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select > >but I want to wrap the sub-query like this: > >begin-select >spriden_id, >(select pebempl_pidm >from pebempl >where pebempl_pidm = spriden_pidm) &pidm > >from spriden >end-select >Why wrap it, you ask? My sub-query is really long and I don't want to make >it all one line stretching out to infinity. In addition, SQR will only >allow a line to be so long and my sub-query one big line exceeds >that. Thus, I want to wrap it. > >When writing the above as a SQL query, wrapping is not a problem but when I >try to wrap it in SQR, though, it is giving me an error: > >Error on line 14: > (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. >from pebempl > >It does not like that return after the "select pebempl_pidm". > >Yes, I can use a separate procedure instead of the sub-query - I have lots >of alternatives so don't pass alternative suggestions along, please. > >I'm just curious if wrapping the subquery is possible. > >Thanks in advance. > >Amy Eldridge >Systems Analyst >Miami University (nope, the one in Ohio) > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >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 ---------------------------------------------------------------------------- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================ == _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 10 06:14:33 2005 Date: Wed, 10 Aug 2005 07:13:33 -0400 From: Amy Eldridge Subject: RE: [sqr-users] sub-query question Sorry, I guess I did not make it clear. I know there are MANY alternatives to the sub-query, but what I'm really wanting to know is if wrapping the sub-query will work. But thanks. A. At 05:45 PM 8/9/2005, Alexander, Steve wrote: >Database optimizers often promote subqueries to joins. In this case, > >begin-select >a.spriden_id >b.pebempl_pidm &pidm > > from spriden a, pebempl b >where b.pebempl_pidm = a.spriden_pidm >end-select > >Alternately, you could try: > >begin-select >a.spriden_id >b.pebempl_pidm &pidm > > from spriden a, >(select pebempl_pidm >from pebempl b >where b.pebempl_pidm = a.spriden_pidm) >end-select > >-----Original Message----- >From: Roger.Harris@certegy.com [mailto:Roger.Harris@certegy.com] >Sent: Tuesday, August 09, 2005 1:22 PM >To: This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions. >Subject: RE: [sqr-users] sub-query question > > > >Ok, just sent the same suggestion. Here is another. Have you left the comma >after spriden_id? > > > >|---------+----------------------------------------------------> >| | "Amy Eldridge" | >| | Sent by: | >| | sqr-users-bounces+roger.harris=certegy.co| >| | m@sqrug.org | >| | | >| | | >| | 08/09/2005 04:16 PM | >| | Please respond to "This list is for | >| | discussion about the SQR database | >| | reporting language from Hyperion | >| | Solutions." | >| | | >|---------+----------------------------------------------------> > > >--------------------------------------------------------------------------- >-------------------| > | >| > | To: sqr-users@sqrug.org >| > | cc: >| > | Subject: RE: [sqr-users] sub-query question >| > > >--------------------------------------------------------------------------- >-------------------| > > > >Indenting does not help - sorry, I should have noted that in the original >email. > >As I wrote, I know there are many alternatives to the sub-query (including >calling a procedure) but what I'm really wanting to know is if wrapping the > >sub-query will work. > >Thanks. > >a. > >At 04:07 PM 8/9/2005, Bob Stone wrote: > >dont line it up on the lefthand side. It thinks that each thing on the > >left hand side is a new column/expression. ident. if that doesn't work, > >you can just use a subquery inside the table (nest a procedure). > > > >begin-select > >spriden_id, > >(select pebempl_pidm > > from pebempl > > where pebempl_pidm = spriden_pidm) &pidm > > > >from spriden > >end-select > > > >-------------------------nest procedure > >begin-select > >spriden_id > > let $spriden_id = &spriden_id > > do get-peb-id( $spriden_id, $peb_id) > > > >from spriden > >end-select > > > >!procedure GET-PEB-ID: used to get the pebid. > >begin-procedure get-peb-id($sprid_in , :$peb_id_out) > >begin-select > >select > >pebempl_pidm > > let $peb_id_out = &pebempl_pidm > >from pebempl > >where pebempl_pidm = sprid_in > >end-select > >end-proceddure > > > > > > > >-----Original Message----- > >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Amy > >Eldridge > >Sent: Tuesday, August 09, 2005 3:00 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] sub-query question > > > > > > > >This is a fake query to illustrate my question. > > > >I'm using a sub-query like this: > > > >begin-select > >spriden_id, > >(select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) >&pidm > > > >from spriden > >end-select > > > >but I want to wrap the sub-query like this: > > > >begin-select > >spriden_id, > >(select pebempl_pidm > >from pebempl > >where pebempl_pidm = spriden_pidm) &pidm > > > >from spriden > >end-select > >Why wrap it, you ask? My sub-query is really long and I don't want to >make > >it all one line stretching out to infinity. In addition, SQR will only > >allow a line to be so long and my sub-query one big line exceeds > >that. Thus, I want to wrap it. > > > >When writing the above as a SQL query, wrapping is not a problem but when >I > >try to wrap it in SQR, though, it is giving me an error: > > > >Error on line 14: > > (SQR 3727) SQL expression not ended, perhaps parentheses not >balanced. > >from pebempl > > > >It does not like that return after the "select pebempl_pidm". > > > >Yes, I can use a separate procedure instead of the sub-query - I have lots > >of alternatives so don't pass alternative suggestions along, please. > > > >I'm just curious if wrapping the subquery is possible. > > > >Thanks in advance. > > > >Amy Eldridge > >Systems Analyst > >Miami University (nope, the one in Ohio) > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >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 > > > > > > > > > >---------------------------------------------------------------------------- >-- >This message contains information from Certegy, Inc which may be >confidential and privileged. If you are not an intended recipient, please >refrain from any disclosure, copying, distribution or use of this >information and note that such actions are prohibited. If you have received >this transmission in error, please notify by e:mail postmaster@certegy.com. >============================================================================ >== > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 10 02:36:06 2005 From: "Syed Husain" Subject: RE: [sqr-users] sub-query question Date: Wed, 10 Aug 2005 13:05:18 +0530 To avoid the error message "SQL expression not ended, perhaps parentheses not balanced." you can use the dynamic variable. You can split the long line of code into two or three lines as shown in the example below: begin-program do something end-program begin-procedure something let $dynvar1 = 'select RECDESCR' let $dynvar2 = 'from PSRECDEFN WHERE RECNAME = A.RECNAME' let $dynvar3 = '('||$dynvar1 ||' '|| $dynvar2||')' begin-select A.RECNAME &RECNAME (+1,1) [$dynvar3] &descr=char print &descr (,31) FROM PSAUDIT A END-SELECT END-PROCEDURE -----Original Message----- From: sqr-users-bounces+syed.husain=patni.com@sqrug.org [mailto:sqr-users-bounces+syed.husain=patni.com@sqrug.org]On Behalf Of Amy Eldridge Sent: Wednesday, August 10, 2005 1:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] sub-query question This is a fake query to illustrate my question. I'm using a sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm from spriden end-select but I want to wrap the sub-query like this: begin-select spriden_id, (select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) &pidm from spriden end-select Why wrap it, you ask? My sub-query is really long and I don't want to make it all one line stretching out to infinity. In addition, SQR will only allow a line to be so long and my sub-query one big line exceeds that. Thus, I want to wrap it. When writing the above as a SQL query, wrapping is not a problem but when I try to wrap it in SQR, though, it is giving me an error: Error on line 14: (SQR 3727) SQL expression not ended, perhaps parentheses not balanced. from pebempl It does not like that return after the "select pebempl_pidm". Yes, I can use a separate procedure instead of the sub-query - I have lots of alternatives so don't pass alternative suggestions along, please. I'm just curious if wrapping the subquery is possible. Thanks in advance. Amy Eldridge Systems Analyst Miami University (nope, the one in Ohio) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 12:54:56 2005 Subject: RE: [sqr-users] sub-query question Date: Wed, 21 Sep 2005 12:54:11 -0500 From: "Turner, Ivan" Did you take the comma out? begin-select spriden_id,<-------------- -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Amy Eldridge Sent: Wednesday, August 10, 2005 7:14 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sub-query question Sorry, I guess I did not make it clear. I know there are MANY alternatives to the sub-query, but what I'm really wanting to know is if wrapping the sub-query will work. But thanks. A. At 05:45 PM 8/9/2005, Alexander, Steve wrote: >Database optimizers often promote subqueries to joins. In this case, > >begin-select >a.spriden_id >b.pebempl_pidm &pidm > > from spriden a, pebempl b >where b.pebempl_pidm =3D a.spriden_pidm >end-select > >Alternately, you could try: > >begin-select >a.spriden_id >b.pebempl_pidm &pidm > > from spriden a, >(select pebempl_pidm >from pebempl b >where b.pebempl_pidm =3D a.spriden_pidm) >end-select > >-----Original Message----- >From: Roger.Harris@certegy.com [mailto:Roger.Harris@certegy.com] >Sent: Tuesday, August 09, 2005 1:22 PM >To: This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions. >Subject: RE: [sqr-users] sub-query question > > > >Ok, just sent the same suggestion. Here is another. Have you left the comma >after spriden_id? > > > >|---------+----------------------------------------------------> >| | "Amy Eldridge" | >| | Sent by: | >| | sqr-users-bounces+roger.harris=3Dcertegy.co| >| | m@sqrug.org | >| | | >| | | >| | 08/09/2005 04:16 PM | >| | Please respond to "This list is for | >| | discussion about the SQR database | >| | reporting language from Hyperion | >| | Solutions." | >| | | >|---------+----------------------------------------------------> > > >----------------------------------------------------------------------- ---- >-------------------| > | >| > | To: sqr-users@sqrug.org >| > | cc: >| > | Subject: RE: [sqr-users] sub-query question >| > > >----------------------------------------------------------------------- ---- >-------------------| > > > >Indenting does not help - sorry, I should have noted that in the original >email. > >As I wrote, I know there are many alternatives to the sub-query (including >calling a procedure) but what I'm really wanting to know is if wrapping the > >sub-query will work. > >Thanks. > >a. > >At 04:07 PM 8/9/2005, Bob Stone wrote: > >dont line it up on the lefthand side. It thinks that each thing on the > >left hand side is a new column/expression. ident. if that doesn't work, > >you can just use a subquery inside the table (nest a procedure). > > > >begin-select > >spriden_id, > >(select pebempl_pidm > > from pebempl > > where pebempl_pidm =3D spriden_pidm) &pidm > > > >from spriden > >end-select > > > >-------------------------nest procedure > >begin-select > >spriden_id > > let $spriden_id =3D &spriden_id > > do get-peb-id( $spriden_id, $peb_id) > > > >from spriden > >end-select > > > >!procedure GET-PEB-ID: used to get the pebid. > >begin-procedure get-peb-id($sprid_in , :$peb_id_out) > >begin-select > >select > >pebempl_pidm > > let $peb_id_out =3D &pebempl_pidm > >from pebempl > >where pebempl_pidm =3D sprid_in > >end-select > >end-proceddure > > > > > > > >-----Original Message----- > >From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org > >[mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Amy > >Eldridge > >Sent: Tuesday, August 09, 2005 3:00 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] sub-query question > > > > > > > >This is a fake query to illustrate my question. > > > >I'm using a sub-query like this: > > > >begin-select > >spriden_id, > >(select pebempl_pidm from pebempl where pebempl_pidm =3D spriden_pidm) >&pidm > > > >from spriden > >end-select > > > >but I want to wrap the sub-query like this: > > > >begin-select > >spriden_id, > >(select pebempl_pidm > >from pebempl > >where pebempl_pidm =3D spriden_pidm) &pidm > > > >from spriden > >end-select > >Why wrap it, you ask? My sub-query is really long and I don't want to >make > >it all one line stretching out to infinity. In addition, SQR will only > >allow a line to be so long and my sub-query one big line exceeds > >that. Thus, I want to wrap it. > > > >When writing the above as a SQL query, wrapping is not a problem but when >I > >try to wrap it in SQR, though, it is giving me an error: > > > >Error on line 14: > > (SQR 3727) SQL expression not ended, perhaps parentheses not >balanced. > >from pebempl > > > >It does not like that return after the "select pebempl_pidm". > > > >Yes, I can use a separate procedure instead of the sub-query - I have lots > >of alternatives so don't pass alternative suggestions along, please. > > > >I'm just curious if wrapping the subquery is possible. > > > >Thanks in advance. > > > >Amy Eldridge > >Systems Analyst > >Miami University (nope, the one in Ohio) > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >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 > > > > > > > > > >----------------------------------------------------------------------- ----- >-- >This message contains information from Certegy, Inc which may be >confidential and privileged. If you are not an intended recipient, please >refrain from any disclosure, copying, distribution or use of this >information and note that such actions are prohibited. If you have received >this transmission in error, please notify by e:mail postmaster@certegy.com. >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D >=3D=3D > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 13:05:05 2005 Date: Wed, 21 Sep 2005 14:01:21 -0400 From: Amy Eldridge Subject: RE: [sqr-users] sub-query question This is an old question and the problem was solved with help from Don Mellen. The query would work with or without the comma though. That was not the problem. Thanks. A. At 01:54 PM 9/21/2005, Turner, Ivan wrote: >Did you take the comma out? > >begin-select >spriden_id,<-------------- > >-----Original Message----- >From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org >[mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of >Amy Eldridge >Sent: Wednesday, August 10, 2005 7:14 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] sub-query question > >Sorry, I guess I did not make it clear. > >I know there are MANY alternatives to the sub-query, but what I'm really > >wanting to know is if wrapping the sub-query will work. > >But thanks. > >A. > >At 05:45 PM 8/9/2005, Alexander, Steve wrote: > >Database optimizers often promote subqueries to joins. In this case, > > > >begin-select > >a.spriden_id > >b.pebempl_pidm &pidm > > > > from spriden a, pebempl b > >where b.pebempl_pidm = a.spriden_pidm > >end-select > > > >Alternately, you could try: > > > >begin-select > >a.spriden_id > >b.pebempl_pidm &pidm > > > > from spriden a, > >(select pebempl_pidm > >from pebempl b > >where b.pebempl_pidm = a.spriden_pidm) > >end-select > > > >-----Original Message----- > >From: Roger.Harris@certegy.com [mailto:Roger.Harris@certegy.com] > >Sent: Tuesday, August 09, 2005 1:22 PM > >To: This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions. > >Subject: RE: [sqr-users] sub-query question > > > > > > > >Ok, just sent the same suggestion. Here is another. Have you left the >comma > >after spriden_id? > > > > > > > >|---------+----------------------------------------------------> > >| | "Amy Eldridge" | > >| | Sent by: | > >| | sqr-users-bounces+roger.harris=certegy.co| > >| | m@sqrug.org | > >| | | > >| | | > >| | 08/09/2005 04:16 PM | > >| | Please respond to "This list is for | > >| | discussion about the SQR database | > >| | reporting language from Hyperion | > >| | Solutions." | > >| | | > >|---------+----------------------------------------------------> > > > > > >----------------------------------------------------------------------- >---- > >-------------------| > > | > >| > > | To: sqr-users@sqrug.org > >| > > | cc: > >| > > | Subject: RE: [sqr-users] sub-query question > >| > > > > > >----------------------------------------------------------------------- >---- > >-------------------| > > > > > > > >Indenting does not help - sorry, I should have noted that in the >original > >email. > > > >As I wrote, I know there are many alternatives to the sub-query >(including > >calling a procedure) but what I'm really wanting to know is if wrapping >the > > > >sub-query will work. > > > >Thanks. > > > >a. > > > >At 04:07 PM 8/9/2005, Bob Stone wrote: > > >dont line it up on the lefthand side. It thinks that each thing on >the > > >left hand side is a new column/expression. ident. if that doesn't >work, > > >you can just use a subquery inside the table (nest a procedure). > > > > > >begin-select > > >spriden_id, > > >(select pebempl_pidm > > > from pebempl > > > where pebempl_pidm = spriden_pidm) &pidm > > > > > >from spriden > > >end-select > > > > > >-------------------------nest procedure > > >begin-select > > >spriden_id > > > let $spriden_id = &spriden_id > > > do get-peb-id( $spriden_id, $peb_id) > > > > > >from spriden > > >end-select > > > > > >!procedure GET-PEB-ID: used to get the pebid. > > >begin-procedure get-peb-id($sprid_in , :$peb_id_out) > > >begin-select > > >select > > >pebempl_pidm > > > let $peb_id_out = &pebempl_pidm > > >from pebempl > > >where pebempl_pidm = sprid_in > > >end-select > > >end-proceddure > > > > > > > > > > > >-----Original Message----- > > >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > > >[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of >Amy > > >Eldridge > > >Sent: Tuesday, August 09, 2005 3:00 PM > > >To: sqr-users@sqrug.org > > >Subject: [sqr-users] sub-query question > > > > > > > > > > > >This is a fake query to illustrate my question. > > > > > >I'm using a sub-query like this: > > > > > >begin-select > > >spriden_id, > > >(select pebempl_pidm from pebempl where pebempl_pidm = spriden_pidm) > >&pidm > > > > > >from spriden > > >end-select > > > > > >but I want to wrap the sub-query like this: > > > > > >begin-select > > >spriden_id, > > >(select pebempl_pidm > > >from pebempl > > >where pebempl_pidm = spriden_pidm) &pidm > > > > > >from spriden > > >end-select > > >Why wrap it, you ask? My sub-query is really long and I don't want >to > >make > > >it all one line stretching out to infinity. In addition, SQR will >only > > >allow a line to be so long and my sub-query one big line exceeds > > >that. Thus, I want to wrap it. > > > > > >When writing the above as a SQL query, wrapping is not a problem but >when > >I > > >try to wrap it in SQR, though, it is giving me an error: > > > > > >Error on line 14: > > > (SQR 3727) SQL expression not ended, perhaps parentheses not > >balanced. > > >from pebempl > > > > > >It does not like that return after the "select pebempl_pidm". > > > > > >Yes, I can use a separate procedure instead of the sub-query - I have >lots > > >of alternatives so don't pass alternative suggestions along, please. > > > > > >I'm just curious if wrapping the subquery is possible. > > > > > >Thanks in advance. > > > > > >Amy Eldridge > > >Systems Analyst > > >Miami University (nope, the one in Ohio) > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >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 > > > > > > > > > > > > > > > > > > > >----------------------------------------------------------------------- >----- > >-- > >This message contains information from Certegy, Inc which may be > >confidential and privileged. If you are not an intended recipient, >please > >refrain from any disclosure, copying, distribution or use of this > >information and note that such actions are prohibited. If you have >received > >this transmission in error, please notify by e:mail >postmaster@certegy.com. > >======================================================================= >===== > >== > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 05:12:18 2005 Date: 11 Aug 2005 10:11:56 -0000 From: "RAJENDRA BABU ARI" Subject: [sqr-users] How will the sqr get the values ? =A0 Hi all, How will the sqr get the values runcntlid and oprid from peoplesoft when sq= r report is run from PeoplSoft. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 05:16:27 2005 Subject: RE: [sqr-users] How will the sqr get the values ? Date: Thu, 11 Aug 2005 05:15:38 -0500 From: "Knapp, Richard" They are in the job stream. Include input statements at the beginning of y= our program to capture them. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of RAJENDRA BABU ARI Sent: Thursday, August 11, 2005 5:12 AM To: sqr-users@sqrug.org Subject: [sqr-users] How will the sqr get the values ? =A0 Hi all, How will the sqr get the values runcntlid and oprid from peoplesoft when sq= r report is run from PeoplSoft. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 05:25:01 2005 From: "Syed Husain" Subject: RE: [sqr-users] How will the sqr get the values ? Date: Thu, 11 Aug 2005 15:52:17 +0530 This is a multi-part message in MIME format... ------=_NextPart_000_002C_01C59E8C.A7735250 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mbprelay.patni.com id j7BARN3w012717 Below is the procedure which gets the run control parameters. do Get-Run-Control-Parms the two variables that gives the oprid and runcntlid are: $prcs_oprid $prcs_run_cntl_id -----Original Message----- From: sqr-users-bounces+syed.husain=3Dpatni.com@sqrug.org [mailto:sqr-users-bounces+syed.husain=3Dpatni.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, August 11, 2005 3:46 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] How will the sqr get the values ? They are in the job stream. Include input statements at the beginning of your program to capture them. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of RAJENDRA BABU ARI Sent: Thursday, August 11, 2005 5:12 AM To: sqr-users@sqrug.org Subject: [sqr-users] How will the sqr get the values ? =A0 Hi all, How will the sqr get the values runcntlid and oprid from peoplesoft when sqr report is run from PeoplSoft. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_002C_01C59E8C.A7735250 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_002C_01C59E8C.A7735250 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_002C_01C59E8C.A7735250-- From sqr-users-bounces@sqrug.org Thu Aug 11 05:21:14 2005 Date: Thu, 11 Aug 2005 07:21:28 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] How will the sqr get the values ? Those two fields are contained (or at least should be) in the run control r= ecord you are using to supply runtime parameters to your SQR. >>> rajendra_ari@rediffmail.com 2005/08/11 07:11:56 >>> =20=20 Hi all, How will the sqr get the values runcntlid and oprid from peoplesoft when sq= r report is run from PeoplSoft. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 11:27:47 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] How will the sqr get the values ? Date: Thu, 11 Aug 2005 09:27:43 -0700 The Process Type Definition "SQR Report" specifies that the SQR command line parameters include the OPRID and the RUN_CNTL_ID from the run control page. Procedure GET-RUN-CONTROL-PARMS in PRCSAPI.SQC (called from procedure STDAPI-INIT) performs INPUT commands for $database_name, $prcs_process_instance, $prcs_oprid, and $prcs_run_cntl_id. INPUT will take values from the command line if they are present. -----Original Message----- From: Syed Husain [mailto:syed.husain@patni.com] Sent: Thursday, August 11, 2005 3:22 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] How will the sqr get the values ? Below is the procedure which gets the run control parameters. do Get-Run-Control-Parms the two variables that gives the oprid and runcntlid are: $prcs_oprid $prcs_run_cntl_id -----Original Message----- From: sqr-users-bounces+syed.husain=3Dpatni.com@sqrug.org [mailto:sqr-users-bounces+syed.husain=3Dpatni.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, August 11, 2005 3:46 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] How will the sqr get the values ? They are in the job stream. Include input statements at the beginning of your program to capture them. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of RAJENDRA BABU ARI Sent: Thursday, August 11, 2005 5:12 AM To: sqr-users@sqrug.org Subject: [sqr-users] How will the sqr get the values ? =A0 Hi all, How will the sqr get the values runcntlid and oprid from peoplesoft when sqr report is run from PeoplSoft. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 10:36:19 2005 Date: Thu, 11 Aug 2005 11:35:44 -0400 From: Shilpa Reddy Subject: [sqr-users] Creating an HTML link in a pdf file using SQR Hi, I have written an SQR report which burts the output into multiple pdf files using the command new-report. In the pdf file I am trying to create a HYPERLINK to a webpage. I have tried to use the existing HTML procedures html_a and html_a_end but = it=20 does not seem to work.=20 Does anyone have a solution... Thanks, Shilpa _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 15:16:34 2005 Date: Thu, 11 Aug 2005 15:15:58 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Creating an HTML link in a pdf file using SQR If you have SQR ver 6.0 or higher, try something like... Print 'Go to my webpage' (10,10) URL='http://www.mywebpage.com' HTH, Don On Thu, 11 Aug 2005, Shilpa Reddy wrote: > Hi, > > I have written an SQR report which burts the output into multiple pdf > files using the command new-report. In the pdf file I am trying to > create a HYPERLINK to a webpage. > > I have tried to use the existing HTML procedures html_a and html_a_end but it > does not seem to work. > > Does anyone have a solution... > > Thanks, > Shilpa ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 12 08:27:49 2005 Date: Fri, 12 Aug 2005 09:27:13 -0400 From: Shilpa Reddy Subject: Re: [sqr-users] Creating an HTML link in a pdf file using SQR Hi, I tried this, but it does it does not seem to work. I have SQR version 6.13, but the URL does not show up in the pdf file. Is there something that I am missing here? Shilpa On 8/11/05, Don Mellen wrote: > If you have SQR ver 6.0 or higher, try something like... >=20 > Print 'Go to my webpage' (10,10) URL=3D'http://www.mywebpage.com' >=20 > HTH, > Don >=20 > On Thu, 11 Aug 2005, Shilpa Reddy wrote: >=20 > > Hi, > > > > I have written an SQR report which burts the output into multiple pdf > > files using the command new-report. In the pdf file I am trying to > > create a HYPERLINK to a webpage. > > > > I have tried to use the existing HTML procedures html_a and html_a_end = but it > > does not seem to work. > > > > Does anyone have a solution... > > > > Thanks, > > Shilpa >=20 > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 12 08:55:23 2005 Date: Fri, 12 Aug 2005 06:54:21 -0700 (PDT) From: G Azevedo Subject: [sqr-users] Creating an HTML link in a pdf file using SQR Does the version of the OS and/or Adobe Acrobat differ from the proposed solution and the attempted one? I don't know, just a thought? Greg --- Shilpa Reddy wrote: > Hi, > > I tried this, but it does it does not seem to work. I have SQR > version > 6.13, but the URL does not show up in the pdf file. > > Is there something that I am missing here? > > Shilpa > > On 8/11/05, Don Mellen wrote: > > If you have SQR ver 6.0 or higher, try something like... > > > > Print 'Go to my webpage' (10,10) URL='http://www.mywebpage.com' > > > > HTH, > > Don > > > > On Thu, 11 Aug 2005, Shilpa Reddy wrote: > > > > > Hi, > > > > > > I have written an SQR report which burts the output into > multiple pdf > > > files using the command new-report. In the pdf file I am > trying to > > > create a HYPERLINK to a webpage. > > > > > > I have tried to use the existing HTML procedures html_a and > html_a_end but it > > > does not seem to work. > > > > > > Does anyone have a solution... > > > > > > Thanks, > > > Shilpa > > > > > ----------------------------------------------------------------------- > > Donald Mellen | Ray Ontko & Co. - Richmond, IN - > http://www.ontko.com/ > > donm@ontko.com | "In the beginning, there was nothing, which > exploded" > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 12 09:15:16 2005 From: "Paul Hoyte" Subject: RE: [sqr-users] Creating an HTML link in a pdf file using SQR Date: Fri, 12 Aug 2005 10:14:40 -0400 Shilpa: If you type in the code exactly as provided in the example, the PDF will just show the line "go to my webpage". Just position your mouse over the line and you will see the url displayed at the bottom of the page. Double click on the line and it go to the url that you entered. Paul Hoyte (248) 752-6970 www.sharidionne.com pa_hoyte@si-proservices.com -----Original Message----- From: sqr-users-bounces+pi_hoyte=si-proservices.com@sqrug.org [mailto:sqr-users-bounces+pi_hoyte=si-proservices.com@sqrug.org] On Behalf Of Shilpa Reddy Sent: Friday, August 12, 2005 9:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Creating an HTML link in a pdf file using SQR Hi, I tried this, but it does it does not seem to work. I have SQR version 6.13, but the URL does not show up in the pdf file. Is there something that I am missing here? Shilpa On 8/11/05, Don Mellen wrote: > If you have SQR ver 6.0 or higher, try something like... > > Print 'Go to my webpage' (10,10) URL='http://www.mywebpage.com' > > HTH, > Don > > On Thu, 11 Aug 2005, Shilpa Reddy wrote: > > > Hi, > > > > I have written an SQR report which burts the output into multiple > > pdf files using the command new-report. In the pdf file I am trying > > to create a HYPERLINK to a webpage. > > > > I have tried to use the existing HTML procedures html_a and > > html_a_end but it does not seem to work. > > > > Does anyone have a solution... > > > > Thanks, > > Shilpa > > ---------------------------------------------------------------------- > - Donald Mellen | Ray Ontko & Co. - Richmond, IN - > http://www.ontko.com/ donm@ontko.com | "In the beginning, there was > nothing, which exploded" > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 12 09:50:48 2005 Date: Fri, 12 Aug 2005 10:50:15 -0400 From: Shilpa Reddy Subject: Re: [sqr-users] Creating an HTML link in a pdf file using SQR Thanks for the help. It is working now. I did not realize that the pdf will just show the line "go to my webpage". Thanks once again for all your help Shilpa On 8/12/05, Paul Hoyte wrote: > Shilpa: >=20 > If you type in the code exactly as provided in the example, the PDF will > just show the line "go to my webpage". Just position your mouse over the > line and you will see the url displayed at the bottom of the page. Double > click on the line and it go to the url that you entered. >=20 >=20 > Paul Hoyte > (248) 752-6970 > www.sharidionne.com > pa_hoyte@si-proservices.com >=20 > -----Original Message----- > From: sqr-users-bounces+pi_hoyte=3Dsi-proservices.com@sqrug.org > [mailto:sqr-users-bounces+pi_hoyte=3Dsi-proservices.com@sqrug.org] On Beh= alf > Of Shilpa Reddy > Sent: Friday, August 12, 2005 9:27 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Creating an HTML link in a pdf file using SQR >=20 > Hi, >=20 > I tried this, but it does it does not seem to work. I have SQR version 6.= 13, > but the URL does not show up in the pdf file. >=20 > Is there something that I am missing here? >=20 > Shilpa >=20 > On 8/11/05, Don Mellen wrote: > > If you have SQR ver 6.0 or higher, try something like... > > > > Print 'Go to my webpage' (10,10) URL=3D'http://www.mywebpage.com' > > > > HTH, > > Don > > > > On Thu, 11 Aug 2005, Shilpa Reddy wrote: > > > > > Hi, > > > > > > I have written an SQR report which burts the output into multiple > > > pdf files using the command new-report. In the pdf file I am trying > > > to create a HYPERLINK to a webpage. > > > > > > I have tried to use the existing HTML procedures html_a and > > > html_a_end but it does not seem to work. > > > > > > Does anyone have a solution... > > > > > > Thanks, > > > Shilpa > > > > ---------------------------------------------------------------------- > > - Donald Mellen | Ray Ontko & Co. - Richmond, IN - > > http://www.ontko.com/ donm@ontko.com | "In the beginning, there was > > nothing, which exploded" > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 16:26:52 2005 Date: Thu, 11 Aug 2005 16:26:18 -0500 From: "Thompson, Betty P" Subject: [sqr-users] Is there a way to execute an Oracle procedure from within an SQR? Does anyone know of a way to execute an Oracle procedure from within an SQR?=20 =20 I had hoped I could an Oracle procedure call in lieu of an SQL statement just by embedding it between BEGIN-SQL/END-SQL, but that's not working for me.=20 =20 The procedure executes okay from Toad's SQL Editor. =20 Thanks, Betty=20 =20 ++++++++++++++++++++++++++++++++++++++++++ =20 Betty Thompson Applications Development Specialist University of Wisconsin - Whitewater 800 W. Main Street -- Room L-1015 Whitewater, WI 53190-1790 =20 262-472-5532 thompsob@uww.edu =20 ++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 21:14:20 2005 Date: Thu, 11 Aug 2005 22:12:40 -0400 From: "George Jansen" Subject: Re: [sqr-users] Is there a way to execute an Oracle procedure from within an SQR? I'm at home, away from SQR & manuals, but it seems to me that you have to d= ouble the last ';', e.g. begin-sql dbms_lock.sleep(60); end;; end-sql >>> thompsob@uww.edu 08/11/05 5:26 PM >>> Does anyone know of a way to execute an Oracle procedure from within an SQR?=20 =20 I had hoped I could an Oracle procedure call in lieu of an SQL statement just by embedding it between BEGIN-SQL/END-SQL, but that's not working for me.=20 =20 The procedure executes okay from Toad's SQL Editor. =20 Thanks, Betty=20 =20 ++++++++++++++++++++++++++++++++++++++++++ =20 Betty Thompson Applications Development Specialist University of Wisconsin - Whitewater 800 W. Main Street -- Room L-1015 Whitewater, WI 53190-1790 =20 262-472-5532 thompsob@uww.edu =20 ++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 11 16:37:16 2005 Subject: RE: [sqr-users] Is there a way to execute an Oracle procedure fromwithin an SQR? Date: Thu, 11 Aug 2005 16:37:04 -0500 From: "Schaetzly, Kent" BEGIN-SQL/END-SQL has always worked for me. Your IN and OUT variables must= match what is defined in the procedure. Code below to illustrate syntax. BEGIN-SQL BEGIN schemaname.stored_procedure_name (i_variable1 =3D> $sqr_passed_variable, o_out_variable1 =3D> #sqr_returned_variable);; END;; END-SQL -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of Thompson, Betty P Sent: Thursday, August 11, 2005 4:26 PM To: sqr-users@sqrug.org Subject: [sqr-users] Is there a way to execute an Oracle procedure fromwithin an SQR? Does anyone know of a way to execute an Oracle procedure from within an SQR?=20 =20 I had hoped I could an Oracle procedure call in lieu of an SQL statement just by embedding it between BEGIN-SQL/END-SQL, but that's not working for me.=20 =20 The procedure executes okay from Toad's SQL Editor. =20 Thanks, Betty=20 =20 ++++++++++++++++++++++++++++++++++++++++++ =20 Betty Thompson Applications Development Specialist University of Wisconsin - Whitewater 800 W. Main Street -- Room L-1015 Whitewater, WI 53190-1790 =20 262-472-5532 thompsob@uww.edu =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 Sat Aug 13 17:39:02 2005 From: "radhika reddy" Date: Sat, 13 Aug 2005 17:38:01 -0500 Subject: [sqr-users] Formulas in Excel Hi, I am trying to achieve something like this for a CSV report output. Is it possible to specify formulas for a CSV report? I can explain better with an example: CSV Report looks something like this: Total Employees: 100 Employees Enrolled: 10 _________________________________________ Instructor | Class | No. of employees | Class Name| Xyz | PS | 10 | PS | This is a excel sheet. I tried my best to show how it looks like. Here, when i change the number of employees it should reflect on the field Employees Enrolled above. Or sometimes i need to multiply two columns. I have more complicated formulas than this. Can I write formulas in my SQR so that when user changes the report it should reflect on other fields? Any input would be greatly appreciated. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 14 08:19:45 2005 Subject: RE: [sqr-users] Formulas in Excel Date: Sun, 14 Aug 2005 08:18:29 -0500 From: "James Womeldorf" This is a multi-part message in MIME format... ------_=_NextPart_001_01C5A0D2.A9132AA1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Radhika, Yes you can. Take a look at the attached file in both Excel and in a text editor for an = example. (The same technique works for tab delimited files) Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of radhika reddy Sent: Saturday, August 13, 2005 5:38 PM To: sqr-users@sqrug.org Subject: [sqr-users] Formulas in Excel Hi, I am trying to achieve something like this for a CSV report output. Is it= =20 possible to specify formulas for a CSV report? I can explain better with an example: CSV Report looks something like this: Total Employees: 100 Employees Enrolled: 10 _________________________________________ Instructor | Class | No. of employees | Class Name| Xyz | PS | 10 | PS | This is a excel sheet. I tried my best to show how it looks like. Here, whe= n=20 i change the number of employees it should reflect on the field Employees= =20 Enrolled above. Or sometimes i need to multiply two columns. I have more=20 complicated formulas than this. Can I write formulas in my SQR so that when user changes the report it=20 should reflect on other fields? Any input would be greatly appreciated. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!= =20 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C5A0D2.A9132AA1 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C5A0D2.A9132AA1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C5A0D2.A9132AA1-- From sqr-users-bounces@sqrug.org Sun Aug 14 08:47:09 2005 From: "the dragon" Subject: RE: [sqr-users] Formulas in Excel Date: Sun, 14 Aug 2005 08:46:05 -0500 No attachments..... 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) ----Original Message Follows---- Hi Radhika, Yes you can. Take a look at the attached file in both Excel and in a text editor for an example. (The same technique works for tab delimited files) Jim -----Original Message----- Hi, I am trying to achieve something like this for a CSV report output. Is it possible to specify formulas for a CSV report? I can explain better with an example: CSV Report looks something like this: Total Employees: 100 Employees Enrolled: 10 _________________________________________ Instructor | Class | No. of employees | Class Name| Xyz | PS | 10 | PS | This is a excel sheet. I tried my best to show how it looks like. Here, when i change the number of employees it should reflect on the field Employees Enrolled above. Or sometimes i need to multiply two columns. I have more complicated formulas than this. Can I write formulas in my SQR so that when user changes the report it should reflect on other fields? Any input would be greatly appreciated. Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 14 10:47:25 2005 Subject: RE: [sqr-users] Formulas in Excel Date: Sun, 14 Aug 2005 10:46:23 -0500 From: "James Womeldorf" Hi again Radhika, Yes you can. I get the feeling my attachment was stripped from my first email, so here i= s the 'unattached' version :) Paste the following line into a text file 1,2,=3D a1 + b1 Name it x.csv. Open it in Excel. (The same technique works for tab delimited files) Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of radhika reddy Sent: Saturday, August 13, 2005 5:38 PM To: sqr-users@sqrug.org Subject: [sqr-users] Formulas in Excel Hi, I am trying to achieve something like this for a CSV report output. Is it= =20 possible to specify formulas for a CSV report? I can explain better with an example: CSV Report looks something like this: Total Employees: 100 Employees Enrolled: 10 _________________________________________ Instructor | Class | No. of employees | Class Name| Xyz | PS | 10 | PS | This is a excel sheet. I tried my best to show how it looks like. Here, whe= n=20 i change the number of employees it should reflect on the field Employees= =20 Enrolled above. Or sometimes i need to multiply two columns. I have more=20 complicated formulas than this. Can I write formulas in my SQR so that when user changes the report it=20 should reflect on other fields? Any input would be greatly appreciated. Thanks. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!= =20 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 08:26:46 2005 From: "radhika reddy" Subject: RE: [sqr-users] Formulas in Excel Date: Mon, 15 Aug 2005 08:25:38 -0500 Thanks Jim. Yes, I could get the result. But my requirement is I should be able to give column names when i am adding and not the values itself. I tried multiplying columns and i could get the result after the last column. let $formula = '=C2*D2' and i am writing this into a CSV file. and my CSV looks like: 1 A B C D Result 2 5 10 50 3 3 5 50 4 2 6 50 Yes, initially the result would be 50 for all the rows. But when i higlight the result column. i will get the correct result. Here my requirement is to get the correct result in the Result column when user changes C or D and not when the user has to click on the Result tab to recalculate the values. Is this possible? Thanks, Radhika >From: "James Womeldorf" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Formulas in Excel >Date: Sun, 14 Aug 2005 10:46:23 -0500 > >Hi again Radhika, >Yes you can. >I get the feeling my attachment was stripped from my first email, so here >is the 'unattached' version :) > >Paste the following line into a text file > >1,2,= a1 + b1 > >Name it x.csv. Open it in Excel. > >(The same technique works for tab delimited files) >Jim > > > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >radhika reddy >Sent: Saturday, August 13, 2005 5:38 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Formulas in Excel > > >Hi, > > I am trying to achieve something like this for a CSV report output. Is >it >possible to specify formulas for a CSV report? > >I can explain better with an example: > >CSV Report looks something like this: > > >Total Employees: 100 >Employees Enrolled: 10 > >_________________________________________ >Instructor | Class | No. of employees | Class Name| > Xyz | PS | 10 | PS | > >This is a excel sheet. I tried my best to show how it looks like. Here, >when >i change the number of employees it should reflect on the field Employees >Enrolled above. Or sometimes i need to multiply two columns. I have more >complicated formulas than this. > >Can I write formulas in my SQR so that when user changes the report it >should reflect on other fields? > >Any input would be greatly appreciated. > >Thanks. > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 13:32:07 2005 Date: Mon, 15 Aug 2005 13:31:48 -0500 From: Daniel Vandenberg Subject: RE: [sqr-users] Formulas in Excel I think you need to change the formula in each row to get the result you want. add 1 to #row_nbr let $formula = '=C' || to_char(#row_nbr) || '*D' || to_char(#row_nbr) At 08:25 AM 8/15/2005, you wrote: >Thanks Jim. Yes, I could get the result. But my requirement is I should be >able to give column names when i am adding and not the values itself. > >I tried multiplying columns and i could get the result after the last column. > >let $formula = '=C2*D2' > >and i am writing this into a CSV file. and my CSV looks like: > >1 A B C D Result >2 5 10 50 >3 3 5 50 >4 2 6 50 > >Yes, initially the result would be 50 for all the rows. But when i >higlight the result column. i will get the correct result. > >Here my requirement is to get the correct result in the Result column when >user changes C or D and not when the user has to click on the Result tab >to recalculate the values. Is this possible? > >Thanks, >Radhika > >>From: "James Womeldorf" >>Reply-To: "This list is for discussion about the SQR database >>reportinglanguage from Hyperion Solutions." >>To: "This list is for discussion about the SQR database reporting >>languagefrom Hyperion Solutions." >>Subject: RE: [sqr-users] Formulas in Excel >>Date: Sun, 14 Aug 2005 10:46:23 -0500 >> >>Hi again Radhika, >>Yes you can. >>I get the feeling my attachment was stripped from my first email, so here >>is the 'unattached' version :) >> >>Paste the following line into a text file >> >>1,2,= a1 + b1 >> >>Name it x.csv. Open it in Excel. >> >>(The same technique works for tab delimited files) >>Jim >> >> >> >>-----Original Message----- >>From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >>[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >>radhika reddy >>Sent: Saturday, August 13, 2005 5:38 PM >>To: sqr-users@sqrug.org >>Subject: [sqr-users] Formulas in Excel >> >> >>Hi, >> >> I am trying to achieve something like this for a CSV report output. Is it >>possible to specify formulas for a CSV report? >> >>I can explain better with an example: >> >>CSV Report looks something like this: >> >> >>Total Employees: 100 >>Employees Enrolled: 10 >> >>_________________________________________ >>Instructor | Class | No. of employees | Class Name| >> Xyz | PS | 10 | PS | >> >>This is a excel sheet. I tried my best to show how it looks like. Here, when >>i change the number of employees it should reflect on the field Employees >>Enrolled above. Or sometimes i need to multiply two columns. I have more >>complicated formulas than this. >> >>Can I write formulas in my SQR so that when user changes the report it >>should reflect on other fields? >> >>Any input would be greatly appreciated. >> >>Thanks. >> >>_________________________________________________________________ >>Express yourself instantly with MSN Messenger! Download today - it's FREE! >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> >> >>_______________________________________________ >>sqr-users mailing list >>sqr-users@sqrug.org >>http://www.sqrug.org/mailman/listinfo/sqr-users >> >>_______________________________________________ >>sqr-users mailing list >>sqr-users@sqrug.org >>http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users Daniel Vandenberg Administrative Computing University of Wisconsin Oshkosh Email : vandberg@uwosh.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 14:50:12 2005 From: "radhika reddy" Subject: RE: [sqr-users] Formulas in Excel Date: Mon, 15 Aug 2005 14:46:08 -0500 Thanks Amy and Daniel. Yes, I can do that. I appreciate your inputs. Thanks again. >From: Daniel Vandenberg >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database >reporting languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Formulas in Excel >Date: Mon, 15 Aug 2005 13:31:48 -0500 > >I think you need to change the formula in each row to get the result you >want. > >add 1 to #row_nbr >let $formula = '=C' || to_char(#row_nbr) || '*D' || to_char(#row_nbr) > >At 08:25 AM 8/15/2005, you wrote: > >>Thanks Jim. Yes, I could get the result. But my requirement is I should be >>able to give column names when i am adding and not the values itself. >> >>I tried multiplying columns and i could get the result after the last >>column. >> >>let $formula = '=C2*D2' >> >>and i am writing this into a CSV file. and my CSV looks like: >> >>1 A B C D Result >>2 5 10 50 >>3 3 5 50 >>4 2 6 50 >> >>Yes, initially the result would be 50 for all the rows. But when i >>higlight the result column. i will get the correct result. >> >>Here my requirement is to get the correct result in the Result column when >>user changes C or D and not when the user has to click on the Result tab >>to recalculate the values. Is this possible? >> >>Thanks, >>Radhika >> >>>From: "James Womeldorf" >>>Reply-To: "This list is for discussion about the SQR database >>>reportinglanguage from Hyperion Solutions." >>>To: "This list is for discussion about the SQR database reporting >>>languagefrom Hyperion Solutions." >>>Subject: RE: [sqr-users] Formulas in Excel >>>Date: Sun, 14 Aug 2005 10:46:23 -0500 >>> >>>Hi again Radhika, >>>Yes you can. >>>I get the feeling my attachment was stripped from my first email, so here >>>is the 'unattached' version :) >>> >>>Paste the following line into a text file >>> >>>1,2,= a1 + b1 >>> >>>Name it x.csv. Open it in Excel. >>> >>>(The same technique works for tab delimited files) >>>Jim >>> >>> >>> >>>-----Original Message----- >>>From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >>>[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >>>radhika reddy >>>Sent: Saturday, August 13, 2005 5:38 PM >>>To: sqr-users@sqrug.org >>>Subject: [sqr-users] Formulas in Excel >>> >>> >>>Hi, >>> >>> I am trying to achieve something like this for a CSV report output. Is >>>it >>>possible to specify formulas for a CSV report? >>> >>>I can explain better with an example: >>> >>>CSV Report looks something like this: >>> >>> >>>Total Employees: 100 >>>Employees Enrolled: 10 >>> >>>_________________________________________ >>>Instructor | Class | No. of employees | Class Name| >>> Xyz | PS | 10 | PS | >>> >>>This is a excel sheet. I tried my best to show how it looks like. Here, >>>when >>>i change the number of employees it should reflect on the field Employees >>>Enrolled above. Or sometimes i need to multiply two columns. I have more >>>complicated formulas than this. >>> >>>Can I write formulas in my SQR so that when user changes the report it >>>should reflect on other fields? >>> >>>Any input would be greatly appreciated. >>> >>>Thanks. >>> >>>_________________________________________________________________ >>>Express yourself instantly with MSN Messenger! Download today - it's >>>FREE! >>>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >>> >>> >>>_______________________________________________ >>>sqr-users mailing list >>>sqr-users@sqrug.org >>>http://www.sqrug.org/mailman/listinfo/sqr-users >>> >>>_______________________________________________ >>>sqr-users mailing list >>>sqr-users@sqrug.org >>>http://www.sqrug.org/mailman/listinfo/sqr-users >> >>_________________________________________________________________ >>Express yourself instantly with MSN Messenger! Download today - it's FREE! >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> >> >>_______________________________________________ >>sqr-users mailing list >>sqr-users@sqrug.org >>http://www.sqrug.org/mailman/listinfo/sqr-users > > >Daniel Vandenberg >Administrative Computing >University of Wisconsin Oshkosh > >Email : vandberg@uwosh.edu > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 10:57:15 2005 From: "John F. Connell Jr." Date: Mon, 15 Aug 2005 11:56:09 -0400 Subject: [sqr-users] Print x of y and last page footer I am trying to use one footer that will change when the page is the last page in the report. 1. 'Continued on Page X of Y' for all pages except the last page where Y equals the last-page. 2. On the last page I want to Print 'Page Y of Y' I would like to use an if statement that uses the page-count variable when not equal to the last-page and don't think it will work and would like help. TIA, John _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 14:47:22 2005 Date: Mon, 15 Aug 2005 13:39:09 -0600 From: "Kirklin, Sherri" Subject: [sqr-users] SQR Error 1302 I'm getting the following error when running an SQR in the preview mode fro= m Brio Report Builder:=0D Error on line 234:=0D (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE.=0D SQR: Program Aborting.=0D I don't have a command line in my SQR so I'm not sure where to go to fix th= is.=0D Any ideas?=0D Thanks=0D Sherri=0D Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 15:02:37 2005 Date: Mon, 15 Aug 2005 15:01:52 -0500 From: "Hallmark, Robert J" Subject: RE: [sqr-users] SQR Error 1302 This is a multi-part message in MIME format... --Boundary_(ID_kK/nS/qAYPhYly5G5fJIdw) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT >From the report builder source tab, select edit, then preference. In the parameters block type -mxxxx. The x's represent the filename. You will need to create a file and give it whatever name you wish. It will need to be located where your program can access it. Attached is a sample -mfile. In case our firewall strips out the attachments, the text of my sample file is: sqlsize=60000 QUERIES=400 STRINGSPACE=20000 Bob H ************************************************* I'm getting the following error when running an SQR in the preview mode from Brio Report Builder: Error on line 234: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. I don't have a command line in my SQR so I'm not sure where to go to fix this. Any ideas? Thanks Sherri Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --Boundary_(ID_kK/nS/qAYPhYly5G5fJIdw) Content-type: text/plain; name=sqlsize.txt Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=sqlsize.txt Content-description: sqlsize.txt sqlsize=60000 QUERIES=400 STRINGSPACE=20000 --Boundary_(ID_kK/nS/qAYPhYly5G5fJIdw) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --Boundary_(ID_kK/nS/qAYPhYly5G5fJIdw)-- From sqr-users-bounces@sqrug.org Mon Aug 15 15:14:00 2005 Subject: RE: [sqr-users] SQR Error 1302 Date: Mon, 15 Aug 2005 14:11:50 -0600 From: "Kirklin, Sherri" Where do you save the file? In the same directory as the sqr.ini file? -----Original Message----- From: sqr-users-bounces+skirklin=3Dstl-inc.com@sqrug.org [mailto:sqr-users-bounces+skirklin=3Dstl-inc.com@sqrug.org]On Behalf Of Hallmark, Robert J Sent: Monday, August 15, 2005 3:02 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQR Error 1302 =0D >From the report builder source tab, select edit, then preference. In the parameters block type -mxxxx. The x's represent the filename. You will need to create a file and give it whatever name you wish. It will need to be located where your program can access it. Attached is a sample -mfile. In case our firewall strips out the attachments, the text of my sample file is: sqlsize=3D60000 QUERIES=3D400 STRINGSPACE=3D20000 Bob H ************************************************* I'm getting the following error when running an SQR in the preview mode from Brio Report Builder: Error on line 234: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. I don't have a command line in my SQR so I'm not sure where to go to fix this. Any ideas? Thanks Sherri Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 15:19:33 2005 Date: Mon, 15 Aug 2005 15:18:59 -0500 From: "Hallmark, Robert J" Subject: RE: [sqr-users] SQR Error 1302 Sherri, I save the file in the same folder where the sqr source reports reside. *********************************************************************** Where do you save the file? In the same directory as the sqr.ini file? >From the report builder source tab, select edit, then preference. In the parameters block type -mxxxx. The x's represent the filename. You will need to create a file and give it whatever name you wish. It will need to be located where your program can access it. Attached is a sample -mfile. In case our firewall strips out the attachments, the text of my sample file is: sqlsize=60000 QUERIES=400 STRINGSPACE=20000 Bob H ************************************************* I'm getting the following error when running an SQR in the preview mode from Brio Report Builder: Error on line 234: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. I don't have a command line in my SQR so I'm not sure where to go to fix this. Any ideas? Thanks Sherri Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 15 15:26:19 2005 Date: Mon, 15 Aug 2005 16:25:45 -0400 From: Gina Bencke Subject: RE: [sqr-users] SQR Error 1302 This error is often causes by a missing or miss-spelled end-sql statement. Gina Bencke 216-875-9630 -----Original Message----- From: sqr-users-bounces+gina.work=bencke.com@sqrug.org [mailto:sqr-users-bounces+gina.work=bencke.com@sqrug.org] On Behalf Of Kirklin, Sherri Sent: Monday, August 15, 2005 3:39 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Error 1302 I'm getting the following error when running an SQR in the preview mode from Brio Report Builder: Error on line 234: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting. I don't have a command line in my SQR so I'm not sure where to go to fix this. Any ideas? Thanks Sherri Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it 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 the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 16 08:34:24 2005 Date: Tue, 16 Aug 2005 09:33:46 -0400 From: victorloghin@vgl.ca Subject: [sqr-users] Print x of y and last page footer John, You can use a variable to hold the message text to be printed on the footer. Set the initial value of the variable to 'Continued on Page' and then at the end of your main select or after you have read all the records in the file set the text to 'Page'. Basically, the idea is to set the last page text after you have finished printing. HTH, Victor Loghin VictorLoghin@vgl.ca VGL Consulting Inc. www.vgl.ca > Date: Mon, 15 Aug 2005 11:56:09 -0400 > From: "John F. Connell Jr." > Subject: [sqr-users] Print x of y and last page footer > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > I am trying to use one footer that will change when the page is the last > page in the report. > > > > 1. 'Continued on Page X of Y' for all pages except the last page > where Y equals the last-page. > 2. On the last page I want to Print 'Page Y of Y' > > > > I would like to use an if statement that uses the page-count variable when > not equal to the last-page and don't think it will work and would like help. > > > > TIA, > > > > John > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 16 08:38:05 2005 Date: Tue, 16 Aug 2005 23:35:41 +1000 From: "Ian Mills" Subject: Re: [sqr-users] Print x of y and last page footer (On Leave) I will be on leave from 17/8/2005 to 19/8/2005. If you need assistance duri= ng this time, please contact Raymond Beddie. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 16 11:49:55 2005 From: "John F. Connell Jr." Date: Tue, 16 Aug 2005 12:48:46 -0400 Subject: [sqr-users] RE: Print x of y and last page footer Victor, >>>You can use a variable to hold the message text to be printed on the footer. Set the initial value of the variable to 'Continued on Page' and then at the end of your main select or after you have read all the records in the file set the text to 'Page'. Basically, the idea is to set the last page text after you have finished printing.<< I tried this and it only allows the variable set in the footer to work on the first initial set and doesn't change even when the variable has be changed. I think this is because the footer is executed before the pages are written but not sure. So I flagged a variable in my last procedure at the beginning and the end and used conditional logic equal to my flag and it works fine. If #page_footer_flag = 0 Let $page_footer = 'Continued on Page' Print $page_footer (,30,18) Print $PAGENUM (,,3) LAST-PAGE () ' of ' Pages else Let $page_footer = 'Page ' Print $page_footer (,30,) LAST-PAGE (,+1,3) LAST-PAGE () ' of ' Pages end-if Thanks for your help. John _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 16 12:05:33 2005 From: "McDonald, Daniel" Date: Tue, 16 Aug 2005 10:04:54 -0700 Subject: [sqr-users] Employer contributions Hello: I am updating the Employee Benefit Contribution form BAS005.SQR for PeopleSoft 8.9 and have been asked to add employer paid contribution and contribution frequency fields to the report. The PAY_DEDUCTION table has deduction information, however I am not sure if this is the correct table to be looking at. Has anyone worked with employer paid contribution and contribution frequency, and would you be able to point me in the right direction? Thank you in advance for any assistance! ----------------------------------------- Daniel McDonald Senior Systems Analyst - PeopleSoft Salt River Pima-Maricopa Indian Community ----------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 17 02:40:54 2005 From: tushar.dutt@tcs.com Date: Wed, 17 Aug 2005 13:09:03 +0530 Subject: [sqr-users] Error Faced while trying to run SQRs from the JCL on DB2 database Please see the attached e-mail, in tso44 in JCL for sqr output we are trying to give record format as FB(fixed Block) and LREC(length) as 200. But in out put it is giving as VB (variable blck) and some big length. Please any information in this regard will be helpful. JCL setup is fixed block 200 bytes The JCL code is given below XXSQROUT DD DSN=&DSNODE..AMUS201O.&DSPARM1..LIS&GEN1, XX DCB=(MDSCB,RECFM=FB,LRECL=200,BLKSIZE=27800), XX SPACE=&SPACE1,DISP=(NEW,CATLG,DELETE) IEFC653I SUBSTITUTION JCL - DSN=XFA.#RY.AMUS201O.FRMW.LIS(+1),DCB SPACE=(CYL,(1,1),RLSE),DISP=(NEW,CATLG,DELETE) Changed to variable length Tushar Kumar Dutt Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 22 06:31:49 2005 Date: 22 Aug 2005 11:30:55 -0000 From: "p satheesh kumar" Subject: [sqr-users] Segmentation Fault (core dumped) Hi, When I am executing the below command=A0 sqrt filename.sqt -E -F Date: Tue, 23 Aug 2005 09:46:57 -0600 Subject: [sqr-users] need to strip data up until a '@' character from an input file Greetings, I have an input file that has a list of values like this: joesmith@mycompany.com sallyjones@mycompany.com etc I want to strip the fisrtname and lastname as one field out of this file - so I want all data up until the '@' sign. I've seen this done before, but I can't for the life of me remember what I need to code for this. TIA, --------------------------------------------------------------- Joe E. Johnson Software Developer Ernest Health, Inc. Office: (505) 798-6480 email: joejohnson@ernesthealth.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 23 11:00:05 2005 Subject: Re: [sqr-users] need to strip data up until a '@' character from an input file From: Ramzi_Salameh@daveandbusters.com Date: Tue, 23 Aug 2005 10:59:03 -0500 Use the INSTR function. Example: LET #POSITION = INSTR($EMAIL, '@', 1) LET #LENGTH = LENGTH($EMAIL) IF #POSITION > 0 LET $EMAIL_FIRST = SUBSTR($EMAIL, 1, (#POSITION -1)) LET $EMAIL_LAST = SUBSTR($EMAIL, (#POSITION + 1), #LENGTH) LET $EMAIL_FULL = $EMAIL_FIRST || $EMAIL_LAST END-IF If I understand your question correctly, then that should do it for you. Ramzi Salameh "Joe Johnson" Sent by: sqr-users-bounces+ramzi_salameh=daveandbusters.com@sqrug.org 08/23/2005 10:46 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To cc Subject [sqr-users] need to strip data up until a '@' character from an input file Greetings, I have an input file that has a list of values like this: joesmith@mycompany.com sallyjones@mycompany.com etc I want to strip the fisrtname and lastname as one field out of this file - so I want all data up until the '@' sign. I've seen this done before, but I can't for the life of me remember what I need to code for this. TIA, --------------------------------------------------------------- Joe E. Johnson Software Developer Ernest Health, Inc. Office: (505) 798-6480 email: joejohnson@ernesthealth.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 23 11:03:16 2005 From: "McDonald, Daniel" Subject: RE: [sqr-users] need to strip data up until a '@' character from an input file Date: Tue, 23 Aug 2005 09:02:38 -0700 Joe, Your request can be accomplished with an unstring command: $email = joesmith@mycompany.com unstring $email by '@' into $name $domain Hope this helps. -----Original Message----- From: Joe Johnson [mailto:joejohnson@ernesthealth.com] Sent: Tuesday, August 23, 2005 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] need to strip data up until a '@' character from an input file Greetings, I have an input file that has a list of values like this: joesmith@mycompany.com sallyjones@mycompany.com etc I want to strip the fisrtname and lastname as one field out of this file - so I want all data up until the '@' sign. I've seen this done before, but I can't for the life of me remember what I need to code for this. TIA, --------------------------------------------------------------- Joe E. Johnson Software Developer Ernest Health, Inc. Office: (505) 798-6480 email: joejohnson@ernesthealth.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 23 11:09:28 2005 From: "Joe Johnson" Subject: RE: [sqr-users] need to strip data up until a '@' characterfrom an input file Date: Tue, 23 Aug 2005 10:08:09 -0600 Thanks - that's what I need. Joe -----Original Message----- From: sqr-users-bounces+joejohnson=ernesthealth.com@sqrug.org [mailto:sqr-users-bounces+joejohnson=ernesthealth.com@sqrug.org] On Behalf Of McDonald, Daniel Sent: Tuesday, August 23, 2005 10:03 AM To: 'This list is for discussion about the SQR database reporting language from Hyperion Solutions.' Subject: RE: [sqr-users] need to strip data up until a '@' characterfrom an input file Joe, Your request can be accomplished with an unstring command: $email = joesmith@mycompany.com unstring $email by '@' into $name $domain Hope this helps. -----Original Message----- From: Joe Johnson [mailto:joejohnson@ernesthealth.com] Sent: Tuesday, August 23, 2005 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] need to strip data up until a '@' character from an input file Greetings, I have an input file that has a list of values like this: joesmith@mycompany.com sallyjones@mycompany.com etc I want to strip the fisrtname and lastname as one field out of this file - so I want all data up until the '@' sign. I've seen this done before, but I can't for the life of me remember what I need to code for this. TIA, --------------------------------------------------------------- Joe E. Johnson Software Developer Ernest Health, Inc. Office: (505) 798-6480 email: joejohnson@ernesthealth.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 23 12:03:11 2005 Date: Tue, 23 Aug 2005 10:02:01 -0700 (PDT) From: Ashok Kuttan Subject: [sqr-users] Unstring "ing" a dynamic length input file I have a file whose length is dynamic. Employee A might have 5 columns, whereas Employee B might have 10 columns. Hence I cannot use the traditional Unstring command to place in variables. Since this file is a comma delimited file, I was thinking of using "find" command to look for commas and then store the respective values in an array. Can anyone help me with the proper find loop or any other better solution ? File layout example (just one line): E,010,4500 Any help will be appreciated. Thanks JR --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 23 12:26:36 2005 Subject: Re: [sqr-users] Unstring "ing" a dynamic length input file From: Roger.Harris@certegy.com Date: Tue, 23 Aug 2005 13:25:03 -0400 Here is an example of populating and array from a record with unknown number of fields. Begin-Setup Create-Array Name=stringArray Size=5 Extent=1 Field=str:char End-Setup Begin-Program Let $s = 'string1,string2,string3,string4,string5,string6,string7' show 'Original string' show $s show Move 1 to #i While Instr($s, ',', 1) Unstring $s by ',' Into $s1 show $s1 show $s Put $s1 into stringArray(#i) Add 1 to #i Let $s = Substr($s, (Instr($s, ',', 1) + 1), Length($s)) show $s show End-While Put $s into stringArray(#i) show show show 'Array values' Move 1 to #j While #j <= #i Get $val from stringArray(#j) show #j edit 99 ' ' $val Add 1 to #j End-While End-Program |---------+----------------------------------------------------> | | "Ashok Kuttan" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/23/2005 01:02 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] Unstring "ing" a dynamic length input file | >----------------------------------------------------------------------------------------------| I have a file whose length is dynamic. Employee A might have 5 columns, whereas Employee B might have 10 columns. Hence I cannot use the traditional Unstring command to place in variables. Since this file is a comma delimited file, I was thinking of using "find" command to look for commas and then store the respective values in an array. Can anyone help me with the proper find loop or any other better solution ? File layout example (just one line): E,010,4500 Any help will be appreciated. Thanks JR --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 24 06:43:44 2005 Date: Wed, 24 Aug 2005 07:41:53 -0400 From: "George Jansen" Subject: Re: [sqr-users] Unstring "ing" a dynamic length input file Do you have to use SQR? Scripting languages such as Perl, Python, Ruby, Tcl= , all handle this nicely with a "split" command. >>> ashokkuttan@yahoo.com 08/23/05 1:02 PM >>> I have a file whose length is dynamic. Employee A might have 5 columns, whe= reas Employee B might have 10 columns. Hence I cannot use the traditional U= nstring command to place in variables. Since this file is a comma delimited= file, I was thinking of using "find" command to look for commas and then s= tore the respective values in an array. Can anyone help me with the proper = find loop or any other better solution ? =20 File layout example (just one line): E,010,4500 =20 Any help will be appreciated. =20 Thanks =20 JR =09=09 --------------------------------- Start your day with Yahoo! - make it your home page=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 12:08:20 2005 Subject: RE: [sqr-users] Unstring "ing" a dynamic length input file Date: Wed, 21 Sep 2005 12:07:34 -0500 From: "Turner, Ivan" Why can't you use unstring? You say the field delimiter it comma. That's what unstring needs to work. I believe you would get nulls in the variables that are not are superfluous.=20 -----Original Message----- From: sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=3Dqwest.com@sqrug.org] On Behalf Of Ashok Kuttan Sent: Tuesday, August 23, 2005 1:02 PM To: sqr-users@sqrug.org Subject: [sqr-users] Unstring "ing" a dynamic length input file I have a file whose length is dynamic. Employee A might have 5 columns, whereas Employee B might have 10 columns. Hence I cannot use the traditional Unstring command to place in variables. Since this file is a comma delimited file, I was thinking of using "find" command to look for commas and then store the respective values in an array. Can anyone help me with the proper find loop or any other better solution ? =20 File layout example (just one line): E,010,4500 =20 Any help will be appreciated. =20 Thanks =20 JR =09=09 --------------------------------- Start your day with Yahoo! - make it your home page=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 20:54:59 2005 Date: Wed, 21 Sep 2005 18:53:56 -0700 (PDT) From: Aleksandr Slobodyanik Subject: RE: [sqr-users] Unstring "ing" a dynamic length input file Use instring() function. I will provide code tomorrow night, coz all internet email blocked by firewall at my work. "Turner, Ivan" wrote: Why can't you use unstring? You say the field delimiter it comma. That's what unstring needs to work. I believe you would get nulls in the variables that are not are superfluous. -----Original Message----- From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of Ashok Kuttan Sent: Tuesday, August 23, 2005 1:02 PM To: sqr-users@sqrug.org Subject: [sqr-users] Unstring "ing" a dynamic length input file I have a file whose length is dynamic. Employee A might have 5 columns, whereas Employee B might have 10 columns. Hence I cannot use the traditional Unstring command to place in variables. Since this file is a comma delimited file, I was thinking of using "find" command to look for commas and then store the respective values in an array. Can anyone help me with the proper find loop or any other better solution ? File layout example (just one line): E,010,4500 Any help will be appreciated. Thanks JR --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 19:56:04 2005 Date: Thu, 22 Sep 2005 17:54:57 -0700 (PDT) From: Aleksandr Slobodyanik Subject: RE: [sqr-users] Unstring "ing" a dynamic length input file I wrote this for where clause. Then user inputs number of parameters separated by comma. You can use pieces for your purpose. begin-procedure set-where-clause let #l_p_state = length($input_str) let #i = 1 while #i <= #l_p_state let #pos = instr($input_str, ',', #i) if #pos = 0 let $search_str = substr($input_str, #i, #l_p_state - #i + 1) let $search_str = UPPER(rtrim(ltrim($search_str, ' '), ' ')) let $search_str_t = CHR(39) || $search_str_t || $search_str || CHR(39) break end-if let $search_str = substr($input_str, #i, #pos - #i) let #pos_l = length($search_str) let $search_str = UPPER(rtrim(ltrim($search_str, ' '), ' ')) show $search_str let $search_str_t = $search_str_t || $search_str || CHR(39) || ',' || CHR(39) show $search_str_t let #i = #i + #pos_l + 1 end-while let $ouput_where = ' in (' || $search_str_t || ')' let $search_str_t = '' let $search_str = '' end-procedure set-where-clause "Turner, Ivan" wrote: Why can't you use unstring? You say the field delimiter it comma. That's what unstring needs to work. I believe you would get nulls in the variables that are not are superfluous. -----Original Message----- From: sqr-users-bounces+ivan.turner=qwest.com@sqrug.org [mailto:sqr-users-bounces+ivan.turner=qwest.com@sqrug.org] On Behalf Of Ashok Kuttan Sent: Tuesday, August 23, 2005 1:02 PM To: sqr-users@sqrug.org Subject: [sqr-users] Unstring "ing" a dynamic length input file I have a file whose length is dynamic. Employee A might have 5 columns, whereas Employee B might have 10 columns. Hence I cannot use the traditional Unstring command to place in variables. Since this file is a comma delimited file, I was thinking of using "find" command to look for commas and then store the respective values in an array. Can anyone help me with the proper find loop or any other better solution ? File layout example (just one line): E,010,4500 Any help will be appreciated. Thanks JR --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 24 17:45:23 2005 Date: Wed, 24 Aug 2005 18:44:20 -0400 From: "Vaidyanathan, Ramakrishnan \(Corporate, consultant\)" Subject: [sqr-users] Application Engine Hi I need to remove junk characters from a file and replace the junk charac= ter with a space through app engine program How to do it. Pls send me the sample code Thanks & Regards V.Ramakrishnan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 24 19:37:44 2005 Date: Wed, 24 Aug 2005 21:34:22 -0400 (EDT) Subject: Re: [sqr-users] Application Engine From: "Sudeep Vaidya" Please post to the correct PeopleSoft user group. You might not get any replies from here , as this is a SQR user group > Hi > I need to remove junk characters from a file and replace the junk > character with a space through app engine program > How to do it. Pls send me the sample code > > Thanks & Regards > V.Ramakrishnan > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 25 09:06:44 2005 From: "Joe Johnson" Subject: RE: [sqr-users] Application Engine Date: Thu, 25 Aug 2005 08:05:35 -0600 Is there a PeopleSoft User group for App Engine? I was not aware that there was one. Thanks, Joe -----Original Message----- From: sqr-users-bounces+joejohnson=ernesthealth.com@sqrug.org [mailto:sqr-users-bounces+joejohnson=ernesthealth.com@sqrug.org] On Behalf Of Sudeep Vaidya Sent: Wednesday, August 24, 2005 7:34 PM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org Subject: Re: [sqr-users] Application Engine Please post to the correct PeopleSoft user group. You might not get any replies from here , as this is a SQR user group > Hi > I need to remove junk characters from a file and replace the junk > character with a space through app engine program How to do it. Pls > send me the sample code > > Thanks & Regards > V.Ramakrishnan > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 25 09:37:14 2005 Date: Thu, 25 Aug 2005 11:38:04 -0300 From: "PeterG Clark" Subject: RE: [sqr-users] Application Engine There are 348 PeopleSoft discussion groups listed at Yahoo Groups. While th= ere may not be one specifically dedicated to App Engine, there are several = that talk about technical issues in PS and I'm sure that AppEngine issues w= ould be discussed there. www.peoplesoftfans.com also has a technical forum and I've seen App Engine = discussed in the PeopleTools section of that PHP discussion board. >>> joejohnson@ernesthealth.com 2005/08/25 11:05:35 >>> Is there a PeopleSoft User group for App Engine? I was not aware that there was one. Thanks, Joe=20 -----Original Message----- From: sqr-users-bounces+joejohnson=3Dernesthealth.com@sqrug.org=20 [mailto:sqr-users-bounces+joejohnson=3Dernesthealth.com@sqrug.org] On Behalf Of Sudeep Vaidya Sent: Wednesday, August 24, 2005 7:34 PM To: sqr-users@sqrug.org=20 Cc: sqr-users@sqrug.org=20 Subject: Re: [sqr-users] Application Engine Please post to the correct PeopleSoft user group. You might not get any replies from here , as this is a SQR user group > Hi > I need to remove junk characters from a file and replace the junk=20 > character with a space through app engine program How to do it. Pls=20 > send me the sample code > > Thanks & Regards > V.Ramakrishnan > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 24 22:00:32 2005 Subject: FW: [sqr-users] SQR Date: Wed, 24 Aug 2005 22:59:24 -0400 From: "Vaidyanathan, Ramakrishnan \(Corporate, consultant\)" > Hi > I need to remove junk characters from a file and replace the junk > character with a space through SQR program > How to do it. Pls send me the sample code > > Thanks & Regards > V.Ramakrishnan > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 25 08:00:45 2005 Date: Thu, 25 Aug 2005 10:01:33 -0300 From: "PeterG Clark" Subject: Re: FW: [sqr-users] SQR If you are able to define the "junk" (i.e. know what characters are conside= red by you as junk), then you can use the translate e.g. if !@#$%^&*() are the characters showing up in your file that you cons= ider to be junk, the following will replace any occurance of them with a sp= ace. let $fieldwithoutjunk =3D translate($fieldwithjunk,'!@#$%^&*()',' ') >>> ramakrishnan.vaidyanathan@ge.com 2005/08/24 23:59:24 >>> > Hi > I need to remove junk characters from a file and replace the junk > character with a space through SQR program > How to do it. Pls send me the sample code > > Thanks & Regards > V.Ramakrishnan > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 25 12:12:37 2005 Date: Thu, 25 Aug 2005 10:11:51 -0700 From: David Donnelly Subject: [sqr-users] Re:unstring with variable columns You can still use unstring: read 1 into $in:80 ! see note below about these moves move '' to $a move '' to $b move '' to $c move '' to $d move '' to $e unstring $in by ',' into $a $b $c $d $e show $a ',' $b ',' $c ',' $d ',' $e This works, leaving the unfilled variables set to null. In 6.1.3, the initializing move statements are not necessary (and in fact they are ineffective, because the unstring statement actually sets all the "unused" variables to null. But you should verify that this behavior still happens in your version of SQR, or explicitly set them all to null first. Regards, Dave Dave Donnelly ISIS BioComp phone (951) 677-2446 fax (775) 314-7897 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 26 08:42:12 2005 Date: Fri, 26 Aug 2005 06:41:12 -0700 (PDT) From: brahm a Subject: [sqr-users] Call system Hi , This is Brahm.I am working on sqr.It is working in command prompt and sqrw.It is posted result in \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'.But when i am running on web(Process Scheduler). I got the problem like it does not posted result in \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'. I wrote below code.I am using sql server database . Please help me any one. LET $COMSPEC=GETENV('COMSPEC') !LET $COMMAND1 = $COMSPEC || ' /C OSQL -U sa -P sa -D CP3 -i \\PEOPLESVR2\HR8801\SQR\ACFTRM.SQL -o \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT' CALL SYSTEM USING $COMMAND1 #STATUS1 SHOW 'THIS IS STATUS OF COMMAN ONE: ' #STATUS1 Thanks Regards Brahm --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 26 08:48:26 2005 Date: Fri, 26 Aug 2005 23:45:28 +1000 From: "Alka Chauhan" Subject: Re: [sqr-users] Call system Ill be away from office on 29thAug - 31stAug,returning to work on 1st Sep. = Please contact Raymond Beddie on ext 6071 for any urgent matters. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 26 08:45:31 2005 Date: Fri, 26 Aug 2005 06:42:17 -0700 (PDT) From: brahm a Subject: [sqr-users] Please help me.I need to submit to production Hi , This is Brahm.I am working on sqr.It is working in command prompt and sqrw.It is posted result in \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'.But when i am running on web(Process Scheduler). I got the problem like it does not posted result in \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'. I wrote below code.I am using sql server database . Please help me any one. LET $COMSPEC=GETENV('COMSPEC') !LET $COMMAND1 = $COMSPEC || ' /C OSQL -U sa -P sa -D CP3 -i \\PEOPLESVR2\HR8801\SQR\ACFTRM.SQL -o \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT' CALL SYSTEM USING $COMMAND1 #STATUS1 SHOW 'THIS IS STATUS OF COMMAN ONE: ' #STATUS1 Thanks Regards Brahm --------------------------------- Yahoo! Mail Stay connected, organized, and protected. Take the tour _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 26 10:50:49 2005 Date: Fri, 26 Aug 2005 08:49:49 -0700 (PDT) From: brahm a Subject: [sqr-users] Please help me.I need to submit to production-call system Hi , This is Brahm.I am working on sqr.It is working in command prompt and sqrw. It is posted result in \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'. But when i am running on online(Process Scheduler).It is showing the Runstatus is 'success' and Distribution Status is 'posted' and It showing the #STATUS1 =0. Butit does not posted result in \\PEOPLESVR2\HR8801 \USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'. I wrote below code.I am using sql server database.Here OSQL is query analyzer.Please help me any one. LET $COMSPEC=GETENV('COMSPEC') LET $COMMAND1 = $COMSPEC || ' /C OSQL -U sa -P sa -D CP3 -i \\PEOPLESVR2\HR8801\SQR\ACFTRM.SQL -o \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT' CALL SYSTEM USING $COMMAND1 #STATUS1 SHOW 'THIS IS STATUS OF COMMAN ONE: ' #STATUS1 Thanks Regards Brahm --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 26 11:15:44 2005 Subject: Re: [sqr-users] Please help me.I need to submit to production-call system From: Roger.Harris@certegy.com Date: Fri, 26 Aug 2005 12:14:22 -0400 Since this is an SQR forum and your question appears to be a PeopleSoft issue you should consider posting to one of the PeopleSoft forums. |---------+----------------------------------------------------> | | "brahm a" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/26/2005 11:49 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] Please help me.I need to submit to production-call system | >----------------------------------------------------------------------------------------------| Hi , This is Brahm.I am working on sqr.It is working in command prompt and sqrw. It is posted result in \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'. But when i am running on online(Process Scheduler).It is showing the Runstatus is 'success' and Distribution Status is 'posted' and It showing the #STATUS1 =0. Butit does not posted result in \\PEOPLESVR2\HR8801 \USER\REPORTS\COMMON\ACFTRM_RESULT.TXT'. I wrote below code.I am using sql server database.Here OSQL is query analyzer.Please help me any one. LET $COMSPEC=GETENV('COMSPEC') LET $COMMAND1 = $COMSPEC || ' /C OSQL -U sa -P sa -D CP3 -i \\PEOPLESVR2\HR8801\SQR\ACFTRM.SQL -o \\PEOPLESVR2\HR8801\USER\REPORTS\COMMON\ACFTRM_RESULT.TXT' CALL SYSTEM USING $COMMAND1 #STATUS1 SHOW 'THIS IS STATUS OF COMMAN ONE: ' #STATUS1 Thanks Regards Brahm --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 26 17:47:41 2005 Date: Fri, 26 Aug 2005 15:46:34 -0700 (PDT) From: Gowri Srinivas Subject: [sqr-users] Retain leading zeros's for .xls output from SQR Hi All, I would like to know how I can retain the leading zeros (Egs. Invoice = '000000005') in the excel output from SQR. The leading 0s are truncating as excel treats the string as a number. Thanks in advance for your response. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 27 04:02:08 2005 Date: Sat, 27 Aug 2005 05:01:09 -0400 From: "tony" Subject: Re: [sqr-users] Retain leading zeros's for .xls output from SQR let $print-value = '=' || '"' || &d.journal_id || '"' <== need to concatenate "=" with the field value print $print-value (0,+3,15) Good luck Tony ----- Original Message ----- From: "Gowri Srinivas" To: Sent: Friday, August 26, 2005 6:46 PM Subject: [sqr-users] Retain leading zeros's for .xls output from SQR > Hi All, > I would like to know how I can retain the leading zeros (Egs. Invoice = > '000000005') in the excel output from SQR. The leading 0s are truncating > as excel treats the string as a number. > > Thanks in advance for your response. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 8/26/2005 > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 28 23:01:50 2005 Date: 29 Aug 2005 04:01:10 -0000 From: "Prakash Yanamandra" Subject: Re: [sqr-users] Retain leading zeros's for .xls output from SQR Hi Try by applying " (double quotes) on both sides. This might work ... Prakash. On Sat, 27 Aug 2005 Gowri Srinivas wrote : >Hi All, >I would like to know how I can retain the leading zeros (Egs. Invoice =3D = '000000005') in the excel output from SQR. The leading 0s are truncating as= excel treats the string as a number. > >Thanks in advance for your response. > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users Regards,=0D Prakash Yanamandra. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 10:48:36 2005 Date: Mon, 29 Aug 2005 08:47:34 -0700 (PDT) From: Gowri Srinivas Subject: Re: [sqr-users] Retain leading zeros's for .xls output from SQR Thank you Tony, Prakash and Neal for your responses. Tony, your suggestion worked. For the others, here's the code that worked: let $print-invoice = '=' || '"' || $F.INVOICE || '"' string $print-invoice $xxx $yyy by $Tab into $streamOut Write 1 from $streamOut __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 31 09:02:05 2005 Date: Wed, 31 Aug 2005 09:01:20 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Re: Retain leading zeros's for .xls output from SQR -- string literal concatenations This is a multi-part message in MIME format... --===============0202621996== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline This is a multi-part message in MIME format... --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 29, 2005 at 08:47:34AM -0700, Gowri Srinivas wrote: > suggestion worked. For the others, here's the code that worked: >=20=20 > let $print-invoice =3D '=3D' || '"' || $F.INVOICE || '"' It's been a while since I posted my periodic "concatenating two string literals" message.... For what it's worth, here it is again: In SQR, whenever a string literal is being concatenated to another string literal, one can always combine them into a single literal. This will, at the very least, save typing of several punctuation symbols (and usually makes the expression easier to read). So, the example above can also be expressed as: let $print-invoice =3D '=3D"' || $F.INVOICE || '"' 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 --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDFbgwFfOtzez7YjkRAmbCAJ4mCeKOzEVWpOwWcbiB6djTpGHMzACeOeIe 9j9JLS1u/pX4IaabzMo0Fz0= =Mb0o -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- --===============0202621996== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --===============0202621996==-- From sqr-users-bounces@sqrug.org Fri Aug 26 21:58:01 2005 Date: Fri, 26 Aug 2005 19:56:59 -0700 (PDT) From: Deb Harris Subject: [sqr-users] Invoking a Excel Macro SQR? Is there a way to create and invoke an Excel Macro from SQR? Any help would be greatly appreciated. Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 27 09:24:39 2005 From: "Prasanna Menta" Date: Sat, 27 Aug 2005 10:23:33 -0400 Subject: Re: [sqr-users] Invoking a Excel Macro SQR? We are interested too to know if there is a possibility to invoke a word macro from sqr? any code samples is appreciated. Prasanna ----- Original Message ----- From: Deb Harris Date: Friday, August 26, 2005 10:56 pm Subject: [sqr-users] Invoking a Excel Macro SQR? > Is there a way to create and invoke an Excel Macro from SQR? > > Any help would be greatly appreciated. > > Thanks > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 27 22:32:46 2005 Date: Sat, 27 Aug 2005 20:31:40 -0700 (PDT) From: Dattatraya Shetty Subject: Re: [sqr-users] Invoking a Excel Macro SQR? Its possible. But what is that you want to do ? Create a template spreadsheet and call it ?. or the spreadsheet is going to change everytime sqr runs ? The simple thing to do is use thisworkbook.open method in Excel macro to invoke the rest of the VBA code and use system command to open the EXCEL Spreadsheet. Let me know if this make sense. Thanks, Datta. --- Prasanna Menta wrote: > > We are interested too to know if there is a possibility to invoke a > word macro from sqr? any code samples is appreciated. > Prasanna > > ----- Original Message ----- > From: Deb Harris > Date: Friday, August 26, 2005 10:56 pm > Subject: [sqr-users] Invoking a Excel Macro SQR? > > > Is there a way to create and invoke an Excel Macro from SQR? > > > > Any help would be greatly appreciated. > > > > Thanks > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 08:09:56 2005 Date: Mon, 29 Aug 2005 06:08:47 -0700 (PDT) From: Deb Harris Subject: Re: [sqr-users] Invoking a Excel Macro SQR? Basicly I need to have the report output go into an excel file in addition to HTML & PDF outputs. Just outputing the report to a csv file, using the parameter flags, just places the information in the first column as text. The macro would need to parse out the information into separate columns. Is there a better way of doing this? Dattatraya Shetty wrote: Its possible. But what is that you want to do ? Create a template spreadsheet and call it ?. or the spreadsheet is going to change everytime sqr runs ? The simple thing to do is use thisworkbook.open method in Excel macro to invoke the rest of the VBA code and use system command to open the EXCEL Spreadsheet. Let me know if this make sense. Thanks, Datta. --- Prasanna Menta wrote: > > We are interested too to know if there is a possibility to invoke a > word macro from sqr? any code samples is appreciated. > Prasanna > > ----- Original Message ----- > From: Deb Harris > Date: Friday, August 26, 2005 10:56 pm > Subject: [sqr-users] Invoking a Excel Macro SQR? > > > Is there a way to create and invoke an Excel Macro from SQR? > > > > Any help would be greatly appreciated. > > > > Thanks > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 28 10:36:47 2005 From: "Prasanna Menta" Date: Sun, 28 Aug 2005 11:35:31 -0400 Subject: Re: [sqr-users] Invoking a Excel Macro SQR? Thanks - would you be able to send me some code samples or an sqr if you have? Prasanna ----- Original Message ----- From: Dattatraya Shetty Date: Saturday, August 27, 2005 11:31 pm Subject: Re: [sqr-users] Invoking a Excel Macro SQR? > Its possible. But what is that you want to do ? Create a template > spreadsheet and call it ?. or the spreadsheet is going to change > everytime sqr runs ? > > The simple thing to do is use thisworkbook.open method in Excel macro > to invoke the rest of the VBA code and use system command to open the > EXCEL Spreadsheet. Let me know if this make sense. > > Thanks, > Datta. > > --- Prasanna Menta wrote: > > > > > We are interested too to know if there is a possibility to > invoke a > > word macro from sqr? any code samples is appreciated. > > Prasanna > > > > ----- Original Message ----- > > From: Deb Harris > > Date: Friday, August 26, 2005 10:56 pm > > Subject: [sqr-users] Invoking a Excel Macro SQR? > > > > > Is there a way to create and invoke an Excel Macro from SQR? > > > > > > Any help would be greatly appreciated. > > > > > > Thanks > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 11:01:04 2005 Date: Mon, 29 Aug 2005 11:59:04 -0400 From: "Vaidyanathan, Ramakrishnan \(Corporate, consultant\)" Subject: [sqr-users] Reading junk characters from a file.. Hi Iam not able to read junk characters from a file. If i try to read a lin= e that has junk characters, it skips the remaining characters from that lin= e. For wg, say the line is aaaaaaabbbbbbbcccccddddddddd..... when i read the line it reads upto first occurance of the junk character i.= e in this case it reads upto bbbbbbb and after that it skips on seeing the = character. Is it possible to forcefully read the entire line. If its not possible in SQR, is it possible in App engine, or any other tech= nologies... Pls help. Thanks & Regards V.Ramakrishnan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 11:32:54 2005 From: "the dragon" Subject: RE: [sqr-users] Reading junk characters from a file.. Date: Mon, 29 Aug 2005 11:31:49 -0500 what do you consider a "junk" character???? 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) ----Original Message Follows---- Hi Iam not able to read junk characters from a file. If i try to read a line that has junk characters, it skips the remaining characters from that line. For wg, say the line is aaaaaaabbbbbbbcccccddddddddd..... when i read the line it reads upto first occurance of the junk character i.e in this case it reads upto bbbbbbb and after that it skips on seeing the character. Is it possible to forcefully read the entire line. If its not possible in SQR, is it possible in App engine, or any other technologies... Pls help. Thanks & Regards V.Ramakrishnan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 11:55:50 2005 From: Bill Beckner Date: Mon, 29 Aug 2005 11:54:46 -0500 Subject: [sqr-users] SQR Version of Hash PeopleCode function Good morning fellow SQR developers! Has anyone developed an SQR procedure that duplicates PeopleSoft's Hash (PeopleCode) function? Would you be willing to share this procedure? Thanks in advance!! -- William Beckner (Just call me "Bill") PeopleSoft Application Development Manager Technology Services Illinois Central College, Rm L130 - East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "Madness takes its toll - please have exact change ready." _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 14:56:12 2005 Date: Mon, 29 Aug 2005 12:55:00 -0700 (PDT) From: lakshmi chilamkurty Subject: [sqr-users] Process scheduler --- group of processes Hi, Iam using peoplesoft 8.8, I want to run around 20 sqr programmes to run serial job run mode i.e one success then proceed to nextone, here is the issue, I know there are 2 possibilities one is writing driver sqr where including all sqrs and run them but my sqrs can have same procedure names or varibles, where I am not suppose to change procedure names or variale names I take out this option, the 2nd way is grouping the processes using process scheduler process name, process type, job definitions etc. Do I need to create each page for each sqr (there are around 20 SQRs) and attach run_cntl id and group them in component and and attach to menu, and giving sequrity .... like that or is there any other way, if there is different way, all steps that I need to follow let me know please. Thanks, Chaitanya. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 15:02:19 2005 Date: Mon, 29 Aug 2005 16:01:13 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Process scheduler --- group of processes Yes, you need to create a process defininition for each, and then create a job. There is one other way, other than creating a job, but it is VERY BAD to do this. You could create the process definitions for the 20 SQRs and then assign them to the PeopleSoft Utilities panel group so you run them the same as SYSAUDIT. I highly recommend against it. Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? Larry Roux Syracuse University lroux@syr.edu >>> chaitanyach@yahoo.com 08/29/05 3:55 PM >>> Hi, Iam using peoplesoft 8.8, I want to run around 20 sqr programmes to run serial job run mode i.e one success then proceed to nextone, here is the issue, I know there are 2 possibilities one is writing driver sqr where including all sqrs and run them but my sqrs can have same procedure names or varibles, where I am not suppose to change procedure names or variale names I take out this option, the 2nd way is grouping the processes using process scheduler process name, process type, job definitions etc. Do I need to create each page for each sqr (there are around 20 SQRs) and attach run_cntl id and group them in component and and attach to menu, and giving sequrity .... like that or is there any other way, if there is different way, all steps that I need to follow let me know please. Thanks, Chaitanya. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 15:05:20 2005 Date: Mon, 29 Aug 2005 16:02:20 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Process scheduler --- group of processes ps: alternatively, you could use your batch scheduler outside PS to run the jobs. Larry Roux Syracuse University lroux@syr.edu >>> chaitanyach@yahoo.com 08/29/05 3:55 PM >>> Hi, Iam using peoplesoft 8.8, I want to run around 20 sqr programmes to run serial job run mode i.e one success then proceed to nextone, here is the issue, I know there are 2 possibilities one is writing driver sqr where including all sqrs and run them but my sqrs can have same procedure names or varibles, where I am not suppose to change procedure names or variale names I take out this option, the 2nd way is grouping the processes using process scheduler process name, process type, job definitions etc. Do I need to create each page for each sqr (there are around 20 SQRs) and attach run_cntl id and group them in component and and attach to menu, and giving sequrity .... like that or is there any other way, if there is different way, all steps that I need to follow let me know please. Thanks, Chaitanya. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 16:11:57 2005 Date: Mon, 29 Aug 2005 14:10:49 -0700 (PDT) From: lakshmi chilamkurty Subject: Re: [sqr-users] Process scheduler --- group of processes Hi Larry, Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? what does that means? Thanks, Chaitanya. Larry Roux wrote: Yes, you need to create a process defininition for each, and then create a job. There is one other way, other than creating a job, but it is VERY BAD to do this. You could create the process definitions for the 20 SQRs and then assign them to the PeopleSoft Utilities panel group so you run them the same as SYSAUDIT. I highly recommend against it. Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? Larry Roux Syracuse University lroux@syr.edu >>> chaitanyach@yahoo.com 08/29/05 3:55 PM >>> Hi, Iam using peoplesoft 8.8, I want to run around 20 sqr programmes to run serial job run mode i.e one success then proceed to nextone, here is the issue, I know there are 2 possibilities one is writing driver sqr where including all sqrs and run them but my sqrs can have same procedure names or varibles, where I am not suppose to change procedure names or variale names I take out this option, the 2nd way is grouping the processes using process scheduler process name, process type, job definitions etc. Do I need to create each page for each sqr (there are around 20 SQRs) and attach run_cntl id and group them in component and and attach to menu, and giving sequrity .... like that or is there any other way, if there is different way, all steps that I need to follow let me know please. Thanks, Chaitanya. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 17:25:02 2005 Date: Mon, 29 Aug 2005 18:23:45 -0400 From: "Everett Carr" Subject: Re: [sqr-users] Process scheduler --- group of processes There is another way that is VERY CLEAN. Assuming the run control parms are the same; Lets say for example, journal = entry interfaces where you might have 50 differenct interface feeds of diff= ering in format but all going into the same tables (journal entry) in peopl= esoft... Then a really nice solution is a SINGLE page/panel that has a dropdown that= lists the 50 different interfaces to choose from. EACH interface is a separate SQC (sqr include). Through the run contol the = USER selected module is then loaded "on the fly", at execution time. So you get to create one page, one menu item one component and an infinite = number of interface modules. And the really cool thing about this, is when you add the next interface yo= ur developement steps are simply: 1 write the sqc and 2 add it to the drop = down lookup table and yer all done. Take me about 20 minutes to write and setup an entirely new interface using= this approach. >>> chaitanyach@yahoo.com 08/29/05 5:10 PM >>> Hi Larry, =20 Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? what does that means? Thanks, Chaitanya. =20 =20 Larry Roux wrote: Yes, you need to create a process defininition for each, and then create a job. There is one other way, other than creating a job, but it is VERY BAD to do this. You could create the process definitions for the 20 SQRs and then assign them to the PeopleSoft Utilities panel group so you run them the same as SYSAUDIT. I highly recommend against it. Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? Larry Roux Syracuse University lroux@syr.edu=20 >>> chaitanyach@yahoo.com 08/29/05 3:55 PM >>> Hi, Iam using peoplesoft 8.8, I want to run around 20 sqr programmes to run serial job run mode i.e one success then proceed to nextone, here is the issue, I know there are 2 possibilities one is writing driver sqr where including all sqrs and run them but my sqrs can have same procedure names or varibles, where I am not suppose to change procedure names or variale names I take out this option, the 2nd way is grouping the processes using process scheduler process name, process type, job definitions etc. Do I need to create each page for each sqr (there are around 20 SQRs) and attach run_cntl id and group them in component and and attach to menu, and giving sequrity .... like that or is there any other way, if there is different way, all steps that I need to follow let me know please.=20 Thanks, Chaitanya. --------------------------------- Start your day with Yahoo! - make it your home page=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 =09=09 --------------------------------- Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 29 20:46:28 2005 Date: Mon, 29 Aug 2005 21:45:41 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Process scheduler --- group of processes For instance, if you have 20 SQRs that show: SQR 1) number of Current Employees who are over 50 SQR 2) number of Current Employees who are under 50 SQR 3) number of Former Employees who are over 40 etc then they are all essentially the same SQR with different run parameters. In that case one SQR would do, with a runcontrol with a scroll level that would allow you to enter 1, 10 or 20 different run parameters. Even if there are 5 somewhat different ones that could be run 4 times with different parms that would be far better. Is there really any process that requires 20 very different SQRs be run? I can't imagine it, but I guess it is possible. Larry Roux Syracuse University lroux@syr.edu >>> chaitanyach@yahoo.com 08/29/05 5:10 PM >>> Hi Larry, Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? what does that means? Thanks, Chaitanya. Larry Roux wrote: Yes, you need to create a process defininition for each, and then create a job. There is one other way, other than creating a job, but it is VERY BAD to do this. You could create the process definitions for the 20 SQRs and then assign them to the PeopleSoft Utilities panel group so you run them the same as SYSAUDIT. I highly recommend against it. Are the 20 SQRs all so different that you can't just create a run control and have 1 or a few SQRs where the parameters are different? Larry Roux Syracuse University lroux@syr.edu >>> chaitanyach@yahoo.com 08/29/05 3:55 PM >>> Hi, Iam using peoplesoft 8.8, I want to run around 20 sqr programmes to run serial job run mode i.e one success then proceed to nextone, here is the issue, I know there are 2 possibilities one is writing driver sqr where including all sqrs and run them but my sqrs can have same procedure names or varibles, where I am not suppose to change procedure names or variale names I take out this option, the 2nd way is grouping the processes using process scheduler process name, process type, job definitions etc. Do I need to create each page for each sqr (there are around 20 SQRs) and attach run_cntl id and group them in component and and attach to menu, and giving sequrity .... like that or is there any other way, if there is different way, all steps that I need to follow let me know please. Thanks, Chaitanya. --------------------------------- Start your day with Yahoo! - make it your home page _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 09:40:07 2005 Date: Tue, 30 Aug 2005 07:39:01 -0700 (PDT) From: Jeet Subject: [sqr-users] read file? Hi All, I am reading a data file from a SQR program. After opening the file, I am reading lines from the data file as follows read 1 into $in-rec:4000 Now is there a limit on how many character at the max, one line at time can be read from data file? In other words, how many character can I read from the data file at a time using the “read” statement in SQR? Thanks so much in advance for any suggestions on this. - Jeet. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 09:58:24 2005 Date: Tue, 30 Aug 2005 09:57:40 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] read file? Jeet, There are 4 limits to the length of a read: 1) The record length you specified when you opened the file 2) The record length you specified on the read command 3) The maximum size of an SQR string variable (32767) 4) The first newline, chr(10), or null, chr(0) encountered in the file Good luck, Eric Jeet wrote: >Hi All, >I am reading a data file from a SQR program. After >opening the file, I am reading lines from the data >file as follows=20 > > read 1 into $in-rec:4000 > >Now is there a limit on how many character at the max, >one line at time can be read from data file? In other >words, how many character can I read from the data >file at a time using the =93read=94 statement in SQR?=20 > >Thanks so much in advance for any suggestions on this. > > > - Jeet.=20 > > > >=09=09 >____________________________________________________ >Start your day with Yahoo! - make it your home page=20 >http://www.yahoo.com/r/hs=20 >=20 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >=20=20 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 10:07:32 2005 From: "Sam Spritzer" Date: Tue, 30 Aug 2005 11:06:52 -0400 Subject: [sqr-users] How many companies have owned SQR? Its nice to be back on the list but I have to imagine that 90% of my SQR bookmarks are probably invalid! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 10:22:01 2005 Date: Tue, 30 Aug 2005 11:20:51 -0400 From: Robert Goshko Subject: Re: [sqr-users] How many companies have owned SQR? On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". --=20 ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 11:20:05 2005 Date: Tue, 30 Aug 2005 11:19:26 -0500 From: Mac Sandridge Subject: Re: [sqr-users] How many companies have owned SQR? Robert Goshko wrote: >On 8/30/05, Sam Spritzer wrote: > > >>Its nice to be back on the list but I have to imagine that 90% of my SQR >>bookmarks are probably invalid! >> >> > >My SQR3 manual was printed for Miti, I know there was Seagate and >Brio, not sure of any other "owners". > > > I remember using the version 2 manuals, but I don't remember who they were published by. However, I remember when I started with SQR, our copy was comped (we were the MVS compile site). Those were also the days that if I called Israel up and said there was a problem, he would work with me on our mainframe, figure out and fix the issue and put out the new version all in a few days. I miss that time, last defect I reported to Brio, it took them about 2 months to figure out it was a real defect and I don't know if it ever got resolved! Ah well, progress must happen! Btw, it was also owned by Israel's company, but for the life of me, I can't remember it's name. I'm fairly certain that Miti (or was it SQRibe) that he sold it to... It really has been too long! -- Mac Sandridge Can I get a refund on my Y-chromosome, please? It's not quite what was promised in the marketing brochure. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 10:34:55 2005 Subject: Re: [sqr-users] How many companies have owned SQR? From: Roger.Harris@certegy.com Date: Tue, 30 Aug 2005 11:33:31 -0400 Miti changed their name to SQRibe a couple years before they hooked up with Brio then Hyperion. Here is the link to Hyperion's documentation: http://dev.hyperion.com/resource_library/technical_documentation/ |---------+----------------------------------------------------> | | "Robert Goshko" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/30/2005 11:20 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] How many companies have owned SQR? | >----------------------------------------------------------------------------------------------| On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 10:41:15 2005 From: "Sam Spritzer" Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 11:40:30 -0400 Looks like I have to get the Hyperion version of the manual since I have the Miti, SQRibe, and Brio versions. I am beginning to feel really ancient now! -----Original Message----- From: sqr-users-bounces+sam=samspritzer.com@sqrug.org [mailto:sqr-users-bounces+sam=samspritzer.com@sqrug.org] On Behalf Of Roger.Harris@certegy.com Sent: Tuesday, August 30, 2005 11:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How many companies have owned SQR? Miti changed their name to SQRibe a couple years before they hooked up with Brio then Hyperion. Here is the link to Hyperion's documentation: http://dev.hyperion.com/resource_library/technical_documentation/ |---------+----------------------------------------------------> | | "Robert Goshko" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/30/2005 11:20 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >--------------------------------------------------------------------------- -------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] How many companies have owned SQR? | >--------------------------------------------------------------------------- -------------------| On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================ == _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 12:48:58 2005 From: "the dragon" Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 12:47:42 -0500 Sam-I-am, That's because you *are* really ancient. 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) ----Original Message Follows---- Looks like I have to get the Hyperion version of the manual since I have the Miti, SQRibe, and Brio versions. I am beginning to feel really ancient now! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 10:48:16 2005 Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 11:47:05 -0400 From: "Peter Burton" Sam, It is older than that ... SQ Software=20 Sybase MITI SQRiBE Technologies Brio Software Hyperion Solutions Peter P.S. I have worked for them all and still am. Talk about ancient. -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Sam Spritzer Sent: Tuesday, August 30, 2005 11:41 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] How many companies have owned SQR? Looks like I have to get the Hyperion version of the manual since I have the Miti, SQRibe, and Brio versions. I am beginning to feel really ancient now! -----Original Message----- From: sqr-users-bounces+sam=3Dsamspritzer.com@sqrug.org [mailto:sqr-users-bounces+sam=3Dsamspritzer.com@sqrug.org] On Behalf Of Roger.Harris@certegy.com Sent: Tuesday, August 30, 2005 11:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How many companies have owned SQR? Miti changed their name to SQRibe a couple years before they hooked up with Brio then Hyperion. Here is the link to Hyperion's documentation: http://dev.hyperion.com/resource_library/technical_documentation/ |---------+----------------------------------------------------> | | "Robert Goshko" | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 08/30/2005 11:20 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> =20 >----------------------------------------------------------------------- ---- -------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] How many companies have owned SQR? | =20 >----------------------------------------------------------------------- ---- -------------------| On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ---- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D =3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 10:51:52 2005 From: "Sam Spritzer" Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 11:51:09 -0400 Peter, Good to see you're still kicking! You must have a strong stomach for all of the changes in companies! Sam -----Original Message----- From: sqr-users-bounces+sam=samspritzer.com@sqrug.org [mailto:sqr-users-bounces+sam=samspritzer.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, August 30, 2005 11:47 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] How many companies have owned SQR? Sam, It is older than that ... SQ Software Sybase MITI SQRiBE Technologies Brio Software Hyperion Solutions Peter P.S. I have worked for them all and still am. Talk about ancient. -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Sam Spritzer Sent: Tuesday, August 30, 2005 11:41 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] How many companies have owned SQR? Looks like I have to get the Hyperion version of the manual since I have the Miti, SQRibe, and Brio versions. I am beginning to feel really ancient now! -----Original Message----- From: sqr-users-bounces+sam=samspritzer.com@sqrug.org [mailto:sqr-users-bounces+sam=samspritzer.com@sqrug.org] On Behalf Of Roger.Harris@certegy.com Sent: Tuesday, August 30, 2005 11:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How many companies have owned SQR? Miti changed their name to SQRibe a couple years before they hooked up with Brio then Hyperion. Here is the link to Hyperion's documentation: http://dev.hyperion.com/resource_library/technical_documentation/ |---------+----------------------------------------------------> | | "Robert Goshko" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 08/30/2005 11:20 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------- ---- -------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] How many companies have owned SQR? | >----------------------------------------------------------------------- ---- -------------------| On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ==================================================================== Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ---- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ======================================================================== ==== == _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 11:00:30 2005 Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 11:59:15 -0400 From: "Peter Burton" Sam, Yup. Peter=20 -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Sam Spritzer Sent: Tuesday, August 30, 2005 11:51 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] How many companies have owned SQR? Peter, Good to see you're still kicking! You must have a strong stomach for all of the changes in companies! Sam -----Original Message----- From: sqr-users-bounces+sam=3Dsamspritzer.com@sqrug.org [mailto:sqr-users-bounces+sam=3Dsamspritzer.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, August 30, 2005 11:47 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] How many companies have owned SQR? Sam, It is older than that ... SQ Software=20 Sybase MITI SQRiBE Technologies Brio Software Hyperion Solutions Peter P.S. I have worked for them all and still am. Talk about ancient. -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Sam Spritzer Sent: Tuesday, August 30, 2005 11:41 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] How many companies have owned SQR? Looks like I have to get the Hyperion version of the manual since I have the Miti, SQRibe, and Brio versions. I am beginning to feel really ancient now! -----Original Message----- From: sqr-users-bounces+sam=3Dsamspritzer.com@sqrug.org [mailto:sqr-users-bounces+sam=3Dsamspritzer.com@sqrug.org] On Behalf Of Roger.Harris@certegy.com Sent: Tuesday, August 30, 2005 11:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How many companies have owned SQR? Miti changed their name to SQRibe a couple years before they hooked up with Brio then Hyperion. Here is the link to Hyperion's documentation: http://dev.hyperion.com/resource_library/technical_documentation/ |---------+----------------------------------------------------> | | "Robert Goshko" | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 08/30/2005 11:20 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> =20 >----------------------------------------------------------------------- ---- -------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] How many companies have owned SQR? | =20 >----------------------------------------------------------------------- ---- -------------------| On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ---- -- This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D =3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 11:27:04 2005 Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 11:26:21 -0500 From: "Knapp, Richard" Thanks so much for this link. It seems that 70% of the questions these days are RTFM. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Roger.Harris@certegy.com Sent: Tuesday, August 30, 2005 10:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How many companies have owned SQR? Miti changed their name to SQRibe a couple years before they hooked up with Brio then Hyperion. Here is the link to Hyperion's documentation: http://dev.hyperion.com/resource_library/technical_documentation/ |---------+----------------------------------------------------> | | "Robert Goshko" | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 08/30/2005 11:20 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> =20 >----------------------------------------------------------------------- -----------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." | | cc: | | Subject: Re: [sqr-users] How many companies have owned SQR? | =20 >----------------------------------------------------------------------- -----------------------| On 8/30/05, Sam Spritzer wrote: > Its nice to be back on the list but I have to imagine that 90% of my SQR > bookmarks are probably invalid! My SQR3 manual was printed for Miti, I know there was Seagate and Brio, not sure of any other "owners". -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 2+ GB web mail, just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 30 12:52:10 2005 From: "the dragon" Subject: RE: [sqr-users] How many companies have owned SQR? Date: Tue, 30 Aug 2005 12:50:45 -0500 Richard, I'd guess closer to 90 percent, and they mostly seem to be from people who shouldn't be charging to code in SQR, which is why I quit answering most of the questions, but I digress. peace, clark 'the dravon' 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) ----Original Message Follows---- Thanks so much for this link. It seems that 70% of the questions these days are RTFM. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 00:00:44 2005 Date: Thu, 1 Sep 2005 00:00:03 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ 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 2004/03/04: o New name and URL for "HyperionSQR" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. 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. 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 Fri Sep 09 08:26:36 2005 Date: Fri, 09 Sep 2005 09:26:00 -0400 From: Christine Sessler Subject: [sqr-users] SQR version Question Hello - We're at the start of upgrading PeopleSoft from Learning Solutions 8 SP1 to Campus Solutions 8.9. We've noted that the version of SQR has changed with the new version. I'm curious if anyone knows of any "gotchas" between the SQR version for 8 and the new version for Tools 8.9. Any one have any thoughts on this? Thanks! Chris ************************************************************ Christine Sessler PeopleSoft Certified Professional Developer Cornell University CIT/Information Systems 120 Maple Avenue Ithaca, NY 14850 607.255.8149 - Office 607.255.6982 - Fax cms41@cornell.edu PeopleSoft On-Call: 607.254.4500 ************************************************************ "Nobody realizes that some people expend tremendous energy merely to be normal." - Albert Camus "Dogs don't trouble themselves with minutes or hours. Time is either 'Now!' or 'Right Now!" - Arthur Yorinks "Error of opinion may be tolerated where reason is left free to combat it." - Thomas Jefferson _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 05:16:05 2005 Date: Thu, 1 Sep 2005 15:29:35 +0530 From: chandra reddy Subject: [sqr-users] to schedule an SQR program HI all , can i know how to schedule a SQR program with out using process scheduler _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 06:24:46 2005 Date: Thu, 01 Sep 2005 08:05:17 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] to schedule an SQR program Presumably you are talking about the PeopleSoft process scheduler rather th= an one of the dozens of other process scheduling packages available? I woul= d then check out any of those other scheduling packages if the complexity o= f the scheduling is beyond the rudimentary scheduling tools that your opera= ting system can provide (you did not specify whether you are mainframe base= d, UNIX based or PC based) >>> chandra.bhumi@gmail.com 2005/09/01 06:59:35 >>> HI all , can i know how to schedule a SQR program with out using process scheduler _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 11:45:16 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] to schedule an SQR program Date: Thu, 1 Sep 2005 09:45:16 -0700 There are other process schedulers, from other vendors, besides Peoplesoft's Process Scheduler. There might be something built-in to Unix, but I don't know Unix, so I'm just guessing. If you're desperate, you could write a loop into the SQR program to go round and round until a particular time. -----Original Message----- From: chandra reddy [mailto:chandra.bhumi@gmail.com] Sent: Thursday, September 01, 2005 3:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] to schedule an SQR program HI all , can i know how to schedule a SQR program with out using process scheduler _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 15:02:02 2005 Date: Thu, 01 Sep 2005 15:54:57 -0400 From: "George Jansen" Subject: RE: [sqr-users] to schedule an SQR program Ask the insomniac in the next office to run it for you? Actually, on Windows 98 and up you can schedule jobs through the control pa= nel. With UNIX you can use "cron" to schedule jobs: run "man cron" for an e= xplanation. Be aware that cron leaves you with a naked environment, so the = SQR call will have to be wrapped in a script that sets up PATH, SQRDIR etc.= etc. >>> Steven.Alexander@sanjoseca.gov 09/01/05 12:45 PM >>> There are other process schedulers, from other vendors, besides Peoplesoft's Process Scheduler. There might be something built-in to Unix, but I don't know Unix, so I'm just guessing. If you're desperate, you could write a loop into the SQR program to go round and round until a particular time. -----Original Message----- From: chandra reddy [mailto:chandra.bhumi@gmail.com]=20 Sent: Thursday, September 01, 2005 3:00 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] to schedule an SQR program HI all , can i know how to schedule a SQR program with out using process scheduler _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 15:16:50 2005 Subject: RE: [sqr-users] to schedule an SQR program Date: Thu, 1 Sep 2005 13:15:44 -0700 From: "Niedziela, John" My company uses Tidal's job scheduler for PeopleSoft and non-peoplesoft jobs. The non-peoplesoft jobs are a mixed bag of SQR, SQL scripts, FTP and dos jobs. Regards -----Original Message----- From: sqr-users-bounces+jniedziela=3Dcalwater.com@sqrug.org [mailto:sqr-users-bounces+jniedziela=3Dcalwater.com@sqrug.org] On Behalf Of George Jansen Sent: Thursday, September 01, 2005 12:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] to schedule an SQR program Ask the insomniac in the next office to run it for you? Actually, on Windows 98 and up you can schedule jobs through the control panel. With UNIX you can use "cron" to schedule jobs: run "man cron" for an explanation. Be aware that cron leaves you with a naked environment, so the SQR call will have to be wrapped in a script that sets up PATH, SQRDIR etc. etc. >>> Steven.Alexander@sanjoseca.gov 09/01/05 12:45 PM >>> There are other process schedulers, from other vendors, besides Peoplesoft's Process Scheduler. There might be something built-in to Unix, but I don't know Unix, so I'm just guessing. If you're desperate, you could write a loop into the SQR program to go round and round until a particular time. -----Original Message----- From: chandra reddy [mailto:chandra.bhumi@gmail.com] Sent: Thursday, September 01, 2005 3:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] to schedule an SQR program HI all , can i know how to schedule a SQR program with out using process scheduler _______________________________________________ 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 01 19:12:50 2005 From: "Cristiano Azeredo" Date: Thu, 1 Sep 2005 21:12:08 -0300 Subject: [sqr-users] Maximo Matuse and Matrec SQR files Good afternoon people. =20 Somebody got a SQR files for Matuse (invetory used material) and Matrec (inventory received material) reports on MRO Maximo?=20 =20 I just got yhe SQT files, and i got an error when running the report. I have already check if a decompiler exists, but in one topic in the lst i saw that nobody knows one tool to do this one. =20 Cristiano Azeredo Maca=E9 - RJ - Brazil =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 Sep 02 05:37:32 2005 Subject: RE: [sqr-users] Maximo Matuse and Matrec SQR files Date: Fri, 2 Sep 2005 06:36:28 -0400 From: "Wes Williams" You should have the source files on your Maximo sqr install CD unless these= are custom reports. Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bou= nces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of Cristiano Azeredo Sent: Thursday, September 01, 2005 8:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] Maximo Matuse and Matrec SQR files Good afternoon people. =20 Somebody got a SQR files for Matuse (invetory used material) and Matrec (inventory received material) reports on MRO Maximo?=20 =20 I just got yhe SQT files, and i got an error when running the report. I have already check if a decompiler exists, but in one topic in the lst i saw that nobody knows one tool to do this one. =20 Cristiano Azeredo Maca=E9 - RJ - Brazil =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 Sep 02 00:54:58 2005 From: "Syed Husain" Date: Fri, 2 Sep 2005 11:24:03 +0530 Subject: [sqr-users] Bulk Insert into a table using SQR Hi , I am selecting data from a table A which is in a database say DB1 and I want to populate this selected data into another table B (which is same in the structure as table A) which is in another database say DB2. I want to insert the data in a bulk into the table B. Can anyone advise , how I can use bulk insert in the above senario. Regards, Syed Husain Software Engineer, EAS-PeopleSoft Patni Computer Systems Ltd. Mahape- Navi Mumbai Ext: 4138/3048 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 02 06:51:51 2005 Date: Fri, 2 Sep 2005 17:20:29 +0530 From: praveen reddy Subject: Re: [sqr-users] Bulk Insert into a table using SQR Dear friend, This is not related to sqr. Your DBA has to give the database link access.Inmy earlier project i insert data into oracle database from Infinium. There we used to access the data like the following select a b=20 c from table name@dblink regards, Ram, ADP On 9/2/05, Syed Husain wrote:=20 >=20 > Hi , >=20 > I am selecting data from a table A which is in a database say DB1 and I= =20 > want > to populate this selected data into another table B (which is same in the > structure as table A) which is in another database say DB2. > I want to insert the data in a bulk into the table B. Can anyone advise , > how I can use bulk insert in the above senario. >=20 > Regards, >=20 > Syed Husain > Software Engineer, > EAS-PeopleSoft > Patni Computer Systems Ltd. > Mahape- Navi Mumbai > Ext: 4138/3048 >=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 Sep 02 06:56:07 2005 Date: Fri, 2 Sep 2005 04:54:43 -0700 (PDT) From: Sam Spritzer Subject: Re: [sqr-users] Bulk Insert into a table using SQR You will probably be better off populating a text file or some equivalent and then do an insert from that. SQRly yours, Sam Syed Husain wrote: Hi , I am selecting data from a table A which is in a database say DB1 and I want to populate this selected data into another table B (which is same in the structure as table A) which is in another database say DB2. I want to insert the data in a bulk into the table B. Can anyone advise , how I can use bulk insert in the above senario. Regards, Syed Husain Software Engineer, EAS-PeopleSoft Patni Computer Systems Ltd. Mahape- Navi Mumbai Ext: 4138/3048 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 02 07:00:52 2005 Date: Fri, 2 Sep 2005 08:00:40 -0400 From: "Siradas, Erik" Subject: [sqr-users] Line Feed Character for Word Mail Merge Is there an ascii character value that can be used with the encode function of SQR to create a line feed character for Microsoft Mail Merge? I tried to use encode <013> but that gave me a return character value when I opened my output in Microsoft word. =20 Erik =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 05 21:49:49 2005 From: "Bob Buford" Subject: RE: [sqr-users] Line Feed Character for Word Mail Merge Date: Mon, 5 Sep 2005 22:48:46 -0400 Linefeed character alone is ascii 10. Use that together with ascii 13 to ensure that the cursor is returned to column 1 Bob Buford -----Original Message----- From: Siradas, Erik [mailto:esiradas@sjfc.edu] Sent: Friday, September 02, 2005 8:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Line Feed Character for Word Mail Merge Is there an ascii character value that can be used with the encode function of SQR to create a line feed character for Microsoft Mail Merge? I tried to use encode <013> but that gave me a return character value when I opened my output in Microsoft word. Erik _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 05 09:40:55 2005 Date: Mon, 5 Sep 2005 07:39:48 -0700 (PDT) From: srikanth reddy Subject: [sqr-users] SQR output in .csv file Hello , I am having a two issues while displaying values in the .csv format . (i) if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. (ii) if the output i want to display is 23.450 then only 23.45 is displayed in the Excel file. i.e. trailing zero is not displayed. Can you please suggest a solution for this. Thanks Srikanth --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 05 10:03:35 2005 Date: Mon, 5 Sep 2005 08:02:32 -0700 (PDT) From: Sam Spritzer Subject: Re: [sqr-users] SQR output in .csv file (i) Instead of using a comma as a separator, use a semi-colon (;). (ii) when you are importing into Excel, use the Text Import Wizard. The third step of that feature allows you to define how you want a specific column to be formatted. In your case, you would want TEXT. SQRly yours, Sam srikanth reddy wrote: Hello , I am having a two issues while displaying values in the .csv format . (i) if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. (ii) if the output i want to display is 23.450 then only 23.45 is displayed in the Excel file. i.e. trailing zero is not displayed. Can you please suggest a solution for this. Thanks Srikanth --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 06 03:49:44 2005 Date: Tue, 6 Sep 2005 01:48:18 -0700 (PDT) From: srikanth reddy Subject: Re: [sqr-users] SQR output in .csv file Hello , The user is expecting to open the CSV file in Excel just on Double click and not by using any Wizard. So I have to use comma as the seperator . Can you suggest any other solution for the following problem. if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. if we use the mask as $$$$$$$$$9.99 then value is displayed properly i.e. like $10,000.50 Example MOVE #amt TO $amount $$$$$$$$9.99 But if we use the mask as 999999999.99999 then comma is not displayed Ex : MOVE #amt TO $amount 99999999.99 then only 23456.98 is displayed. If we use MOVE #amt TO $amount 999,999,999.99 then value is splitted into different cells in excel ex 23 is displayed in one column and 456.98 is displayed in another coulmn, But I want 23,456.98 to be displayed only in one column, Please suggest a solution. Thanks Srikanth Sam Spritzer wrote: (i) Instead of using a comma as a separator, use a semi-colon (;). (ii) when you are importing into Excel, use the Text Import Wizard. The third step of that feature allows you to define how you want a specific column to be formatted. In your case, you would want TEXT. SQRly yours, Sam srikanth reddy wrote: Hello , I am having a two issues while displaying values in the .csv format . (i) if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. (ii) if the output i want to display is 23.450 then only 23.45 is displayed in the Excel file. i.e. trailing zero is not displayed. Can you please suggest a solution for this. Thanks Srikanth --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 06 08:23:24 2005 From: "the dragon" Subject: Re: [sqr-users] SQR output in .csv file Date: Tue, 06 Sep 2005 08:22:18 -0500 I think the point you're missing is that the csv file is a comma separated values file (which can use other characters as a separator), it is *NOT* and xls file with embedded formatting. The easiest fix on this, I believe, is to leave out the commas in the numbers; they are not needed! 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) ----Original Message Follows---- Hello , The user is expecting to open the CSV file in Excel just on Double click and not by using any Wizard. So I have to use comma as the seperator . Can you suggest any other solution for the following problem. if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. if we use the mask as $$$$$$$$$9.99 then value is displayed properly i.e. like $10,000.50 Example MOVE #amt TO $amount $$$$$$$$9.99 But if we use the mask as 999999999.99999 then comma is not displayed Ex : MOVE #amt TO $amount 99999999.99 then only 23456.98 is displayed. If we use MOVE #amt TO $amount 999,999,999.99 then value is splitted into different cells in excel ex 23 is displayed in one column and 456.98 is displayed in another coulmn, But I want 23,456.98 to be displayed only in one column, Please suggest a solution. Thanks Srikanth _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 06 08:01:10 2005 Subject: RE: [sqr-users] SQR output in .csv file Date: Tue, 6 Sep 2005 08:59:55 -0400 From: "Bob Buford" Hi Srikanth, I suggest using tab as your field delimiter rather than comma. It is interpreting the comma in your value as a field delimiter - so use a different delimiter. Excel works just as well recognizing Tab for field, Carriage Return (chr 13) as record, as it would with comma. As to your second question (how to preset formatting for a cell so as to show 3 significant digits even with trailing zeros), I don't know the answer, but you should look in help references to see how to preset formatting so that a csv file will open with preferred formatting. BTW, you can output as .xls just as easily as .csv as regards the file name I did some research at MS Online here: http://www.microsoft.com/office/community/en-us/default.mspx?dg=3Dmicrosof t.public.excel.misc&lang=3Den&cr=3DUS It appears that the stripping happens when you open the .csv file. You could try renaming file as .xls and see if this happens. =20 Bob Buford -----Original Message----- From: srikanth reddy [mailto:srikanthreddy_mca@yahoo.com]=20 Sent: Tuesday, September 06, 2005 4:48 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR output in .csv file=20 Hello , The user is expecting to open the CSV file in Excel just on Double click and not by using any Wizard. So I have to use comma as the seperator . Can you suggest any other solution for the following problem. if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=3D" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. if we use the mask as $$$$$$$$$9.99 then value is displayed properly i.e. like $10,000.50 Example MOVE #amt TO $amount $$$$$$$$9.99 But if we use the mask as 999999999.99999 then comma is not displayed Ex : MOVE #amt TO $amount 99999999.99 then only 23456.98 is displayed. If we use MOVE #amt TO $amount 999,999,999.99 then value is splitted into different cells in excel ex 23 is displayed in one column and 456.98 is displayed in another coulmn, But I want 23,456.98 to be displayed only in one column, Please suggest a solution. Thanks Srikanth =20 Sam Spritzer wrote: (i) Instead of using a comma as a separator, use a semi-colon (;). (ii) when you are importing into Excel, use the Text Import Wizard. The third step of that feature allows you to define how you want a specific column to be formatted. In your case, you would want TEXT. SQRly yours, Sam srikanth reddy wrote: Hello , I am having a two issues while displaying values in the .csv format . (i) if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=3D" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. (ii) if the output i want to display is 23.450 then only 23.45 is displayed in the Excel file. i.e. trailing zero is not displayed. Can you please suggest a solution for this. Thanks Srikanth --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =09=09 --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 06 08:38:45 2005 Date: Tue, 06 Sep 2005 09:38:05 -0400 From: don.barclay@srs.gov Subject: RE: [sqr-users] SQR output in .csv file Bob was half way there. If you use the tab as your delimiter, you can then successfully use ="23,124.300" and excel will treat it as a text value, retaining the comma and trailing zeros. I would imagine that you are already naming the file with an .xls extension if you are able to open the file in excel by double clicking. Otherwise, you would have to have the proper file association on any computer that may need access to the file. > Hi Srikanth, > > I suggest using tab as your field delimiter rather than comma. It is > interpreting the comma in your value as a field delimiter - so use a > different delimiter. Excel works just as well recognizing Tab for > field, Carriage Return (chr 13) as record, as it would with comma. > > As to your second question (how to preset formatting for a cell so as to > show 3 significant digits even with trailing zeros), I don't know the > answer, but you should look in help references to see how to preset > formatting so that a csv file will open with preferred formatting. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 06 08:08:14 2005 Subject: RE: [sqr-users] SQR output in .csv file From: Roger.Harris@certegy.com Date: Tue, 6 Sep 2005 09:06:44 -0400 A "csv" file will NOT open or save with any formatting. The other option that you have is to create your file in a SYLK (*.slk) format with which you can apply basic formatting options including data types of columns. There have been a number of threads in this issue, search the archives for "slk". |---------+----------------------------------------------------> | | "Bob Buford" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 09/06/2005 08:59 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reportinglanguage from | | Hyperion Solutions." | | cc: | | Subject: RE: [sqr-users] SQR output in .csv file | >----------------------------------------------------------------------------------------------| Hi Srikanth, I suggest using tab as your field delimiter rather than comma. It is interpreting the comma in your value as a field delimiter - so use a different delimiter. Excel works just as well recognizing Tab for field, Carriage Return (chr 13) as record, as it would with comma. As to your second question (how to preset formatting for a cell so as to show 3 significant digits even with trailing zeros), I don't know the answer, but you should look in help references to see how to preset formatting so that a csv file will open with preferred formatting. BTW, you can output as .xls just as easily as .csv as regards the file name I did some research at MS Online here: http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsof t.public.excel.misc&lang=en&cr=US It appears that the stripping happens when you open the .csv file. You could try renaming file as .xls and see if this happens. Bob Buford -----Original Message----- From: srikanth reddy [mailto:srikanthreddy_mca@yahoo.com] Sent: Tuesday, September 06, 2005 4:48 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] SQR output in .csv file Hello , The user is expecting to open the CSV file in Excel just on Double click and not by using any Wizard. So I have to use comma as the seperator . Can you suggest any other solution for the following problem. if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. if we use the mask as $$$$$$$$$9.99 then value is displayed properly i.e. like $10,000.50 Example MOVE #amt TO $amount $$$$$$$$9.99 But if we use the mask as 999999999.99999 then comma is not displayed Ex : MOVE #amt TO $amount 99999999.99 then only 23456.98 is displayed. If we use MOVE #amt TO $amount 999,999,999.99 then value is splitted into different cells in excel ex 23 is displayed in one column and 456.98 is displayed in another coulmn, But I want 23,456.98 to be displayed only in one column, Please suggest a solution. Thanks Srikanth Sam Spritzer wrote: (i) Instead of using a comma as a separator, use a semi-colon (;). (ii) when you are importing into Excel, use the Text Import Wizard. The third step of that feature allows you to define how you want a specific column to be formatted. In your case, you would want TEXT. SQRly yours, Sam srikanth reddy wrote: Hello , I am having a two issues while displaying values in the .csv format . (i) if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. (ii) if the output i want to display is 23.450 then only 23.45 is displayed in the Excel file. i.e. trailing zero is not displayed. Can you please suggest a solution for this. Thanks Srikanth --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 06 08:58:05 2005 From: "Sam Parks" Subject: Re: [sqr-users] SQR output in .csv file Date: Tue, 6 Sep 2005 07:00:14 -0700 You need to take control of writing the csv file inside your program, then write a double quote, your first column of data, a double quote, than a comma Write {file number} from double quote (excel column (either a literial (surrounded by a single quote), or a data name) double quote , than a comma) Example write 1 from " 'literial1' "," 'literial2' "," 'literial3' "," $data_name " Hope this helps, Sam ----- Original Message ----- From: To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." Sent: Tuesday, September 06, 2005 6:06 AM Subject: RE: [sqr-users] SQR output in .csv file > > A "csv" file will NOT open or save with any formatting. The other option > that you have is to create your file in a SYLK (*.slk) format with which > you can apply basic formatting options including data types of columns. > There have been a number of threads in this issue, search the archives for > "slk". > > > > |---------+----------------------------------------------------> > | | "Bob Buford" | > | | Sent by: | > | | sqr-users-bounces+roger.harris=certegy.co| > | | m@sqrug.org | > | | | > | | | > | | 09/06/2005 08:59 AM | > | | Please respond to "This list is for | > | | discussion about the SQR database | > | | reporting language from Hyperion | > | | Solutions." | > | | | > |---------+----------------------------------------------------> > >--------------------------------------------------------------------------- -------------------| > | | > | To: "This list is for discussion about the SQR database reportinglanguage from | > | Hyperion Solutions." | > | cc: | > | Subject: RE: [sqr-users] SQR output in .csv file | > >--------------------------------------------------------------------------- -------------------| > > > > Hi Srikanth, > > I suggest using tab as your field delimiter rather than comma. It is > interpreting the comma in your value as a field delimiter - so use a > different delimiter. Excel works just as well recognizing Tab for > field, Carriage Return (chr 13) as record, as it would with comma. > > As to your second question (how to preset formatting for a cell so as to > show 3 significant digits even with trailing zeros), I don't know the > answer, but you should look in help references to see how to preset > formatting so that a csv file will open with preferred formatting. > > BTW, you can output as .xls just as easily as .csv as regards the file > name > > I did some research at MS Online here: > http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsof > t.public.excel.misc&lang=en&cr=US > > It appears that the stripping happens when you open the .csv file. You > could try renaming file as .xls and see if this happens. > > > > Bob Buford > > -----Original Message----- > From: srikanth reddy [mailto:srikanthreddy_mca@yahoo.com] > Sent: Tuesday, September 06, 2005 4:48 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] SQR output in .csv file > > > Hello , > > The user is expecting to open the CSV file in Excel just on Double > click and not by using any Wizard. So I have to use comma as the > seperator . > > Can you suggest any other solution for the following problem. > > if the Output I want to display is 3,456.234 then in the Excel file 3 > is being displayed in one column and 456.234 is being displayed in > another column. > Point to be noted is I have used the technique like '=" || xyz || '"' > where xyz contains the value but still the output is splitted into two > different coulmns in the excel file. > > > if we use the mask as $$$$$$$$$9.99 then value is displayed properly > i.e. like $10,000.50 > > Example MOVE #amt TO $amount $$$$$$$$9.99 > > But if we use the mask as 999999999.99999 then comma is not displayed > > Ex : MOVE #amt TO $amount 99999999.99 then only 23456.98 is displayed. > > If we use MOVE #amt TO $amount 999,999,999.99 then value is splitted > into different cells in excel > > ex 23 is displayed in one column and 456.98 is displayed in another > coulmn, > > But I want 23,456.98 to be displayed only in one column, > > Please suggest a solution. > > Thanks > Srikanth > > > > > > Sam Spritzer wrote: (i) Instead of using a comma > as a separator, use a semi-colon (;). > (ii) when you are importing into Excel, use the Text Import Wizard. The > third step of that feature allows you to define how you want a specific > column to be formatted. In your case, you would want TEXT. > SQRly yours, > Sam > > srikanth reddy wrote: > Hello , > I am having a two issues while displaying values in the .csv format . > > (i) if the Output I want to display is 3,456.234 then in the Excel file > 3 is being displayed in one column and 456.234 is being displayed in > another column. > Point to be noted is I have used the technique like '=" || xyz || '"' > where xyz contains the value but still the output is splitted into two > different coulmns in the excel file. > > (ii) if the output i want to display is 23.450 then only 23.45 is > displayed in the Excel file. i.e. trailing zero is not displayed. > > Can you please suggest a solution for this. > > Thanks > Srikanth > > > > --------------------------------- > Click here to donate to the Hurricane Katrina relief effort. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ************************************************************ > "In the beginning, there was something...which exploded yet, they find > nothing." > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > --------------------------------- > Click here to donate to the Hurricane Katrina relief effort. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > -------------------------------------------------------------------------- ---- > This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. > ============================================================================ == > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 07:22:37 2005 Subject: RE: [sqr-users] SQR output in .csv file Date: Wed, 7 Sep 2005 07:21:07 -0500 From: "Jim Womeldorf" Srikanth, If you really want to format the output of an Excel file created using SQR take a look at the stuff at this link http://www.ontko.com/sqr/sylk.html. It takes more work than just producing a CSV or character delimited file but you will be able to produce Excel files with quite a bit of formatting. Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of srikanth reddy Sent: Monday, September 05, 2005 9:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR output in .csv file=20 Hello , I am having a two issues while displaying values in the .csv format . =20 (i) if the Output I want to display is 3,456.234 then in the Excel file 3 is being displayed in one column and 456.234 is being displayed in another column. Point to be noted is I have used the technique like '=3D" || xyz || '"' where xyz contains the value but still the output is splitted into two different coulmns in the excel file. =20 (ii) if the output i want to display is 23.450 then only 23.45 is displayed in the Excel file. i.e. trailing zero is not displayed. =20 Can you please suggest a solution for this. =20 Thanks Srikanth =09=09 --------------------------------- Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 12:00:13 2005 Date: Wed, 07 Sep 2005 12:59:13 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Dynamic Array Size - Version 6.2 I need help with dynamic array sizing.=20 Here is my situation: I need to create an array & assign the size to a number based on the total = count of agents in a given geographic area. So, I do the following: 1. I determine the number of agents & assign that count to a variable, #Cou= nt. 2, Then, I use this variable in the #Define command to assign this value to= a substitution variable AgentCount. 3. Then, I use this substitution variable, AgentCount for the size paramete= r within a Create-Array command. I get the following SQR error: (SQR 3526) Missing or incorrect SIZE=3D in C= REATE-ARRAY. While debugging this, I find the correct value assigned to the substitution= variable, AgentCount. However the Create-Array fails.=20 I cannot get the agent count within the setup portion, since the count is r= eturned by a PL/SQL procedure. Can somebody let me know if I am doing something incorrectly.=20 Thanks in advance. Jessie BEGIN-PROCEDURE Get_Agent_Count BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'Get_Agent_Count') COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count Let #Agent_Count =3D &Count FROM=20 MY_SCHEMA.MY_TBL WHERE=20 MY_TBL.RPT_RUN_HDR_ID =3D #rpt_run_hdr_id END-SELECT #Define AgentCount #Agent_Count =09 Create-Array Name=3DArr_Totals size=3D{AgentCount}=20=20 END-PROCEDURE Get_Agent_Count _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 12:03:32 2005 Date: Wed, 07 Sep 2005 13:00:15 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Dynamic Array Size - Version 6.2 Hi all, I need help with dynamic array sizing.=20 Here is my situation: I need to create an array & assign the size to a number based on the total = count of agents in a given geographic area. So, I do the following: 1. I determine the number of agents & assign that count to a variable, #Cou= nt. 2, Then, I use this variable in the #Define command to assign this value to= a substitution variable AgentCount. 3. Then, I use this substitution variable, AgentCount for the size paramete= r within a Create-Array command. I get the following SQR error: (SQR 3526) Missing or incorrect SIZE=3D in C= REATE-ARRAY. While debugging this, I find the correct value assigned to the substitution= variable, AgentCount. However the Create-Array fails.=20 I cannot get the agent count within the setup portion, since the count is r= eturned by a PL/SQL procedure. Can somebody let me know if I am doing something incorrectly.=20 Thanks in advance. Jessie BEGIN-PROCEDURE Get_Agent_Count BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'Get_Agent_Count') COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count Let #Agent_Count =3D &Count FROM=20 MY_SCHEMA.MY_TBL WHERE=20 MY_TBL.RPT_RUN_HDR_ID =3D #rpt_run_hdr_id END-SELECT #Define AgentCount #Agent_Count =09 Create-Array Name=3DArr_Totals size=3D{AgentCount}=20=20 END-PROCEDURE Get_Agent_Count _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 13:00:33 2005 Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Date: Wed, 7 Sep 2005 12:59:24 -0500 From: "Bob Stone" did you try assigning the variable a value? Right now, you are not. Creat= e-Array needs a value at compile time, and AgentCount is set at runtime. S= o as it compiles it see 'create array of size null -- ERROR'.=20=20 If you don't know how many rows you have, you must over-allocate and specif= y an upper bound. If you think you'll have between 60-80 agents usually, m= aybe set the array size to 100. 2 months down the road you end up with mor= e agents, change the array size to 500. The difference to your machine bet= ween an array of 100 and 500 and 5000 is hardly noticable for an SQR.=20=20 Go ahead and over-allocate, and if you need to know the number of agents (s= o you can cycle through them in the array, or some other reason besides cre= ating the array of that size) you can either count as you're inserting, or = do what you do with #agent_count. Within the program, using while loops an= d #agent_count, you can basically pretend that the array is only as big as = #agent_count...even though more space was allocated at compile time. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Jessie Dickenson Sent: Wednesday, September 07, 2005 11:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Dynamic Array Size - Version 6.2 I need help with dynamic array sizing.=20 Here is my situation: I need to create an array & assign the size to a number based on the total = count of agents in a given geographic area. So, I do the following: 1. I determine the number of agents & assign that count to a variable, #Cou= nt. 2, Then, I use this variable in the #Define command to assign this value to= a substitution variable AgentCount. 3. Then, I use this substitution variable, AgentCount for the size paramete= r within a Create-Array command. I get the following SQR error: (SQR 3526) Missing or incorrect SIZE=3D in C= REATE-ARRAY. While debugging this, I find the correct value assigned to the substitution= variable, AgentCount. However the Create-Array fails.=20 I cannot get the agent count within the setup portion, since the count is r= eturned by a PL/SQL procedure. Can somebody let me know if I am doing something incorrectly.=20 Thanks in advance. Jessie BEGIN-PROCEDURE Get_Agent_Count BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'Get_Agent_Count') COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count Let #Agent_Count =3D &Count FROM=20 MY_SCHEMA.MY_TBL WHERE=20 MY_TBL.RPT_RUN_HDR_ID =3D #rpt_run_hdr_id END-SELECT #Define AgentCount #Agent_Count =09 Create-Array Name=3DArr_Totals size=3D{AgentCount}=20=20 END-PROCEDURE Get_Agent_Count _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 13:03:53 2005 Date: Wed, 7 Sep 2005 14:00:24 -0400 From: "Kevin Laroche" Subject: Re: [sqr-users] Dynamic Array Size - Version 6.2 Hi I tried to do this to and was advised that the only way to do was either to run a 'pre' sqr program to determine the size needed and then pass this to the main program or just make the array bigger than you would ever need. Cheers Kevin LaRoche Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 13:11:54 2005 Date: Wed, 07 Sep 2005 14:11:05 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Thank you Bob for your prompt response.=20 I am actually over-allocating the storage; but figured there maybe a cleane= r way to deal with the array size. While searching the archives of this for= um, I found a solution that it is possible to allocate the size dynamically= by using substitution variables.=20 While I do have a solution by over-allocating for the agenct count at compl= e time, I would still like to know if this dynamic allocation really works = in 6.2. Thanks again. Jessie >>> bstone@fastenal.com 09/07/05 1:59 PM >>> did you try assigning the variable a value? Right now, you are not. Creat= e-Array needs a value at compile time, and AgentCount is set at runtime. S= o as it compiles it see 'create array of size null -- ERROR'.=20=20 If you don't know how many rows you have, you must over-allocate and specif= y an upper bound. If you think you'll have between 60-80 agents usually, m= aybe set the array size to 100. 2 months down the road you end up with mor= e agents, change the array size to 500. The difference to your machine bet= ween an array of 100 and 500 and 5000 is hardly noticable for an SQR.=20=20 Go ahead and over-allocate, and if you need to know the number of agents (s= o you can cycle through them in the array, or some other reason besides cre= ating the array of that size) you can either count as you're inserting, or = do what you do with #agent_count. Within the program, using while loops an= d #agent_count, you can basically pretend that the array is only as big as = #agent_count...even though more space was allocated at compile time. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Jessie Dickenson Sent: Wednesday, September 07, 2005 11:59 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Dynamic Array Size - Version 6.2 I need help with dynamic array sizing.=20 Here is my situation: I need to create an array & assign the size to a number based on the total = count of agents in a given geographic area. So, I do the following: 1. I determine the number of agents & assign that count to a variable, #Cou= nt. 2, Then, I use this variable in the #Define command to assign this value to= a substitution variable AgentCount. 3. Then, I use this substitution variable, AgentCount for the size paramete= r within a Create-Array command. I get the following SQR error: (SQR 3526) Missing or incorrect SIZE=3D in C= REATE-ARRAY. While debugging this, I find the correct value assigned to the substitution= variable, AgentCount. However the Create-Array fails.=20 I cannot get the agent count within the setup portion, since the count is r= eturned by a PL/SQL procedure. Can somebody let me know if I am doing something incorrectly.=20 Thanks in advance. Jessie BEGIN-PROCEDURE Get_Agent_Count BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'Get_Agent_Count') COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count Let #Agent_Count =3D &Count FROM=20 MY_SCHEMA.MY_TBL WHERE=20 MY_TBL.RPT_RUN_HDR_ID =3D #rpt_run_hdr_id END-SELECT #Define AgentCount #Agent_Count =09 Create-Array Name=3DArr_Totals size=3D{AgentCount}=20=20 END-PROCEDURE Get_Agent_Count _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 13:39:30 2005 Date: Wed, 7 Sep 2005 13:38:53 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Jessie, In version 6.2 you have to over-allocate, or have 2 sqr programs. The "dynamic" way that you mention is using 2 sqr programs. The first sqr program determines the number of array elements needed and calls the second sqr program with the "CALL SYSTEM USING" command and passes the number as a parameter. The second sqr (the main code) uses an "ASK" command to set a compile-time substitution variable, which is used as the value for "SIZE=" in the "CREATE-ARRAY" command. This method means that the sqr programs (at least the second one) must remain uncompiled. A compiled SQT will set the "ASK" value when it's compiled. In version 8.0 and above (non-peoplesoft) there was an "EXTENT=" option added to the "CREATE-ARRAY" command to allow arrays to grow as needed. HTH, Don On Wed, 7 Sep 2005, Jessie Dickenson wrote: > Thank you Bob for your prompt response. > > I am actually over-allocating the storage; but figured there maybe a > cleaner way to deal with the array size. While searching the archives of > this forum, I found a solution that it is possible to allocate the size > dynamically by using substitution variables. > > While I do have a solution by over-allocating for the agenct count at > comple time, I would still like to know if this dynamic allocation > really works in 6.2. > > Thanks again. > Jessie > > >>> bstone@fastenal.com 09/07/05 1:59 PM >>> > did you try assigning the variable a value? Right now, you are not. > Create-Array needs a value at compile time, and AgentCount is set at > runtime. So as it compiles it see 'create array of size null -- ERROR'. > > If you don't know how many rows you have, you must over-allocate and > specify an upper bound. If you think you'll have between 60-80 agents > usually, maybe set the array size to 100. 2 months down the road you > end up with more agents, change the array size to 500. The difference > to your machine between an array of 100 and 500 and 5000 is hardly > noticable for an SQR. > > Go ahead and over-allocate, and if you need to know the number of agents > (so you can cycle through them in the array, or some other reason > besides creating the array of that size) you can either count as you're > inserting, or do what you do with #agent_count. Within the program, > using while loops and #agent_count, you can basically pretend that the > array is only as big as #agent_count...even though more space was > allocated at compile time. > > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of > Jessie Dickenson > Sent: Wednesday, September 07, 2005 11:59 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Dynamic Array Size - Version 6.2 > > > I need help with dynamic array sizing. > > Here is my situation: > I need to create an array & assign the size to a number based on the total count of agents in a given geographic area. > > So, I do the following: > 1. I determine the number of agents & assign that count to a variable, #Count. > 2, Then, I use this variable in the #Define command to assign this value to a substitution variable AgentCount. > 3. Then, I use this substitution variable, AgentCount for the size parameter within a Create-Array command. > > I get the following SQR error: (SQR 3526) Missing or incorrect SIZE= in CREATE-ARRAY. > > While debugging this, I find the correct value assigned to the substitution variable, AgentCount. However the Create-Array fails. > > I cannot get the agent count within the setup portion, since the count is returned by a PL/SQL procedure. > > Can somebody let me know if I am doing something incorrectly. > > Thanks in advance. > Jessie > > BEGIN-PROCEDURE Get_Agent_Count > BEGIN-SELECT ON-ERROR=SQR_ERROR((1,'Get_Agent_Count') > COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count > > Let #Agent_Count = &Count > FROM > MY_SCHEMA.MY_TBL > WHERE > MY_TBL.RPT_RUN_HDR_ID = #rpt_run_hdr_id > END-SELECT > > #Define AgentCount #Agent_Count > > Create-Array Name=Arr_Totals size={AgentCount} > END-PROCEDURE Get_Agent_Count > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 13:28:39 2005 From: "Alexander, Steve" Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Date: Wed, 7 Sep 2005 11:28:46 -0700 You can use substitution variables, but that doesn't allocate dynamically. The substition takes place as the compiler is processing the source file, long before the SQL will execute. Once the substitution takes place, the resulting text is interpreted by the compiler. The compiler will still insist that the array size be a literal number, not a variable. The latest version of SQR allows you to have extensions to the array like extensions to the load-lookup command. I wish I had the latest version. It seems like that gives you the same effect as a dynamic array, but I don't know how it works. -----Original Message----- From: Jessie Dickenson [mailto:jmdickenson@rainbow-media.com] Sent: Wednesday, September 07, 2005 11:11 AM To: bstone@fastenal.com; This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Thank you Bob for your prompt response. I am actually over-allocating the storage; but figured there maybe a cleaner way to deal with the array size. While searching the archives of this forum, I found a solution that it is possible to allocate the size dynamically by using substitution variables. While I do have a solution by over-allocating for the agenct count at comple time, I would still like to know if this dynamic allocation really works in 6.2. Thanks again. Jessie >>> bstone@fastenal.com 09/07/05 1:59 PM >>> did you try assigning the variable a value? Right now, you are not. Create-Array needs a value at compile time, and AgentCount is set at runtime. So as it compiles it see 'create array of size null -- ERROR'. If you don't know how many rows you have, you must over-allocate and specify an upper bound. If you think you'll have between 60-80 agents usually, maybe set the array size to 100. 2 months down the road you end up with more agents, change the array size to 500. The difference to your machine between an array of 100 and 500 and 5000 is hardly noticable for an SQR. Go ahead and over-allocate, and if you need to know the number of agents (so you can cycle through them in the array, or some other reason besides creating the array of that size) you can either count as you're inserting, or do what you do with #agent_count. Within the program, using while loops and #agent_count, you can basically pretend that the array is only as big as #agent_count...even though more space was allocated at compile time. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Jessie Dickenson Sent: Wednesday, September 07, 2005 11:59 AM To: sqr-users@sqrug.org Subject: [sqr-users] Dynamic Array Size - Version 6.2 I need help with dynamic array sizing. Here is my situation: I need to create an array & assign the size to a number based on the total count of agents in a given geographic area. So, I do the following: 1. I determine the number of agents & assign that count to a variable, #Count. 2, Then, I use this variable in the #Define command to assign this value to a substitution variable AgentCount. 3. Then, I use this substitution variable, AgentCount for the size parameter within a Create-Array command. I get the following SQR error: (SQR 3526) Missing or incorrect SIZE= in CREATE-ARRAY. While debugging this, I find the correct value assigned to the substitution variable, AgentCount. However the Create-Array fails. I cannot get the agent count within the setup portion, since the count is returned by a PL/SQL procedure. Can somebody let me know if I am doing something incorrectly. Thanks in advance. Jessie BEGIN-PROCEDURE Get_Agent_Count BEGIN-SELECT ON-ERROR=SQR_ERROR((1,'Get_Agent_Count') COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count Let #Agent_Count = &Count FROM MY_SCHEMA.MY_TBL WHERE MY_TBL.RPT_RUN_HDR_ID = #rpt_run_hdr_id END-SELECT #Define AgentCount #Agent_Count Create-Array Name=Arr_Totals size={AgentCount} END-PROCEDURE Get_Agent_Count _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 14:03:00 2005 Date: Wed, 07 Sep 2005 15:02:08 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Thank you Don and Steven for your responses. Since the total number of agen= ts is currently at 450, I am going to safely over-allocate at 600; This sho= uld help solve my problem for the short-term. Agents do not increase greatl= y within a year and so, I can always increase the limit later. Meanwhile I would try getting version 8.2 or 8.3 for my company. Thanks again for all your help. Jessie >>> donm@ontko.com 09/07/05 2:38 PM >>> Jessie, In version 6.2 you have to over-allocate, or have 2 sqr programs. The "dynamic" way that you mention is using 2 sqr programs.=20=20 The first sqr program determines the number of array elements needed and calls the second sqr program with the "CALL SYSTEM USING" command and passes the number as a parameter.=20=20 The second sqr (the main code) uses an "ASK" command to set a compile-time substitution variable, which is used as the value for "SIZE=3D" in the "CREATE-ARRAY" command. This method means that the sqr programs (at least the second one) must remain uncompiled. A compiled SQT will set the "ASK" value when it's compiled. In version 8.0 and above (non-peoplesoft) there was an "EXTENT=3D" option= =20 added to the "CREATE-ARRAY" command to allow arrays to grow as needed.=20 HTH, Don On Wed, 7 Sep 2005, Jessie Dickenson wrote: > Thank you Bob for your prompt response.=20 >=20 > I am actually over-allocating the storage; but figured there maybe a > cleaner way to deal with the array size. While searching the archives of > this forum, I found a solution that it is possible to allocate the size > dynamically by using substitution variables.=20 >=20 > While I do have a solution by over-allocating for the agenct count at > comple time, I would still like to know if this dynamic allocation > really works in 6.2. >=20 > Thanks again. > Jessie >=20 > >>> bstone@fastenal.com 09/07/05 1:59 PM >>> > did you try assigning the variable a value? Right now, you are not. > Create-Array needs a value at compile time, and AgentCount is set at > runtime. So as it compiles it see 'create array of size null -- ERROR'.= =20=20 >=20 > If you don't know how many rows you have, you must over-allocate and > specify an upper bound. If you think you'll have between 60-80 agents > usually, maybe set the array size to 100. 2 months down the road you > end up with more agents, change the array size to 500. The difference > to your machine between an array of 100 and 500 and 5000 is hardly > noticable for an SQR.=20=20 >=20 > Go ahead and over-allocate, and if you need to know the number of agents > (so you can cycle through them in the array, or some other reason > besides creating the array of that size) you can either count as you're > inserting, or do what you do with #agent_count. Within the program, > using while loops and #agent_count, you can basically pretend that the > array is only as big as #agent_count...even though more space was > allocated at compile time. >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of > Jessie Dickenson > Sent: Wednesday, September 07, 2005 11:59 AM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] Dynamic Array Size - Version 6.2 >=20 >=20 > I need help with dynamic array sizing.=20 >=20 > Here is my situation: > I need to create an array & assign the size to a number based on the tota= l count of agents in a given geographic area. >=20 > So, I do the following: > 1. I determine the number of agents & assign that count to a variable, #C= ount. > 2, Then, I use this variable in the #Define command to assign this value = to a substitution variable AgentCount. > 3. Then, I use this substitution variable, AgentCount for the size parame= ter within a Create-Array command. >=20 > I get the following SQR error: (SQR 3526) Missing or incorrect SIZE=3D in= CREATE-ARRAY. >=20 > While debugging this, I find the correct value assigned to the substituti= on variable, AgentCount. However the Create-Array fails.=20 >=20 > I cannot get the agent count within the setup portion, since the count is= returned by a PL/SQL procedure. >=20 > Can somebody let me know if I am doing something incorrectly.=20 >=20 > Thanks in advance. > Jessie >=20 > BEGIN-PROCEDURE Get_Agent_Count > BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'Get_Agent_Count') > COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count >=20 > Let #Agent_Count =3D &Count > FROM=20 > MY_SCHEMA.MY_TBL > WHERE=20 > MY_TBL.RPT_RUN_HDR_ID =3D #rpt_run_hdr_id > END-SELECT >=20 > #Define AgentCount #Agent_Count >=20=09 > Create-Array Name=3DArr_Totals size=3D{AgentCount}=20=20 > END-PROCEDURE Get_Agent_Count >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/=20 donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 14:20:09 2005 Date: Wed, 7 Sep 2005 12:18:59 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Dynamic Array Size - Version 6.2 Jessie, What you might want to do is if you are writing to a log that you check, you could put something in there to remind you as well as keep track of the number of agents. SQRly yours, Sam Jessie Dickenson wrote: Thank you Don and Steven for your responses. Since the total number of agents is currently at 450, I am going to safely over-allocate at 600; This should help solve my problem for the short-term. Agents do not increase greatly within a year and so, I can always increase the limit later. Meanwhile I would try getting version 8.2 or 8.3 for my company. Thanks again for all your help. Jessie >>> donm@ontko.com 09/07/05 2:38 PM >>> Jessie, In version 6.2 you have to over-allocate, or have 2 sqr programs. The "dynamic" way that you mention is using 2 sqr programs. The first sqr program determines the number of array elements needed and calls the second sqr program with the "CALL SYSTEM USING" command and passes the number as a parameter. The second sqr (the main code) uses an "ASK" command to set a compile-time substitution variable, which is used as the value for "SIZE=" in the "CREATE-ARRAY" command. This method means that the sqr programs (at least the second one) must remain uncompiled. A compiled SQT will set the "ASK" value when it's compiled. In version 8.0 and above (non-peoplesoft) there was an "EXTENT=" option added to the "CREATE-ARRAY" command to allow arrays to grow as needed. HTH, Don On Wed, 7 Sep 2005, Jessie Dickenson wrote: > Thank you Bob for your prompt response. > > I am actually over-allocating the storage; but figured there maybe a > cleaner way to deal with the array size. While searching the archives of > this forum, I found a solution that it is possible to allocate the size > dynamically by using substitution variables. > > While I do have a solution by over-allocating for the agenct count at > comple time, I would still like to know if this dynamic allocation > really works in 6.2. > > Thanks again. > Jessie > > >>> bstone@fastenal.com 09/07/05 1:59 PM >>> > did you try assigning the variable a value? Right now, you are not. > Create-Array needs a value at compile time, and AgentCount is set at > runtime. So as it compiles it see 'create array of size null -- ERROR'. > > If you don't know how many rows you have, you must over-allocate and > specify an upper bound. If you think you'll have between 60-80 agents > usually, maybe set the array size to 100. 2 months down the road you > end up with more agents, change the array size to 500. The difference > to your machine between an array of 100 and 500 and 5000 is hardly > noticable for an SQR. > > Go ahead and over-allocate, and if you need to know the number of agents > (so you can cycle through them in the array, or some other reason > besides creating the array of that size) you can either count as you're > inserting, or do what you do with #agent_count. Within the program, > using while loops and #agent_count, you can basically pretend that the > array is only as big as #agent_count...even though more space was > allocated at compile time. > > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of > Jessie Dickenson > Sent: Wednesday, September 07, 2005 11:59 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Dynamic Array Size - Version 6.2 > > > I need help with dynamic array sizing. > > Here is my situation: > I need to create an array & assign the size to a number based on the total count of agents in a given geographic area. > > So, I do the following: > 1. I determine the number of agents & assign that count to a variable, #Count. > 2, Then, I use this variable in the #Define command to assign this value to a substitution variable AgentCount. > 3. Then, I use this substitution variable, AgentCount for the size parameter within a Create-Array command. > > I get the following SQR error: (SQR 3526) Missing or incorrect SIZE= in CREATE-ARRAY. > > While debugging this, I find the correct value assigned to the substitution variable, AgentCount. However the Create-Array fails. > > I cannot get the agent count within the setup portion, since the count is returned by a PL/SQL procedure. > > Can somebody let me know if I am doing something incorrectly. > > Thanks in advance. > Jessie > > BEGIN-PROCEDURE Get_Agent_Count > BEGIN-SELECT ON-ERROR=SQR_ERROR((1,'Get_Agent_Count') > COUNT (DISTINCT MY_TBL.AgentLENGTH) &Count > > Let #Agent_Count = &Count > FROM > MY_SCHEMA.MY_TBL > WHERE > MY_TBL.RPT_RUN_HDR_ID = #rpt_run_hdr_id > END-SELECT > > #Define AgentCount #Agent_Count > > Create-Array Name=Arr_Totals size={AgentCount} > END-PROCEDURE Get_Agent_Count > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 07 23:41:56 2005 Date: 8 Sep 2005 04:43:12 -0000 From: "Sasi D" Subject: [sqr-users] (SQR 6004) Encountered unknown SPF code (0) Hi, I am having one problem while generating SQR Report.I have got the followin= g error message. (SQR 6004) Encountered unknown SPF code (0) while reading the printer file. SQR: Program Aborting. %SYSTEM-E-UNALIGNED, IOSA or data buffer not aligned Error running report! I could not get the report file.I have got only SPF file. =A0 When I generate report from SPF File,The following error has occured.I trie= d to see spf file using SQRP(SQR Print command). But I could not read the SPF File. > sqrp IPSPURGE_REM_124.SPF;1 SQRP V4.3.1 %SYSTEM-F-ACCVIO, access violation, reason mask=3D00, virtual address=3D000= 000000000003C, PC=3DFFFFFFFF8050A760, PS=3D0000001B %TRACE-F-TRACEBACK, symbolic stack dump follows image module routine line rel PC abs PC 0 0000000000000000 FFFFFFFF8050= A760 SQRP SPF_PROC sqr0131 18053 00000000000008D8 000000000003= CC58 SQRP SPF_READ sqr0136 17778 0000000000001F94 000000000003= A624 SQRP SQRP DoMainLogic 17735 0000000000000568 000000000003= 0568 SQRP SQRP main 17481 0000000000000138 000000000003= 0138 SQRP SQRP __main 0 00000000000000A8 000000000003= 00A8 0 FFFFFFFF92021178 FFFFFFFF9202= 1178 Why I could not resd the SPF File.Could you help me to resolve this problem= ?=20=20 Thanks Sasi D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Sep 11 19:00:13 2005 Date: Sun, 11 Sep 2005 19:59:09 -0400 From: "Shibu Joys" Subject: [sqr-users] How to dynamically name / rename log file name Hello All, I would like to put a date time stamp to the log filename that is created w= hile running the sqr. How can i do this? Can this be done in the same sqr t= hat i am running? Thanks in Advance, Shibu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 12 09:48:28 2005 Subject: RE: [sqr-users] How to dynamically name / rename log file name Date: Mon, 12 Sep 2005 10:47:17 -0400 From: "Pamela L Lantzy" Shibu, The log file must be closed first. date-time () 'YYYYMMDDHH24MISS' &out let $ ts =3D &out let $NewFileName =3D $FileName || '_' || $ts let #status =3D rename($FileName,$NewFileName) If this file is not opened or closed specifically, you can do the command new-report 'xxx.xx' and then the rename command. ($sqr-report contains the name of file from sqr) That will stop writing to the current file. Pam -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Shibu Joys Sent: Sunday, September 11, 2005 7:59 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to dynamically name / rename log file name Hello All, I would like to put a date time stamp to the log filename that is created while running the sqr. How can i do this? Can this be done in the same sqr that i am running? Thanks in Advance, Shibu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 12 10:01:19 2005 From: "tam kag" Date: Mon, 12 Sep 2005 15:00:15 +0000 Subject: [sqr-users] Relinking SQR Hello, I'm trying to Relink SQR version 6.2, the database is db2. I'm recieving the following error: cc -o sqr sqr.o nounilib.o -Wl,-s sqr.a libsti.a bcl.a pdf.a -L/usr/lpp/ db2_07_01/sqllib/lib -ldb2 -lm -ls -ll -ly ld: 0706-006 Cannot find or open library file: -l l ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l y ld:open(): A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 255. has any one seen this before. Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 12 13:18:27 2005 Subject: RE: [sqr-users] Relinking SQR Date: Mon, 12 Sep 2005 13:17:29 -0500 From: "Knapp, Richard" Yes. Get the load library in the path. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of tam kag Sent: Monday, September 12, 2005 10:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Relinking SQR Hello, I'm trying to Relink SQR version 6.2, the database is db2. I'm recieving the following error: cc -o sqr sqr.o nounilib.o -Wl,-s sqr.a libsti.a bcl.a pdf.a=20 -L/usr/lpp/ db2_07_01/sqllib/lib -ldb2 -lm -ls -ll -ly ld: 0706-006 Cannot find or open library file: -l l ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l y ld:open(): A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 255. has any one seen this before. Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!=20 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 13 09:05:34 2005 From: "radhika reddy" Date: Tue, 13 Sep 2005 09:04:26 -0500 Subject: [sqr-users] Sysdate Hi, I am trying to retrieve rows which are equal to sysdate. The date field stored on ps_audit_addresses is in the format of date time(9/13/2005 8:45:33 AM). By doing the following I am able to achieve it. But, i am wondering is there any other way where instead of getting all the rows from PS_AUDIT_ADDRESSES and then checking whether Audit Stamp is equal to SYSDATE? See, i tried using SUBSTR in sql but it didn't work. begin-select a.emplid, a.audit_stamp ×tamp display $sysdatetime !here i get 13-SEP-2005_09:50:49_AM let $sysdate1 = substr($sysdatetime,1,11) #debugH show $sysdate1 !13-SEP-2005 show 'timestamp:' ×tamp !13-SEP-2005 If $auditimestamp = $sysdate1 show 'transaction on that date' !both are equal else show 'no transactions' end-if from ps_audit_addresses a !where substr(a.audit_stamp,1,11) = SYSDATE END-SELECT Thanks, Radhika _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 13 09:30:51 2005 Subject: RE: [sqr-users] Sysdate Date: Tue, 13 Sep 2005 09:29:47 -0500 From: "Jim Womeldorf" Hi Radhika, If you are on Oracle try using trunc() where trunc(a.audit_stamp) =3D trunc(sysdate Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of radhika reddy Sent: Tuesday, September 13, 2005 9:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Sysdate Hi, I am trying to retrieve rows which are equal to sysdate. The date field stored on ps_audit_addresses is in the format of date time(9/13/2005 8:45:33 AM). By doing the following I am able to achieve it. But, i am wondering is there any other way where instead of getting all the rows from PS_AUDIT_ADDRESSES and then checking whether Audit Stamp is equal to SYSDATE? See, i tried using SUBSTR in sql but it didn't work. begin-select a.emplid, a.audit_stamp ×tamp display $sysdatetime !here i get 13-SEP-2005_09:50:49_AM let $sysdate1 =3D substr($sysdatetime,1,11) #debugH show $sysdate1 !13-SEP-2005 show 'timestamp:' ×tamp !13-SEP-2005 If $auditimestamp =3D $sysdate1 show 'transaction on that date' !both are equal else show 'no transactions' end-if from ps_audit_addresses a !where substr(a.audit_stamp,1,11) =3D SYSDATE END-SELECT Thanks, Radhika _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=3DRetirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 13 13:20:56 2005 From: "radhika reddy" Subject: RE: [sqr-users] Sysdate Date: Tue, 13 Sep 2005 13:19:52 -0500 Thank you Jim and Penny. It worked. I am on Oracle. Radhika >From: "Jim Womeldorf" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Sysdate >Date: Tue, 13 Sep 2005 09:29:47 -0500 > >Hi Radhika, > >If you are on Oracle try using trunc() > >where trunc(a.audit_stamp) = trunc(sysdate > >Jim > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org] On Behalf Of >radhika reddy >Sent: Tuesday, September 13, 2005 9:04 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Sysdate > >Hi, > > I am trying to retrieve rows which are equal to sysdate. The date >field stored on ps_audit_addresses is in the format of date >time(9/13/2005 8:45:33 AM). By doing the following I am able to achieve >it. But, i am wondering is there any other way where instead of getting >all the rows from PS_AUDIT_ADDRESSES and then checking whether Audit >Stamp is equal to SYSDATE? >See, i tried using SUBSTR in sql but it didn't work. > > >begin-select >a.emplid, >a.audit_stamp ×tamp > > display $sysdatetime !here i get 13-SEP-2005_09:50:49_AM > > let $sysdate1 = substr($sysdatetime,1,11) > #debugH show $sysdate1 !13-SEP-2005 > > show 'timestamp:' ×tamp !13-SEP-2005 > > If $auditimestamp = $sysdate1 > show 'transaction on that date' !both are >equal > else > show 'no transactions' > end-if > >from ps_audit_addresses a >!where substr(a.audit_stamp,1,11) = SYSDATE END-SELECT > >Thanks, >Radhika > >_________________________________________________________________ >On the road to retirement? Check out MSN Life Events for advice on how >to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 13 10:15:34 2005 From: "Penny Ginn" Subject: RE: [sqr-users] Sysdate Date: Tue, 13 Sep 2005 11:14:28 -0400 I assume the problem you're having is caused by the timestamp after the date? If so, try this: where trunc(a.audit_stamp) = trunc(SYSDATE) The "trunc" function truncates the timestamp from the date. Mrs. Penny M. Ginn Associate Director of Information Technology Presbyterian College Clinton, SC 29325 864-833-8212 -----Original Message----- From: sqr-users-bounces+pmginn=presby.edu@sqrug.org [mailto:sqr-users-bounces+pmginn=presby.edu@sqrug.org]On Behalf Of radhika reddy Sent: Tuesday, September 13, 2005 10:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Sysdate Hi, I am trying to retrieve rows which are equal to sysdate. The date field stored on ps_audit_addresses is in the format of date time(9/13/2005 8:45:33 AM). By doing the following I am able to achieve it. But, i am wondering is there any other way where instead of getting all the rows from PS_AUDIT_ADDRESSES and then checking whether Audit Stamp is equal to SYSDATE? See, i tried using SUBSTR in sql but it didn't work. begin-select a.emplid, a.audit_stamp ×tamp display $sysdatetime !here i get 13-SEP-2005_09:50:49_AM let $sysdate1 = substr($sysdatetime,1,11) #debugH show $sysdate1 !13-SEP-2005 show 'timestamp:' ×tamp !13-SEP-2005 If $auditimestamp = $sysdate1 show 'transaction on that date' !both are equal else show 'no transactions' end-if from ps_audit_addresses a !where substr(a.audit_stamp,1,11) = SYSDATE END-SELECT Thanks, Radhika _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 08:16:32 2005 Date: Wed, 14 Sep 2005 09:15:22 -0400 From: "Shibu Joys" Subject: RE: [sqr-users] Sysdate You can also try using WHERE to_char(a.audit_stamp,'DD-MON-YYYY') =3D TO_CHAR(SYSDATE,'DD-MON-YYYY') >>> radhika_05@hotmail.com 09/13/05 2:19 PM >>> Thank you Jim and Penny. It worked. I am on Oracle. Radhika >From: "Jim Womeldorf" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting=20 >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Sysdate >Date: Tue, 13 Sep 2005 09:29:47 -0500 > >Hi Radhika, > >If you are on Oracle try using trunc() > >where trunc(a.audit_stamp) =3D trunc(sysdate > >Jim > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org=20 >[mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of >radhika reddy >Sent: Tuesday, September 13, 2005 9:04 AM >To: sqr-users@sqrug.org=20 >Subject: [sqr-users] Sysdate > >Hi, > > I am trying to retrieve rows which are equal to sysdate. The date >field stored on ps_audit_addresses is in the format of date >time(9/13/2005 8:45:33 AM). By doing the following I am able to achieve >it. But, i am wondering is there any other way where instead of getting >all the rows from PS_AUDIT_ADDRESSES and then checking whether Audit >Stamp is equal to SYSDATE? >See, i tried using SUBSTR in sql but it didn't work. > > >begin-select >a.emplid, >a.audit_stamp ×tamp > > display $sysdatetime !here i get 13-SEP-2005_09:50:49_AM > > let $sysdate1 =3D substr($sysdatetime,1,11) > #debugH show $sysdate1 !13-SEP-2005 > > show 'timestamp:' ×tamp !13-SEP-2005 > > If $auditimestamp =3D $sysdate1 > show 'transaction on that date' !both are >equal > else > show 'no transactions' > end-if > >from ps_audit_addresses a >!where substr(a.audit_stamp,1,11) =3D SYSDATE END-SELECT > >Thanks, >Radhika > >_________________________________________________________________ >On the road to retirement? Check out MSN Life Events for advice on how >to get there! http://lifeevents.msn.com/category.aspx?cid=3DRetirement=20 > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org=20 >http://www.sqrug.org/mailman/listinfo/sqr-users=20 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org=20 >http://www.sqrug.org/mailman/listinfo/sqr-users=20 _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/direct/01/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 13 10:09:28 2005 Date: Tue, 13 Sep 2005 08:08:54 -0700 From: David Donnelly Subject: [sqr-users] Re: renaming log file The log file is not the report listing. It's the file into which the output of "display" and "show" statements is written. Is that what you meant? I don't believe it can be renamed in the same program because it is always open. I "post-process" the log file in a subsequent program by appending it onto the end of a historical log file (copying line by line) and then deleting it. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 08:33:54 2005 Date: Wed, 14 Sep 2005 09:33:20 -0400 From: Amy Eldridge Subject: Re: [sqr-users] Re: renaming log file At 11:08 AM 9/13/2005, David Donnelly wrote: >The log file is not the report listing. It's the file into which the >output of "display" and "show" statements is written. Is that what you >meant? I don't believe it can be renamed in the same program because it is >always open. But we can give it a custom name by using the -O flag, as in -Omy_log.log. Shibu can't make the sysdate part of the name with this method, but I did want to clarify that we can give the log file a custom name using the -O flag. a. >I "post-process" the log file in a subsequent program by appending it onto >the end of a historical log file (copying line by line) and then deleting it. > >Dave > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 08:20:42 2005 Date: Wed, 14 Sep 2005 09:19:45 -0400 From: "Shibu Joys" Subject: [sqr-users] Re: renaming log file Yes Dave. I was talking about the log file not the .lis file. Basically i will have to do something after the sqr is finished and log fil= e is closed. Thanks, Shibu >>> Dave@isisbio.com 09/13/05 11:08 AM >>> The log file is not the report listing. It's the file into which the output= =20 of "display" and "show" statements is written. Is that what you meant? I=20 don't believe it can be renamed in the same program because it is always op= en. I "post-process" the log file in a subsequent program by appending it onto= =20 the end of a historical log file (copying line by line) and then deleting i= t. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 11:13:02 2005 Date: Wed, 14 Sep 2005 09:11:06 -0700 From: "McCown, Larry" Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 11:18:54 2005 Subject: Re: [sqr-users] SQL Null date From: Roger.Harris@certegy.com Date: Wed, 14 Sep 2005 12:17:39 -0400 The SQR command is: If isnull(&targstartdate3) which will evaluate to true for nulls or use isblank(&targstartdate3) which will evaluate to true for nulls or all white space (ie. spaces, tabs or returns) |---------+----------------------------------------------------> | | "McCown, Larry" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 09/14/2005 12:11 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reportinglanguage from | | Hyperion Solutions." | | cc: | | Subject: [sqr-users] SQL Null date | >----------------------------------------------------------------------------------------------| Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null if &targstartdate3 = ' ' if &targstartdate3 = '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 11:22:15 2005 Subject: RE: [sqr-users] SQL Null date Date: Wed, 14 Sep 2005 12:18:57 -0400 From: "Wes Williams" How about=20 if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 11:25:17 2005 From: "the dragon" Subject: RE: [sqr-users] SQL Null date Date: Wed, 14 Sep 2005 11:19:02 -0500 Larry, The SQR language reference manual says you should try if isnull(&targstartdate3) ...... 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) ----Original Message Follows---- Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null if &targstartdate3 = ' ' if &targstartdate3 = '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 11:35:05 2005 Subject: RE: [sqr-users] SQL Null date Date: Wed, 14 Sep 2005 09:34:16 -0700 From: "McCown, Larry" Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 10:47:40 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 08:46:20 -0700 From: "McCown, Larry" Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance=20 Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 11:05:25 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 09:04:07 -0700 From: "Lynds,Rick" Larry, Are you sure you have the syntax of the "datepart" function correct? It seems odd that the "MM" is not in quotes or something.=20=20 Rick -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 8:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 13:12:43 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 13:11:59 -0500 From: "Knapp, Richard" Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance=20 Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Thu Sep 15 13:49:09 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 11:47:46 -0700 From: "McCown, Larry" I've been using it for a couple of years. It usually works just fine. I think Wes was the one who told me about it.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, September 15, 2005 11:12 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 14:00:18 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 13:59:41 -0500 From: "Thompson, Betty P" Perhaps I'm not grasping exactly what problem you're having... In the code you showed: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if You aren't saying the 'datepart' function is failing (it's simply text being included in an assignment to variable $where5, right?); you're saying the "isnull(&targstartdate3)" is yielding invalid results -- correct?=20 If this is the case, I think the issue might be related to using a host variable instead of an SQR variable. Why don't you try doing an assignment first (such as "Let $targstartdate3 =3D &targstartdate3"), and then use the 'isnull' function on the SQR variable?=20 =20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 1:48 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date I've been using it for a couple of years. It usually works just fine. I think Wes was the one who told me about it.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, September 15, 2005 11:12 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 14:08:38 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 14:07:30 -0500 From: "Bob Stone" I think Betty is right that it might be the & variable, if it's the isnull(= ) that's causing you problems. But you are probably also going to have a problem with what you're setting = the where clause to...when you put all of that into a text variable the $mo= nth is no longer going to be read as an SQR variable, but rather a SQL some= thing (and SQL will get very confused by the $). let $where5 =3D 'and datepart(MM,reportdate) =3D '''=20 || $month=20 || ''' and datepart(YYYY,reportdate) =3D '''=20 || $year || '''' are you saying 'datepart()' is an SQR procedure? because then you dont wan= t it in the middle of the string either...but i'm not typing that out. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Thompson, Betty P Sent: Thursday, September 15, 2005 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date Perhaps I'm not grasping exactly what problem you're having... In the code you showed: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if You aren't saying the 'datepart' function is failing (it's simply text being included in an assignment to variable $where5, right?); you're saying the "isnull(&targstartdate3)" is yielding invalid results -- correct?=20 If this is the case, I think the issue might be related to using a host variable instead of an SQR variable. Why don't you try doing an assignment first (such as "Let $targstartdate3 =3D &targstartdate3"), and then use the 'isnull' function on the SQR variable?=20 =20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 1:48 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date I've been using it for a couple of years. It usually works just fine. I think Wes was the one who told me about it.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, September 15, 2005 11:12 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 14:17:17 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 14:16:35 -0500 From: "Thompson, Betty P" 'Good catch! I think you're absolutely right: $month and $year would never resolve as variables the way I'd mentioned them.=20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of Bob Stone Sent: Thursday, September 15, 2005 2:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date I think Betty is right that it might be the & variable, if it's the isnull() that's causing you problems. But you are probably also going to have a problem with what you're setting the where clause to...when you put all of that into a text variable the $month is no longer going to be read as an SQR variable, but rather a SQL something (and SQL will get very confused by the $). let $where5 =3D 'and datepart(MM,reportdate) =3D '''=20 || $month=20 || ''' and datepart(YYYY,reportdate) =3D '''=20 || $year || '''' are you saying 'datepart()' is an SQR procedure? because then you dont want it in the middle of the string either...but i'm not typing that out. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Thompson, Betty P Sent: Thursday, September 15, 2005 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date Perhaps I'm not grasping exactly what problem you're having... In the code you showed: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if You aren't saying the 'datepart' function is failing (it's simply text being included in an assignment to variable $where5, right?); you're saying the "isnull(&targstartdate3)" is yielding invalid results -- correct?=20 If this is the case, I think the issue might be related to using a host variable instead of an SQR variable. Why don't you try doing an assignment first (such as "Let $targstartdate3 =3D &targstartdate3"), and then use the 'isnull' function on the SQR variable?=20 =20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 1:48 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date I've been using it for a couple of years. It usually works just fine. I think Wes was the one who told me about it.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, September 15, 2005 11:12 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 14:34:08 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 12:32:42 -0700 From: "McCown, Larry" I have other reports that are using the datepart within the where statement ie.=20=20=20 and datepart(mm,actfinish) =3D $month=20=20 and datepart(YYYY,actfinish) =3D $year=20=20 And they work just fine. The difference here is that I need to check multiple dates. if there is a targstartdate I want to use it else I need the reportdate. Thanks for the input I am trying them as they come in, but haven't got it yet. Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Thompson, Betty P Sent: Thursday, September 15, 2005 12:17 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date 'Good catch! I think you're absolutely right: $month and $year would never resolve as variables the way I'd mentioned them.=20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of Bob Stone Sent: Thursday, September 15, 2005 2:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date I think Betty is right that it might be the & variable, if it's the isnull() that's causing you problems. But you are probably also going to have a problem with what you're setting the where clause to...when you put all of that into a text variable the $month is no longer going to be read as an SQR variable, but rather a SQL something (and SQL will get very confused by the $). let $where5 =3D 'and datepart(MM,reportdate) =3D '''=20 || $month=20 || ''' and datepart(YYYY,reportdate) =3D '''=20 || $year || '''' are you saying 'datepart()' is an SQR procedure? because then you dont want it in the middle of the string either...but i'm not typing that out. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Thompson, Betty P Sent: Thursday, September 15, 2005 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date Perhaps I'm not grasping exactly what problem you're having... In the code you showed: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if You aren't saying the 'datepart' function is failing (it's simply text being included in an assignment to variable $where5, right?); you're saying the "isnull(&targstartdate3)" is yielding invalid results -- correct?=20 If this is the case, I think the issue might be related to using a host variable instead of an SQR variable. Why don't you try doing an assignment first (such as "Let $targstartdate3 =3D &targstartdate3"), and then use the 'isnull' function on the SQR variable?=20 =20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 1:48 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date I've been using it for a couple of years. It usually works just fine. I think Wes was the one who told me about it.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, September 15, 2005 11:12 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 15:34:49 2005 Subject: RE: [sqr-users] SQL Null date Date: Thu, 15 Sep 2005 15:33:37 -0500 From: "Bob Stone" i understand. you're trying to create a dynamic where clause that could ei= ther have targetstartdate or reportdate. The problem I'm saying is that wh= en you create a dynamic clause as you did, you're not using the SQR variabl= e. Instead you're using the character string that is the variable name. let $where =3D '$month'=20=20 is very different than=20 let $where =3D $month The 2nd one will use $month as an assigned varaible (something like '09' fo= r example), and the 1st one will be the dollar sign and the letters m-o-n-t= -h after it in a character string. if you go to a screen where you can run regular old SQL (not SQR, just sql)= and type in SELECT *=20 FROM MYTABLE WHERE datepart(MM,mydate) =3D '09' and=20 SELECT * FROM MYTABLE WHERE datepart(MM,mydate) =3D $month I'd bet some good money that the 2nd one would fail. The database will look= at you funny and say "what in the heck is a $ supposed to mean? I'm expec= ting a string like 01 or 12 and you give me a $?"=20 That's what you're doing when you set your variable like this :=20 let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,r= eportdate) =3D $year' the way I wrote it with the ||s will subsititue that '09', so that the SQR = will ask the database "and datepart(MM, mydate) =3D '09'" and actually run = the SQL. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 2:33 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date I have other reports that are using the datepart within the where statement ie.=20=20=20 and datepart(mm,actfinish) =3D $month=20=20 and datepart(YYYY,actfinish) =3D $year=20=20 And they work just fine. The difference here is that I need to check multiple dates. if there is a targstartdate I want to use it else I need the reportdate. Thanks for the input I am trying them as they come in, but haven't got it yet. Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Thompson, Betty P Sent: Thursday, September 15, 2005 12:17 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date 'Good catch! I think you're absolutely right: $month and $year would never resolve as variables the way I'd mentioned them.=20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of Bob Stone Sent: Thursday, September 15, 2005 2:08 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date I think Betty is right that it might be the & variable, if it's the isnull() that's causing you problems. But you are probably also going to have a problem with what you're setting the where clause to...when you put all of that into a text variable the $month is no longer going to be read as an SQR variable, but rather a SQL something (and SQL will get very confused by the $). let $where5 =3D 'and datepart(MM,reportdate) =3D '''=20 || $month=20 || ''' and datepart(YYYY,reportdate) =3D '''=20 || $year || '''' are you saying 'datepart()' is an SQR procedure? because then you dont want it in the middle of the string either...but i'm not typing that out. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of Thompson, Betty P Sent: Thursday, September 15, 2005 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date Perhaps I'm not grasping exactly what problem you're having... In the code you showed: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if You aren't saying the 'datepart' function is failing (it's simply text being included in an assignment to variable $where5, right?); you're saying the "isnull(&targstartdate3)" is yielding invalid results -- correct?=20 If this is the case, I think the issue might be related to using a host variable instead of an SQR variable. Why don't you try doing an assignment first (such as "Let $targstartdate3 =3D &targstartdate3"), and then use the 'isnull' function on the SQR variable?=20 =20 =20 -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 1:48 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date I've been using it for a couple of years. It usually works just fine. I think Wes was the one who told me about it.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, September 15, 2005 11:12 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Is datepart() a new SQR function? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Thursday, September 15, 2005 10:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Hello it's me again. Looks like the if isnull(&targstartdate3) worked in one are a but it doesn't appear to be working on the below. I am attempting to count the number of requests within the month and year. Any suggestions. if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D $month and datepart(YYYY,reportdate) =3D $year' else let $where5 =3D 'and datepart(MM,targstartdate) =3D $month and datepart(YYYY,targstartdate) =3D $year'=20 end-if Thanks in advance Larry -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 9:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] SQL Null date Thanks Clark, Roger and Wes for the quick response.=20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Wes Williams Sent: Wednesday, September 14, 2005 9:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] SQL Null date How about if isnull(&targstartdate3) =3D 1 returns 1 if it is null 0 if it isn't Wes Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of McCown, Larry Sent: Wednesday, September 14, 2005 12:11 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQL Null date =20 Greetings All, I have a date field that I need to do a if then statement with based on if there is any data in this field. Tried: if &targstartdate3 is null if &targstartdate3 null=09 if &targstartdate3 =3D ' ' if &targstartdate3 =3D '' This one appears to work but is it the proper way to look for a blank date field? Any Suggestions? Thanks Larry _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Sep 16 08:41:13 2005 Date: Fri, 16 Sep 2005 09:39:53 -0400 From: "George Jansen" Subject: RE: [sqr-users] SQL Null date Could this be done more simply in SQL? SELECT trunc(Nvl(date_field_1, date_field_2), 'Month) as request_month, cou= nt(*) as request_count FROM requests_table GROUP BY Trunc(Nvl(date_field_2, date_field_2), 'Month') ORDER BY request_month; _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 14 15:22:40 2005 Date: Wed, 14 Sep 2005 13:21:32 -0700 (PDT) From: rama volety Subject: [sqr-users] Global Temporary table usage for Ingres Hi, SQR/3.0.13.3/DEC Alpha/OpenVMS 6.1/OpenIngres 1.1/04 /Jul 09 1996 I am using the above version of SQR with Open Ingres and I have the following issue. I can create the Global Temporary tables using the SQR, using the following. begin-sql declare global temporary table session.test_global_table (tmp_protocol_key char(10), lab_site char(20)) ON COMMIT PRESERVE ROWS with norecovery ; end-sql but I can not access them using the Select /update/ insert commands by referring it as session.. begin-select tmp_protocol_key &tmp_protocol_key from session.test_global_table end-select Can anyone suggest the way I can use this command? Thanks Rama Volety _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 02:59:35 2005 Date: Thu, 15 Sep 2005 09:57:37 +0200 From: "Ulf Borgen" Subject: [sqr-users] hierarch Hi, We are now using sqr version 8.2. As far as I remember, in the previous version of sqr that we used, there was a command (program) called hierarch. This command would give you a nice printout of the procedure dependancies in a sqr program. I can not find this command in ver 8.2. Does anyone know anything about this issue? With kind regards Ulf Borgen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 07:28:27 2005 Date: Thu, 15 Sep 2005 05:27:01 -0700 (PDT) From: brahm a Subject: [sqr-users] Data conversion approach Hi, This is Brahm.I have one question.I would like load data from legacy system(Flat files) to Peoplesoft Tables using sqr programing.How can i approach the data mapping exersise,get files,data conversion steps.Please help me any body knowns. Thanks Regards Brahm --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 15 08:22:10 2005 From: "the dragon" Subject: RE: [sqr-users] Data conversion approach Date: Thu, 15 Sep 2005 08:18:53 -0500 There is a tool called Convoy. It takes the metadata and creates sqrs for you. Now the bad news; it creates really crappy sqr programs and you need to optimize the code. Or, you do it manually. 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) ----Original Message Follows---- Hi, This is Brahm.I have one question.I would like load data from legacy system(Flat files) to Peoplesoft Tables using sqr programing.How can i approach the data mapping exersise,get files,data conversion steps.Please help me any body knowns. Thanks Regards Brahm _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 16 11:21:46 2005 From: "Ed Kelly" Date: Fri, 16 Sep 2005 16:19:01 +0000 Subject: [sqr-users] RE: SQL Null date (McCown, Larry) The problem is, as mentioned earlier, that the strings $month and $year, are being passed to the RDBMS, not their values. The correct syntax for your IF statement would be as follows: if isnull(&targstartdate3) let $where5 = 'and datepart(MM,reportdate) = ''' || $month || ''' and datepart(YYYY,reportdate) = ''' || $year || '''' else let $where5 = 'and datepart(MM,targstartdate) = ''' || $month || ''' and datepart(YYYY,targstartdate) = ''' || $year || '''' end-if ........... And by the way folks, datepart() is a database function, NOT and SQR function. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 16 15:31:15 2005 Subject: RE: [sqr-users] RE: SQL Null date (McCown, Larry) Date: Fri, 16 Sep 2005 13:29:10 -0700 From: "McCown, Larry" In dealing with this all week I finally smartened up and decided to add a print statement. The results show that the $where5 is correct but the output is still showing workorder outside the date range. Wonum reportdate targstartdate location $where5 321626 Jun 12 2003 12:21PM BETHPAGE and datepart(MM,reportdate) =3D '08' and datepart(YYYY,reportdate) =3D '2005' 329877 Aug 01 2003 05:48AM Aug 04 2003 08:56AM BETHPAGE and datepart(MM,targstartdate) =3D '08' and datepart(YYYY,targstartdate) = =3D '2005' CODE: =20=20 begin-select wonum &wonum5 (+1,1) reportdate &reportdate (,+1)=20=20=20=20 targstartdate &targstartdate (,+1) location &location3 (,+1) if isnull(&targstartdate) let $where5 =3D 'and datepart(MM,reportdate) =3D ''' || $month || ''' and datepart(YYYY,reportdate) =3D ''' || $year || '''' else let $where5 =3D 'and datepart(MM,targstartdate) =3D ''' || $month || ''' and datepart(YYYY,targstartdate) =3D ''' || $year || '''' end-if print $where5 (,+1) add 1 to #opencount add 1 to #opensubcount from workorder where [$where] [$where2] [$where5] and workorder.status !=3D 'CAN' and worktype not in ('PM','TR','AFP') end-select end-procedure Any suggestions? Thank you to all. Larry =20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Ed Kelly Sent: Friday, September 16, 2005 9:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: SQL Null date (McCown, Larry) The problem is, as mentioned earlier, that the strings $month and $year, are being passed to the RDBMS, not their values. The correct syntax for your IF statement would be as follows: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D ''' || $month || ''' and datepart(YYYY,reportdate) =3D ''' || $year || '''' else let $where5 =3D 'and datepart(MM,targstartdate) =3D ''' || $month || ''' and datepart(YYYY,targstartdate) =3D ''' || $year || '''' end-if ........... And by the way folks, datepart() is a database function, NOT and SQR function. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 16 15:57:27 2005 Subject: RE: [sqr-users] RE: SQL Null date (McCown, Larry) Date: Fri, 16 Sep 2005 15:56:15 -0500 From: "Bob Stone" Larry, you can't set a varaible you want to use in a SQL statement WITHIN THE SQL = STATEMENT ITSELF.=20=20 the SQL is returning rows, and you're trying to change the statement that w= as already run (AFTER its run) for each new row it returns (even though the= y were already returned by the SQL)...that doesn't make any sense whatsoeve= r. I can't even explain how it doesn't make sense. I don't know what you're trying to do there...but your logic shouldn't be l= ike that. Talk it out to yourself, and you'll probably see what sort of nesting/check= ing you need to be doing. "first I need to grab a date to find which one t= o use. Then for valid dates I need to grab soemthing from the workorder ta= ble." ...in which case you'd find the dates (maybe in it's own SQL) and th= en for valid dates (some if statements) do some procedure with the select f= rom workorder (and the where clause can be set with the dates returned in t= he first part).=20=20 Or maybe the logic can be built into the SQL itself?=20 "where ( ( datepart(MM,targstartdate) =3D $month=20 AND datepart(YYYY,targstartdate) =3D $year ) OR ( targstartdate is null=20 AND ( datepart(MM,reportdate) =3D $month=20 AND datepart(YYYY,reportdate) =3D $year )=20=20 ) Look at it another way. The dyanmic where clause only works when the varia= ble is set BEFORE the SQL you try to use it in. bob -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of McCown, Larry Sent: Friday, September 16, 2005 3:29 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] RE: SQL Null date (McCown, Larry) In dealing with this all week I finally smartened up and decided to add a print statement. The results show that the $where5 is correct but the output is still showing workorder outside the date range. Wonum reportdate targstartdate location $where5 321626 Jun 12 2003 12:21PM BETHPAGE and datepart(MM,reportdate) =3D '08' and datepart(YYYY,reportdate) =3D '2005' 329877 Aug 01 2003 05:48AM Aug 04 2003 08:56AM BETHPAGE and datepart(MM,targstartdate) =3D '08' and datepart(YYYY,targstartdate) = =3D '2005' CODE: =20=20 begin-select wonum &wonum5 (+1,1) reportdate &reportdate (,+1)=20=20=20=20 targstartdate &targstartdate (,+1) location &location3 (,+1) if isnull(&targstartdate) let $where5 =3D 'and datepart(MM,reportdate) =3D ''' || $month || ''' and datepart(YYYY,reportdate) =3D ''' || $year || '''' else let $where5 =3D 'and datepart(MM,targstartdate) =3D ''' || $month || ''' and datepart(YYYY,targstartdate) =3D ''' || $year || '''' end-if print $where5 (,+1) add 1 to #opencount add 1 to #opensubcount from workorder where [$where] [$where2] [$where5] and workorder.status !=3D 'CAN' and worktype not in ('PM','TR','AFP') end-select end-procedure Any suggestions? Thank you to all. Larry =20 -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Ed Kelly Sent: Friday, September 16, 2005 9:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: SQL Null date (McCown, Larry) The problem is, as mentioned earlier, that the strings $month and $year, are being passed to the RDBMS, not their values. The correct syntax for your IF statement would be as follows: if isnull(&targstartdate3) let $where5 =3D 'and datepart(MM,reportdate) =3D ''' || $month || ''' and datepart(YYYY,reportdate) =3D ''' || $year || '''' else let $where5 =3D 'and datepart(MM,targstartdate) =3D ''' || $month || ''' and datepart(YYYY,targstartdate) =3D ''' || $year || '''' end-if ........... And by the way folks, datepart() is a database function, NOT and SQR function. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 19 14:17:36 2005 Date: Mon, 19 Sep 2005 13:16:24 -0600 From: "Thompson, Carla" Subject: [sqr-users] SQR 1302 - SQL buffer too small; use -Mfile to increase SQLSIZE. I'm getting the following error message: (SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. I added a "UNION" to a Select statement, and I didn't think that it would e= ffect the SQL buffer since the same columns will be selected in the second = part of the UNION.=20 Suggestions welcomed.=20 Thank!=20 Carla Lynn! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 19 14:48:16 2005 Date: Mon, 19 Sep 2005 16:47:13 -0300 (ART) From: Gustavo Comanduci Zocrato Subject: Re: [sqr-users] SQR 1302 - SQL buffer too small; use -Mfile to increase SQLSIZE. Hello Carla, Change the Processing-Limits section in SQR.INI file (Generally in c:\windows folder). FROM : [Processing-Limits] ;SQLSIZE=4000 TO: [Processing-Limits] SQLSIZE=6000 6000 is a try, maybe it must be bigger or smaller. Gustavo Comanduci --- "Thompson, Carla" escreveu: > I'm getting the following error message: > > (SQR 1302) SQL buffer too small; use -Mfile to > increase SQLSIZE. > > I added a "UNION" to a Select statement, and I > didn't think that it would effect the SQL buffer > since the same columns will be selected in the > second part of the UNION. > > Suggestions welcomed. > > Thank! > > Carla Lynn! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 19 14:58:04 2005 Subject: RE: [sqr-users] SQR 1302 - SQL buffer too small; use -Mfile to increase SQLSIZE. Date: Mon, 19 Sep 2005 15:56:56 -0400 From: "Pamela L Lantzy" Hi, Before changing parameters, look at the SQR and see if there is a mismatch = in begin/end statements. I use to get this error message at times and it was because I didn't have a= matching end-select or end-sql to a begin-select/begin-sql. Pam Pamela Lantzy Financial Aid Tech Lead/ PS Administrator IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org [mailto:sqr-u= sers-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Gustavo Co= manduci Zocrato Sent: Monday, September 19, 2005 3:47 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] SQR 1302 - SQL buffer too small;use -Mfile to incr= ease SQLSIZE. Hello Carla, Change the Processing-Limits section in SQR.INI file (Generally in c:\windows folder).=20 FROM : [Processing-Limits] ;SQLSIZE=3D4000 TO: [Processing-Limits] SQLSIZE=3D6000 6000 is a try, maybe it must be bigger or smaller. Gustavo Comanduci --- "Thompson, Carla" escreveu: > I'm getting the following error message: >=20 > (SQR 1302) SQL buffer too small; use -Mfile to > increase SQLSIZE. >=20 > I added a "UNION" to a Select statement, and I > didn't think that it would effect the SQL buffer > since the same columns will be selected in the > second part of the UNION.=20 >=20 > Suggestions welcomed.=20 >=20 > Thank!=20 >=20 > Carla Lynn! >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 __________________________________________________ Fa=E7a liga=E7=F5es para outros computadores com o novo Yahoo! Messenger=20 http://br.beta.messenger.yahoo.com/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 19 15:11:14 2005 Date: Mon, 19 Sep 2005 14:10:09 -0600 From: "Thompson, Carla" Subject: [sqr-users] SQR 1302 - SQL buffer too small; use -Mfile to increase SQLSIZE. Thank you!!=20=20=20 I'm actually compiling my .sqr file from a UNIX machine. I edit my sqr's using a vi editor and I don't have a "Report Designer".=20 1. My sql statement itself was very large. I did check that my begin and = end paragraphs were properly matched, but the sql itself was large/long. W= hen I added the UNION it doubled in size and caused this error when I tried= to compile it.=20 2. I created a "Max File" (a .sqm file named program1.sqm <-- m for Max F= ile 3. I created the file with the UNIX vi editor and typed a single line: SQ= LSIZE=3D5000 (4000 didn't work)=20 4. I changed my compile program to use the following -M flag: /opt/sqr/ora/bin/sqr /sqr.source/program1.sqr user/passed@database_inst -RS= -Mprogram1.sqm -KEEP 5. The program compiled successfully! :) -----Original Message----- From: sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org [mailto:sqr-users-bounces+carla.thompson=3Dgwl.com@sqrug.org]On Behalf Of Gustavo Comanduci Zocrato Sent: Monday, September 19, 2005 1:47 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] SQR 1302 - SQL buffer too small;use -Mfile to increase SQLSIZE. Hello Carla, Change the Processing-Limits section in SQR.INI file (Generally in c:\windows folder).=20 FROM : [Processing-Limits] ;SQLSIZE=3D4000 TO: [Processing-Limits] SQLSIZE=3D6000 6000 is a try, maybe it must be bigger or smaller. Gustavo Comanduci --- "Thompson, Carla" escreveu: > I'm getting the following error message: >=20 > (SQR 1302) SQL buffer too small; use -Mfile to > increase SQLSIZE. >=20 > I added a "UNION" to a Select statement, and I > didn't think that it would effect the SQL buffer > since the same columns will be selected in the > second part of the UNION.=20 >=20 > Suggestions welcomed.=20 >=20 > Thank!=20 >=20 > Carla Lynn! >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 __________________________________________________ Fa=E7a liga=E7=F5es para outros computadores com o novo Yahoo! Messenger=20 http://br.beta.messenger.yahoo.com/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 20 12:11:40 2005 Date: Tue, 20 Sep 2005 13:10:52 -0400 From: "Jessie Dickenson" Subject: [sqr-users] On-Break Help With Dynamic Columns I have to construct a dynamic SQL where the Break Column can be either "Age= ncy" or "Direct_Client" . So, I have set a column variable, $Break_Field_ID= to store this information before calling the SQL. My query looks like this: BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'PROCEDURE_NAME') [$Break_Field_ID] &Break_Field_ID=3Dchar () on-break level=3D1 before=3DBef_FIELD_Change after=3DAft_FIELD_Change save=3D$Prev_Break_Value print=3Dnever FROM MY_SCHEMA.TABLE_NAME I get the following errors:=20 Error on line 806: (SQR 4008) Unknown function or variable in expression: print if not isnull($Break_Field_ID) Error on line 806: (SQR 4105) Placement parameter incorrect. print=3Dnever I have researched the archives and I do not find any article that helps me = resolve this problem.=20 Thanks in advance for all the help that I would receive from you. Thanks, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 20 12:14:56 2005 Date: Tue, 20 Sep 2005 13:11:25 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Fwd: On-Break Help With Dynamic Columns I have to construct a dynamic SQL where the Break Column can be either "Age= ncy" or "Direct_Client" . So, I have set a column variable, $Break_Field_ID= to store this information before calling the SQL. My query looks like this: BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'PROCEDURE_NAME') [$Break_Field_ID] &Break_Field_ID=3Dchar () on-break level=3D1 before=3DBef_FIELD_Change after=3DAft_FIELD_Change save=3D$Prev_Break_Value print=3Dnever FROM MY_SCHEMA.TABLE_NAME I get the following errors:=20 Error on line 806: (SQR 4008) Unknown function or variable in expression: print if not isnull($Break_Field_ID) Error on line 806: (SQR 4105) Placement parameter incorrect. print=3Dnever I have researched the archives and I do not find any article that helps me = resolve this problem.=20 Thanks in advance for all the help that I would receive from you. Thanks, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 20 12:42:31 2005 From: "the dragon" Subject: RE: [sqr-users] Fwd: On-Break Help With Dynamic Columns Date: Tue, 20 Sep 2005 12:41:24 -0500 I don't have the time to think about the rest of it, but you have an extra left parenthesis in your on-error.... ON-ERROR=SQR_ERROR((1,'PROCEDURE_NAME') 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) ----Original Message Follows---- I have to construct a dynamic SQL where the Break Column can be either "Agency" or "Direct_Client" . So, I have set a column variable, $Break_Field_ID to store this information before calling the SQL. My query looks like this: BEGIN-SELECT ON-ERROR=SQR_ERROR((1,'PROCEDURE_NAME') [$Break_Field_ID] &Break_Field_ID=char () on-break level=1 before=Bef_FIELD_Change after=Aft_FIELD_Change save=$Prev_Break_Value print=never FROM MY_SCHEMA.TABLE_NAME I get the following errors: Error on line 806: (SQR 4008) Unknown function or variable in expression: print if not isnull($Break_Field_ID) Error on line 806: (SQR 4105) Placement parameter incorrect. print=never I have researched the archives and I do not find any article that helps me resolve this problem. Thanks in advance for all the help that I would receive from you. Thanks, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 12:39:22 2005 Date: Wed, 21 Sep 2005 13:38:31 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] Fwd: On-Break Help With Dynamic Columns Thank you for your input. I removed one of the 2 left parans. But the solut= ion came about when I put the entire on-break command in a single line. If = you see my code earlier, I had the on-break command in multiple lines - Thi= s seems to cause a problem when using dynamic columns. Thanks, Jessie >>> ceprn@hotmail.com 09/20/05 1:41 PM >>> I don't have the time to think about the rest of it, but you have an extra= =20 left parenthesis in your on-error.... ON-ERROR=3DSQR_ERROR((1,'PROCEDURE_NAME') 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. 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= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have to construct a dynamic SQL where the Break Column can be either=20 "Agency" or "Direct_Client" . So, I have set a column variable,=20 $Break_Field_ID to store this information before calling the SQL. My query looks like this: BEGIN-SELECT ON-ERROR=3DSQR_ERROR((1,'PROCEDURE_NAME') [$Break_Field_ID] &Break_Field_ID=3Dchar () on-break level=3D1 before=3DBef_FIELD_Change after=3DAft_FIELD_Change save=3D$Prev_Break_Value print=3Dnever FROM MY_SCHEMA.TABLE_NAME I get the following errors: Error on line 806: (SQR 4008) Unknown function or variable in expression: print if not isnull($Break_Field_ID) Error on line 806: (SQR 4105) Placement parameter incorrect. print=3Dnever I have researched the archives and I do not find any article that helps me= =20 resolve this problem. Thanks in advance for all the help that I would receive from you. Thanks, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 14:42:39 2005 From: "the dragon" Subject: RE: [sqr-users] Fwd: On-Break Help With Dynamic Columns Date: Wed, 21 Sep 2005 14:41:30 -0500 You're welcome. I am surprised, however, that putting the on-break on multiple lines would cause an issue; I've done that many times in the past for readability without any issues. Although, I'm not ceertain I've ever tried it with dynamic columns... 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) ----Original Message Follows---- Thank you for your input. I removed one of the 2 left parans. But the solution came about when I put the entire on-break command in a single line. If you see my code earlier, I had the on-break command in multiple lines - This seems to cause a problem when using dynamic columns. Thanks, Jessie >>> ceprn@hotmail.com 09/20/05 1:41 PM >>> I don't have the time to think about the rest of it, but you have an extra left parenthesis in your on-error.... ON-ERROR=SQR_ERROR((1,'PROCEDURE_NAME') ----Original Message Follows---- I have to construct a dynamic SQL where the Break Column can be either "Agency" or "Direct_Client" . So, I have set a column variable, $Break_Field_ID to store this information before calling the SQL. My query looks like this: BEGIN-SELECT ON-ERROR=SQR_ERROR((1,'PROCEDURE_NAME') [$Break_Field_ID] &Break_Field_ID=char () on-break level=1 before=Bef_FIELD_Change after=Aft_FIELD_Change save=$Prev_Break_Value print=never FROM MY_SCHEMA.TABLE_NAME I get the following errors: Error on line 806: (SQR 4008) Unknown function or variable in expression: print if not isnull($Break_Field_ID) Error on line 806: (SQR 4105) Placement parameter incorrect. print=never I have researched the archives and I do not find any article that helps me resolve this problem. Thanks in advance for all the help that I would receive from you. Thanks, Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 20 17:34:12 2005 Date: Tue, 20 Sep 2005 15:33:07 -0700 (PDT) From: Jeet Subject: [sqr-users] SQR Informix date format Hi All, I am writing a SQR report with Informix as database. When I am inserting a row into the table thru the SQR, the Informix is not accepting the date. For example, let $insertDate = '09/20/2005' Insert into ps_sample_table (Setid, Effdt, Name, Age) Values ('Share', $insertDate, 'John', '25') It always throws an error as follows "(SQR 5528) INFORMIX SQL EXECUTE IMMEDIATE error ". I tried changing the date variable in different datatype as follows let $convInsDate = datetostr($insertDate,'MM/DD/YYYY') or let $insertDate = '2005-MM-DD' let $convInsDate = datetostr($insertDate,'YYYY-MM-DD') and tried inserting using the $convInsDate variable. But for some reason, it always errors out giving the same reason. Can anyone shed some light on this problem I am facing. I will appreciate any suggestions you might have. Thanks a lot in advance. - Jeet. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 09:43:03 2005 Date: Wed, 21 Sep 2005 09:42:25 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] SQR Informix date format Did you declare $convInsDate as a date variable? If you didn't, then SQR will "autoconvert" the date returned from the function into a string to store it in the string variable $convInsDate. On Tue, 20 Sep 2005, Jeet wrote: > Hi All, > I am writing a SQR report with Informix as database. > > When I am inserting a row into the table thru the SQR, > the Informix is not accepting the date. For example, > > let $insertDate = '09/20/2005' > > Insert into ps_sample_table > (Setid, > Effdt, > Name, > Age) > Values > ('Share', > $insertDate, > 'John', > '25') > > It always throws an error as follows > > "(SQR 5528) INFORMIX SQL EXECUTE IMMEDIATE error ". > > I tried changing the date variable in different > datatype as follows > > let $convInsDate = datetostr($insertDate,'MM/DD/YYYY') > or > let $insertDate = '2005-MM-DD' > let $convInsDate = datetostr($insertDate,'YYYY-MM-DD') > > and tried inserting using the $convInsDate variable. > But for some reason, it always errors out giving the > same reason. > > Can anyone shed some light on this problem I am > facing. I will appreciate any suggestions you might > have. > > Thanks a lot in advance. > > - Jeet. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 16:50:48 2005 Date: Wed, 21 Sep 2005 14:49:31 -0700 (PDT) From: Jeet Subject: Re: [sqr-users] SQR Informix date format Thanks a lot, Don! After I declared the variable as Date datatype, the informix liked it and it accepted it. Thanks once again for your help! - Jeet. --- Don Mellen wrote: > Did you declare $convInsDate as a date variable? If > you didn't, then SQR > will "autoconvert" the date returned from the > function into a string to > store it in the string variable $convInsDate. > > On Tue, 20 Sep 2005, Jeet wrote: > > > Hi All, > > I am writing a SQR report with Informix as > database. > > > > When I am inserting a row into the table thru the > SQR, > > the Informix is not accepting the date. For > example, > > > > let $insertDate = '09/20/2005' > > > > Insert into ps_sample_table > > (Setid, > > Effdt, > > Name, > > Age) > > Values > > ('Share', > > $insertDate, > > 'John', > > '25') > > > > It always throws an error as follows > > > > "(SQR 5528) INFORMIX SQL EXECUTE IMMEDIATE error > ". > > > > I tried changing the date variable in different > > datatype as follows > > > > let $convInsDate = > datetostr($insertDate,'MM/DD/YYYY') > > or > > let $insertDate = '2005-MM-DD' > > let $convInsDate = > datetostr($insertDate,'YYYY-MM-DD') > > > > and tried inserting using the $convInsDate > variable. > > But for some reason, it always errors out giving > the > > same reason. > > > > Can anyone shed some light on this problem I am > > facing. I will appreciate any suggestions you > might > > have. > > > > Thanks a lot in advance. > > > > - Jeet. > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - > http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was > nothing, which exploded" > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 20 21:16:04 2005 Date: Tue, 20 Sep 2005 19:14:59 -0700 (PDT) From: Aleksandr Slobodyanik Subject: [sqr-users] Reset all variables in the program. Hi. I am modifying several programs that we run periodically for the number of clients. I have to run every SQR separately for each client. If I have 20 clients, and 4 programs, I have to run them 80 times. I am modifying SQRs by adding while loop in BEGIN-PROGRAM section. Also I added flat file with parameters for each client. So on the first iteration program reads first line of the parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the parameter file, NEW-REPORT another PDF with different client name, and so on until the end of the parameter file. Instead of 80 times I have to run these programs just 4 times. Everything would be fine if I would not have one problem. After each iteration all variables still have values from the previous loop. Sure, I go and reset them after each iteration, but there are tons of them in each program, and I have to go through each, find them, put into procedure and reset. My question: Is there a command that would reset all variables in the program to 0 or NULL depending on the type? Thank you. --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 20 21:27:07 2005 From: Ray Ontko Date: Tue, 20 Sep 2005 21:26:30 -0500 Subject: Re: [sqr-users] Reset all variables in the program. Aleksandr, The short answer is "No, and it's worse than you may think." There is no command to reset all your global variables. CLEAR-ARRAY works for arrays, but that's all you get. To make matters worse, all local variables (in procedures) will also retain their values from call to call. If you have procedures that you normally only call once, you may want to make sure that they also intialize all variables before use. To avoid this problem, I always initialize variables before use. Does anyone out there have a utility for finding uninitialized variables that Aleksandr could use? Ray On Tue, Sep 20, 2005 at 07:14:59PM -0700, Aleksandr Slobodyanik wrote: > Hi. > I am modifying several programs that we run periodically for the number of clients. > I have to run every SQR separately for each client. If I have 20 clients, and 4 programs, I have to run them 80 times. I am modifying SQRs by adding while loop in BEGIN-PROGRAM section. Also I added flat file with parameters for each client. So on the first iteration program reads first line of the parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the parameter file, NEW-REPORT another PDF with different client name, and so on until the end of the parameter file. > Instead of 80 times I have to run these programs just 4 times. > Everything would be fine if I would not have one problem. After each iteration all variables still have values from the previous loop. Sure, I go and reset them after each iteration, but there are tons of them in each program, and I have to go through each, find them, put into procedure and reset. > My question: Is there a command that would reset all variables in the program to 0 or NULL depending on the type? > Thank you. > > > > --------------------------------- > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 06:20:26 2005 From: "the dragon" Subject: Re: [sqr-users] Reset all variables in the program. Date: Wed, 21 Sep 2005 06:18:58 -0500 Ray, et al, I think the only other way to accomplish this would be to put *everything* in local procedures, but that sounds like a lot more work than just getting all of the variables and plopping them in a procedure and resetting them after the record processes, but before the next one. pecae, 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) ----Original Message Follows---- Aleksandr, The short answer is "No, and it's worse than you may think." There is no command to reset all your global variables. CLEAR-ARRAY works for arrays, but that's all you get. To make matters worse, all local variables (in procedures) will also retain their values from call to call. If you have procedures that you normally only call once, you may want to make sure that they also intialize all variables before use. To avoid this problem, I always initialize variables before use. Does anyone out there have a utility for finding uninitialized variables that Aleksandr could use? Ray On Tue, Sep 20, 2005 at 07:14:59PM -0700, Aleksandr Slobodyanik wrote: > Hi. > I am modifying several programs that we run periodically for the number of clients. > I have to run every SQR separately for each client. If I have 20 clients, and 4 programs, I have to run them 80 times. I am modifying SQRs by adding while loop in BEGIN-PROGRAM section. Also I added flat file with parameters for each client. So on the first iteration program reads first line of the parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the parameter file, NEW-REPORT another PDF with different client name, and so on until the end of the parameter file. > Instead of 80 times I have to run these programs just 4 times. > Everything would be fine if I would not have one problem. After each iteration all variables still have values from the previous loop. Sure, I go and reset them after each iteration, but there are tons of them in each program, and I have to go through each, find them, put into procedure and reset. > My question: Is there a command that would reset all variables in the program to 0 or NULL depending on the type? > Thank you. > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 07:02:36 2005 Date: Wed, 21 Sep 2005 07:40:18 -0400 From: "George Jansen" Subject: Re: [sqr-users] Reset all variables in the program. On another forum somebody was asking about the uses of "reflection". In a l= anguage that provided it, this would be straightforward--in Tcl foreach varname [info vars] set varname "" For SQR the path of least resistance would be to write a script to drive th= e programs. You'd still get the 20x overhead of starting a process, but at = least you wouldn't need manual intervention. >>> ceprn@hotmail.com 09/21/05 7:18 AM >>> Ray, et al, I think the only other way to accomplish this would be to put *everything*= =20 in local procedures, but that sounds like a lot more work than just getting= =20 all of the variables and plopping them in a procedure and resetting them=20 after the record processes, but before the next one. pecae, 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. 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= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Aleksandr, The short answer is "No, and it's worse than you may think." There is no command to reset all your global variables. CLEAR-ARRAY works for arrays, but that's all you get. To make matters worse, all local variables (in procedures) will also retain their values from call to call. If you have procedures that you normally only call once, you may want to make sure that they also intialize all variables before use. To avoid this problem, I always initialize variables before use. Does anyone out there have a utility for finding uninitialized variables that Aleksandr could use? Ray On Tue, Sep 20, 2005 at 07:14:59PM -0700, Aleksandr Slobodyanik wrote: > Hi. > I am modifying several programs that we run periodically for the number= =20 of clients. > I have to run every SQR separately for each client. If I have 20 clients= ,=20 and 4 programs, I have to run them 80 times. I am modifying SQRs by adding= =20 while loop in BEGIN-PROGRAM section. Also I added flat file with parameters= =20 for each client. So on the first iteration program reads first line of the= =20 parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the=20 parameter file, NEW-REPORT another PDF with different client name, and so o= n=20 until the end of the parameter file. > Instead of 80 times I have to run these programs just 4 times. > Everything would be fine if I would not have one problem. After each=20 iteration all variables still have values from the previous loop. Sure, I g= o=20 and reset them after each iteration, but there are tons of them in each=20 program, and I have to go through each, find them, put into procedure and= =20 reset. > My question: Is there a command that would reset all variables in the=20 program to 0 or NULL depending on the type? > Thank you. > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 08:01:11 2005 Date: Wed, 21 Sep 2005 05:59:33 -0700 (PDT) From: Sam Spritzer Subject: Re: [sqr-users] Reset all variables in the program. The "easy said than done" would envision an #include statement in the main processing logic that initializes variables or anything that begins with $ or #. The reasoning behind this, as Ray mentioned "...all local variables (in procedures) will also retain their values...", variables are stored in memory therefore if there is a way to access it and logic to reach it, perhaps someone is genius enough to build something that re-initializes it. Basically, its a matter of moving null or 0 into the variable depending on the $ or #. SQRly yours, Sam George Jansen wrote: On another forum somebody was asking about the uses of "reflection". In a language that provided it, this would be straightforward--in Tcl foreach varname [info vars] set varname "" For SQR the path of least resistance would be to write a script to drive the programs. You'd still get the 20x overhead of starting a process, but at least you wouldn't need manual intervention. >>> ceprn@hotmail.com 09/21/05 7:18 AM >>> Ray, et al, I think the only other way to accomplish this would be to put *everything* in local procedures, but that sounds like a lot more work than just getting all of the variables and plopping them in a procedure and resetting them after the record processes, but before the next one. pecae, 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) ----Original Message Follows---- Aleksandr, The short answer is "No, and it's worse than you may think." There is no command to reset all your global variables. CLEAR-ARRAY works for arrays, but that's all you get. To make matters worse, all local variables (in procedures) will also retain their values from call to call. If you have procedures that you normally only call once, you may want to make sure that they also intialize all variables before use. To avoid this problem, I always initialize variables before use. Does anyone out there have a utility for finding uninitialized variables that Aleksandr could use? Ray On Tue, Sep 20, 2005 at 07:14:59PM -0700, Aleksandr Slobodyanik wrote: > Hi. > I am modifying several programs that we run periodically for the number of clients. > I have to run every SQR separately for each client. If I have 20 clients, and 4 programs, I have to run them 80 times. I am modifying SQRs by adding while loop in BEGIN-PROGRAM section. Also I added flat file with parameters for each client. So on the first iteration program reads first line of the parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the parameter file, NEW-REPORT another PDF with different client name, and so on until the end of the parameter file. > Instead of 80 times I have to run these programs just 4 times. > Everything would be fine if I would not have one problem. After each iteration all variables still have values from the previous loop. Sure, I go and reset them after each iteration, but there are tons of them in each program, and I have to go through each, find them, put into procedure and reset. > My question: Is there a command that would reset all variables in the program to 0 or NULL depending on the type? > 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 07:34:46 2005 Date: Wed, 21 Sep 2005 08:33:11 -0400 From: "George Jansen" Subject: Re: [sqr-users] Reset all variables in the program. sorry, that would be=20 set $varname "" >>> GJANSEN@aflcio.org 09/21/05 7:40 AM >>> On another forum somebody was asking about the uses of "reflection". In a l= anguage that provided it, this would be straightforward--in Tcl foreach varname [info vars] set varname "" For SQR the path of least resistance would be to write a script to drive th= e programs. You'd still get the 20x overhead of starting a process, but at = least you wouldn't need manual intervention. >>> ceprn@hotmail.com 09/21/05 7:18 AM >>> Ray, et al, I think the only other way to accomplish this would be to put *everything*= =20 in local procedures, but that sounds like a lot more work than just getting= =20 all of the variables and plopping them in a procedure and resetting them=20 after the record processes, but before the next one. pecae, 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. 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= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Aleksandr, The short answer is "No, and it's worse than you may think." There is no command to reset all your global variables. CLEAR-ARRAY works for arrays, but that's all you get. To make matters worse, all local variables (in procedures) will also retain their values from call to call. If you have procedures that you normally only call once, you may want to make sure that they also intialize all variables before use. To avoid this problem, I always initialize variables before use. Does anyone out there have a utility for finding uninitialized variables that Aleksandr could use? Ray On Tue, Sep 20, 2005 at 07:14:59PM -0700, Aleksandr Slobodyanik wrote: > Hi. > I am modifying several programs that we run periodically for the number= =20 of clients. > I have to run every SQR separately for each client. If I have 20 clients= ,=20 and 4 programs, I have to run them 80 times. I am modifying SQRs by adding= =20 while loop in BEGIN-PROGRAM section. Also I added flat file with parameters= =20 for each client. So on the first iteration program reads first line of the= =20 parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the=20 parameter file, NEW-REPORT another PDF with different client name, and so o= n=20 until the end of the parameter file. > Instead of 80 times I have to run these programs just 4 times. > Everything would be fine if I would not have one problem. After each=20 iteration all variables still have values from the previous loop. Sure, I g= o=20 and reset them after each iteration, but there are tons of them in each=20 program, and I have to go through each, find them, put into procedure and= =20 reset. > My question: Is there a command that would reset all variables in the=20 program to 0 or NULL depending on the type? > Thank you. > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 20:08:56 2005 Date: Wed, 21 Sep 2005 18:07:48 -0700 (PDT) From: Aleksandr Slobodyanik Subject: Re: [sqr-users] Reset all variables in the program. Thank you very much. I was suspecting that there is no such command. Apparently, I did not write the programs. Thanks again. Ray Ontko wrote: Aleksandr, The short answer is "No, and it's worse than you may think." There is no command to reset all your global variables. CLEAR-ARRAY works for arrays, but that's all you get. To make matters worse, all local variables (in procedures) will also retain their values from call to call. If you have procedures that you normally only call once, you may want to make sure that they also intialize all variables before use. To avoid this problem, I always initialize variables before use. Does anyone out there have a utility for finding uninitialized variables that Aleksandr could use? Ray On Tue, Sep 20, 2005 at 07:14:59PM -0700, Aleksandr Slobodyanik wrote: > Hi. > I am modifying several programs that we run periodically for the number of clients. > I have to run every SQR separately for each client. If I have 20 clients, and 4 programs, I have to run them 80 times. I am modifying SQRs by adding while loop in BEGIN-PROGRAM section. Also I added flat file with parameters for each client. So on the first iteration program reads first line of the parameter file, runs through, produces CLIENT_NAME.PDF. Next line of the parameter file, NEW-REPORT another PDF with different client name, and so on until the end of the parameter file. > Instead of 80 times I have to run these programs just 4 times. > Everything would be fine if I would not have one problem. After each iteration all variables still have values from the previous loop. Sure, I go and reset them after each iteration, but there are tons of them in each program, and I have to go through each, find them, put into procedure and reset. > My question: Is there a command that would reset all variables in the program to 0 or NULL depending on the type? > Thank you. > > > > --------------------------------- > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 08:37:32 2005 Date: Wed, 21 Sep 2005 09:36:18 -0400 From: "Tajinder Chahal" Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblak= e' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error= - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successfu= l) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 09:00:11 2005 From: "the dragon" Subject: RE: [sqr-users] FTP -s help needed Date: Wed, 21 Sep 2005 08:58:58 -0500 ummmmmmmmmmmmmmm. What's your question???? OK, I think I understand the issue. You're trying to trap an ftp error, but you're getting the OS error. I am not certain you can trap the ftp error, since it is "shelled" out from the current instance of the OS. I'm not certain how you'd trap the ftp error. You might have to build a script (bat file), build the parm file with your sqr, call the script, and maybe then you'd be able to trap the error, but I'm not certain. 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) ----Original Message Follows---- My code looks like this: let $ftp_parm_file = 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=120:vary status=#filestat write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd = 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat = 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat = 0 (i.e. successful) and the trace file displays the statement 'FTP successful'. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 11:50:26 2005 Subject: RE: [sqr-users] FTP -s help needed Date: Wed, 21 Sep 2005 12:49:16 -0400 From: "Pamela L Lantzy" Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 13:16:02 2005 Date: Wed, 21 Sep 2005 14:14:44 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] FTP -s help needed Hi Pam, I tried this before posting my question...i.e. writing to a log file. Whene= ver I've=20 '>> logfile' in the 'CALL SYSTEM', it errors out with error code 2. >>> PLantzy@uamail.albany.edu 09/21/05 12:49PM >>> Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 07:51:32 2005 Subject: RE: [sqr-users] FTP -s help needed Date: Thu, 22 Sep 2005 08:45:46 -0400 From: "Pamela L Lantzy" Try with 1 > not 2 >> when redirecting the output. Can you do the exact command from the command line to see what the problem = may be ... that's how I debug the shell out problems if it happens with SQR= then it must happen at the command line..=20 I do the actual command on the system to get it working and then I know the= SQR should work. Pam -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com]=20 Sent: Wednesday, September 21, 2005 2:15 PM To: sqr-users@sqrug.org; Pamela L Lantzy Subject: RE: [sqr-users] FTP -s help needed Hi Pam, I tried this before posting my question...i.e. writing to a log file. Whene= ver I've=20 '>> logfile' in the 'CALL SYSTEM', it errors out with error code 2. >>> PLantzy@uamail.albany.edu 09/21/05 12:49PM >>> Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 07:55:59 2005 Date: Thu, 22 Sep 2005 08:50:06 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] FTP -s help needed It works fine from the command line. A logfile is created even if I use 2 >= >.=20 I even tried with 1> and it gave me Error - 2. >>> "Pamela L Lantzy" 09/22/05 08:45AM >>> Try with 1 > not 2 >> when redirecting the output. Can you do the exact command from the command line to see what the problem = may be ... that's how I debug the shell out problems if it happens with SQR= then it must happen at the command line..=20 I do the actual command on the system to get it working and then I know the= SQR should work. Pam -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com]=20 Sent: Wednesday, September 21, 2005 2:15 PM To: sqr-users@sqrug.org; Pamela L Lantzy Subject: RE: [sqr-users] FTP -s help needed Hi Pam, I tried this before posting my question...i.e. writing to a log file. Whene= ver I've=20 '>> logfile' in the 'CALL SYSTEM', it errors out with error code 2. >>> PLantzy@uamail.albany.edu 09/21/05 12:49PM >>> Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 08:25:22 2005 Subject: RE: [sqr-users] FTP -s help needed Date: Thu, 22 Sep 2005 09:24:07 -0400 From: "Pamela L Lantzy" Are you running the SQR on NT or Unix? -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Thursday, September 22, 2005 8:50 AM To: Pamela L Lantzy Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] FTP -s help needed It works fine from the command line. A logfile is created even if I use 2 >>.=20 I even tried with 1> and it gave me Error - 2. >>> "Pamela L Lantzy" 09/22/05 08:45AM >>> Try with 1 > not 2 >> when redirecting the output. Can you do the exact command from the command line to see what the problem may be ... that's how I debug the shell out problems if it happens with SQR then it must happen at the command line..=20 I do the actual command on the system to get it working and then I know the SQR should work. Pam -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com]=20 Sent: Wednesday, September 21, 2005 2:15 PM To: sqr-users@sqrug.org; Pamela L Lantzy Subject: RE: [sqr-users] FTP -s help needed Hi Pam, I tried this before posting my question...i.e. writing to a log file. Whenever I've=20 '>> logfile' in the 'CALL SYSTEM', it errors out with error code 2. >>> PLantzy@uamail.albany.edu 09/21/05 12:49PM >>> Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 08:28:39 2005 Date: Thu, 22 Sep 2005 09:26:32 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] FTP -s help needed On NT. >>> PLantzy@uamail.albany.edu 09/22/05 09:24AM >>> Are you running the SQR on NT or Unix? -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Thursday, September 22, 2005 8:50 AM To: Pamela L Lantzy Cc: sqr-users@sqrug.org=20 Subject: RE: [sqr-users] FTP -s help needed It works fine from the command line. A logfile is created even if I use 2 >>.=20 I even tried with 1> and it gave me Error - 2. >>> "Pamela L Lantzy" 09/22/05 08:45AM >>> Try with 1 > not 2 >> when redirecting the output. Can you do the exact command from the command line to see what the problem may be ... that's how I debug the shell out problems if it happens with SQR then it must happen at the command line..=20 I do the actual command on the system to get it working and then I know the SQR should work. Pam -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com]=20 Sent: Wednesday, September 21, 2005 2:15 PM To: sqr-users@sqrug.org; Pamela L Lantzy Subject: RE: [sqr-users] FTP -s help needed Hi Pam, I tried this before posting my question...i.e. writing to a log file. Whenever I've=20 '>> logfile' in the 'CALL SYSTEM', it errors out with error code 2. >>> PLantzy@uamail.albany.edu 09/21/05 12:49PM >>> Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 08:40:15 2005 Subject: RE: [sqr-users] FTP -s help needed Date: Thu, 22 Sep 2005 09:39:05 -0400 From: "Pamela L Lantzy" Ok, the code I provided was running it on UNIX. Here is our code for running it on NT which is a bit different I still place all the FTP commands into the file $ftp_command_file. Then I put the actual FTP command into a new .bat file and use that .bat file to run through Call System And then the rest of the logic is the same as before where I open the log file to search for problems !Place the ftp log file in the common log directory let $ftp_log_file =3D $dir || lower($PrcsName) || '_ftp_' || $ts || '.log' show 'UAFTP: FTP log file: ' $ftp_log_file show {NULL} let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file show 'UAFTP: FTP command: ' $command !*** NT ONLY - Create a bat file to ftp ... this is because we need to change directory !first instead of doing it within FTP because of UNC Names in window !Place the ftp command file in the common log directory let $ftp_bat_file =3D $dir || lower($PrcsName) || '_ftpbat_' || $ts || '.bat' show 'UAFTP: FTP bat file: ' $ftp_command_file show {NULL} open $ftp_bat_file as 7000 for-writing record=3D3000 status =3D #ftpstat write 7000 from 'cd ' $_UA_SOURCE_DIR write 7000 from $command write 7000 from 'exit' close 7000 Let $Command_bat =3D getenv('COMSPEC')|| ' /c @start /min /wait ' || $ftp_bat_file show 'UAFTP: FTP commandline: ' $command_bat call system using $command_bat #status wait -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Thursday, September 22, 2005 9:27 AM To: sqr-users@sqrug.org; Pamela L Lantzy Subject: RE: [sqr-users] FTP -s help needed On NT. >>> PLantzy@uamail.albany.edu 09/22/05 09:24AM >>> Are you running the SQR on NT or Unix? -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Thursday, September 22, 2005 8:50 AM To: Pamela L Lantzy Cc: sqr-users@sqrug.org=20 Subject: RE: [sqr-users] FTP -s help needed It works fine from the command line. A logfile is created even if I use 2 >>.=20 I even tried with 1> and it gave me Error - 2. >>> "Pamela L Lantzy" 09/22/05 08:45AM >>> Try with 1 > not 2 >> when redirecting the output. Can you do the exact command from the command line to see what the problem may be ... that's how I debug the shell out problems if it happens with SQR then it must happen at the command line..=20 I do the actual command on the system to get it working and then I know the SQR should work. Pam -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@Roushind.com]=20 Sent: Wednesday, September 21, 2005 2:15 PM To: sqr-users@sqrug.org; Pamela L Lantzy Subject: RE: [sqr-users] FTP -s help needed Hi Pam, I tried this before posting my question...i.e. writing to a log file. Whenever I've=20 '>> logfile' in the 'CALL SYSTEM', it errors out with error code 2. >>> PLantzy@uamail.albany.edu 09/21/05 12:49PM >>> Here is code taken from an SQR that I wrote to ftp files. I put all the commands like you have it in $ftp_command_line but then I output the results to a log file and then open the log file to look for an errors that may have happened within the FTP =20 let $command =3D 'ftp -dn < ' || $ftp_command_file || ' > ' || $ftp_log_file=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 call system using $command #status show '$command:' $command=20=20 =20=20 !show 'UAFTP: Status after ftp: ' #status if #status <> 0 show 'UAFTP: Error after FTP call: ' #status show {NULL} let #ret_status =3D #status else !Search through log file to find any errors !show 'ftp_log_file: ' $ftp_log_file show 'UAFTP: Checking FTP log file: ' $ftp_log_file show {NULL} open $ftp_log_file as 6001 for-reading record=3D3000 let #x =3D 0 while 1=3D1 add 1 to #x read 6001 into $line:3000 let $x =3D to_char(#x) show 'UAFTP: $line: ' $x ' ' $line if #_end-file =3D 1 break end-if !Search for error let #offset =3D instr($line, 'err',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for not connected let #offset =3D instr($line, 'Not connect',1) if #offset <> 0 let #ret_status =3D 1 end-if !Search for fail let #offset =3D instr($line, 'fail',1) if #offset <> 0 let #ret_status =3D 1 end-if end-while show {NULL} close 6001 end-if if #ret_status is 1 then we have an error and the ftp failed Hope that helps. Pam Pamela Lantzy PS Administrator/ FA Tech Lead IAS, University at Albany -----Original Message----- From: sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org=20 [mailto:sqr-users-bounces+plantzy=3Duamail.albany.edu@sqrug.org] On Behalf Of Tajinder Chahal Sent: Wednesday, September 21, 2005 9:36 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] FTP -s help needed My code looks like this: let $ftp_parm_file =3D 'E:\' || $dbname || '\CUSTOM\SQR\ri_ftp_tl_dbmblake' open $ftp_parm_file as 3 for-writing record=3D120:vary status=3D#filestat =20=20 write 3 from 'ftp site' write 3 from 'userid' write 3 from 'password' write 3 from 'ascii' write 3 from 'lcd <>' write 3 from 'cd <>' write 3 from 'get filename.txt filename.txt' write 3 from 'quit' write 3 from 'EXIT' close 3 let $syscmd =3D 'FTP -s:' || $ftp_parm_file CALL SYSTEM USING $syscmd #stat WAIT if #stat =3D 0 display 'FTP successful...........' else display 'Error attempting FTP.......' end-if ----------------------------- If filename.txt does not exist, if I run thru' MS-DOS, it gives me an error - 'File not found'. But if I run it thru' sqr, #stat =3D 0 (i.e. successful) and the trace file displays the statement 'FTP successful'.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 12:58:28 2005 Date: Wed, 21 Sep 2005 10:54:58 -0700 From: "McCown, Larry" Subject: [sqr-users] Working with dates Hello it's me, Larry again still trying to work out this date issue problem for about 3 weeks now. Let me explain what I need and maybe someone can help guide me. This sounds so easy I can't believe I am still struggling with it. SQLServer 7.0 Maximo 4.0.3 Within the workorder table I need to identify when a work order is/was scheduled to be worked. If there is a targstartdate then I want to use it as the "scheduled work date", if not then I need to use the reportdate as the "scheduled work date". I then need to pull only the work orders were the "scheduled work date" matches that of the month and year as input by the requestor.=20=20 I can get the report do display the "scheduled work date" properly but only seeing the work orders for the month/year has been the trouble spot. Or using the datepart I can get only the month/year but not for the "scheduled work date" on the targstartdate or reportdate. Sorry to keep bothering you with this one. Any suggestions will be appreciated. Thank you Larry Larry.mccown@ngc.com =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 13:24:34 2005 From: SandlerA@DFO-MPO.GC.CA Subject: RE: [sqr-users] Working with dates Date: Wed, 21 Sep 2005 14:19:53 -0400 The problem may be in the way that you place your parentheses when you are selecting the date. I have tried the following query which appears to give the type of results you are looking (note though I am using Maximo 4.1.1 and Oracle 8i). If the where part of the query is To_date(Targstartdate,'MON') = $month and to_date(TargStartDate,'YYYY') = $year or (TargStartDate is null and (to_date(ReportDate, 'MON') = $month and to_date(ReportDate, 'YYYY') = $year)) This appears to give the type of result you are looking for. Again, this is Oracle syntax. You will probably need to change it to work correctly with SQLServer. Aaron Sandler -----Original Message----- From: McCown, Larry [mailto:larry.mccown@ngc.com] Sent: September 21, 2005 1:55 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Working with dates Hello it's me, Larry again still trying to work out this date issue problem for about 3 weeks now. Let me explain what I need and maybe someone can help guide me. This sounds so easy I can't believe I am still struggling with it. SQLServer 7.0 Maximo 4.0.3 Within the workorder table I need to identify when a work order is/was scheduled to be worked. If there is a targstartdate then I want to use it as the "scheduled work date", if not then I need to use the reportdate as the "scheduled work date". I then need to pull only the work orders were the "scheduled work date" matches that of the month and year as input by the requestor. I can get the report do display the "scheduled work date" properly but only seeing the work orders for the month/year has been the trouble spot. Or using the datepart I can get only the month/year but not for the "scheduled work date" on the targstartdate or reportdate. Sorry to keep bothering you with this one. Any suggestions will be appreciated. Thank you Larry Larry.mccown@ngc.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 13:01:53 2005 Date: Wed, 21 Sep 2005 11:00:55 -0700 From: "Leanne Harrisburg" Subject: [sqr-users] Question about TOP and SQR Does SQR allow the use of TOP, as in SELECT TOP 1 MAX(A.COLUMN) FROM DATABASE.TABLE? =20 Thank you, =20 Leanne Harrisburg National University Programmer/Analyst voice: (619) 563-2635 Fax: (619) 563-7933 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 13:20:58 2005 Date: Wed, 21 Sep 2005 14:20:36 -0400 (EDT) Subject: Re: [sqr-users] Question about TOP and SQR From: "Sudeep Vaidya" You can use the Loops = attribute of the Begin-Select statement. Using the OrderBy, you can pick the row you are looking for. Sudeep Does SQR allow the use of TOP, as in SELECT TOP 1 MAX(A.COLUMN) FROM > DATABASE.TABLE? > > > > Thank you, > > > > Leanne Harrisburg > > National University > > Programmer/Analyst > > voice: (619) 563-2635 > > Fax: (619) 563-7933 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 14:56:17 2005 From: "the dragon" Subject: Re: [sqr-users] Question about TOP and SQR Date: Wed, 21 Sep 2005 14:55:15 -0500 If I remeber correctly, loops = only works with certain platforms; more specifically, I have had certain platforms that refused to work with it. Give it a try and see what happens. 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) ----Original Message Follows---- You can use the Loops = attribute of the Begin-Select statement. Using the OrderBy, you can pick the row you are looking for. Sudeep Does SQR allow the use of TOP, as in SELECT TOP 1 MAX(A.COLUMN) FROM > DATABASE.TABLE? > > > > Thank you, > > > > Leanne Harrisburg > > National University > > Programmer/Analyst > > voice: (619) 563-2635 > > Fax: (619) 563-7933 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 14:51:18 2005 Date: Wed, 21 Sep 2005 15:49:56 -0400 From: "Tajinder Chahal" Subject: [sqr-users] SQR - Column Limit Hi All, I've been given an assignment to write a cross-tab report. There can be any= number of Dept's that can be printed across - it can be 1 or it can be 40.= So, I'm not sure which page size to use. The users said that even if they = are just able to view the report on their PC that should be fine. I know if I use setup31.sqc, it will print landscape but still it has a lim= itation on # of columns. Is there any way in sqr to specify that I need unl= imited columns. Please help. Thanks, Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 15:06:45 2005 Date: Wed, 21 Sep 2005 13:05:39 -0700 (PDT) From: Sam Spritzer Subject: Re: [sqr-users] SQR - Column Limit If I had my druthers, and you might want to suggest it, but for 40 columns, I would recommend writing to a file that can be open in Excel. SQRly yours, Sam Tajinder Chahal wrote: Hi All, I've been given an assignment to write a cross-tab report. There can be any number of Dept's that can be printed across - it can be 1 or it can be 40. So, I'm not sure which page size to use. The users said that even if they are just able to view the report on their PC that should be fine. I know if I use setup31.sqc, it will print landscape but still it has a limitation on # of columns. Is there any way in sqr to specify that I need unlimited columns. Please help. Thanks, Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 15:23:44 2005 Date: Wed, 21 Sep 2005 16:22:27 -0400 From: "Tajinder Chahal" Subject: Re: [sqr-users] SQR - Column Limit I found an answer to my question. I should be able to use MAX-COLUMNS. Thanks, Tajinder >>> teknogeek9@yahoo.com 09/21/05 04:05PM >>> If I had my druthers, and you might want to suggest it, but for 40 columns,= I would recommend writing to a file that can be open in Excel. SQRly yours, Sam Tajinder Chahal wrote: Hi All, I've been given an assignment to write a cross-tab report. There can be any= number of Dept's that can be printed across - it can be 1 or it can be 40.= So, I'm not sure which page size to use. The users said that even if they = are just able to view the report on their PC that should be fine. I know if I use setup31.sqc, it will print landscape but still it has a lim= itation on # of columns. Is there any way in sqr to specify that I need unl= imited columns. Please help. Thanks, Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =09=09 --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 21 15:53:38 2005 From: "the dragon" Subject: Re: [sqr-users] SQR - Column Limit Date: Wed, 21 Sep 2005 15:52:30 -0500 The thing is, you'll be limited to the size of your sheet and the font you're using. It's been a while, but I don't think you can automatically go across multiple pages if the width exceeds the above parameters. 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) ----Original Message Follows---- I found an answer to my question. I should be able to use MAX-COLUMNS. Thanks, Tajinder >>> teknogeek9@yahoo.com 09/21/05 04:05PM >>> If I had my druthers, and you might want to suggest it, but for 40 columns, I would recommend writing to a file that can be open in Excel. SQRly yours, Sam Tajinder Chahal wrote: Hi All, I've been given an assignment to write a cross-tab report. There can be any number of Dept's that can be printed across - it can be 1 or it can be 40. So, I'm not sure which page size to use. The users said that even if they are just able to view the report on their PC that should be fine. I know if I use setup31.sqc, it will print landscape but still it has a limitation on # of columns. Is there any way in sqr to specify that I need unlimited columns. Please help. Thanks, Tajinder _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 06:42:31 2005 Date: Thu, 22 Sep 2005 07:41:08 -0400 From: "Hill, Jeff" Subject: [sqr-users] Changing Oracle within an SQR Gang - At my client, we have an SQR that uses a database link from an Oracle 9i to= Oracle 7 to retrieve information. We recently upgraded to 9i and determin= ed that the link is no longer functional. Is there a way, within SQR, to c= hange the path of the Oracle bin directories to Oracle 8 or Oracle 7? THANKS. Jeff Hill HRCM Consultant CedarCrestone, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 07:47:27 2005 Date: Thu, 22 Sep 2005 08:45:12 -0400 From: "George Jansen" Subject: Re: [sqr-users] Changing Oracle within an SQR This isn't really an SQR problem. I'm guessing that the link is broken by s= omething else: can you SELECT whatever FROM thatguy.thattab@remotedb WHERE rownum <=3D 5 ? I bet not. As for SQR, if you link against 8i libraries--set your=20 export LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH:$ORACLE_HOME/lib for some 8i Oracle Home, and relink SQR, you should be ok for 9i and 8i at = least. But are you sure you're not running into that blasted String2em problem?, t= he one for which you must SET EVENT=3D"10499 trace name context forever, level 1"? >>> Jeff.Hill@cedarcrestone.com 09/22/05 7:41 AM >>> Gang - At my client, we have an SQR that uses a database link from an Oracle 9i to= Oracle 7 to retrieve information. We recently upgraded to 9i and determin= ed that the link is no longer functional. Is there a way, within SQR, to c= hange the path of the Oracle bin directories to Oracle 8 or Oracle 7? THANKS. Jeff Hill HRCM Consultant CedarCrestone, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 08:05:05 2005 Subject: RE: [sqr-users] Changing Oracle within an SQR Date: Thu, 22 Sep 2005 06:03:22 -0700 From: "Lynds,Rick" Jeff, My DBAs have told me that you cannot reliably link directly from Oracle 9i to Oracle 7. This has nothing to do with SQR - more to do with database version incompatibilities. An ugly (but possible) solution: Create an Oracle 8 instance for the sole purpose of linking to the Oracle 7 database, and link to it from Oracle 9i. This is really ugly - but it may be worth a shot if you absolutely cannot upgrade the Oracle 7 database.=20 Good luck Rick -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of Hill, Jeff Sent: Thursday, September 22, 2005 4:41 AM To: sqr-users@sqrug.org Subject: [sqr-users] Changing Oracle within an SQR Gang - At my client, we have an SQR that uses a database link from an Oracle 9i to Oracle 7 to retrieve information. We recently upgraded to 9i and determined that the link is no longer functional. Is there a way, within SQR, to change the path of the Oracle bin directories to Oracle 8 or Oracle 7? THANKS. Jeff Hill HRCM Consultant CedarCrestone, 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 Thu Sep 22 09:08:06 2005 From: "the dragon" Subject: RE: [sqr-users] Changing Oracle within an SQR Date: Thu, 22 Sep 2005 09:07:01 -0500 I think you may be over engineering..... What is it in the old database that you need? Couldn't you just port that data into the new database into a table??? 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) ----Original Message Follows---- Jeff, My DBAs have told me that you cannot reliably link directly from Oracle 9i to Oracle 7. This has nothing to do with SQR - more to do with database version incompatibilities. An ugly (but possible) solution: Create an Oracle 8 instance for the sole purpose of linking to the Oracle 7 database, and link to it from Oracle 9i. This is really ugly - but it may be worth a shot if you absolutely cannot upgrade the Oracle 7 database. Good luck Rick -----Original Message----- Gang - At my client, we have an SQR that uses a database link from an Oracle 9i to Oracle 7 to retrieve information. We recently upgraded to 9i and determined that the link is no longer functional. Is there a way, within SQR, to change the path of the Oracle bin directories to Oracle 8 or Oracle 7? THANKS. Jeff Hill HRCM Consultant CedarCrestone, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 13:17:20 2005 Date: Thu, 22 Sep 2005 13:16:42 -0500 From: "Ken Klingsporn" Subject: [sqr-users] PAY003.SQR We are trying to print the MICR line on our paycheck using PAY003.SQR. I have set up font 620 in the PSSQR.INI file as shown below. I have also loaded MICRe13b4.ttf as a Windows font. When I use the -PRINTER:HP and -KEEP options, I can see in the .SPF file that the MICR font is not used. Also, when I print the .LIS file the MICR font is not used. Has anyone experienced this problem before? We are using an HP LaserJet 5N printer.=20 =20 [Fonts] 3=3DCourier New,fixed 300=3DCourier New,fixed,bold 4=3DArial,proportional 400=3DArial,proportional,bold 5=3DTimes New Roman,proportional 500=3DTimes New Roman,proportional,bold 6=3DAvantGarde,proportional 620=3DMICR,fixed 8=3DPalatino,proportional 800=3DPalatino,proportional,bold 11=3DSymbol,symbol 900=3Dunknown,proportional 901=3DTimes New Roman,proportional 28825=3DMS UI Gothic,proportional =20 [PDF Fonts] 620=3DMICRe13b [TrueType Fonts] =20 Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ Albany=3Dalbw.ttf Albany-Bold=3Dalbwb.ttf Cumberland=3Dcumbwr__.ttf Cumberland-Bold=3Dcumbwb__.ttf MICR=3DMICRe13b4.ttf Thorndale=3Dthowr___.ttf Thorndale-Bold=3Dthowb___.ttf Angsana=3Dangsa.ttf =20 Ken Klingsporn HickoryTech=20 Reporting Specialist, Information Solutions (507) 388-0230=20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 13:42:14 2005 Date: Thu, 22 Sep 2005 14:40:23 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] PAY003.SQR Ken, I wish we could help - we're currently trying to do almost the same thing. We have a .ttf font with a signature in it (because HP won't make a font DIMM for our printer anymore - too old they say) and we're trying to make this SQR use it. We've had no luck so far either, except this may help: www.micrfonts.com offers a service we are considering as one of our options ($125 for us since we have two signatures) to create a PCL font for us. There's a sample there with instructions for how to use it and I was able (in about 10 minutes) to get "Your Signature Here" to print (in cursive) on our checks. We may go that route unless something else is easier/cheaper. We've already paid for the TTF font (which we use in our Crystal Reports already) so we don't want to have to pay again for this other format. I've been unable to find anything out there to convert the TTF to the right format. Since you need a micr font, you might start here: http://www.micrfonts.com/micrlj.htm look for the "free trial version" to download and try it out. The trick is that you need to run the SQR to "File" "Other" as your destination/format and you'd use a batch file to actually send it to a printer queue (captured as LPT1 or LPT2, etc.), so it may not work for you as easily as it does for us. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> Ken.Klingsporn@hickorytech.com 9/22/2005 2:16 PM >>> We are trying to print the MICR line on our paycheck using PAY003.SQR. I have set up font 620 in the PSSQR.INI file as shown below. I have also loaded MICRe13b4.ttf as a Windows font. When I use the -PRINTER:HP and -KEEP options, I can see in the .SPF file that the MICR font is not used. Also, when I print the .LIS file the MICR font is not used. Has anyone experienced this problem before? We are using an HP LaserJet 5N printer. [Fonts] 3=Courier New,fixed 300=Courier New,fixed,bold 4=Arial,proportional 400=Arial,proportional,bold 5=Times New Roman,proportional 500=Times New Roman,proportional,bold 6=AvantGarde,proportional 620=MICR,fixed 8=Palatino,proportional 800=Palatino,proportional,bold 11=Symbol,symbol 900=unknown,proportional 901=Times New Roman,proportional 28825=MS UI Gothic,proportional [PDF Fonts] 620=MICRe13b [TrueType Fonts] Font Path=C:\psoft\hrdmo88\fonts\truetype\ Albany=albw.ttf Albany-Bold=albwb.ttf Cumberland=cumbwr__.ttf Cumberland-Bold=cumbwb__.ttf MICR=MICRe13b4.ttf Thorndale=thowr___.ttf Thorndale-Bold=thowb___.ttf Angsana=angsa.ttf Ken Klingsporn HickoryTech Reporting Specialist, Information Solutions (507) 388-0230 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 22 16:58:51 2005 Date: Thu, 22 Sep 2005 17:57:30 -0400 From: "Everett Carr" Subject: Re: [sqr-users] PAY003.SQR we don't do it that way. I suspect you may have positioning trouble in that= sqr native print stmnts may not provide enough precision relative to micr = line positioning. in our situation, the micr, postnet, logo, and signiture are hard fonts ins= talled on the target printer; the only good accounting control / security m= ethod to use. That aside, we encode the specific printer font command and vertical horizt= al positioning commands into variables that we string out as one sqr print = statement. That way we have absolute to the accuracy positioning ability of= the printer control as to the position and alignment of micr line (and log= o and signiture). >>> Ken.Klingsporn@hickorytech.com 09/22/05 2:16 PM >>> We are trying to print the MICR line on our paycheck using PAY003.SQR. I have set up font 620 in the PSSQR.INI file as shown below. I have also loaded MICRe13b4.ttf as a Windows font. When I use the -PRINTER:HP and -KEEP options, I can see in the .SPF file that the MICR font is not used. Also, when I print the .LIS file the MICR font is not used. Has anyone experienced this problem before? We are using an HP LaserJet 5N printer.=20 =20 [Fonts] 3=3DCourier New,fixed 300=3DCourier New,fixed,bold 4=3DArial,proportional 400=3DArial,proportional,bold 5=3DTimes New Roman,proportional 500=3DTimes New Roman,proportional,bold 6=3DAvantGarde,proportional 620=3DMICR,fixed 8=3DPalatino,proportional 800=3DPalatino,proportional,bold 11=3DSymbol,symbol 900=3Dunknown,proportional 901=3DTimes New Roman,proportional 28825=3DMS UI Gothic,proportional =20 [PDF Fonts] 620=3DMICRe13b [TrueType Fonts] =20 Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ Albany=3Dalbw.ttf Albany-Bold=3Dalbwb.ttf Cumberland=3Dcumbwr__.ttf Cumberland-Bold=3Dcumbwb__.ttf MICR=3DMICRe13b4.ttf Thorndale=3Dthowr___.ttf Thorndale-Bold=3Dthowb___.ttf Angsana=3Dangsa.ttf =20 Ken Klingsporn HickoryTech=20 Reporting Specialist, Information Solutions (507) 388-0230=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 Sep 23 09:48:46 2005 Subject: RE: [sqr-users] PAY003.SQR Date: Fri, 23 Sep 2005 09:48:08 -0500 From: "Ken Klingsporn" How did you install the hard fonts on the target printer? Thank you=20 > -----Original Message----- > From: Everett Carr [mailto:ecarr@holycross.edu]=20 > Sent: Thursday, September 22, 2005 4:58 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] PAY003.SQR >=20 > we don't do it that way. I suspect you may have positioning=20 > trouble in that sqr native print stmnts may not provide=20 > enough precision relative to micr line positioning. >=20 > in our situation, the micr, postnet, logo, and signiture are=20 > hard fonts installed on the target printer; the only good=20 > accounting control / security method to use. >=20 > That aside, we encode the specific printer font command and=20 > vertical horiztal positioning commands into variables that we=20 > string out as one sqr print statement. That way we have=20 > absolute to the accuracy positioning ability of the printer=20 > control as to the position and alignment of micr line (and=20 > logo and signiture). >=20 > >>> Ken.Klingsporn@hickorytech.com 09/22/05 2:16 PM >>> > We are trying to print the MICR line on our paycheck using=20 > PAY003.SQR. I have set up font 620 in the PSSQR.INI file as=20 > shown below. I have also loaded MICRe13b4.ttf as a Windows=20 > font. When I use the -PRINTER:HP and -KEEP options, I can see=20 > in the .SPF file that the MICR font is not used. Also, when I=20 > print the .LIS file the MICR font is not used. Has anyone=20 > experienced this problem before? We are using an HP LaserJet=20 > 5N printer.=20 >=20=20 > [Fonts] >=20 > 3=3DCourier New,fixed > 300=3DCourier New,fixed,bold > 4=3DArial,proportional > 400=3DArial,proportional,bold > 5=3DTimes New Roman,proportional > 500=3DTimes New Roman,proportional,bold > 6=3DAvantGarde,proportional > 620=3DMICR,fixed > 8=3DPalatino,proportional > 800=3DPalatino,proportional,bold > 11=3DSymbol,symbol > 900=3Dunknown,proportional > 901=3DTimes New Roman,proportional > 28825=3DMS UI Gothic,proportional >=20=20 > [PDF Fonts] > 620=3DMICRe13b >=20 > [TrueType Fonts] >=20=20 > Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ > Albany=3Dalbw.ttf > Albany-Bold=3Dalbwb.ttf > Cumberland=3Dcumbwr__.ttf > Cumberland-Bold=3Dcumbwb__.ttf > MICR=3DMICRe13b4.ttf > Thorndale=3Dthowr___.ttf > Thorndale-Bold=3Dthowb___.ttf > Angsana=3Dangsa.ttf >=20=20 >=20 > Ken Klingsporn >=20 >=20 > HickoryTech=20 >=20 >=20 > Reporting Specialist, Information Solutions >=20 > (507) 388-0230=20 >=20=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=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 Sat Sep 24 22:08:51 2005 Date: Sat, 24 Sep 2005 23:07:34 -0400 From: "Everett Carr" Subject: RE: [sqr-users] PAY003.SQR you order it from a vendor ; in our situation we use a troy modified hp pri= nter so we order the font simm from troy. however any number of vendors are= available that can burn company logo and signature and micr fonts onto a m= emory simm compatible to your printer. regards. >>> Ken.Klingsporn@hickorytech.com 09/23/05 10:48 AM >>> How did you install the hard fonts on the target printer? Thank you=20 > -----Original Message----- > From: Everett Carr [mailto:ecarr@holycross.edu]=20 > Sent: Thursday, September 22, 2005 4:58 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] PAY003.SQR >=20 > we don't do it that way. I suspect you may have positioning=20 > trouble in that sqr native print stmnts may not provide=20 > enough precision relative to micr line positioning. >=20 > in our situation, the micr, postnet, logo, and signiture are=20 > hard fonts installed on the target printer; the only good=20 > accounting control / security method to use. >=20 > That aside, we encode the specific printer font command and=20 > vertical horiztal positioning commands into variables that we=20 > string out as one sqr print statement. That way we have=20 > absolute to the accuracy positioning ability of the printer=20 > control as to the position and alignment of micr line (and=20 > logo and signiture). >=20 > >>> Ken.Klingsporn@hickorytech.com 09/22/05 2:16 PM >>> > We are trying to print the MICR line on our paycheck using=20 > PAY003.SQR. I have set up font 620 in the PSSQR.INI file as=20 > shown below. I have also loaded MICRe13b4.ttf as a Windows=20 > font. When I use the -PRINTER:HP and -KEEP options, I can see=20 > in the .SPF file that the MICR font is not used. Also, when I=20 > print the .LIS file the MICR font is not used. Has anyone=20 > experienced this problem before? We are using an HP LaserJet=20 > 5N printer.=20 >=20=20 > [Fonts] >=20 > 3=3DCourier New,fixed > 300=3DCourier New,fixed,bold > 4=3DArial,proportional > 400=3DArial,proportional,bold > 5=3DTimes New Roman,proportional > 500=3DTimes New Roman,proportional,bold > 6=3DAvantGarde,proportional > 620=3DMICR,fixed > 8=3DPalatino,proportional > 800=3DPalatino,proportional,bold > 11=3DSymbol,symbol > 900=3Dunknown,proportional > 901=3DTimes New Roman,proportional > 28825=3DMS UI Gothic,proportional >=20=20 > [PDF Fonts] > 620=3DMICRe13b >=20 > [TrueType Fonts] >=20=20 > Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ > Albany=3Dalbw.ttf > Albany-Bold=3Dalbwb.ttf > Cumberland=3Dcumbwr__.ttf > Cumberland-Bold=3Dcumbwb__.ttf > MICR=3DMICRe13b4.ttf > Thorndale=3Dthowr___.ttf > Thorndale-Bold=3Dthowb___.ttf > Angsana=3Dangsa.ttf >=20=20 >=20 > Ken Klingsporn >=20 >=20 > HickoryTech=20 >=20 >=20 > Reporting Specialist, Information Solutions >=20 > (507) 388-0230=20 >=20=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=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 Sun Sep 25 21:52:37 2005 From: Al H Subject: Re: [sqr-users] PAY003.SQR Date: Sun, 25 Sep 2005 19:49:02 -0700 TrueType fonts won't work with this type of output format. Try changing your output format to PDF. On Thu, 22 Sep 2005 13:16:42 -0500, you wrote: >We are trying to print the MICR line on our paycheck using PAY003.SQR. I >have set up font 620 in the PSSQR.INI file as shown below. I have also >loaded MICRe13b4.ttf as a Windows font. When I use the -PRINTER:HP and >-KEEP options, I can see in the .SPF file that the MICR font is not >used. Also, when I print the .LIS file the MICR font is not used. Has >anyone experienced this problem before? We are using an HP LaserJet 5N >printer.=20 >=20 >[Fonts] > >3=3DCourier New,fixed >300=3DCourier New,fixed,bold >4=3DArial,proportional >400=3DArial,proportional,bold >5=3DTimes New Roman,proportional >500=3DTimes New Roman,proportional,bold >6=3DAvantGarde,proportional >620=3DMICR,fixed >8=3DPalatino,proportional >800=3DPalatino,proportional,bold >11=3DSymbol,symbol >900=3Dunknown,proportional >901=3DTimes New Roman,proportional >28825=3DMS UI Gothic,proportional >=20 >[PDF Fonts] >620=3DMICRe13b > >[TrueType Fonts] >=20 >Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ >Albany=3Dalbw.ttf >Albany-Bold=3Dalbwb.ttf >Cumberland=3Dcumbwr__.ttf >Cumberland-Bold=3Dcumbwb__.ttf >MICR=3DMICRe13b4.ttf >Thorndale=3Dthowr___.ttf >Thorndale-Bold=3Dthowb___.ttf >Angsana=3Dangsa.ttf >=20 > >Ken Klingsporn > > >HickoryTech=20 > > >Reporting Specialist, Information Solutions > >(507) 388-0230=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 15:52:58 2005 Subject: RE: [sqr-users] PAY003.SQR Date: Mon, 26 Sep 2005 15:52:19 -0500 From: "Ken Klingsporn" I can get the SQR to output the MICR font to PDF correctly but I want to get the MICR font into the .LIS file. Is there a way to set the font you're using by adding it to the [Fonts] section of PSSQR.INI like this example: 910=3DMICR E13B Match Tryout, fixed I tried doing this and didn't have any success. > -----Original Message----- > From: Al H [mailto:maillists@starbuckk.net]=20 > Sent: Sunday, September 25, 2005 9:49 PM > To: This list is for discussion about the SQR database=20 > reporting languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] PAY003.SQR >=20 > TrueType fonts won't work with this type of output format.=20 > Try changing your output format to PDF. >=20 >=20 > On Thu, 22 Sep 2005 13:16:42 -0500, you wrote: >=20 > >We are trying to print the MICR line on our paycheck using=20 > PAY003.SQR.=20 > >I have set up font 620 in the PSSQR.INI file as shown below. I have=20 > >also loaded MICRe13b4.ttf as a Windows font. When I use the=20 > -PRINTER:HP=20 > >and -KEEP options, I can see in the .SPF file that the MICR=20 > font is not=20 > >used. Also, when I print the .LIS file the MICR font is not=20 > used. Has=20 > >anyone experienced this problem before? We are using an HP=20 > LaserJet 5N=20 > >printer. > >=20 > >[Fonts] > > > >3=3DCourier New,fixed > >300=3DCourier New,fixed,bold > >4=3DArial,proportional > >400=3DArial,proportional,bold > >5=3DTimes New Roman,proportional > >500=3DTimes New Roman,proportional,bold > >6=3DAvantGarde,proportional > >620=3DMICR,fixed > >8=3DPalatino,proportional > >800=3DPalatino,proportional,bold > >11=3DSymbol,symbol > >900=3Dunknown,proportional > >901=3DTimes New Roman,proportional > >28825=3DMS UI Gothic,proportional > >=20 > >[PDF Fonts] > >620=3DMICRe13b > > > >[TrueType Fonts] > >=20 > >Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ > >Albany=3Dalbw.ttf > >Albany-Bold=3Dalbwb.ttf > >Cumberland=3Dcumbwr__.ttf > >Cumberland-Bold=3Dcumbwb__.ttf > >MICR=3DMICRe13b4.ttf > >Thorndale=3Dthowr___.ttf > >Thorndale-Bold=3Dthowb___.ttf > >Angsana=3Dangsa.ttf > >=20 > > > >Ken Klingsporn > > > > > >HickoryTech > > > > > >Reporting Specialist, Information Solutions > > > >(507) 388-0230 > >=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 Mon Sep 26 22:37:07 2005 From: Al H Subject: Re: [sqr-users] PAY003.SQR Date: Mon, 26 Sep 2005 20:33:31 -0700 .LIS files depend on the fonts inside the printer. So unless your printer has a MICR font built in (which, oddly enough, few printers do), you can't do it directly. Different printers have different ways of adding fonts. Some you can download "soft" fonts. Some use SIMM cards. You'll have to check with the vendor of the printer to see how to add a MICR font to the printer. On Mon, 26 Sep 2005 15:52:19 -0500, you wrote: >I can get the SQR to output the MICR font to PDF correctly but I want to >get the MICR font into the .LIS file. Is there a way to set the font >you're using by adding it to the [Fonts] section of PSSQR.INI like this >example: > >910=3DMICR E13B Match Tryout, fixed > >I tried doing this and didn't have any success. > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 16:32:50 2005 Date: Mon, 26 Sep 2005 17:31:32 -0400 From: "Everett Carr" Subject: RE: [sqr-users] PAY003.SQR GOOD LUCK in terms of the pdf file...... I rather doubt you'll get it to li= ne up properly in terms of ACCEPTABLE for PROCESSING by a BANK.... You are better off ordering hard (memory stick) printer fonts and install i= t on the physical printer >>> Ken.Klingsporn@hickorytech.com 09/26/05 4:52 PM >>> I can get the SQR to output the MICR font to PDF correctly but I want to get the MICR font into the .LIS file. Is there a way to set the font you're using by adding it to the [Fonts] section of PSSQR.INI like this example: 910=3DMICR E13B Match Tryout, fixed I tried doing this and didn't have any success. > -----Original Message----- > From: Al H [mailto:maillists@starbuckk.net]=20 > Sent: Sunday, September 25, 2005 9:49 PM > To: This list is for discussion about the SQR database=20 > reporting languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] PAY003.SQR >=20 > TrueType fonts won't work with this type of output format.=20 > Try changing your output format to PDF. >=20 >=20 > On Thu, 22 Sep 2005 13:16:42 -0500, you wrote: >=20 > >We are trying to print the MICR line on our paycheck using=20 > PAY003.SQR.=20 > >I have set up font 620 in the PSSQR.INI file as shown below. I have=20 > >also loaded MICRe13b4.ttf as a Windows font. When I use the=20 > -PRINTER:HP=20 > >and -KEEP options, I can see in the .SPF file that the MICR=20 > font is not=20 > >used. Also, when I print the .LIS file the MICR font is not=20 > used. Has=20 > >anyone experienced this problem before? We are using an HP=20 > LaserJet 5N=20 > >printer. > >=20 > >[Fonts] > > > >3=3DCourier New,fixed > >300=3DCourier New,fixed,bold > >4=3DArial,proportional > >400=3DArial,proportional,bold > >5=3DTimes New Roman,proportional > >500=3DTimes New Roman,proportional,bold > >6=3DAvantGarde,proportional > >620=3DMICR,fixed > >8=3DPalatino,proportional > >800=3DPalatino,proportional,bold > >11=3DSymbol,symbol > >900=3Dunknown,proportional > >901=3DTimes New Roman,proportional > >28825=3DMS UI Gothic,proportional > >=20 > >[PDF Fonts] > >620=3DMICRe13b > > > >[TrueType Fonts] > >=20 > >Font Path=3DC:\psoft\hrdmo88\fonts\truetype\ > >Albany=3Dalbw.ttf > >Albany-Bold=3Dalbwb.ttf > >Cumberland=3Dcumbwr__.ttf > >Cumberland-Bold=3Dcumbwb__.ttf > >MICR=3DMICRe13b4.ttf > >Thorndale=3Dthowr___.ttf > >Thorndale-Bold=3Dthowb___.ttf > >Angsana=3Dangsa.ttf > >=20 > > > >Ken Klingsporn > > > > > >HickoryTech > > > > > >Reporting Specialist, Information Solutions > > > >(507) 388-0230 > >=20 >=20 >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 23 22:01:02 2005 From: "Prasanna Menta" Date: Fri, 23 Sep 2005 19:59:45 -0700 Subject: Re: RE: [sqr-users] PAY003.SQR You should copy fonts and install them on the target printer, else you could have it centralized. Prasanna ----- Original Message ----- From: "Ken Klingsporn" Date: Friday, September 23, 2005 7:48 am Subject: RE: [sqr-users] PAY003.SQR > How did you install the hard fonts on the target printer? > > Thank you > > > -----Original Message----- > > From: Everett Carr [mailto:ecarr@holycross.edu] > > Sent: Thursday, September 22, 2005 4:58 PM > > To: sqr-users@sqrug.org > > Subject: Re: [sqr-users] PAY003.SQR > > > > we don't do it that way. I suspect you may have positioning > > trouble in that sqr native print stmnts may not provide > > enough precision relative to micr line positioning. > > > > in our situation, the micr, postnet, logo, and signiture are > > hard fonts installed on the target printer; the only good > > accounting control / security method to use. > > > > That aside, we encode the specific printer font command and > > vertical horiztal positioning commands into variables that we > > string out as one sqr print statement. That way we have > > absolute to the accuracy positioning ability of the printer > > control as to the position and alignment of micr line (and > > logo and signiture). > > > > >>> Ken.Klingsporn@hickorytech.com 09/22/05 2:16 PM >>> > > We are trying to print the MICR line on our paycheck using > > PAY003.SQR. I have set up font 620 in the PSSQR.INI file as > > shown below. I have also loaded MICRe13b4.ttf as a Windows > > font. When I use the -PRINTER:HP and -KEEP options, I can see > > in the .SPF file that the MICR font is not used. Also, when I > > print the .LIS file the MICR font is not used. Has anyone > > experienced this problem before? We are using an HP LaserJet > > 5N printer. > > > > [Fonts] > > > > 3=Courier New,fixed > > 300=Courier New,fixed,bold > > 4=Arial,proportional > > 400=Arial,proportional,bold > > 5=Times New Roman,proportional > > 500=Times New Roman,proportional,bold > > 6=AvantGarde,proportional > > 620=MICR,fixed > > 8=Palatino,proportional > > 800=Palatino,proportional,bold > > 11=Symbol,symbol > > 900=unknown,proportional > > 901=Times New Roman,proportional > > 28825=MS UI Gothic,proportional > > > > [PDF Fonts] > > 620=MICRe13b > > > > [TrueType Fonts] > > > > Font Path=C:\psoft\hrdmo88\fonts\truetype\ > > Albany=albw.ttf > > Albany-Bold=albwb.ttf > > Cumberland=cumbwr__.ttf > > Cumberland-Bold=cumbwb__.ttf > > MICR=MICRe13b4.ttf > > Thorndale=thowr___.ttf > > Thorndale-Bold=thowb___.ttf > > Angsana=angsa.ttf > > > > > > Ken Klingsporn > > > > > > HickoryTech > > > > > > Reporting Specialist, Information Solutions > > > > (507) 388-0230 > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 10:52:38 2005 Date: Mon, 26 Sep 2005 11:36:58 -0400 From: "Hiney, Edward (CLAIM, Claims)" Subject: [sqr-users] Oracle Insert/Select From issue All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VER= Y LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" b= ut that did not help. If anyone can come up with a solution to break up th= e WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I= think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck = is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs= in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=3D170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT=20 0, '71F', $Tdate, B.BANK_SETID,=20 B.BANK_CD ,=20 B.BANK_ACCT_KEY, A.ACCOUNTING_DT,=20 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND,=20 &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT))=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_= VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT=20 AND A.VOUCHER_ID =3D B.VOUCHER_ID=20 AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT=20 AND C.ORIGIN =3D 'ONL'=20 AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG= _CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com 860-547-3227 ************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 10:59:35 2005 Date: Mon, 26 Sep 2005 11:58:47 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Oracle Insert/Select From issue I have seen similar situations where SQL executed in a Query Tool runs almost instantaneously and the same SQL takes forever in SQR. I wonder if Oracle acts differently [ie chooses a different execution plan] if the code is in a cursor or not. Larry Roux Syracuse University lroux@syr.edu >>> Edward.Hiney@thehartford.com 09/26/05 11:36 AM >>> All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VERY LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" but that did not help. If anyone can come up with a solution to break up the WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', $Tdate, B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND A.PYMNT_CNT = B.PYMNT_CNT AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND C.ORIGIN = 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id = 'PAYMENTS' And a.posting_process = 'PYMN' And a.dst_acct_type = 'APA' And a.pymnt_cnt = (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit = a.business_unit and z.voucher_id = a.voucher_id and z.appl_jrnl_id = 'PAYMENTS' and z.posting_process = 'PYMN' and z.dst_acct_type = 'APA') And d.business_unit = a.business_unit And d.voucher_id = a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id = 'ACCRUAL' And d.posting_process = 'ACCR' And d.dst_acct_type = 'APA' And d.unpost_seq = a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com 860-547-3227 ************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 11:42:16 2005 Subject: RE: [sqr-users] Oracle Insert/Select From issue Date: Mon, 26 Sep 2005 11:41:39 -0500 From: "Knapp, Richard" You might try a little hand tuning. Instead of joining all the tables to one, chain your joins and feed the query to the parser the way it likes it. It parses the where clause from the bottom up and the from clause from the right to the left (or at least it used to back in the day). begin-sql on-error=3D170-sql-error insert into ps_hig_rpt7x_dtl select 0, '71F', $tdate, b.bank_setid,=20 b.bank_cd ,=20 b.bank_acct_key, a.accounting_dt,=20 1, 3, c.hig_ccps_ind, c.hig_srs_ind,=20=20=20 &hig_freq_ind, sum(a.monetary_amount - abs(d.monetary_amount))=20=20=20=20=20=20=20=20=20 from ps_vchr_acctg_line d, ps_hig_bprofl_vw c, ps_pymnt_vchr_xref b, dps_vchr_acctg_line a where d.appl_jrnl_id =3D 'ACCRUAL' and d.posting_process =3D 'ACCR' and d.dst_acct_type =3D 'APA' and d.business_unit =3D b.business_unit and d.voucher_id =3D b.voucher_id and d.accounting_dt < a.accounting_dt and d.unpost_seq =3D a.unpost_seq and abs(a.monetary_amount) <> abs(d.monetary_amount) and c.origin =3D 'ONL'=20 and b.business_unit =3D c.business_unit=20 and b.pymnt_gross_amt > 0 and a.business_unit =3D b.business_unit=20 and a.voucher_id =3D b.voucher_id=20 and a.pymnt_cnt =3D b.pymnt_cnt and a.accounting_dt between $fdate and $tdate and a.pymnt_cnt =3D (select min(pymnt_cnt) from ps_vchr_acctg_line where business_unit =3D a.business_unit and voucher_id =3D a.voucher_id and appl_jrnl_id =3D 'PAYMENTS' and posting_process =3D 'PYMN' and dst_acct_type =3D 'APA') and a.monetary_amount > 0 and a.appl_jrnl_id =3D 'PAYMENTS' and a.posting_process =3D 'PYMN' and a.dst_acct_type =3D 'APA' group by b.bank_setid, b.bank_cd, b.bank_acct_key, a.accounting_dt, c.hig_ccps_ind, c.hig_srs_ind end-sql Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Larry Roux Sent: Monday, September 26, 2005 10:59 AM To: sqr-users@sqrug.org; Edward.Hiney@thehartford.com Subject: Re: [sqr-users] Oracle Insert/Select From issue I have seen similar situations where SQL executed in a Query Tool runs almost instantaneously and the same SQL takes forever in SQR. I wonder if Oracle acts differently [ie chooses a different execution plan] if the code is in a cursor or not.=20=20 Larry Roux Syracuse University lroux@syr.edu >>> Edward.Hiney@thehartford.com 09/26/05 11:36 AM >>> All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VERY LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" but that did not help. If anyone can come up with a solution to break up the WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=3D170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT=20 0, '71F', $Tdate, B.BANK_SETID,=20 B.BANK_CD ,=20 B.BANK_ACCT_KEY, A.ACCOUNTING_DT,=20 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND,=20 &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT))=20=20=20=20=20=20=20=20= =20 =20=20=20=20=20=20=20=20=20=20=20=20 FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT=20 AND A.VOUCHER_ID =3D B.VOUCHER_ID=20 AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT=20 AND C.ORIGIN =3D 'ONL'=20 AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com=20 860-547-3227 ************************************************************************ * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************ * _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 11:59:32 2005 Date: Mon, 26 Sep 2005 12:58:14 -0400 From: "George Jansen" Subject: Re: [sqr-users] Oracle Insert/Select From issue 1. If you run the query in SQL*Plus with SET AUTOTRACE TRACEONLY, how does = your plan differ from the one in the trace you ran on the SQR? 2. If you hard-code the dates, does it get your time down where it should b= e? If so, are the variables declared as date variables? >>> Edward.Hiney@thehartford.com 09/26/05 11:36 AM >>> All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VER= Y LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" b= ut that did not help. If anyone can come up with a solution to break up th= e WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I= think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck = is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs= in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=3D170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT=20 0, '71F', $Tdate, B.BANK_SETID,=20 B.BANK_CD ,=20 B.BANK_ACCT_KEY, A.ACCOUNTING_DT,=20 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND,=20 &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT))=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_= VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT=20 AND A.VOUCHER_ID =3D B.VOUCHER_ID=20 AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT=20 AND C.ORIGIN =3D 'ONL'=20 AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG= _CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com=20 860-547-3227 ************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 27 15:24:00 2005 Subject: Re: [sqr-users] Oracle Insert/Select From issue From: yelena_kontorovich@baxter.com Date: Tue, 27 Sep 2005 15:22:47 -0500 Edward, I don't know if this is going to help you, but for several SQRs we had to put all SQR logic in PL/SQL procedure and it runs significantly faster. My understanding is that in SQR it had to make a lot of trips to the database (even when we've changed connection to BEQ in tnsnames.ora and it should use local connection, it still spends a lot of times going back and forth and this time is not shown in any traces). In PL/SQL it makes one trip to Oracle and works there. Again, it might not be your solution, but the fact that it runs in SQLPlus ... Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. |---------+---------------------------------------------------------> | | "Hiney, Edward (CLAIM, Claims)" | | | | | | Sent by: | | | sqr-users-bounces+yelena_kontorovich=baxter.co| | | m@sqrug.org | | | | | | | | | 09/26/2005 10:36 AM | | | Please respond to "This list is for discussion| | | about the SQR database reporting language | | | from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] Oracle Insert/Select From issue | >----------------------------------------------------------------------------------------------| All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VERY LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" but that did not help. If anyone can come up with a solution to break up the WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', $Tdate, B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND A.PYMNT_CNT = B.PYMNT_CNT AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND C.ORIGIN = 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id = 'PAYMENTS' And a.posting_process = 'PYMN' And a.dst_acct_type = 'APA' And a.pymnt_cnt = (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit = a.business_unit and z.voucher_id = a.voucher_id and z.appl_jrnl_id = 'PAYMENTS' and z.posting_process = 'PYMN' and z.dst_acct_type = 'APA') And d.business_unit = a.business_unit And d.voucher_id = a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id = 'ACCRUAL' And d.posting_process = 'ACCR' And d.dst_acct_type = 'APA' And d.unpost_seq = a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com 860-547-3227 ************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information transmitted is intended only for the person(s)or entity to which it is addressed and may contain confidential and/or legally privileged material. Delivery of this message to any person other than the intended recipient(s) is not intended in any way to waive privilege or confidentiality. Any review, retransmission, dissemination or other use of , or taking of any action in reliance upon, this information by entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer. For Translation: http://www.baxter.com/email_disclaimer _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 27 15:32:15 2005 Subject: RE: [sqr-users] Oracle Insert/Select From issue Date: Tue, 27 Sep 2005 15:31:33 -0500 From: "Knapp, Richard" If the code below is all there is to the SQR, then number of trips to the db is not the issue. This is a single query with no branching to other procedures which could make the additional trips to the db and take up time you are concerned about. So, lots of trips can be a time sink but this doesn't look like one of those cases. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of yelena_kontorovich@baxter.com Sent: Tuesday, September 27, 2005 3:23 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: sqr-users@sqrug.org; sqr-users-bounces+yelena_kontorovich=3Dbaxter.com@sqrug.org Subject: Re: [sqr-users] Oracle Insert/Select From issue Edward, I don't know if this is going to help you, but for several SQRs we had to put all SQR logic in PL/SQL procedure and it runs significantly faster. My understanding is that in SQR it had to make a lot of trips to the database (even when we've changed connection to BEQ in tnsnames.ora and it should use local connection, it still spends a lot of times going back and forth and this time is not shown in any traces). In PL/SQL it makes one trip to Oracle and works there. Again, it might not be your solution, but the fact that it runs in SQLPlus ... Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. |---------+---------------------------------------------------------> | | "Hiney, Edward (CLAIM, Claims)" | | | | | | Sent by: | | | sqr-users-bounces+yelena_kontorovich=3Dbaxter.co| | | m@sqrug.org | | | | | | | | | 09/26/2005 10:36 AM | | | Please respond to "This list is for discussion| | | about the SQR database reporting language | | | from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> =20 >----------------------------------------------------------------------- -----------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] Oracle Insert/Select From issue | =20 >----------------------------------------------------------------------- -----------------------| All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VERY LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" but that did not help. If anyone can come up with a solution to break up the WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=3D170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', $Tdate, B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT AND A.VOUCHER_ID =3D B.VOUCHER_ID AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT AND C.ORIGIN =3D 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com 860-547-3227 ************************************************************************ * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************ * _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information transmitted is intended only for the person(s)or entity=20 to which it is addressed and may contain confidential and/or legally=20 privileged material. Delivery of this message to any person other than=20 the intended recipient(s) is not intended in any way to waive privilege=20 or confidentiality. Any review, retransmission, dissemination or other=20 use of , or taking of any action in reliance upon, this information by=20 entities other than the intended recipient is prohibited. If you=20 receive this in error, please contact the sender and delete the=20 material from any computer. For Translation: http://www.baxter.com/email_disclaimer _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 28 18:23:20 2005 Subject: RE: [sqr-users] Oracle Insert/Select From issue Date: Thu, 29 Sep 2005 09:22:29 +1000 From: "Graeme Steyn " Ed, As Richard has indicated, this would not be related to the number of trips. The problem is more likely related to the way that Oracle's Cost Based Optimizer generates the SQL execution plan. To demonstrate this, run the SQR with the -S command line option to see all of the SQL cursors actually set-up and used by the SQR. You will find that SQR variables have been replaced by bind variables, e.g. :1 and :2 in the select columns section and the from (:3) and to dates (:4) below. When you execute this in TOAD or SQLPlus you will get a SQL plan being generated (call this plan 1) with a given response time. INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', :1, B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, :2, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT AND A.VOUCHER_ID =3D B.VOUCHER_ID AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT AND C.ORIGIN =3D 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between :3 and :4 And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND Now take exactly the same statement without bind variables and execute it in TOAD, i.e. replace the variables with constants for testing (see below). You will more than likely get a different SQL execution plan (plan 2) and response time. INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', '10-JUN-2005', B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, 'X', SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT AND A.VOUCHER_ID =3D B.VOUCHER_ID AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT AND C.ORIGIN =3D 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between '10-JUN-2005' and '20-JUN-2005' And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND Basically, if the optimiser knows what the values are it may decide to use index x as the best way of accessing the required rows. When bind variables are use it will often use a different plan as it no longer has an indication of how restrictive your date range is likely to be (may use a full table scan instead). You can even try a third variant, where the dates are specified using to_date('YYYY-MM-DD', :1) etc and you would possibly get a different result. The differences can be dramatic. I recently had a case where the query with hardcoded values ran in 2.7 hours, but replacing the values with bind variables resulted in the same query running in 2 minutes.=20=20 The basic idea is make sure that you tune the query as it is going to be used by SQR with bind variables. Alternately, use Yelena's approach with PL/SQL.=20=20 If you interested in additional reading, look at Tom Kytes latest book, "Expert Oracle Database Architecture: 9i and 10g Programming Techniques and Solutions" (This is an updated version of "Expert Oracle One-on-One"). Regards, Graeme Steyn=20 Corporate Information Systems=20 Information Technology Division=20 Central Queensland University=20 Tel: +61 7 4930 9256=20 E-mail: g.steyn@cqu.edu.au=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Wednesday, 28 September 2005 6:32 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Cc: sqr-users-bounces+yelena_kontorovich=3Dbaxter.com@sqrug.org Subject: RE: [sqr-users] Oracle Insert/Select From issue If the code below is all there is to the SQR, then number of trips to the db is not the issue. This is a single query with no branching to other procedures which could make the additional trips to the db and take up time you are concerned about. So, lots of trips can be a time sink but this doesn't look like one of those cases. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of yelena_kontorovich@baxter.com Sent: Tuesday, September 27, 2005 3:23 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Cc: sqr-users@sqrug.org; sqr-users-bounces+yelena_kontorovich=3Dbaxter.com@sqrug.org Subject: Re: [sqr-users] Oracle Insert/Select From issue Edward, I don't know if this is going to help you, but for several SQRs we had to put all SQR logic in PL/SQL procedure and it runs significantly faster. My understanding is that in SQR it had to make a lot of trips to the database (even when we've changed connection to BEQ in tnsnames.ora and it should use local connection, it still spends a lot of times going back and forth and this time is not shown in any traces). In PL/SQL it makes one trip to Oracle and works there. Again, it might not be your solution, but the fact that it runs in SQLPlus ... Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. |---------+---------------------------------------------------------> | | "Hiney, Edward (CLAIM, Claims)" | | | | | | Sent by: | | | sqr-users-bounces+yelena_kontorovich=3Dbaxter.co| | | m@sqrug.org | | | | | | | | | 09/26/2005 10:36 AM | | | Please respond to "This list is for discussion| | | about the SQR database reporting language | | | from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> =20 >----------------------------------------------------------------------- -----------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] Oracle Insert/Select From issue | =20 >----------------------------------------------------------------------- -----------------------| All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VERY LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" but that did not help. If anyone can come up with a solution to break up the WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=3D170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', $Tdate, B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT =3D B.BUSINESS_UNIT AND A.VOUCHER_ID =3D B.VOUCHER_ID AND A.PYMNT_CNT =3D B.PYMNT_CNT AND B.BUSINESS_UNIT =3D C.BUSINESS_UNIT AND C.ORIGIN =3D 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id =3D 'PAYMENTS' And a.posting_process =3D 'PYMN' And a.dst_acct_type =3D 'APA' And a.pymnt_cnt =3D (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit =3D a.business_unit and z.voucher_id =3D a.voucher_id and z.appl_jrnl_id =3D 'PAYMENTS' and z.posting_process =3D 'PYMN' and z.dst_acct_type =3D 'APA') And d.business_unit =3D a.business_unit And d.voucher_id =3D a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id =3D 'ACCRUAL' And d.posting_process =3D 'ACCR' And d.dst_acct_type =3D 'APA' And d.unpost_seq =3D a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com 860-547-3227 ************************************************************************ * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************ * _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information transmitted is intended only for the person(s)or entity to which it is addressed and may contain confidential and/or legally privileged material. Delivery of this message to any person other than the intended recipient(s) is not intended in any way to waive privilege or confidentiality. Any review, retransmission, dissemination or other use of , or taking of any action in reliance upon, this information by entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer. For Translation: http://www.baxter.com/email_disclaimer _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 28 20:30:44 2005 Date: Wed, 28 Sep 2005 18:29:39 -0700 (PDT) From: Aleksandr Slobodyanik Subject: Re: [sqr-users] Oracle Insert/Select From issue Just want to add my 5 cents... Move subquery to the bottom of the where clause. "Hiney, Edward (CLAIM, Claims)" wrote: All, Here's the problem. We have an SQR with code (below) found in a procedure that runs for a VERY LONG TIME (HOURS).I tried separating in into a "Select" and an "Insert" but that did not help. If anyone can come up with a solution to break up the WHERE clause into 2 parts (doing the 2nd join to PS_VCHR_ACCTG_LINE D ) I think that would do it. It's not as easy as it looks. We did an Oracle SQL trace, so we know that this is where the bottleneck is. We also pu SHOW stmts in the SQR. The caveat is that when this sql is executed in SQL-plus or TOAD, it runs in 2 minutes! Any ideas would be appreciated. TIA. ed.hiney Begin-SQL on-error=170-sql-error INSERT INTO PS_HIG_RPT7X_DTL SELECT 0, '71F', $Tdate, B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, A.ACCOUNTING_DT, 1, 3, C.HIG_CCPS_IND, C.HIG_SRS_IND, &HIG_FREQ_IND, SUM(A.MONETARY_AMOUNT - ABS(D.MONETARY_AMOUNT)) FROM PS_VCHR_ACCTG_LINE A, PS_PYMNT_VCHR_XREF B , PS_HIG_BPROFL_VW C, PS_VCHR_ACCTG_LINE D WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND A.PYMNT_CNT = B.PYMNT_CNT AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND C.ORIGIN = 'ONL' AND a.monetary_amount > 0 and b.pymnt_gross_amt > 0 AND a.accounting_dt between $Fdate and $Tdate And a.appl_jrnl_id = 'PAYMENTS' And a.posting_process = 'PYMN' And a.dst_acct_type = 'APA' And a.pymnt_cnt = (select min(z.pymnt_cnt) from ps_vchr_acctg_line z where z.business_unit = a.business_unit and z.voucher_id = a.voucher_id and z.appl_jrnl_id = 'PAYMENTS' and z.posting_process = 'PYMN' and z.dst_acct_type = 'APA') And d.business_unit = a.business_unit And d.voucher_id = a.voucher_id And d.accounting_dt < a.accounting_dt And d.appl_jrnl_id = 'ACCRUAL' And d.posting_process = 'ACCR' And d.dst_acct_type = 'APA' And d.unpost_seq = a.unpost_seq And abs(a.monetary_amount) <> abs(d.monetary_amount) GROUP BY B.BANK_SETID, B.BANK_CD , B.BANK_ACCT_KEY, a.accounting_dt,C.HIG_CCPS_IND,C.HIG_SRS_IND end-sql Thank you, Ed Hiney PeopleSoft Developer Claims IT The Hartford edward.hiney@thehartford.com 860-547-3227 ************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 26 11:24:27 2005 From: "Ed Kelly" Date: Mon, 26 Sep 2005 16:23:16 +0000 Subject: [sqr-users] Expected end of color space I am running into an error when trying to print an image from a UNIX environment. The program is executing in a PeopleSoft environment (via the process scheduler) on a PSUNX server, the SQR version is 8.20, the output format is PDF, and I have tried both image type JPEG-File and GIF-File. My guess is that SQR cannot find some supporting files (DLLs, shared objects, etc.) that it needs for the rendering of the image. Has anyone seen this before and if so, do you know of a fix/work-around for it. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 28 09:30:32 2005 Date: Wed, 28 Sep 2005 07:29:50 -0700 From: David Donnelly Subject: [sqr-users] Re: Oracle Insert/Select From issue Ed, I don't have a specific suggestion, and I don't do Peoplesoft, but I have been whacking SQR for 15 years now, and EVERY time this has happened to me it has turned out that I have either done something that has made it impossible for Oracle to use an index, or there's a problem with a date. Review the list of things that will cause Oracle not to use an index. Look carefully at each use of an index field in the query, and make sure you're not using it in a function (even implied). I don't use date variables much. If you do, consider transparent conversions being done from string. Try replacing all variables with constants and see what happens. Get "explain plan" output from SQL*Plus and see if it suggests anything -- it will certainly tell you what the crucial index is. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 29 16:50:49 2005 From: "ruscs ___" Date: Thu, 29 Sep 2005 21:49:43 +0000 Subject: [sqr-users] RE: Oracle LONG data type processing Hello, I am using SQR ODBC Version 8.0.2 And I am creating a few flat files containing columns with Oracle LONG data type (Oracle db is the source). Further, I am getting the following error (with LONG data type) while trying to select rows within Begin-Select...End-Select construct: (SQR 5528) ODBC SQL dbexec: SQLExecute error 1459 in cursor 3: [Oracle][ODBC][Ora]ORA-01459: invalid length for variable character string Error on line 57: (SQR 3723) Problem executing cursor. SQR: Program Aborting. ------------------- Obviously, I can't increase the record size because the script does not compile: Open $FileName as 1 For-Writing Record=32767:vary Status=#OpenStat .... In addition, I have two PCs w/ different versions of Oracle ODBC driver and I have run my scipts on both of these PCs. One of these driver versions is 8.01.07.00 I do not get the above error with this driver. The other driver version is 9.02.00.65. And this is the driver version that I am having trouble with... Please help me resolve this problem... Thank you, Ken _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 30 10:14:35 2005 Date: Fri, 30 Sep 2005 10:13:54 -0500 From: "Pick, James G" Subject: [sqr-users] Oracle Begin-Setup SQR data Errors Hi, =20 I am a programmer at UW-Whitewater we have.=20 PeopleSoft 8.21.4 Oracle 9.2 Unix HP 11 =20 (This is for a user who wants to be able to run a process that will delete older rows on an effective dated table.) =20 I am setting up an SQR program that will create temporary tables in the begin-setup, and later use one of those tables in a regular procedure. What control can be used to be sure each step in begin-setup is completed successfully? For example. =20 In begin-setup =20 Begin-SQL on-error=3Dstop=20=20=20=20=20=20 CREATE TABLE PS_UWW_FA_TRM_BKUP tablespace uwwtmp AS SELECT *=20 FROM PS_STDNT_FA_TERM End-SQL =20 Only syntax errors will stop the program - with an oracle statement. A data error, such as not enough disk space, stops the immediate statement with the program continuing to whatever is next.=20 Such as... =20 In a regular procedure ! Let $SQL-Error-Text =3D 'Truncate table PS_STDNT_FA_TERM ' ! ! Begin-SQL on-error=3DDb-Error=20=20=20=20=20=20=20=20 ! TRUNCATE TABLE PS_STDNT_FA_TERM ! End-SQL =20 In a regular procedure Db-Error can stop the program.=20=20 But what can stop the program with a data error when going between begin-setup to a regular procedure? Currently I am putting counters into the program ...=20 =20 Thanks for any ideas =20 Jim=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 30 11:46:06 2005 Date: Fri, 30 Sep 2005 13:44:14 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] Oracle Begin-Setup SQR data Errors If you are not ensuring elsewhere that your temp table is being dropped (af= ter initial run), you would need to put a DROP TABLE in your setup section = prior to your create table in order to ensure that the CREATE does not erro= r out because the table already exists. begin-SQL On-Error=3DSKIP drop table PS_UWW_FA_TRM_BKUP end-SQL Begin-SQL on-error=3Dstop=20=20=20=20=20=20 CREATE TABLE PS_UWW_FA_TRM_BKUP tablespace uwwtmp AS SELECT *=20 FROM PS_STDNT_FA_TERM End-SQL >>> pickj@uww.edu 2005/09/30 12:13:54 >>> Hi, =20 I am a programmer at UW-Whitewater we have.=20 PeopleSoft 8.21.4 Oracle 9.2 Unix HP 11 =20 (This is for a user who wants to be able to run a process that will delete older rows on an effective dated table.) =20 I am setting up an SQR program that will create temporary tables in the begin-setup, and later use one of those tables in a regular procedure. What control can be used to be sure each step in begin-setup is completed successfully? For example. =20 In begin-setup =20 Begin-SQL on-error=3Dstop=20=20=20=20=20=20 CREATE TABLE PS_UWW_FA_TRM_BKUP tablespace uwwtmp AS SELECT *=20 FROM PS_STDNT_FA_TERM End-SQL =20 Only syntax errors will stop the program - with an oracle statement. A data error, such as not enough disk space, stops the immediate statement with the program continuing to whatever is next.=20 Such as... =20 In a regular procedure ! Let $SQL-Error-Text =3D 'Truncate table PS_STDNT_FA_TERM ' ! ! Begin-SQL on-error=3DDb-Error=20=20=20=20=20=20=20=20 ! TRUNCATE TABLE PS_STDNT_FA_TERM ! End-SQL =20 In a regular procedure Db-Error can stop the program.=20=20 But what can stop the program with a data error when going between begin-setup to a regular procedure? Currently I am putting counters into the program ...=20 =20 Thanks for any ideas =20 Jim=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 30 15:23:19 2005 Date: Fri, 30 Sep 2005 16:21:49 -0400 From: "George Jansen" Subject: Re: [sqr-users] Oracle Begin-Setup SQR data Errors Might I suggest using Oracle Global Temporary tables? No need to setup, dro= p, or truncate. >>> PeterG.Clark@vac-acc.gc.ca 09/30/05 12:44 PM >>> If you are not ensuring elsewhere that your temp table is being dropped (af= ter initial run), you would need to put a DROP TABLE in your setup section = prior to your create table in order to ensure that the CREATE does not erro= r out because the table already exists. begin-SQL On-Error=3DSKIP drop table PS_UWW_FA_TRM_BKUP end-SQL Begin-SQL on-error=3Dstop=20=20=20=20=20=20 CREATE TABLE PS_UWW_FA_TRM_BKUP tablespace uwwtmp AS SELECT *=20 FROM PS_STDNT_FA_TERM End-SQL >>> pickj@uww.edu 2005/09/30 12:13:54 >>> Hi, =20 I am a programmer at UW-Whitewater we have.=20 PeopleSoft 8.21.4 Oracle 9.2 Unix HP 11 =20 (This is for a user who wants to be able to run a process that will delete older rows on an effective dated table.) =20 I am setting up an SQR program that will create temporary tables in the begin-setup, and later use one of those tables in a regular procedure. What control can be used to be sure each step in begin-setup is completed successfully? For example. =20 In begin-setup =20 Begin-SQL on-error=3Dstop=20=20=20=20=20=20 CREATE TABLE PS_UWW_FA_TRM_BKUP tablespace uwwtmp AS SELECT *=20 FROM PS_STDNT_FA_TERM End-SQL =20 Only syntax errors will stop the program - with an oracle statement. A data error, such as not enough disk space, stops the immediate statement with the program continuing to whatever is next.=20 Such as... =20 In a regular procedure ! Let $SQL-Error-Text =3D 'Truncate table PS_STDNT_FA_TERM ' ! ! Begin-SQL on-error=3DDb-Error=20=20=20=20=20=20=20=20 ! TRUNCATE TABLE PS_STDNT_FA_TERM ! End-SQL =20 In a regular procedure Db-Error can stop the program.=20=20 But what can stop the program with a data error when going between begin-setup to a regular procedure? Currently I am putting counters into the program ...=20 =20 Thanks for any ideas =20 Jim=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users