From sqr-users-bounces@sqrug.org Sat Jul 01 00:02:11 2006 Date: Sat, 1 Jul 2006 00:00:02 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.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 Jul 07 14:55:45 2006 Date: Fri, 7 Jul 2006 12:53:18 -0600 From: "Ackerson, Glenn" Subject: [sqr-users] Easy way to find count of delimiters in unstring? Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology=20=20 Carter Hall Greeley, CO 80639 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 07 15:03:22 2006 Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? Date: Fri, 7 Jul 2006 14:01:22 -0500 From: "Knapp, Richard" Create a function to count 'em using pos and instr. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Ackerson, Glenn Sent: Friday, July 07, 2006 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] Easy way to find count of delimiters in unstring? Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology=20=20 Carter Hall Greeley, CO 80639 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 07 15:14:32 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? Date: Fri, 7 Jul 2006 12:08:58 -0700 Use translate to replace all the commas with null, then subtract the length of the new string from the length of the original string. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 07, 2006 12:01 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? Create a function to count 'em using pos and instr. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Ackerson, Glenn Sent: Friday, July 07, 2006 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] Easy way to find count of delimiters in unstring? Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology Carter Hall Greeley, CO 80639 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 07 15:11:19 2006 Date: Fri, 07 Jul 2006 12:09:17 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? let #CommaCount = length($MyString) - length(replace($MyString, ',', '')) Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] Easy way to find count of delimiters in unstring? From: "Ackerson, Glenn" Date: Fri, July 07, 2006 11:53 am To: Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology Carter Hall Greeley, CO 80639 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 13 10:08:08 2006 Date: Thu, 13 Jul 2006 10:05:55 -0400 From: "Laura Mayer" Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it = creates an infinite loop that keeps iterating through all the records in a = text file over and over again. I can't seem to fix it. I've even made it so= there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its suppose= d to do is read a text file into an array and process the data. It never se= ems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !************************************************************************ Begin-Procedure Select_Records !************************************************************************ ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into arr= ay. !************************************************************************ Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=09 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =09 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID proce= ssed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=09=09=09=20=20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=09=09=09=09=09 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=09 Do Show_Array=20=20 =09 End-Procedure !**************************************************************************= *** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !**************************************************************************= *** let $ID_Printed =3D'N' Let #Start =3D 0 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 10:17:15 2006 Subject: RE: [sqr-users] Stuck in array He!! Date: Thu, 13 Jul 2006 09:14:47 -0500 From: "Knapp, Richard" Off the of me head -=20 The read needs to be inside the loop, no? Didn't go any farther with it. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Thursday, July 13, 2006 9:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=09 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =09 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=09=09=09=20=20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=09=09=09=09=09 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=09 Do Show_Array=20=20 =09 End-Procedure !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=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 Jul 13 10:30:48 2006 Subject: RE: [sqr-users] Stuck in array He!! Date: Thu, 13 Jul 2006 19:58:06 +0530 From: "Karunakaran Perumbrayoor" Laura... =20 I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. =20 Just try making the change!!! =20 Regards... Karun =20 -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! =20 Morning, =20 I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. =20 Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. =20 Is there a better way to write this mess? =20 Thanks for any and all help you can offer =20 Laura =20 !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=20=20=20=20=20 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =20=20=20=20=20=20 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=20=20=20=20=20 Do Show_Array=20=20 =20=20=20=20=20=20 End-Procedure =20 =20 !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 =20 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 10:34:30 2006 Date: Thu, 13 Jul 2006 10:31:30 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] Stuck in array He!! Thanks I'll try that. >>> karunp@hexaware.com 7/13/2006 10:28 AM >>> Laura... =20 I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. =20 Just try making the change!!! =20 Regards... Karun =20 -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Stuck in array He!! =20 Morning, =20 I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. =20 Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. =20 Is there a better way to write this mess? =20 Thanks for any and all help you can offer =20 Laura =20 !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=20=20=20=20=20 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =20=20=20=20=20=20 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=20=20=20=20=20 Do Show_Array=20=20 =20=20=20=20=20=20 End-Procedure =20 =20 !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 =20 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 =20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 10:37:58 2006 From: "Don Duwe" Subject: RE: [sqr-users] Stuck in array He!! Date: Thu, 13 Jul 2006 10:33:29 -0400 WHILE 1 READ 1 into $DATA:? IF #END-FILE BREAK END-IF CODE------------------- END-WHILE -----Original Message----- From: sqr-users-bounces+dduwe=nookind.com@sqrug.org [mailto:sqr-users-bounces+dduwe=nookind.com@sqrug.org]On Behalf Of Laura Mayer Sent: Thursday, July 13, 2006 10:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !************************************************************************ Begin-Procedure Select_Records !************************************************************************ ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !************************************************************************ Read 1 into $Input_Str:8 let #index=0 While not #End-File let $InputEmplid = substr($Input_Str, 1, 8) let $EMPLID = $InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed='N' ! not processed let IDPrinted.emplid(#Index) = $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag = 'Y' let $period = $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found='Y' ! found row in perf table if $RoomMateFound='N' ! but both rm1 and rm2 empty let $prType = 'S' else !Has rmts let $InputIdRM1= &A.UMH_PREF_ROOMMATE1 let $InputIdRM2= &A.UMH_PREF_ROOMMATE2 let $EMPLID= &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found='Y' Do Get_Mutual_Type else !no perf in run period, may try another period !show 'not perf rmt1= ' $EMPLID if $RunPeriod='2' or $RunPeriod='3' !105720 or 105730 Do Look_Next_Period else ! run period is not 20 or 30 let $prType = 'N' let $PrintFlag ='Y' end-if end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while Do Show_Array End-Procedure !*************************************************************************** ** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*************************************************************************** ** let $ID_Printed ='N' Let #Start = 0 While (#Start <= #Index) and $ID_Printed = 'N' If IDPrinted.emplid(#Start) = $EMPLID let $ID_Printed = 'Y' add 1 to #Start end-if end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 13 10:45:39 2006 Subject: RE: [sqr-users] Stuck in array He!! From: Roger.Harris@certegy.com Date: Thu, 13 Jul 2006 10:42:01 -0400 There is a read at the end of the While. I think that the problem is in While loop in the procedure Check_If_ID_Printed. The index in this loop, #Start, will only get incremented if the first time that If IDPrinted.emplid(#Start) = $EMPLID is test yields true so you keep testing the same value over and over in an endless loop. Try moving add 1 to #Start to after the end-if in that loop. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Laura Mayer" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 07/13/2006 10:31 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: karunp@hexaware.com, sqr-users@sqrug.org | | cc: | | Subject: RE: [sqr-users] Stuck in array He!! | >---------------------------------------------------------------------------------------------| Thanks I'll try that. >>> karunp@hexaware.com 7/13/2006 10:28 AM >>> Laura... I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. Just try making the change!!! Regards... Karun -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu] Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=0 While not #End-File let $InputEmplid = substr($Input_Str, 1, 8) let $EMPLID = $InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed='N' ! not processed let IDPrinted.emplid(#Index) = $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag = 'Y' let $period = $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found='Y' ! found row in perf table if $RoomMateFound='N' ! but both rm1 and rm2 empty let $prType = 'S' else !Has rmts let $InputIdRM1= &A.UMH_PREF_ROOMMATE1 let $InputIdRM2= &A.UMH_PREF_ROOMMATE2 let $EMPLID= &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found='Y' Do Get_Mutual_Type else !no perf in run period, may try another period !show 'not perf rmt1= ' $EMPLID if $RunPeriod='2' or $RunPeriod='3' !105720 or 105730 Do Look_Next_Period else ! run period is not 20 or 30 let $prType = 'N' let $PrintFlag ='Y' end-if end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while Do Show_Array End-Procedure !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed ='N' Let #Start = 0 While (#Start <= #Index) and $ID_Printed = 'N' If IDPrinted.emplid(#Start) = $EMPLID let $ID_Printed = 'Y' add 1 to #Start end-if end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users *************************************************************************************************************************** This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.com . *************************************************************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ 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 Thu Jul 13 11:26:28 2006 Date: Thu, 13 Jul 2006 11:23:55 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] Stuck in array He!! Thanks for the help.=20 >>> Roger.Harris@certegy.com 7/13/2006 10:42:01 AM >>> There is a read at the end of the While. I think that the problem is in While loop in the procedure Check_If_ID_Printed. The index in this loop, #Start, will only get incremented if the first time that If IDPrinted.emplid(#Start) =3D $EMPLID is test yields true so you keep testing the same value over and over in an endless loop. Try moving add 1 to #Start to after the end-if in that loop. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Laura Mayer" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 07/13/2006 10:31 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >------------------------------------------------------------------------= ---------------------| | = | | To: karunp@hexaware.com, sqr-users@sqrug.org = | | cc: = | | Subject: RE: [sqr-users] Stuck in array He!! = | >------------------------------------------------------------------------= ---------------------| Thanks I'll try that. >>> karunp@hexaware.com 7/13/2006 10:28 AM >>> Laura... I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. Just try making the change!!! Regards... Karun -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y' Do Get_Mutual_Type else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y' end-if end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while Do Show_Array End-Procedure !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.com= =20 =2E ***************************************************************************= ************************************************ _______________________________________________ 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 ---------------------------------------------------------------------------= --- This message contains information from Certegy, Inc which may be confidenti= al and privileged. If you are not an intended recipient, please refrain fr= om any disclosure, copying, distribution or use of this information and not= e 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=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 Jul 14 14:30:05 2006 Date: Fri, 14 Jul 2006 14:27:55 -0400 From: "Laura Mayer" Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says:=20 Error on line 49: (SQR 3514) PUT and GET variables must match array field types.=20 I checked and they are the right types. I used the code from the manual but= no matter what I do I cant make this work. I cant find any good tutorials = out there either. Any help anyone can offer would be great. Thanks in advance=20 Laura !******************************************************** begin-setup !******************************************************** create-array=20 name=3Dpreference_array=20 size=3D16500 field=3DEMPLID:char=20=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number=20 end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0=20 begin-select C.EMPLID (,1)=20 (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16)=20 position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A=20 WHERE C.STRM =3D '1067'=20 AND C.STRM =3D A.STRM=20 AND A.EFFDT =3D=20 (SELECT MAX(A_ED.EFFDT)=20 FROM PS_UM_H_PRC_PD_TBL A_ED=20 WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD=20 AND A_ED.EFFDT <=3D SYSDATE)=20 AND A.UMH_PROC_PD =3D '106730'=20 ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 14:36:12 2006 Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 12:33:34 -0600 From: "Lance Munger" Check the datatypes on the the table, my guess would be that EMPLID is actually a number or UMH_PRIORITY_ORDER is actually a char. -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of Laura Mayer Sent: Friday, July 14, 2006 12:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says:=20 Error on line 49: (SQR 3514) PUT and GET variables must match array field types.=20 I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance=20 Laura !******************************************************** begin-setup !******************************************************** create-array=20 name=3Dpreference_array=20 size=3D16500 field=3DEMPLID:char=20=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number=20 end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0=20 begin-select C.EMPLID (,1)=20 (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16)=20 position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A=20 WHERE C.STRM =3D '1067'=20 AND C.STRM =3D A.STRM=20 AND A.EFFDT =3D=20 (SELECT MAX(A_ED.EFFDT)=20 FROM PS_UM_H_PRC_PD_TBL A_ED=20 WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD=20 AND A_ED.EFFDT <=3D SYSDATE)=20 AND A.UMH_PROC_PD =3D '106730'=20 ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 14 14:39:37 2006 Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 11:34:53 -0700 From: "Amit Kedia" Hi, Have you tried just putting and getting one element at a time to see which one is causing the error? amit -----Original Message----- From: sqr-users-bounces+a.kedia=3Dsurewest.com@sqrug.org [mailto:sqr-users-bounces+a.kedia=3Dsurewest.com@sqrug.org] On Behalf Of Laura Mayer Sent: Friday, July 14, 2006 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says:=20 Error on line 49: (SQR 3514) PUT and GET variables must match array field types.=20 I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance=20 Laura !******************************************************** begin-setup !******************************************************** create-array=20 name=3Dpreference_array=20 size=3D16500 field=3DEMPLID:char=20=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number=20 end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0=20 begin-select C.EMPLID (,1)=20 (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16)=20 position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A=20 WHERE C.STRM =3D '1067'=20 AND C.STRM =3D A.STRM=20 AND A.EFFDT =3D=20 (SELECT MAX(A_ED.EFFDT)=20 FROM PS_UM_H_PRC_PD_TBL A_ED=20 WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD=20 AND A_ED.EFFDT <=3D SYSDATE)=20 AND A.UMH_PROC_PD =3D '106730'=20 ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 14 14:47:27 2006 Subject: Re: [sqr-users] trying to create an array From: Roger.Harris@certegy.com Date: Fri, 14 Jul 2006 14:42:36 -0400 You are trying to GET number array fields into $String variables. get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) Also, probably is not good form to use the same names as column aliases. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Laura Mayer" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 07/14/2006 02:27 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] trying to create an array | >---------------------------------------------------------------------------------------------| Afternoon, I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance Laura !******************************************************** begin-setup !******************************************************** create-array name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter = 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM = '1067' AND C.STRM = A.STRM AND A.EFFDT = (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD = A_ED.UMH_PROC_PD AND A_ED.EFFDT <= SYSDATE) AND A.UMH_PROC_PD = '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i = 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ 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 Jul 14 14:52:40 2006 From: "the dragon" Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 13:43:54 -0500 It's been a while since I messed around with arrays... or sqr for that matter... sigh. I miss the good olde days./ In any case, you're definin the array as follows: name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number yet, in the get, they are all character variables... (line 49??) get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) I am not certain sqr allows implicit data conversion in that manner. 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---- Afternoon, I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance Laura !******************************************************** begin-setup !******************************************************** create-array name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter = 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM = '1067' AND C.STRM = A.STRM AND A.EFFDT = (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD = A_ED.UMH_PROC_PD AND A_ED.EFFDT <= SYSDATE) AND A.UMH_PROC_PD = '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i = 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ 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 Fri Jul 14 14:56:48 2006 From: "Wright, David L. II" Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 11:46:11 -0700 TOTAL is a variable and should be preceeded with either $ or # depending on the type of variable you want to use. In your SELECT statement, you've defined the total variable using an &. In the get array you are reading$total - not the same as &total. Dave -----Original Message----- From: sqr-users-bounces+david.l.wright.ii=saic.com@sqrug.org [mailto:sqr-users-bounces+david.l.wright.ii=saic.com@sqrug.org] On Behalf Of Laura Mayer Sent: Friday, July 14, 2006 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance Laura !******************************************************** begin-setup !******************************************************** create-array name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter = 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM = '1067' AND C.STRM = A.STRM AND A.EFFDT = (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD = A_ED.UMH_PROC_PD AND A_ED.EFFDT <= SYSDATE) AND A.UMH_PROC_PD = '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i = 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 14 15:05:58 2006 Date: Fri, 14 Jul 2006 14:56:44 -0400 From: "Laura Mayer" Subject: Re: Fwd: [sqr-users] trying to create an array Thanks to all for the great help and suggestions. That did it.=20 Thanks again. >>> Amy Eldridge 7/14/2006 2:40 PM >>> If total and priority are numbers per your array, why are you feeding them= =20 into character variables ($TOTAL and $C.UMH_PRIORITY_ORDER)? Shouldn't that be #TOTAL and #C.UMH_PRIORITY_ORDER? A. >X-Mailer: Novell GroupWise Internet Agent 6.5.4 >Date: Fri, 14 Jul 2006 14:27:55 -0400 >From: "Laura Mayer" >To: >Subject: [sqr-users] trying to create an array >X-BeenThere: sqr-users@sqrug.org=20 >X-Mailman-Version: 2.1.5 >Reply-To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >List-Id: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >List-Unsubscribe: , > >List-Post: >List-Help: >List-Subscribe: , > >Sender: sqr-users-bounces+emgeac=3Dmuohio.edu@sqrug.org=20 >X-Real-ConnectIP: 199.164.165.113 >X-Scanned-By: MIMEDefang 2.45 >X-Scanned-By: MIMEDefang 2.52 on 134.53.6.11 > >Afternoon, > >I cant seem to get this. Every time I run this it says: >Error on line 49: > (SQR 3514) PUT and GET variables must match array field types. > >I checked and they are the right types. I used the code from the manual=20 >but no matter what I do I cant make this work. I cant find any good=20 >tutorials out there either. Any help anyone can offer would be great. > >Thanks in advance > >Laura > >!******************************************************** >begin-setup >!******************************************************** > create-array >name=3Dpreference_array >size=3D16500 > field=3DEMPLID:char > field=3DTOTAL:number > field=3DUMH_PRIORITY_ORDER:number > >end-setup > >!******************************************************** >begin-program >!******************************************************** > do select_data > do print_array >end-program > >!******************************************************** >begin-procedure select_data >!******************************************************** >let #counter =3D 0 >begin-select >C.EMPLID (,1) >(C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) >C.UMH_PRIORITY_ORDER (,16) >position (+1) > put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#count= er) > add 1 to #counter >FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A >WHERE C.STRM =3D '1067' >AND C.STRM =3D A.STRM >AND A.EFFDT =3D > (SELECT MAX(A_ED.EFFDT) > FROM PS_UM_H_PRC_PD_TBL A_ED > WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD > AND A_ED.EFFDT <=3D SYSDATE) >AND A.UMH_PROC_PD =3D '106730' >ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC >end-select >end-procedure ! select_data > >!******************************************************** >begin-procedure print_array >!******************************************************** >let #i =3D 0 >while #i < #counter > get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) > print $C.EMPLID (,1) > print $TOTAL (,7) > print $C.UMH_PRIORITY_ORDER (,24) > position (+1) > add 1 to #i >end-while > >end-procedure > > > >_______________________________________________ >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 Fri Jul 14 16:35:04 2006 Date: Fri, 14 Jul 2006 16:32:15 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] SQR Executed thru Process Scheduler Hi, When a sqr is kicked off from a process scheduler, i see that its getti= ng executed as SYSADM user with SYSADM user privilege. If thats the case, t= hen any inserts/updates/deletes to the table should be possible. So If any = user (with only SELECT privilege) logs into the PIA page and kicks of the s= qr thru process scheduler, then will the SQR be able to perform the same in= serts/updates/deletes to the table? How will the OPRID come into picture? Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 17:17:55 2006 From: "the dragon" Subject: RE: [sqr-users] SQR Executed thru Process Scheduler Date: Fri, 14 Jul 2006 15:43:19 -0500 If the sqr is executed through the process scheduler, regardless of who is executing it, it will run with the privs of sysadm. OPRID is a security construct of PeopleSoft which is used for access. 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, When a sqr is kicked off from a process scheduler, i see that its getting executed as SYSADM user with SYSADM user privilege. If thats the case, then any inserts/updates/deletes to the table should be possible. So If any user (with only SELECT privilege) logs into the PIA page and kicks of the sqr thru process scheduler, then will the SQR be able to perform the same inserts/updates/deletes to the table? How will the OPRID come into picture? Thanks Ram _________________________________________________________________ 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 14 17:58:26 2006 Date: Fri, 14 Jul 2006 16:56:32 -0500 From: "ViJaYaNaNd gMaiL" Subject: [sqr-users] Reading file into SQR Hi I have a text file that I am reading in through sqr. Now the format of the text file has changed and the file is not reading properly and not updating the tables. Do i need to modify the program. Any pointers would be of much helpful to me. Here is the piece of code: while 1 = 1 read 1 into $recorddata:1000 let $recorddata = upper($recorddata) EVALUATE $recorddata when = 'SSN:' read 1 into $recorddata:1000 LET $N_SSN = upper($recorddata) BREAK My text file previous was looking like this for SSN: SSN: 999-99-9999 But now my text file looks like this 999-99-9999 SSN: Similarly someother fields got rearranged like these. Need advice thnx cvijay _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jul 15 15:44:13 2006 Subject: RE: [sqr-users] trying to create an array Date: Sun, 16 Jul 2006 01:11:28 +0530 From: "Karunakaran Perumbrayoor" Dave, You are perfectly right. SQR doesnt allow implicit data conversion an= d this error is surely due to the column variable being a number type and t= he other variable being a string. =20 Regards... Karun -----Original Message-----=20 From: Wright, David L. II [mailto:DAVID.L.WRIGHT.II@saic.com]=20 Sent: Sat 15-Jul-2006 12:16 AM=20 To: 'This list is for discussion about the SQR database reporting language= from Hyperion Solutions.'=20 Cc:=20 Subject: RE: [sqr-users] trying to create an array =09 =09 TOTAL is a variable and should be preceeded with either $ or # depending on the type of variable you want to use. In your SELECT statement, you've defined the total variable using an &. In the get array you are reading$total - not the same as &total. =09 Dave =09 =09 =09 -----Original Message----- From: sqr-users-bounces+david.l.wright.ii=3Dsaic.com@sqrug.org [mailto:sqr-users-bounces+david.l.wright.ii=3Dsaic.com@sqrug.org] On Behal= f Of Laura Mayer Sent: Friday, July 14, 2006 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array =09 =09 Afternoon, =09 I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. =09 I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. =09 Thanks in advance =09 Laura =09 !******************************************************** begin-setup !******************************************************** create-array name=3Dpreference_array size=3D16500 field=3DEMPLID:char=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number =09 end-setup =09 !******************************************************** begin-program !******************************************************** do select_data do print_array end-program =09 !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counte= r) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM =3D '1067' AND C.STRM =3D A.STRM AND A.EFFDT =3D (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD AND A_ED.EFFDT <=3D SYSDATE) AND A.UMH_PROC_PD =3D '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data =09 !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while =09 end-procedure =09 =09 =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =09 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:18:51 2006 Date: Mon, 17 Jul 2006 09:16:43 -0400 From: "White . Denise" Subject: [sqr-users] RE: Reading file into SQR I would say that you will have to do something like this: while 1 =3D 1 read 1 into $recorddata1:1000 read 1 into $recorddata2:1000 let $recorddata2 =3D upper($recorddata2) EVALUATE $recorddata2 when =3D 'SSN:' LET $N_SSN =3D upper($recorddata1) BREAK HTH, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 10 Date: Fri, 14 Jul 2006 16:56:32 -0500 From: "ViJaYaNaNd gMaiL" Subject: [sqr-users] Reading file into SQR To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed Hi I have a text file that I am reading in through sqr. Now the format of the text file has changed and the file is not reading properly and not updating the tables. Do i need to modify the program. Any pointers would be of much helpful to me. Here is the piece of code: while 1 =3D 1 read 1 into $recorddata:1000 let $recorddata =3D upper($recorddata) EVALUATE $recorddata when =3D 'SSN:' read 1 into $recorddata:1000 LET $N_SSN =3D upper($recorddata) BREAK My text file previous was looking like this for SSN: SSN: 999-99-9999 But now my text file looks like this 999-99-9999 SSN: Similarly someother fields got rearranged like these. Need advice thnx cvijay _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:46:12 2006 Date: Mon, 17 Jul 2006 09:44:03 -0400 From: "Savage, David M" Subject: [sqr-users] SQR Tutorials Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:53:05 2006 Subject: RE: [sqr-users] SQR Tutorials Date: Mon, 17 Jul 2006 09:50:27 -0400 From: "Eric Miller" Hi Dave, Here is where I started: http://dev.hyperion.com/resource_library/technical_documentation/sqr/sqr _8.cfm This page has a couple documents that will explain the basic syntax. Getting Started with SQR and SQR Language Reference were the most helpful to me. - Eric -----Original Message----- From: sqr-users-bounces+eric.miller=3Dcgifederal.com@sqrug.org [mailto:sqr-users-bounces+eric.miller=3Dcgifederal.com@sqrug.org] On Behalf Of Savage, David M Sent: Monday, July 17, 2006 9:44 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQR Tutorials Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:56:57 2006 Date: Mon, 17 Jul 2006 09:53:30 -0400 From: "Moss, Mike " Subject: [sqr-users] Question about printing paychecks/advices I need to print some "mock" paychecks/advices. We would like to accomplish a few things * Suppress any signatures * Print "void", or "non-negotiable" on the checks/advices in the appropriate places Has anyone done this before? If so, can you point me in the right direction? Maybe send a copy of the modified SQR's? Thanks.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic 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 Mon Jul 17 10:27:05 2006 From: "Joe" Subject: RE: [sqr-users] SQR Tutorials Date: Mon, 17 Jul 2006 08:24:25 -0600 This group is the best source of education - excellent threads on just about every topic related to SQR. Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina and Vlad Landres (Manning Publication) as an online reference to supplement the SQR help files. HTH, Joe J -----Original Message----- From: sqr-users-bounces+jej1216=hotmail.com@sqrug.org [mailto:sqr-users-bounces+jej1216=hotmail.com@sqrug.org] On Behalf Of Savage, David M Sent: Monday, July 17, 2006 7:44 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQR Tutorials Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 17 10:43:27 2006 From: JOHN_HARRIS@qvc.com Date: Mon, 17 Jul 2006 10:41:02 -0400 Subject: [sqr-users] Unstring into an array I would like to UNSTRING $ATS_RECORDS into an array. I do not know how many records will be in the $ATS_RECORDS variable. There may be zero (0) or many. UNSTRING $ATS_RECORDS BY '^' INTO $FILLER $ATS1 $ATS2 $ATS3 $ATS4 $ATS5 $ATS6 $ATS7 $ATS8 $ATS9 $ATS10 AND SO ON..... Thank you. Regards, John John Harris Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 10:48:12 2006 From: "the dragon" Subject: RE: [sqr-users] SQR Tutorials Date: Mon, 17 Jul 2006 09:45:43 -0500 Joe, On the one hand I agree with your statement, but on the other hand I think there is an expectation that people will perform due dilligence in getting training elsewhere, as well as reviewing resources such as the book you referenced, or the SQR Language Reference manual from SQRibe/Brio/Hyperion before they come here and start asking "simple" questions that have solutions which are readily available elsewhere. Just my "humble" opinion. 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---- This group is the best source of education - excellent threads on just about every topic related to SQR. Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina and Vlad Landres (Manning Publication) as an online reference to supplement the SQR help files. HTH, Joe J -----Original Message----- Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S _________________________________________________________________ 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 Mon Jul 17 11:23:46 2006 Date: Mon, 17 Jul 2006 09:20:44 -0600 From: Joe Johnson Subject: Re: [sqr-users] SQR Tutorials This is a multi-part message in MIME format... --------------010401090308050409040606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I agree - newbies should do whatever they can to read up and get up to nominal speed on SQR. As far as tutorials/training, I have never found any worthwhile tutorial or training offerings - the PeopleSoft SQR classes are pretty lame. JEJ the dragon wrote: > Joe, > > On the one hand I agree with your statement, but on the other hand I > think there is an expectation that people will perform due dilligence > in getting training elsewhere, as well as reviewing resources such as > the book you referenced, or the SQR Language Reference manual from > SQRibe/Brio/Hyperion before they come here and start asking "simple" > questions that have solutions which are readily available elsewhere. > > Just my "humble" opinion. > > 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---- > > This group is the best source of education - excellent threads on just > about > every topic related to SQR. > > Also, get the eBook 'SQR in Peoplesoft and Other Applications' by > Galina and > Vlad Landres (Manning Publication) as an online reference to > supplement the > SQR help files. > > HTH, > > Joe J > > -----Original Message----- > > Hi, > > I am a beginner to SQR and was wondering if anyone knew of any > tutorials I > could access via the internet. > > Thanks > Dave S > > _________________________________________________________________ > 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 > -- *----------------------------------------------* *Joe Johnson* Software Developer *Ernest Health, Inc.** * Office: (505) 798-6480 Ext: 206 *email: joejohnson@ernesthealth.com * --------------010401090308050409040606 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. --------------010401090308050409040606 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 --------------010401090308050409040606-- From sqr-users-bounces@sqrug.org Mon Jul 17 15:16:36 2006 Date: Mon, 17 Jul 2006 12:14:14 -0700 (PDT) From: John Czekaj Subject: [sqr-users] SQR V6 and SQL Server 2000 I have an SQR that changes the value of EMPLID in all tables where EMLPLID is a column from SSN to a sequentially assigned number. This program runs fine on Oracle, but on SQL Server 2000, it is a dog. It is doing a commit (commit transaction/begin transaction) after each employee is processed, but yet it takes longer and longer to process employees as the SQR runs. Does anyone have any suggestions as to how I can improve the performance of this program? Any assistance would be greatly appreciated. Thanks, John Czekaj, Consultant ADP Professional Services - National Accounts John Czekaj Consultant ADP National Accounts - Professional Services __________________________________________________ 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 Jul 17 15:23:16 2006 Subject: RE: [sqr-users] SQR V6 and SQL Server 2000 Date: Mon, 17 Jul 2006 14:21:09 -0500 From: "Knapp, Richard" Do you have some data structure that is increasing in size as the program runs? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of John Czekaj Sent: Monday, July 17, 2006 2:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR V6 and SQL Server 2000 I have an SQR that changes the value of EMPLID in all tables where EMLPLID is a column from SSN to a sequentially assigned number. This program runs fine on Oracle, but on SQL Server 2000, it is a dog. It is doing a commit (commit transaction/begin transaction) after each employee is processed, but yet it takes longer and longer to process employees as the SQR runs. Does anyone have any suggestions as to how I can improve the performance of this program? Any assistance would be greatly appreciated. Thanks, John Czekaj, Consultant ADP Professional Services - National Accounts John Czekaj Consultant ADP National Accounts - Professional Services __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 15:33:39 2006 From: "Jeffrey Newton" Subject: RE: [sqr-users] SQR V6 and SQL Server 2000 Date: Mon, 17 Jul 2006 15:29:45 -0400 I encounterd a similar problem once - the problem turned out to be that the ODBC driver on the server where I ran the SQR was not up to date. When it ran, the initial updates went fairly quickly, but the longer it ran the longer it took to complete an update. >From: John Czekaj >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: sqr-users@sqrug.org >Subject: [sqr-users] SQR V6 and SQL Server 2000 >Date: Mon, 17 Jul 2006 12:14:14 -0700 (PDT) > >I have an SQR that changes the value of EMPLID in all >tables where EMLPLID is a column from SSN to a >sequentially assigned number. This program runs fine >on Oracle, but on SQL Server 2000, it is a dog. It is >doing a commit (commit transaction/begin transaction) >after each employee is processed, but yet it takes >longer and longer to process employees as the SQR >runs. Does anyone have any suggestions as to how I >can improve the performance of this program? Any >assistance would be greatly appreciated. > >Thanks, > >John Czekaj, Consultant >ADP Professional Services - National Accounts > >John Czekaj > Consultant > ADP National Accounts - Professional Services > > >__________________________________________________ >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 Jul 17 16:23:51 2006 Date: Mon, 17 Jul 2006 16:21:07 -0400 From: "Everett Carr" Subject: Re: [sqr-users] Question about printing paychecks/advices easy. modify sqr so that it will only print signature when running on your production environment. ie: encode '<27>(8U<27>(s1p180v0s-7b24623TVOID<27>(3@' into $TroyPrnVoid !............................................................................... begin-procedure hcchk-200-Get-Database-Instance-Name #debugs show $pgm_name '-debugs, hcchk-200-Get-Database-Instance-Name' BEGIN-SELECT ON-ERROR=SQL-Error NAME let $hc_instance_name = rtrim(&NAME, ' ') FROM V$DATABASE END-SELECT if instr($hc_instance_name, 'PROD',1) let $hc_Prod = '1' !true else let $hc_Prod = '0' !false end-if end-procedure Then later on if $hc_Prod = '0' print $TroyPrnVoid (80,15) end-if We let the signature print, but if not on production the above line causes rather LARGE "VOID" to print. Alternately you can use above test to cause sig not to print at all, but sooner or later you'll need to do so for alignment/verification before going to production >>> "Moss, Mike " 7/17/2006 9:53:30 AM >>> I need to print some "mock" paychecks/advices. We would like to accomplish a few things * Suppress any signatures * Print "void", or "non-negotiable" on the checks/advices in the appropriate places Has anyone done this before? If so, can you point me in the right direction? Maybe send a copy of the modified SQR's? Thanks. ==================== This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 18 14:44:32 2006 Date: Tue, 18 Jul 2006 14:42:07 -0400 From: "Laura Mayer" Subject: [sqr-users] Question about an array Afternoon, I have an array that loops to many times. It seems that when a student requ= ests one roommate its all happy when they request two roommates it loops th= rough twice for the three people.=20 Any thoughts or advise would be most appreciated. By the way this is code I= 've inherited and trying to make sense of. Thanks=20 Laura !******************************************************** Begin-Procedure Get_Preference !******************************************************** Begin-Select=20 !fields go here let $Emplid=3D$PriEMPLID Do Get_Assign Do Get_RAP Do Get_Name Do Get_Felony Do Get_Priority_Order=20 Do Get_Ferpa Do Get_AcaLevel let $PriName=3D$Name if $Type <> 'No Roommate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 Let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) else Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if Do Print_Data FROM PS_UM_H_PREF MA WHERE MA.STRM =3D $ProcSTRM AND MA.UMH_PROC_PD =3D $parm_proc_cd=20 AND MA.EMPLID =3D $PriEMPLID =20=20=20=20 End-Select End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 19 15:46:09 2006 Date: Wed, 19 Jul 2006 15:43:51 -0400 From: "Laura Mayer" Subject: [sqr-users] Trouble with an array Afternoon, I have an array that I am having a problem with. I only want to see the it = once for each person, what's happening is if the person has two roommates i= t repeats the iteration again so each person with two roommates gets listed= twice.=20 I've posted the if statement that drives it below if someone could offer so= me insight on how to fix this that would be great. Thanks in advance. Laura Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Do Print_Roommate_Name else=20 Let $PriEMPLID =3D '' Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 19 16:00:25 2006 From: "the dragon" Subject: RE: [sqr-users] Trouble with an array Date: Wed, 19 Jul 2006 14:57:57 -0500 I personally would need to see all your code - additionally, put some show statements inside debugs so you can see what is happening. 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---- Afternoon, I have an array that I am having a problem with. I only want to see the it once for each person, what's happening is if the person has two roommates it repeats the iteration again so each person with two roommates gets listed twice. I've posted the if statement that drives it below if someone could offer some insight on how to fix this that would be great. Thanks in advance. Laura Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID = &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod='('|| $Period || ')' else let $printPeriod=' ' end-if let $RoommateName1=$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) let $InputIdRM2=&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 = '' Let $RoommateName2 = '' Do Print_Roommate_Name else Let $PriEMPLID = '' Let $InputIdRM2 = '' Let $RoommateName2 = '' Let $PriEMPLID = &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else Print 'No Roommate' (+1,1) Bold Print '=' (+1,1,140) fill end-if _________________________________________________________________ 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 Wed Jul 19 16:14:00 2006 Subject: RE: [sqr-users] Trouble with an array Date: Wed, 19 Jul 2006 15:11:41 -0500 From: "Knapp, Richard" Laura, Here's a programming hint: use white space. For example: Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) !**ISBLANK includes nulls** let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Do Print_Roommate_Name else=20 Let $PriEMPLID =3D '' Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Wednesday, July 19, 2006 2:44 PM To: sqr-users@sqrug.org Subject: [sqr-users] Trouble with an array Afternoon, I have an array that I am having a problem with. I only want to see the it once for each person, what's happening is if the person has two roommates it repeats the iteration again so each person with two roommates gets listed twice.=20 I've posted the if statement that drives it below if someone could offer some insight on how to fix this that would be great. Thanks in advance. Laura Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Do Print_Roommate_Name else=20 Let $PriEMPLID =3D '' Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 20 08:07:09 2006 Date: Thu, 20 Jul 2006 17:33:30 +0530 From: "Karunakaran Perumbrayoor" Subject: [sqr-users] SQR 1301: Forward references not permitted in select list bind variables Hi Everybody, =20 GREETINGS!!! I face a small problem while running an SQR report in Sybase. I am getting a compilation error "SQR 1301: Forward references not permitted in select list bind variables".=20 =20 When I have a look at the Peoplebooks, the solution is given as" Within the body of BEGIN-SQL paragraphs, forward references to &column names are not permitted. Move the BEGIN-SQL paragraph after the &column definition". I tried commenting all the Begin -SQL's (All Insert, Deletes which were happening) which I have in the program just for a check, and still I am met with the same error. =20 What could be the problem? Please let me know if you have any suggestions or solutions to offer. =20 Regards... Karun =20 =20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 20 10:20:34 2006 Date: Thu, 20 Jul 2006 10:17:58 -0400 From: "Mingazov, Maya" Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 20 10:25:39 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Thu, 20 Jul 2006 09:23:45 -0500 From: "Knapp, Richard" Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 20 10:39:25 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Thu, 20 Jul 2006 10:36:50 -0400 From: "Mingazov, Maya" Is there anything that has to be changed? How to trigger it? What is the reason for .ini not being called? Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 20 10:44:31 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Thu, 20 Jul 2006 09:42:33 -0500 From: "Knapp, Richard" It's probably not specified in the command line when SQR is fired up. You should see/have a -ZIFfullpathnametoinifile entry on the command line. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:37 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Is there anything that has to be changed? How to trigger it? What is the reason for .ini not being called? Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 20 15:51:04 2006 Date: Thu, 20 Jul 2006 15:48:37 -0400 From: "Laura Mayer" Subject: [sqr-users] almost got it. I've got it working, sort of. The problem I have now is it wont print the m= atches out together. They all get printed out one at a time, which is good,= but they go in order of the input file not grouped as I would like them.= =20 I have the problem narrowed down to a few lines of code. If you look at lin= e 11 its taking the id set by the roommate and resetting it to next id in t= he array. How I can I say check if the EMPLID is blank if it is blank go a= head and get the next value in the array if not continue processing with th= e roommates ID.... I know the problem is in the first few lines of the code but I've been look= ing at this so long I cant see the forest for the trees... Thanks as always for any help you can offer. Laura let $found=3D'N' let #index=3D0 While 1 Read 1 into $Input_Str:8 if #end-File =3D1 break end-if Let $InputEmplid =3D substr($Input_Str, 1, 8) Let $EMPLID =3D$InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $found=3D'N' ! not processed let $PrintFlag =3D 'Y' let $period=3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's Preference record (building if $PreferenceFound=3D'Y' ! found row in Preference table if $RMFound=3D'N' and $RMFound2 =3D'N'! rm1 and rm2 empty Let $prType =3D 'No Roomate' else !Has rmts Let $InputIdRM1 =3D '' Let $InputIdRM2 =3D '' Let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 Let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 Let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $PreferenceFound=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no Preference in run period, may try another period if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=09=09=09=20=20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'Unmatched' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=09=09=09=09=09 end-if end-if=20=20=20=20=09 Do Fill_Array =20=20=20=20=20=20=20 end-if end-if !end of no processed end-while _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 21 11:59:40 2006 Date: Fri, 21 Jul 2006 08:44:36 -0700 From: "John Wills" Subject: [sqr-users] SQR output on same line I have this code, and it works, except that the grades start a line below t= he other information, whereas I want them in a column starting in the same = line as the other info. if I delete the +1 I get only one grade printed, on= the same line as the other information; if I then uncomment the on-break r= epeated grade values do not appear. What am I doing wrong? begin-select spriden_last_name spriden_first_name spriden_mi spriden_last_name || ', ' || spriden_first_name || ' ' || spriden_mi (,1,30) on-break level =3D 1 print =3D change after =3D get-new-page shrtckn_subj_code (,31,5) on-break level =3D 2 print =3D change skiplines = =3D 1 shrtckn_crse_numb (,36,5) on-break level =3D 3 print =3D change skiplines = =3D 1 shrtckg_grde_code_final (+1,45) !on-break level =3D 4 print =3D always skip= lines =3D 1 FROM...=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 12:03:43 2006 Date: Mon, 24 Jul 2006 12:01:24 -0400 From: "Laura Mayer" Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR= coding? I feel like I'm drowning here. I've been working on this one repor= t for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out the= re.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 13:40:02 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 13:37:38 -0400 From: "Savage, David M" Hi Laura, I am in a similar situation and have received the following from helpful sqr-users; =20 Eric-=20 http://dev.hyperion.com/resource_library/technical_documentation/sqr/sqr _8.cfm =20 This page has a couple documents that will explain the basic syntax. Getting Started with SQR and SQR Language Reference were the most helpful to me. =20 Joe - This group is the best source of education - excellent threads on just about every topic related to SQR. =20 Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina and Vlad Landres (Manning Publication) as an online reference to supplement the SQR help files. =20 =20 Hope it helps, =20 Dave=20 =20 -----Original Message----- From: sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org [mailto:sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 12:01 PM To: sqr-users@sqrug.org Subject: [sqr-users] Training question =20 Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 =20 I've only been able to find one book written on it and no tutorials out there.=20 =20 I've looked online and can't seem to find any resources at all. =20 Thanks for any thoughts.=20 =20 Laura =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 Jul 24 13:43:53 2006 From: "the dragon" Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 12:41:31 -0500 Laura, It has been my experience that the only real training that means anything is OJT... The courses offered by PS or Hyperion won't help you with the stuff you're doing - they are strictly beginner stuff, and a waste of time. What reference are you using?? Just have faith in yourself and keep hacking at it. peace, and good luck, 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 know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 13:50:12 2006 Date: Mon, 24 Jul 2006 09:48:17 -0800 From: Melody Sayles Subject: Re: [sqr-users] Training question Laura, I second the vote for the Landres book, 'SQR in Peoplesoft and Other Applications'. I bought one when I first started and everyone in the department comes and borrows it. There are many examples that are easily understood. Melody Savage, David M wrote: > Hi Laura, > > I am in a similar situation and have received the following from helpful > sqr-users; > > > > Eric- > > http://dev.hyperion.com/resource_library/technical_documentation/sqr/sqr > > _8.cfm > > > > This page has a couple documents that will explain the basic syntax. > > Getting Started with SQR and SQR Language Reference were the most > helpful to me. > > > > Joe - This group is the best source of education - excellent threads on > just about every topic related to SQR. > > > > Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina > and Vlad Landres (Manning Publication) as an online reference to > supplement the SQR help files. > > > > > > Hope it helps, > > > > Dave > > > > -----Original Message----- > From: sqr-users-bounces+dmsavage=statestreet.com@sqrug.org > [mailto:sqr-users-bounces+dmsavage=statestreet.com@sqrug.org] On Behalf > Of Laura Mayer > Sent: Monday, July 24, 2006 12:01 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Training question > > > > Does anyone know where I would be able to find some kind of training in > SQR coding? I feel like I'm drowning here. I've been working on this one > report for almost a month and am still not finished. > > > > I've only been able to find one book written on it and no tutorials out > there. > > > > I've looked online and can't seem to find any resources at all. > > > > Thanks for any thoughts. > > > > Laura > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/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 24 14:23:57 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Mon, 24 Jul 2006 14:21:21 -0400 From: "Mingazov, Maya" Thanks, it was resolved. Maya Mingazov Developer, Applications Information Services Ph.: 203-563-6448 Fax: 203-563-6503 mmingazov@newsamerica.com -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:43 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR It's probably not specified in the command line when SQR is fired up. You should see/have a -ZIFfullpathnametoinifile entry on the command line. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:37 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Is there anything that has to be changed? How to trigger it? What is the reason for .ini not being called? Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 14:51:17 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 13:49:24 -0500 From: "Knapp, Richard" If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 24 14:55:09 2006 Date: Mon, 24 Jul 2006 14:52:19 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] Training question Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 Mon Jul 24 14:59:43 2006 Date: Mon, 24 Jul 2006 11:57:14 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:03:08 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:01:02 -0500 From: "Knapp, Richard" What is the general area you are writing for? Are you a PS shop? I'll see if I can find something to send you when I hear back. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 1:52 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Training question Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 Mon Jul 24 15:09:38 2006 From: "the dragon" Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:06:50 -0500 Lol... you're funny. Sam, that's the worst possibly advice. PeopleSoft writes the crappiest code I have ever seen and seems to have no internal coding standards or guidelines... 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---- Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu _________________________________________________________________ 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 Jul 24 15:13:02 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:07:53 -0500 From: "Knapp, Richard" I'm sorry to contradict, Sam, but for someone who has no experience in SQR,= I think you are recommending a season in hell. I had 5 years of SQR befor= e I encountered the PS reports and still it was hellacious (in the extreme.= ) It is all boilerplate. There is not a breath of fresh air to be had. I= t reads like some long winded legal document whose purpose is not to clarif= y but to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would pro= bably want to look at their delivered reports and clone based on that.=20= =20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pr= edecessor wrote bad code and I need to rewrite it. That's my conundrum...fi= nding a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 24 15:17:40 2006 Date: Mon, 24 Jul 2006 15:15:00 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question but doing that would be in many respects cloning good examples of what not = to do >>> Sam Spritzer 7/24/2006 2:57 PM >>> Laura, I am not sure what system you are on but if its Peoplesoft, you would pro= bably want to look at their delivered reports and clone based on that.=20= =20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pr= edecessor wrote bad code and I need to rewrite it. That's my conundrum...fi= nding a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 24 15:21:35 2006 Date: Mon, 24 Jul 2006 15:17:10 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question and thats for sqr...... they must send their programmers to the College of How to ScrewUp a Wet Dream to teach them how to take a great language, cobol, and turn it into something almost complete unrecognizable >>> "the dragon" 7/24/2006 3:06 PM >>> Lol... you're funny. Sam, that's the worst possibly advice. PeopleSoft writes the crappiest code I have ever seen and seems to have no internal coding standards or guidelines... 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---- Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu _________________________________________________________________ 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 Jul 24 15:25:17 2006 Date: Mon, 24 Jul 2006 12:20:25 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Training question Not if its delivered SQRs. That is, what came bundled with the software. Everett Carr wrote: but doing that would be in many respects cloning good examples of what not to do >>> Sam Spritzer 7/24/2006 2:57 PM >>> Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:28:31 2006 Date: Mon, 24 Jul 2006 12:22:10 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Training question Richard, I might agree although not completely. The PS SQRs are a good basis because they utilize SQLs that are tested and tried. Its a good start in the sense that you know that the data you are looking for is valid. Sam "Knapp, Richard" wrote: I'm sorry to contradict, Sam, but for someone who has no experience in SQR, I think you are recommending a season in hell. I had 5 years of SQR before I encountered the PS reports and still it was hellacious (in the extreme.) It is all boilerplate. There is not a breath of fresh air to be had. It reads like some long winded legal document whose purpose is not to clarify but to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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." --------------------------------- How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:32:19 2006 Date: Mon, 24 Jul 2006 15:28:21 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question as you can observe from other replies, more than a few others agree with the observation and experienced view that peoplesoft code ranks=20 with great ease amoung the worst possible examples "as delivered" especiall= y. Simple example: Those so-called programmers always set a process run to suc= cess even when the logic fails for almost every report they deliver. And that just begins the = lousy, inconsistent,=20 and very bad style that code displays. That idiotic action alone in the com= mercial software house I used to work at would get you summarily kicked out= of the door with no explaination under the assumption that individual woul= d be too dumb to ever understand >>> Sam Spritzer 7/24/2006 3:20 PM >>> Not if its delivered SQRs. That is, what came bundled with the software. Everett Carr wrote: but doing that would be in many = respects cloning good examples of what not to do >>> Sam Spritzer 7/24/2006 2:57 PM >>> Laura, I am not sure what system you are on but if its Peoplesoft, you would proba= bly want to look at their delivered reports and clone based on that.=20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 24 15:35:49 2006 Date: Mon, 24 Jul 2006 15:30:16 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question Pleasse, you REALLY should have warned me to go to the bathroom and relieve= myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source = code that won't even compile due to syntax errors........ I don't need wha= tever it is you've been smoking. >>> Sam Spritzer 7/24/2006 3:22 PM >>> Richard, I might agree although not completely. The PS SQRs are a good basis beca= use they utilize SQLs that are tested and tried. Its a good start in the s= ense that you know that the data you are looking for is valid. Sam "Knapp, Richard" wrote: =20=20 I'm sorry to contradict, Sam, but for someone who has no experience in SQR,= I think you are recommending a season in hell. I had 5 years of SQR before= I encountered the PS reports and still it was hellacious (in the extreme.)= It is all boilerplate. There is not a breath of fresh air to be had. It re= ads like some long winded legal document whose purpose is not to clarify bu= t to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would proba= bly want to look at their delivered reports and clone based on that.=20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger=92s low PC-to-Phone call ra= tes. _______________________________________________ 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 24 15:53:16 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:53:18 -0500 From: "Chris Allo" This is a multi-part message in MIME format... ------_=_NextPart_001_01C6AF5A.CF3016C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Laura Sorry that your request for help has ended up with a lot of useless comment= s (want to go to the bathroom, smoking stuff, etc etc.). If you hate sqr, = peoplesoft, or both, that's fine - All the lady wanted was some help. I'm not sure what version of PS they are familiar with, and while PS's SQRs= might boilerplate or whatever else, they can be a good start if you are ju= st beginning with sqr...then you can go on to the more fancy features (if y= ou even call it fancy) of sqr. There was a time I knew nothing of SQR and = believe it or not, I got going fairly quickly thru exposure to PS's sqrs. = By the way, I am doing a version 8 implementation of PS right now and will = be going live in a month and haven't had to "fix" any of their delivered sq= rs...so they are a decent baseline which you can use. If you are on PS, pi= ck a simple report like OMS1000 or something of that nature to see simple r= eport formatting - make sure the sql you have in your procedure(s) actually= returns data thru whatever sql tool you use. On the other hand, if one of these folks wants to take the time to teach yo= u sqr and help debug your code, then ignore my comments above. Chris -----Original Message----- From: sqr-users-bounces+callo=3Dhinda.com@sqrug.org@HINDACORP On Behalf Of = "Everett Carr" Sent: Monday, July 24, 2006 2:30 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Training question Pleasse, you REALLY should have warned me to go to the bathroom and relieve= myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source = code that won't even compile due to syntax errors........ I don't need wha= tever it is you've been smoking. >>> Sam Spritzer 7/24/2006 3:22 PM >>> Richard, I might agree although not completely. The PS SQRs are a good basis beca= use they utilize SQLs that are tested and tried. Its a good start in the s= ense that you know that the data you are looking for is valid. Sam "Knapp, Richard" wrote: =20=20 I'm sorry to contradict, Sam, but for someone who has no experience in SQR,= I think you are recommending a season in hell. I had 5 years of SQR before= I encountered the PS reports and still it was hellacious (in the extreme.)= It is all boilerplate. There is not a breath of fresh air to be had. It re= ads like some long winded legal document whose purpose is not to clarify bu= t to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would proba= bly want to look at their delivered reports and clone based on that.=20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully o= f good code. Peoplesoft will not be much help there. SQR is a very simple l= anguage but there are a few gotchas. One I can think of is - if your SQL se= lect block does not return any rows, no code in that block will be executed= . On the other hand, no new language will be all that easy without some hel= p - either good examples or some experienced person to ask questions of or = some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Lau= ra Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR= coding? I feel like I'm drowning here. I've been working on this one repor= t for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out the= re.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rate= s. _______________________________________________ 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 ------_=_NextPart_001_01C6AF5A.CF3016C0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C6AF5A.CF3016C0 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_01C6AF5A.CF3016C0-- From sqr-users-bounces@sqrug.org Mon Jul 24 16:20:13 2006 From: "the dragon" Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 15:08:19 -0500 I'd be happy to teach her how to code in SQR the right way, if I had the time to do so. Unfortunately, my next vacation isn't until October, and I don't think she wants to wait that long. Having worked with SQR since it's MITI incarnation, and PeopleSoft since v 6.5; if you used PS delivered SQRs to learn, then you may have a basic understanding of SQR, but it is more an example of how not to code in SQR than how to code in SQR. It's certainly not efficient code, and it lacks robustness, as well as being difficult to understand. My guess is that rather than developing code by hand, they use the query tool and then copy in the sql from there. Just my opinion based upon 12 years of SQR, 14 years of SQL and 9 years of PS. 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 Laura Sorry that your request for help has ended up with a lot of useless comments (want to go to the bathroom, smoking stuff, etc etc.). If you hate sqr, peoplesoft, or both, that's fine - All the lady wanted was some help. I'm not sure what version of PS they are familiar with, and while PS's SQRs might boilerplate or whatever else, they can be a good start if you are just beginning with sqr...then you can go on to the more fancy features (if you even call it fancy) of sqr. There was a time I knew nothing of SQR and believe it or not, I got going fairly quickly thru exposure to PS's sqrs. By the way, I am doing a version 8 implementation of PS right now and will be going live in a month and haven't had to "fix" any of their delivered sqrs...so they are a decent baseline which you can use. If you are on PS, pick a simple report like OMS1000 or something of that nature to see simple report formatting - make sure the sql you have in your procedure(s) actually returns data thru whatever sql tool you use. On the other hand, if one of these folks wants to take the time to teach you sqr and help debug your code, then ignore my comments above. Chris -----Original Message----- Pleasse, you REALLY should have warned me to go to the bathroom and relieve myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source code that won't even compile due to syntax errors........ I don't need whatever it is you've been smoking. _________________________________________________________________ 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 Mon Jul 24 16:35:55 2006 Date: Mon, 24 Jul 2006 16:29:18 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question I too, have replied privately to Laura. She is located relatively close to = my work location. Moreover we have a few former employees sprinkled over at= UMass. I provided Laura my direct work number and indicated would be happy= to discuss and provide samples of decent sqr code and explain WHY it is de= cent vs. boilerplate peoplesloppy code.=20 >>> "the dragon" 7/24/2006 4:08 PM >>> I'd be happy to teach her how to code in SQR the right way, if I had the=20 time to do so. Unfortunately, my next vacation isn't until October, and I= =20 don't think she wants to wait that long. Having worked with SQR since it's MITI incarnation, and PeopleSoft since v= =20 6.5; if you used PS delivered SQRs to learn, then you may have a basic=20 understanding of SQR, but it is more an example of how not to code in SQR= =20 than how to code in SQR. It's certainly not efficient code, and it lacks= =20 robustness, as well as being difficult to understand. My guess is that=20 rather than developing code by hand, they use the query tool and then copy= =20 in the sql from there. Just my opinion based upon 12 years of SQR, 14 years of SQL and 9 years of= =20 PS. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your= =20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. 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---- Hi Laura Sorry that your request for help has ended up with a lot of useless comment= s=20 (want to go to the bathroom, smoking stuff, etc etc.). If you hate sqr,=20 peoplesoft, or both, that's fine - All the lady wanted was some help. I'm not sure what version of PS they are familiar with, and while PS's SQRs= =20 might boilerplate or whatever else, they can be a good start if you are jus= t=20 beginning with sqr...then you can go on to the more fancy features (if you= =20 even call it fancy) of sqr. There was a time I knew nothing of SQR and=20 believe it or not, I got going fairly quickly thru exposure to PS's sqrs.= =20=20 By the way, I am doing a version 8 implementation of PS right now and will= =20 be going live in a month and haven't had to "fix" any of their delivered=20 sqrs...so they are a decent baseline which you can use. If you are on PS,= =20 pick a simple report like OMS1000 or something of that nature to see simple= =20 report formatting - make sure the sql you have in your procedure(s) actuall= y=20 returns data thru whatever sql tool you use. On the other hand, if one of these folks wants to take the time to teach yo= u=20 sqr and help debug your code, then ignore my comments above. Chris -----Original Message----- Pleasse, you REALLY should have warned me to go to the bathroom and relieve= =20 myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source= =20 code that won't even compile due to syntax errors........ I don't need=20 whatever it is you've been smoking. _________________________________________________________________ Don=92t 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=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 Jul 25 09:55:33 2006 Date: Tue, 25 Jul 2006 09:51:03 -0400 From: "White . Denise" Subject: [sqr-users] Training question Hi Laura, You might want to check out the Library for this user group: http://www.sqrug.org/ftp/ There are some utilities there that might be of help, although I haven't tried any of them. Maybe someone else here has, and can comment on them. There is one that will supposedly reformat your code (and, from the examples we have seen, that is badly needed!). There is another that will generate documentation on the flow and a cross-reference for the code. I can tell you that the first thing I do when I have to work with legacy code is to make a pass through it, reformatting it into a style that is easier for me to work with. The code you have shown us is a mess - no standard indentations, multiple lines of code on the same line, etc. Possibly some of these utilities can help you understand the code you have to work with. On my PeopleSoft user group some years back, a group of us came up with a set of coding standards for SQR. They are here: http://groups.yahoo.com/group/peoplesoft-fans/files/SQR/ If you are not a member, you will probably have to create a Yahoo id and join the group. The standards are in SQR_style.zip. This will help you write code that is easier to maintain. There are also some utilities that might be useful, similar to in the SQRUG. The SQR Tree utility is there, which I know has been popular, although I have never used it myself. I have the Landres book, and it can be helpful, especially if you are using SQR with PeopleSoft. I use the standard SQR reference more, however, as now that I can access it on the computer, it is more convenient. I just put a shortcut on my desktop to it. If you are not sure where it is, it should be at bin\sqr\ORA\BINW\cmdhlp.hlp on your PS_HOME (file server). Good luck, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Mon, 24 Jul 2006 12:01:24 -0400 From: "Laura Mayer" Subject: [sqr-users] Training question To: Message-ID: Content-Type: text/plain; charset=3DUS-ASCII Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:11:27 2006 Date: Tue, 25 Jul 2006 09:55:25 -0400 From: "Laura Mayer" Subject: Re: [sqr-users] Training question Thanks so much Dennis. This should help a lot. Laura >>> DWhite@drc.com 7/25/2006 9:51:03 AM >>> Hi Laura, You might want to check out the Library for this user group: http://www.sqrug.org/ftp/ There are some utilities there that might be of help, although I haven't tried any of them. Maybe someone else here has, and can comment on them. There is one that will supposedly reformat your code (and, from the examples we have seen, that is badly needed!). There is another that will generate documentation on the flow and a cross-reference for the code. I can tell you that the first thing I do when I have to work with legacy code is to make a pass through it, reformatting it into a style that is easier for me to work with. The code you have shown us is a mess - no standard indentations, multiple lines of code on the same line, etc. Possibly some of these utilities can help you understand the code you have to work with. On my PeopleSoft user group some years back, a group of us came up with a set of coding standards for SQR. They are here: http://groups.yahoo.com/group/peoplesoft-fans/files/SQR/ If you are not a member, you will probably have to create a Yahoo id and join the group. The standards are in SQR_style.zip. This will help you write code that is easier to maintain. There are also some utilities that might be useful, similar to in the SQRUG. The SQR Tree utility is there, which I know has been popular, although I have never used it myself. I have the Landres book, and it can be helpful, especially if you are using SQR with PeopleSoft. I use the standard SQR reference more, however, as now that I can access it on the computer, it is more convenient. I just put a shortcut on my desktop to it. If you are not sure where it is, it should be at bin\sqr\ORA\BINW\cmdhlp.hlp on your PS_HOME (file server). Good luck, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Mon, 24 Jul 2006 12:01:24 -0400 From: "Laura Mayer" Subject: [sqr-users] Training question To: Message-ID: Content-Type: text/plain; charset=3DUS-ASCII Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 Jul 26 08:16:04 2006 Date: Tue, 25 Jul 2006 10:23:12 -0400 From: "Savage, David M" Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:20:17 2006 Date: Tue, 25 Jul 2006 10:34:15 -0400 From: "Laura Mayer" Subject: [sqr-users] Thanks so much Thanks to everyone for you suggestions and patience with me. I finally got = the code working as it should. That is the longest slog I have ever dragged myself through! Thanks again for all your help. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:25:02 2006 Subject: RE: [sqr-users] Training question Date: Tue, 25 Jul 2006 08:51:33 -0600 From: "Deak, James" The only books I've found are Harnessing SQR by Darrin Miller (ISBN 0-9753065-0-2) and SQR in Peoplesoft and Other Applications (ISBN 1-932394-00-1). Even if you're not working in Peoplesoft, the second book is worth getting, especially since there isn't much else out there. The Peoplesoft book is going out of print, but search Google to find who has some copies left and you can buy it direct from the publisher at www.manning.com/landres2 The pdf documentation that comes with SQR is also worth having available if you haven't been using it already.=20=20=20 -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Monday, July 24, 2006 10:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura The information contained in this message and any accompanying attachments = may contain privileged, private and/or confidential information protected b= y state and federal law. Penalties may be assessed for unauthorized use and= /or disclosure. This message and any attachments are intended for the desig= nated recipient only. If you have received this information in error, pleas= e notify the sender immediately and return or destroy the information. This e-mail transmission and any attachments are believed to have been sent= free of any virus or other defect that might affect any computer system in= to which it is received and opened. It is, however, the recipient's respons= ibility to ensure that the e-mail transmission and any attachments are viru= s free, and the sender accepts no responsibility for any damage that may in= any way arise from their use. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:29:18 2006 From: "Alexander, Steven" Date: Tue, 25 Jul 2006 14:03:12 -0700 Subject: [sqr-users] Fetched column value was truncated When we run this program from our desktop (Peoplesoft's sqrw 8.20.06 on Windows XP), it works. When we run it from the Peoplesoft Process Scheduler (Peoplesoft's pssqr 8.20.06 on Solaris), it stops with the following error message: ORA-01406: fetched column value was truncated Previous CDV row: 001-294319-DEPT64-4003 (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 6: ORA-01406: fetched column value was truncated Error on line 222: (SQR 3725) Bad return fetching row from database. Here is the select statement that fails: !*************************************************************************** **** begin-procedure read_data_warehouse move 0 to #i begin-select on-error=cdv_error nvl(rtrim(FUND_CODE), ' ') &CDV.FUND_CODE nvl(rtrim(ACCOUNT), ' ') &CDV.ACCOUNT nvl(rtrim(CSJ_DEPT2), ' ') &CDV.CSJ_DEPT2 nvl(rtrim(CLASS_FLD), ' ') &CDV.CLASS_FLD nvl(rtrim(DESCR), ' ') &CDV.DESCR nvl(rtrim(BUDGET_DEPTID), ' ') &CDV.BUDGET_DEPTID nvl(rtrim(SUBDIVISION_LBL), ' ') &CDV.SUBDIVISION_LBL nvl(rtrim(ASSET_NBR), ' ') &CDV.ASSET_NBR let $acct_cd = &CDV.FUND_CODE || '-' || &CDV.ACCOUNT || '-DEPT' || &CDV.CSJ_DEPT2 || '-' || &CDV.CLASS_FLD if &CDV.CSJ_DEPT2 = '57' let $dw_division = cond(instr($divisions, ' ' || &CDV.SUBDIVISION_LBL || ' ', 1) = 0, 'ADMIN', &CDV.SUBDIVISION_LBL) else let $dw_division = ' ' end-if put $acct_cd &CDV.DESCR &CDV.BUDGET_DEPTID $dw_division &CDV.ASSET_NBR into dw(#i) add 1 to #i from PS_CSJ_DWGL001M_VW CDV order by CDV.FUND_CODE, CDV.ACCOUNT, CDV.CSJ_DEPT2, CDV.CLASS_FLD end-select end-procedure read_data_warehouse !*************************************************************************** **** begin-procedure cdv_error add 1 to #num_cdv_errors if #num_cdv_errors <= 10 show $sql-error show 'Previous CDV row: ' $acct_cd show ' ' else stop end-if end-procedure cdv_error I'm curious as to why my on-error routine doesn't keep the program running, but I'm more interested in fixing the error. One hint is that the failed row has text with extended ASCII (value 194), but the successful row before it also has that text. Another possible issue is that I am reading PS_CSJ_DWGL001M_VW, which is a view of a view in a different database instance. I am reading hundreds of rows from that view before the error, though. Here is the script for PS_CSJ_DWGL001M_VW: CREATE OR REPLACE VIEW PS_CSJ_DWGL001M_VW (FUND_CODE, ACCOUNT, CSJ_DEPT2, CLASS_FLD, DESCR, BUDGET_DEPTID, SUBDIVISION_LBL, ASSET_NBR) AS SELECT DISTINCT F_FUND , substr(CHARGE_CODE , 9 ,6) , substr(CHARGE_CODE , 7 ,2) , AC_SUBACCT , TITLE , R_DEPT , DACREF , D_ASSET_NUMBER FROM GL001M07_V@DW02.X1A WHERE AC_SUBACCT IN ('4001','4003','4006','4008','4010','4011','4012','4032','4042','4043','4044 ','4046','4060','4065','4102') AND ACTIVE_FLAG = 'A' AND ALRE_CODE = 'E' And GL001M07_V is a view with the following script: CREATE OR REPLACE VIEW "FMSDATA"."GL001M07_V" ("DEPT_GROUP", "CHARGE_CODE","F_FUND","F_SUBFUND","F_REPORT_CODE","R_DEPT", "R_SUBDEPT","R_DEPTFUNC","A_PROGRAM","A_SUBPROG","A_ACTIVITY", "D_ASSET_TYPE","D_ASSET_NUMBER","D_ASSET_COMP","P_PROJECT", "P_SUBPROJ","AC_ACCOUNT","AC_SUBACCT","AC_DETACCT","S_SOURCE", "ACTUAL_ENTERED","ACTUAL_APPROVED","ACTUAL_PROOFED", "ACTIVE_FLAG","TITLE","COMMIT_ENTERED","COMMIT_APPROVED", "COMMIT_PROOFED","ALRE_CODE","DACREF") AS select dept_group, charge_code, f_fund, f_subfund, f_report_code, r_dept, r_subdept, r_deptfunc, a_program, a_subprog, a_activity, d_asset_type, d_asset_number, d_asset_comp, p_project, p_subproj, ac_account, ac_subacct, ac_detacct, s_source, actual_entered, actual_approved, actual_proofed, active_flag, title, commit_entered, commit_approved, commit_proofed, alre_code, dacref from FMSDATA.gl001m07 WITH READ ONLY _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:33:39 2006 Date: Wed, 26 Jul 2006 11:56:18 +0530 From: "Karunakaran Perumbrayoor" Subject: [sqr-users] Printing in CSV Format... Hi Folks, I am trying to print a CSV File. I am not using file processing (i.e. write) logic. I am still using 'PRINT' so that I can print in PDF or CSV format whichever chosen by the user. I am now running the SQR Program through SQRW instead of a Process Scheduler. How do I print the file in CSV Format? I tried using EH_CSV in the Command Line, but still nothing happens!!! Please let me know how to proceed. Thanks & Regards... Karun ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.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 Jul 26 09:25:23 2006 From: "the dragon" Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 08:22:54 -0500 If I remember correctly, you need to keep in mind that the heading is created (but not printed) at the time that the first print statement occurs (as does the footing I believe) so the variables that you're checking may have already changed by that time. 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 have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section 'IF variable = 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 09:37:36 2006 Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 19:04:39 +0530 From: "Karunakaran Perumbrayoor" Hi Dave, I think, the variable is not getting set properly. Initialize a variable to 'D' to indicate detail records are getting printed. Once all the detail records get printed, re-initialize the variable back to 'S' to indicate summary records needed to be printed. Before that use 'new-page' to print the summary in a new page. This could also be a reason for the code not working as per your expectations. In the Begin-Heading Section. If $variable =3D 'D' Print 'Detail' Else Print 'Summary' End-If Or otherwise use Multiple Reports (I guess both these reports can use the same layout which will be 'DEFAULT'). In the Begin-Heading Section, Use FOR-REPORTS to link to the report (Summary or Detail). This should work for sure!!! Have a Great Day!!! Regards.. Karun -----Original Message----- From: Savage, David M [mailto:dmsavage@StateStreet.com]=20 Sent: Tuesday, July 25, 2006 7:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.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 Jul 26 09:47:16 2006 Subject: RE: [sqr-users] Fetched column value was truncated Date: Wed, 26 Jul 2006 09:44:17 -0400 From: "Mingazov, Maya" I had similar problem and Kevin helped me to solve it: ' begin-select > 'short value' &x > ...=20=20 > union select=20=20 > 'a longer value'=20=20=20 > ...=20=20 >=20=20=20=20=20 > Be sure that the fields listed in each part of the union are the same, or if you have constants (like in my example above) be sure to add enough space in the first part so that it is as long as the values in the other parts:=20=20 >=20=20=20=20=20 > begin-select=20=20 > 'short value ' &x >=20=20=20 > Kevin Reschenberg ' Hope this helped, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Alexander, Steven Sent: Tuesday, July 25, 2006 5:03 PM To: sqr-users@sqrug.org Subject: [sqr-users] Fetched column value was truncated When we run this program from our desktop (Peoplesoft's sqrw 8.20.06 on Windows XP), it works. When we run it from the Peoplesoft Process Scheduler (Peoplesoft's pssqr 8.20.06 on Solaris), it stops with the following error message: =20 ORA-01406: fetched column value was truncated Previous CDV row: 001-294319-DEPT64-4003 =20 (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 6: ORA-01406: fetched column value was truncated =20 Error on line 222: (SQR 3725) Bad return fetching row from database. =20 =20 Here is the select statement that fails: =20 =20 !*********************************************************************** **** **** begin-procedure read_data_warehouse move 0 to #i begin-select on-error=3Dcdv_error nvl(rtrim(FUND_CODE), ' ') &CDV.FUND_CODE nvl(rtrim(ACCOUNT), ' ') &CDV.ACCOUNT nvl(rtrim(CSJ_DEPT2), ' ') &CDV.CSJ_DEPT2 nvl(rtrim(CLASS_FLD), ' ') &CDV.CLASS_FLD nvl(rtrim(DESCR), ' ') &CDV.DESCR nvl(rtrim(BUDGET_DEPTID), ' ') &CDV.BUDGET_DEPTID nvl(rtrim(SUBDIVISION_LBL), ' ') &CDV.SUBDIVISION_LBL nvl(rtrim(ASSET_NBR), ' ') &CDV.ASSET_NBR let $acct_cd =3D &CDV.FUND_CODE || '-' || &CDV.ACCOUNT || '-DEPT' || &CDV.CSJ_DEPT2 || '-' || &CDV.CLASS_FLD if &CDV.CSJ_DEPT2 =3D '57' let $dw_division =3D cond(instr($divisions, ' ' || &CDV.SUBDIVISION_LBL || ' ', 1) =3D 0, 'ADMIN', &CDV.SUBDIVISION_LBL) else let $dw_division =3D ' ' end-if put $acct_cd &CDV.DESCR &CDV.BUDGET_DEPTID $dw_division &CDV.ASSET_NBR into dw(#i) add 1 to #i from PS_CSJ_DWGL001M_VW CDV order by CDV.FUND_CODE, CDV.ACCOUNT, CDV.CSJ_DEPT2, CDV.CLASS_FLD end-select end-procedure read_data_warehouse =20 !*********************************************************************** **** **** begin-procedure cdv_error add 1 to #num_cdv_errors if #num_cdv_errors <=3D 10 show $sql-error show 'Previous CDV row: ' $acct_cd show ' ' else stop end-if end-procedure cdv_error =20 I'm curious as to why my on-error routine doesn't keep the program running, but I'm more interested in fixing the error. One hint is that the failed row has text with extended ASCII (value 194), but the successful row before it also has that text. Another possible issue is that I am reading PS_CSJ_DWGL001M_VW, which is a view of a view in a different database instance. I am reading hundreds of rows from that view before the error, though. Here is the script for PS_CSJ_DWGL001M_VW: =20 CREATE OR REPLACE VIEW PS_CSJ_DWGL001M_VW (FUND_CODE, ACCOUNT, CSJ_DEPT2, CLASS_FLD, DESCR,=20 BUDGET_DEPTID, SUBDIVISION_LBL, ASSET_NBR) AS=20 SELECT DISTINCT F_FUND , substr(CHARGE_CODE , 9 ,6) , substr(CHARGE_CODE , 7 ,2) , AC_SUBACCT , TITLE , R_DEPT , DACREF , D_ASSET_NUMBER=20 FROM GL001M07_V@DW02.X1A=20 WHERE AC_SUBACCT IN ('4001','4003','4006','4008','4010','4011','4012','4032','4042','4043',' 4044 ','4046','4060','4065','4102')=20 AND ACTIVE_FLAG =3D 'A'=20 AND ALRE_CODE =3D 'E' =20 And GL001M07_V is a view with the following script: =20 CREATE OR REPLACE VIEW "FMSDATA"."GL001M07_V" ("DEPT_GROUP", "CHARGE_CODE","F_FUND","F_SUBFUND","F_REPORT_CODE","R_DEPT", "R_SUBDEPT","R_DEPTFUNC","A_PROGRAM","A_SUBPROG","A_ACTIVITY", "D_ASSET_TYPE","D_ASSET_NUMBER","D_ASSET_COMP","P_PROJECT", "P_SUBPROJ","AC_ACCOUNT","AC_SUBACCT","AC_DETACCT","S_SOURCE", "ACTUAL_ENTERED","ACTUAL_APPROVED","ACTUAL_PROOFED", "ACTIVE_FLAG","TITLE","COMMIT_ENTERED","COMMIT_APPROVED", "COMMIT_PROOFED","ALRE_CODE","DACREF") AS=20 select dept_group, charge_code, f_fund, f_subfund, f_report_code, r_dept,=20 r_subdept, r_deptfunc, a_program, a_subprog, a_activity, d_asset_type, d_asset_number, d_asset_comp, p_project, p_subproj, ac_account, ac_subacct,=20 ac_detacct, s_source, actual_entered, actual_approved, actual_proofed, active_flag,=20 title, commit_entered, commit_approved, commit_proofed, alre_code, dacref=20 from FMSDATA.gl001m07=20 WITH READ ONLY =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 09:51:06 2006 Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 08:44:58 -0500 From: "Jim Womeldorf" Dave, Are you using any local procedures? If you are, remember that you have to reference global variables from within local procedures by inserting an underscore as the second character. ( $_variable in Karun's example) Jim =20 -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of Karunakaran Perumbrayoor Sent: Wednesday, July 26, 2006 8:35 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Heading question Hi Dave, I think, the variable is not getting set properly. Initialize a variable to 'D' to indicate detail records are getting printed. Once all the detail records get printed, re-initialize the variable back to 'S' to indicate summary records needed to be printed. Before that use 'new-page' to print the summary in a new page. This could also be a reason for the code not working as per your expectations. In the Begin-Heading Section. If $variable =3D 'D' Print 'Detail' Else Print 'Summary' End-If Or otherwise use Multiple Reports (I guess both these reports can use the same layout which will be 'DEFAULT'). In the Begin-Heading Section, Use FOR-REPORTS to link to the report (Summary or Detail). This should work for sure!!! Have a Great Day!!! Regards.. Karun -----Original Message----- From: Savage, David M [mailto:dmsavage@StateStreet.com] Sent: Tuesday, July 25, 2006 7:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ *************************************************** This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.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 Wed Jul 26 09:54:35 2006 Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 09:48:43 -0400 From: "Peter Burton" All, SQR prepares a page by performing the body first, then the HEADING and FOOTING sections. 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 Karunakaran Perumbrayoor Sent: Wednesday, July 26, 2006 9:35 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Heading question Hi Dave, I think, the variable is not getting set properly. Initialize a variable to 'D' to indicate detail records are getting printed. Once all the detail records get printed, re-initialize the variable back to 'S' to indicate summary records needed to be printed. Before that use 'new-page' to print the summary in a new page. This could also be a reason for the code not working as per your expectations. In the Begin-Heading Section. If $variable =3D 'D' Print 'Detail' Else Print 'Summary' End-If Or otherwise use Multiple Reports (I guess both these reports can use the same layout which will be 'DEFAULT'). In the Begin-Heading Section, Use FOR-REPORTS to link to the report (Summary or Detail). This should work for sure!!! Have a Great Day!!! Regards.. Karun -----Original Message----- From: Savage, David M [mailto:dmsavage@StateStreet.com]=20 Sent: Tuesday, July 25, 2006 7:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ *************************************************** This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.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 Wed Jul 26 10:03:06 2006 Date: Wed, 26 Jul 2006 10:00:16 -0400 From: "Mingazov, Maya" Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT or NOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 10:06:52 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Date: Wed, 26 Jul 2006 09:04:53 -0500 From: "Knapp, Richard" Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 26 10:20:24 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Date: Wed, 26 Jul 2006 10:17:46 -0400 From: "Mingazov, Maya" I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 10:49:28 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT Date: Wed, 26 Jul 2006 09:47:27 -0500 From: "Knapp, Richard" Hmmm.=20=20 1. Shouldn't SQR be telling you what line number the error appears on? 2. Has the syntax for the call system command changed? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 26 11:10:59 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Date: Wed, 26 Jul 2006 11:08:19 -0400 From: "Mingazov, Maya" That's what I have in the code: 1st report: ' let $SystemTime =3D 'date' call system using $SystemTime #status1 display $SystemTime ' I see this #status1 but there is no checking of that status within the code. 2d report besides above lines there is the following: ' let $DeleteString =3D ' rm ' || $PerlmutterFile1 call system using $DeleteString #status 1 open $PerlmutterFile1 as 1 record =3D 60 for-writing ' 3d report has 1st report lines and plus the following: ' string 'rm' $ExceptionFile by ' ' into $DelString call system using $DelString #status1 open $ExceptionFile as 2 record=3D46 for-writing ' About error line number, I usually get line number when I run report locally and if there is an error, but users got just two of those lines that I provided. Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:47 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Hmmm.=20=20 1. Shouldn't SQR be telling you what line number the error appears on? 2. Has the syntax for the call system command changed? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 11:18:16 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Date: Wed, 26 Jul 2006 10:16:15 -0500 From: "Knapp, Richard" Looks like the 1 in the second call is the culprit. SQR expects either wait or nowait in this position. There is no place in the syntax, of 4.3 anyway, for a number of any sort. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 10:08 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT That's what I have in the code: 1st report: ' let $SystemTime =3D 'date' call system using $SystemTime #status1 display $SystemTime ' I see this #status1 but there is no checking of that status within the code. 2d report besides above lines there is the following: ' let $DeleteString =3D ' rm ' || $PerlmutterFile1 call system using $DeleteString #status 1 open $PerlmutterFile1 as 1 record =3D 60 for-writing ' 3d report has 1st report lines and plus the following: ' string 'rm' $ExceptionFile by ' ' into $DelString call system using $DelString #status1 open $ExceptionFile as 2 record=3D46 for-writing ' About error line number, I usually get line number when I run report locally and if there is an error, but users got just two of those lines that I provided. Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:47 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Hmmm.=20=20 1. Shouldn't SQR be telling you what line number the error appears on? 2. Has the syntax for the call system command changed? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 26 13:57:38 2006 Date: Wed, 26 Jul 2006 13:55:03 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Opening files dynamically Hi, In sqr, is it possible to open the files dynamically at run time? For eg= . I have 10 files ending with "summary.txt" ,say _summary.txt, <= filename2>_summary.txt and so on..I need to open all these summary.txt file= s for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 16:32:37 2006 Date: Wed, 26 Jul 2006 11:03:10 -0700 (PDT) Subject: Re: [sqr-users] Opening files dynamically From: thorburn@communityonline.net I suggest getting a good book on SQR. This is a very basic question. File may be opened and closed whenever and wherever you choose. Look for the syntax of opening files in you SQR reference. D. ___________________________________ > Hi, > In sqr, is it possible to open the files dynamically at run time? For > eg. I have 10 files ending with "summary.txt" ,say > _summary.txt, _summary.txt and so on..I need to > open all these summary.txt files for processing. If possible please > send me some sample code.. > Thanks in Advance > Ram > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 15:28:45 2006 Subject: RE: [sqr-users] Opening files dynamically Date: Wed, 26 Jul 2006 14:26:50 -0500 From: "Knapp, Richard" Each file needs its own file handle, at least in 4.3. You could spawn a command to list all the files of the type you are interested in but how could you capture those complete names to assign them to a channel/file handle? What is the OS? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, July 26, 2006 12:55 PM To: sqr-users@sqrug.org Subject: [sqr-users] Opening files dynamically Hi, In sqr, is it possible to open the files dynamically at run time? For eg. I have 10 files ending with "summary.txt" ,say _summary.txt, _summary.txt and so on..I need to open all these summary.txt files for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 15:34:56 2006 Subject: RE: [sqr-users] Opening files dynamically Date: Wed, 26 Jul 2006 14:32:51 -0500 From: "Knapp, Richard" Direct the output of the directory command to a file with the call system command then open and read that file in the SQR environment. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 2:27 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Opening files dynamically Each file needs its own file handle, at least in 4.3. You could spawn a command to list all the files of the type you are interested in but how could you capture those complete names to assign them to a channel/file handle? What is the OS? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, July 26, 2006 12:55 PM To: sqr-users@sqrug.org Subject: [sqr-users] Opening files dynamically Hi, In sqr, is it possible to open the files dynamically at run time? For eg. I have 10 files ending with "summary.txt" ,say _summary.txt, _summary.txt and so on..I need to open all these summary.txt files for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 16:44:44 2006 Date: Wed, 26 Jul 2006 16:41:44 -0400 From: "Everett Carr" Subject: Re: [sqr-users] Opening files dynamically to assume is not necessarily a good idea.... but here goes I assume that the number of possible files to process at any given runtime is variable and that you desire to process each file, one at a time, until every file matchining *_summary.txt is processed If so, then below should be of some help: !............................................................................... begin-procedure P500-Main #debugt show '%' $sqr-program '-debugt, P500-Main' !* This is the main loop. We derive a list of input file(s) !* to process and then execute (call) an sqr to process !* each input file found in the derived list file evaluate $hc_interface_type when = 'D' !* it is a dblink process, so no files let #noftpscriptfound = 1 !* to prevent process from being deleted let $Suicide_flag = 'N' !* to prevent process from being deleted do {sqrinclude} break when = 'I' do P9000-Get-Files-to-Process let #In_file_ctr = 0 let $ToDOInput = $In_file1_dir || $ToDOfilename open $ToDOInput as {todo_fileunitnbr} for-reading record={todo_reclen}:vary status=#ToDO_filestat if #ToDO_filestat != 0 display ' ' show $pgm_name '-F-ERROR, cannot open files to process list - ' $ToDOInput show ' file status=' #ToDI_filestat let #ErrorCount = #ErrorCount + 1 display ' ' else do P501-Main end-if when = 'E' do P600-Export when-other show $pgm_name '-F-FATAL, Interface type invalid for {sqrinclude}' let #ErrorCount = #ErrorCount + 1 end-evaluate end-procedure !............................................................................... begin-procedure P501-Main #debugt show '%' $sqr-program '-debugt, P501-Main' read {todo_fileunitnbr} into $ToDO_rcrd:{todo_reclen} let #end-TODOfile = #end-file while #end-ToDOfile = 0 let #In_file_ctr = #In_file_ctr + 1 let $ToDO_rcrd = rtrim($ToDO_rcrd, ' ') let #len = length($ToDO_rcrd) if $ToDOfilename = $ToDO_rcrd show $pgm_name '-I-MSG, skipping file list file: ' $ToDO_rcrd else Evaluate $opsys-platform When = 'DOS' When = 'UNIX' !the unix ls -1 or ls doesn't return a bare output because the ls parm includes !the full path to the files which we must use as where the targets are won't !be the default directory. So we gotta strip the file to its bare name. let #str_beg = #len while substr($ToDO_rcrd, #str_beg, 1) <> '/' or #str_beg <= 1 let #str_beg = #str_beg - 1 end-while let #str_beg = #str_beg + 1 let #str_len = #len - #str_beg + 1 let $ToDO_rcrd = substr($ToDO_rcrd, #str_beg, #str_len) When = 'WINDOWS' End-Evaluate !*show $pgm_name '-I-MSG, Processing file: ' $ToDO_rcrd ' (filename len=' #len edit 999 ')' show $pgm_name '-I-MSG, Processing file: ' $ToDO_rcrd let $In_filename = $In_file1_dir || $ToDO_rcrd let $In_file1 = $ToDO_rcrd let #File_exist = exists($In_filename) if #file_exist = 0 do P9000-FILE-PROT-CLEANUP($In_filename) do P510-process-one-file evaluate #Loaded_flag when = 0 !file processed, so move/rename to subdir let $MV_target = $MV_path || $prcs_process_instance || '-' || $ToDO_rcrd show '%' $pgm_name '-I-MSG, Moving ' $In_filename ' to ' $MV_target display ' ' let $OPSYS_command = $OPSYS_mvcmd || $In_filename || ' ' ||$MV_target Call System Using $OPSYS_command #rtn_status wait if #rtn_status show $pgm_name '-F-FATAL-ERROR, (P501-Main) move of data file failed' let #ErrorCount = #ErrorCount + 1 show ' system command:' show ' ' $OPSYS_command else do Commit-Transaction !* 4/5/2004,egc end-if !* sqr rename would work IF rename in same dir, but t'aint what we want !* let #Rtn_Cd = rename($In_filename, $MV_target) !* if #Rtn_cd <> 0 !* show $pgm_name '-F-ERROR, rename/move failed. ABORTING.' !* rollback !* STOP !* end-if When-Other !errors encountered, so leave input file alone, no data loaded show $pgm_name '-W-Warning, ' $ToDO_rcrd ' not moved/renamed due to errors processing it!!' let #ErrorCount = #ErrorCount + 1 end-evaluate else show '**********' $pgm_name '-W-MSG, File not found or could not be opened **********' show ' file name: ' $In_filename display ' ' end-if end-if read {todo_fileunitnbr} into $ToDO_rcrd:{todo_reclen} let #end-TODOfile = #end-file end-while close {todo_fileunitnbr} let #file_exist = delete($ToDOInput) !cleanup after ourselves; delete the dir list file end-procedure !............................................................................... begin-procedure P510-process-one-file #debugt show '%' $sqr-program '-debugt, P510-process-one-file' #ifdef #debugd !*just display input file data open $In_filename as {localin_fileunitnbr} for-reading record={localin_reclen}:vary status=#Insource_filestat if #Insource_filestat != 0 show $pgm_name '-F-ERROR, could not open ' $In_sourcefile else read {localin_fileunitnbr} into $InSource_rcrd:{localin_reclen} let #end-InSourcefile = #end-file while #end-InSourcefile = 0 let $InSource_rcrd = rtrim($InSource_rcrd, ' ') show $InSource_rcrd read {localin_fileunitnbr} into $InSource_rcrd:{localin_reclen} let #end-InSourcefile = #end-file end-while close {localin_fileunitnbr} show $pgm_name '-I-MSG, >>>>> all done reading ' $In_filename input $crap maxlen=8 'press enter to continue' end-if #else !*show $pgm_name '-I-MSG, stub for the call to: ' $In_sqrtocall !*note: forcing the "call" to be a local var proc is more nuisance than it is !* worth since we really need to share most of the var's. !* So the rule now is, we define var $unit2_filename and that MUST !* be the file name used by the "called"/included sqc's !*do {sqrinclude} ($In_filename, #Loaded_flag) let $In_file2 = $In_filename #debugt show 'P510-just before do {sqrinclude}' do {sqrinclude} #end-if end-procedure and proc in hc9000.sqc custom copy lib: !............................................................................... begin-procedure P9000-Get-Files-to-Process !* performs operating system commands to derive a list !* of files and other file maintenance actions that are needed !* for financial interface processing (hcfsldgl, hcfsldap) #debug9 show '.....%hc9000.sqc-i-msg, P9000-Get-Files-to-Process' Evaluate $opsys-platform When = 'DOS' !*this is not compatible with windows op system cmds let $OPSYS_command = 'dir /-p/b/a-d ' || $In_file1_dir || $In_file1 || ' >' let $OPSYS_command = $OPSYS_command || $in_file1_dir || $ToDOfilename let $OPSYS_command = $OPSYS_cmdstart || $OPSYS_command let $MV_dir = $In_file1_dir || 'a_done' let $MV_path = $MV_dir || '\' When = 'UNIX' !* note: the redir >! fails if redir target not exist, so can't be used let $OPSYS_command = 'ls '|| $In_file1_dir || $In_file1 || ' > ' let $OPSYS_command = $OPSYS_command || $in_file1_dir || $ToDOfilename let $MV_dir = $In_file1_dir || 'a_done' let $MV_path = $MV_dir || '/' When = 'WINDOWS' !*sqr screwsup & doesn't report if nt or 95/98 in $sqr-platform !*dir cmd notes: /-p ensures we turn off pause after each screen !* /b display in bare format; no heading, file size, or summary !* /a-d don't display directory names; they aren't files let $OPSYS_command = 'dir /-p/b/a-d ' || $In_file1_dir || $In_file1 || ' >' let $OPSYS_command = $OPSYS_command || $in_file1_dir || $ToDOfilename let $OPSYS_command = $OPSYS_cmdstart || $OPSYS_command let $MV_dir = $In_file1_dir || 'a_done' let $MV_path = $MV_dir || '\' !* now find or create the subdir to move processed file(s) to When-Other show $pgm_name '-F-ERROR, unsupported operating system' display ' RUN TERMINATED' rollback STOP End-Evaluate !* 6/2003,egc, add check for valid fully qualified file name let $p9000_fname = $in_file1_dir || $In_file1 let #p9000_fnamlen = length($p9000_fname) let $p9000_fnamelastch = substr($p9000_fname,#p9000_fnamlen,1) if $p9000_fnamelastch = '/' or $p9000_fnamelastch = '\' or #p9000_fnamlen < 1 do Rollback-Transaction if $prcs_process_instance <> '' let #prcs_run_status = #prcs_run_status_error let $prcs_message_parm1 = 'Improper run control parm(file)' let #prcs_continuejob = 0 !set to 1 if want next step in a job to run regardless do Update-Prcs-Run-Status end-if show ' ' show ' %hc9000-F-FATAL, Error: Fully qualified filename user parm improperly entered' show ' Program Terminated' stop quiet end-if show $pgm_name '-I-MSG, Op sys command line executed' show ' ' $OPSYS_command display ' ' Call System Using $OPSYS_command #rtn_status wait if #rtn_status show '.....%hc9000.sqc-i-msg, P9000-Get-Files-to-Process-E-ERROR, op system cmd failed' show ' #rtn_status=' #rtn_status show ' cmd: ' $OPSYS_command if $opsys-platform = 'UNIX' do P9000-GetFilestoProcess-UnixErr end-if end-if Evaluate $opsys-platform When = 'DOS' !this is not compatible with windows op system cmds let #Rtn_cd = exists($MV_dir) let $OPSYS_mkdir = $P9000_mkdir || $MV_dir When = 'UNIX' let #Rtn_cd = exists($MV_dir) let $OPSYS_mkdir = $P9000_mkdir || $MV_dir When = 'WINDOWS' !sqr screwsup & doesn't report if nt or 95/98 in $sqr-platform let #Rtn_cd = exists($MV_dir) let $OPSYS_mkdir = $P9000_mkdir || $MV_dir End-Evaluate if #Rtn_cd <> 0 and isnull($Skip_mkdir) show $pgm_name '-I-MSG, creating subdirectory ' $MV_dir ' to store input file(s) processed' Call System Using $OPSYS_mkdir #rtn_status wait if #rtn_status <> 0 show $pgm_name '-F-ERROR, subdir create failed. Input file(s) cannot be processed' show 'cmd= ' $opsys_mkdir show 'rtn_status= ' #rtn_status display ' RUN TERMINATED' rollback STOP end-if end-if end-procedure >>> "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" 7/26/2006 1:55:03 PM >>> Hi, In sqr, is it possible to open the files dynamically at run time? For eg. I have 10 files ending with "summary.txt" ,say _summary.txt, _summary.txt and so on..I need to open all these summary.txt files for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 17:18:02 2006 Date: Wed, 26 Jul 2006 17:15:58 -0400 From: "White . Denise" Subject: [sqr-users] RE: Heading question Well, I don't really understand your syntax, so I can't tell you why it's not working. What is "do print s.lines"? I have never seen "do" and "print" together like that; normally when you use "do", it is with a procedure name. If you are trying to use "print" commands, I don't think that "s.lines" and "d.lines" are valid, either. You need to print either a literal or a variable, and those do not appear to be either; you also need positioning parameters. What you are trying to do is possible; I have done it. Before you print the first report, set your variable to one value. After finishing the first report, and before you start processing for the second report, do a new-page and then set the variable to a different value (you might also want to reset #page-count at this point). Inside the BEGIN-HEADER section, just do the following: If $variable =3D 'S' ... insert your summary header print statements here ... Else ... insert your detail header print statements here ... End-if HTH, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 2 Date: Tue, 25 Jul 2006 10:23:12 -0400 From: "Savage, David M" Subject: [sqr-users] Heading question To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: =09 Content-Type: text/plain; charset=3D"us-ascii" I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 09:35:44 2006 Date: Thu, 27 Jul 2006 09:33:09 -0400 From: "Laura Mayer" Subject: [sqr-users] question about font color Morning, I see in the SQR manual that you can change font color in HTML by using: Specifying Text Colors Use the %%Color and %%ResetColor extensions to change the color of text. Th= e following code example demonstrates this capability: If &Salary > 100000 Print-Direct Printer=3Dhtml '%%Color #FF0000' End-If Print &Salary () If &Salary > 100000 Print-Direct Printer=3Dhtml '%%ResetColor' End-If But can I change it if the output is a pdf? I used the code above and it do= esn't seem to do anything.=20 Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 09:39:59 2006 Date: Thu, 27 Jul 2006 23:37:14 +1000 From: "Alka Chauhan" Subject: Re: [sqr-users] question about font color Ill be away from office on 28July - 11thAug,returning to work on 14th Aug. = Please contact Help Desk on ext 6006 for any urgent matters. >>> sqr-users 07/27/06 23:33 >>> Morning, I see in the SQR manual that you can change font color in HTML by using: Specifying Text Colors Use the %%Color and %%ResetColor extensions to change the color of text. Th= e following code example demonstrates this capability: If &Salary > 100000 Print-Direct Printer=3Dhtml '%%Color #FF0000' End-If Print &Salary () If &Salary > 100000 Print-Direct Printer=3Dhtml '%%ResetColor' End-If But can I change it if the output is a pdf? I used the code above and it do= esn't seem to do anything.=20 Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=20 This message from ORIX Australia might contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive future communications by email. ORIX handles personal information according to a Privacy Policy that is consistent with the National Privacy Principles. Please let us know if you would like a copy. It is also available at http://www.orix.com.au . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 12:30:18 2006 Date: Thu, 27 Jul 2006 10:27:57 -0600 From: "Tracie Roberts" Subject: [sqr-users] Problem with postscript printing I am trying to create .tif images through a 3rd party solution using postscript output created by SQR. However the image is produced on a 32" x 32" background with the image approximately 1" x 1". I have tried playing with the declare-layout section but nothing changes. I have been successful with creating .tif images from plain text files but not from postscript. Any suggestions? Thank you for your help. Tracie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 14:22:54 2006 Date: Thu, 27 Jul 2006 12:20:44 -0600 From: jwillson@dssltd.com Subject: Re: [sqr-users] Problem with postscript printing Hi Tracie, have you tried importing/exporting through Ghostview/Aladdin? With straight SQR you can build a declare section that creates a page you manage yourself that will allow you pixel level control upon rendering. I am at a different work site and don't have the code with me or would share. This sounds like a lot to do but it works. With the work you can print to within 1 pixel of the physical edge of a printer (not HP Laser as they need quarter inch for physical transport but Xerox and IBM make such printers for cheque/billing writing). If it is straight images and only images you can also build containers that size the image upon rendering. If it is text you have the problem of proportional sizing/spacing. It has been a couple of years since doing direct postscript but the printer control characters you send when rendering are also important. Hope this helps. John Willson http://www.dssltd.com Quoting Tracie Roberts : > I am trying to create .tif images through a 3rd party solution using > postscript output created by SQR. However the image is produced on a > 32" x 32" background with the image approximately 1" x 1". I have tried > playing with the declare-layout section but nothing changes. I have > been successful with creating .tif images from plain text files but not > from postscript. > > Any suggestions? > > Thank you for your help. > Tracie > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/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 28 10:04:46 2006 Date: Fri, 28 Jul 2006 10:01:58 -0400 From: "Eric Miller" Subject: [sqr-users] Starnge printing problem We are experiencing a strange problem where one of our clients is having problems with a report printing all output on one line. Essentially, writing each line over top of the other.=20 We can run the file fine locally. We are both using Windows machines. Does anyone have any idea what may be causing this. Thanks. Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 28 10:31:44 2006 Subject: RE: [sqr-users] Starnge printing problem Date: Fri, 28 Jul 2006 10:29:24 -0400 From: "Beller, Jay" You mention being on Windows, but not sure if you're running SQR on Windows= or producing the file elsewhere and transferring it from another machine (= e.g., Unix) to your machine for printing. If file transfer is involved, this might be a situation where you're trying= to print a file with Unix end-of-line characters () instead of D= OS end-of-line characters (,) -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Eric Miller Sent: Friday, July 28, 2006 10:02 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Starnge printing problem We are experiencing a strange problem where one of our clients is having problems with a report printing all output on one line. Essentially, writing each line over top of the other.=20 We can run the file fine locally. We are both using Windows machines. Does anyone have any idea what may be causing this. Thanks. Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 28 11:16:40 2006 Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Fri, 28 Jul 2006 08:14:03 -0700 From: "Rey Camoras" This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 28 11:34:32 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Fri, 28 Jul 2006 10:32:34 -0500 From: "Knapp, Richard" What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 28 11:58:13 2006 From: JOHN_HARRIS@qvc.com Date: Fri, 28 Jul 2006 11:55:53 -0400 Subject: [sqr-users] Accessing multiple databases using the -DB option I am trying to connect to multiple databases using the -DB option. I have an oracle table that stores my connect information; ODBC name, username and password for each database. I use the job factory to connect to oracle, select the record that I need from the database, and put the id and pw into $ variables. The trouble is, the -DB option in the select is not working at compile time. Any suggestions would be greatly appreciated. I am getting the following error: (SQR 1803) CONNECT failed. Perhaps username/password incorrect. SQR: Program Aborting. CODE: BEGIN-PROGRAM DO GET_VERTEX_DB_INFO DO GET_DB2_DB_INFO DO GET_THE_DATA_01 END-PROGRAM BEGIN-PROCEDURE GET_VERTEX_DB_INFO BEGIN-SELECT MB_ID &S_VERTQADB_ID MB_TEXT &S_VERTQADB_TEXT LET $VERTQADB_ID = &S_VERTQADB_ID LET $VERTQADB_TEXT = &S_VERTQADB_TEXT LET $VERTQADB = 'VERTQADB' FROM MB_INFO WHERE MB_TYPE_CD = 'VERTQADB' END-SELECT END-PROCEDURE BEGIN-PROCEDURE GET_DB2_DB_INFO BEGIN-SELECT MB_ID &S_LOCDBI0_ID MB_TEXT &S_LOCDBI0_TEXT LET $LOCDBI0_ID = &S_LOCDBI0_ID LET $LOCDBI0_TEXT = &S_LOCDBI0_TEXT LET $LOCDBI0 = 'LOCDBI0' FROM MB_INFO WHERE MB_TYPE_CD = 'LOCDBI0' END-SELECT END-PROCEDURE BEGIN-PROCEDURE GET_THE_DATA_01 BEGIN-SELECT -DB'DSN=$VERTQADB;UID=$VERTEX_DB_ID;PWD=$VERTEX_DB_PW' ON-ERROR=RECORD_SQL_ERROR ($SQL-ERROR, 'MAJOR', '', 'GET_THE_DATA_01') ItemNBR &S_ItemNBR DO GET_ITEM_DESC FROM VERTADM.Rdbitemtype.Useritemidcode END-SELECT END-PROCEDURE BEGIN-PROCEDURE GET_ITEM_DESC BEGIN-SELECT -DB'DSN=$LOCDBI0;UID=$LOCDBI0_ID;PWD=$LOCDBI0_TEXT' DESC &S_ITEM_DESC FROM DESC_TABLE WHERE ITEM_NBR = &S_ItemNBR END-SELECT END-PROCEDURE Thank you, John _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jul 29 02:21:03 2006 Date: Sat, 29 Jul 2006 11:49:04 +0530 From: "jiju vengal" Subject: Re: [sqr-users] RE: Heading question Hi David, I would do it using the ALTER-REPORT function. I am sure that it should solve the problem. That is, define different BEGIN-HEADING sections and use the required ones as per the run time requirement. Cheers, -Jiju. On 7/27/06, White . Denise wrote: > > Well, I don't really understand your syntax, so I can't tell you why > it's not working. What is "do print s.lines"? I have never seen "do" > and "print" together like that; normally when you use "do", it is with a > procedure name. If you are trying to use "print" commands, I don't > think that "s.lines" and "d.lines" are valid, either. You need to print > either a literal or a variable, and those do not appear to be either; > you also need positioning parameters. > > What you are trying to do is possible; I have done it. Before you print > the first report, set your variable to one value. After finishing the > first report, and before you start processing for the second report, do > a new-page and then set the variable to a different value (you might > also want to reset #page-count at this point). Inside the BEGIN-HEADER > section, just do the following: > > If $variable = 'S' > ... insert your summary header print statements here ... > Else > ... insert your detail header print statements here ... > End-if > > HTH, > Denise M. White > EBS Programmer/Analyst III > Dynamics Research Corporation > ------------------------------ > > Message: 2 > Date: Tue, 25 Jul 2006 10:23:12 -0400 > From: "Savage, David M" > Subject: [sqr-users] Heading question > To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I have a question regarding headings. I have a summary and detail report > (both same report) and need to print a different set of lines of the > heading depending on particular circumstances. (Whether or not the > summary is already done.) > > I tried to init a variable to a value and perform the following within > the heading section > > 'IF variable = 0 do print s.lines Else print d.lines'. It is not > working > > Any help would be appreciated > > Thanks > 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 Sun Jul 30 23:55:59 2006 From: David.Martin@dhs.vic.gov.au Date: Mon, 31 Jul 2006 13:53:25 +1000 Subject: [sqr-users] Charts with Non-Numeric Y axis Hello, Has anybody found a way of producing charts with a Y-axis that represent non numeric data. We need to produce workflow charts based on start and end date fields. Any help would be much appreciated. David M _________________________________________________________________________________ This email contains confidential information intended only for the person named above and may be subject to legal privilege. If you are not the intended recipient, any disclosure, copying or use of this information is prohibited. The Department provides no guarantee that this communication is free of virus or that it has not been intercepted or interfered with. If you have received this email in error or have any other concerns regarding its transmission, please notify Postmaster@dhs.vic.gov.au If this document is not required for record keeping purposes please consider the environment before printing. _________________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 11:30:04 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Mon, 31 Jul 2006 08:27:15 -0700 From: "Rey Camoras" If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 11:43:17 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Mon, 31 Jul 2006 10:41:05 -0500 From: "Knapp, Richard" Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 12:30:14 2006 Date: Mon, 31 Jul 2006 09:27:40 -0700 (PDT) From: Jim McKeever Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. The following was offered as a solution several months ago and it worked for us. Of course, this applied to Oracle 9.2 so it may or may not take care of 10g... Have a DBA issue the following command: alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE "Knapp, Richard" wrote: Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Jim McKeever Sr. PeopleSoft Analyst "When you were born, you were crying and everyone around you was smiling. Live your life so that when you die, you're the one who is smiling and everyone around you is crying." --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 12:47:49 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Mon, 31 Jul 2006 12:42:47 -0400 From: "Peter Burton" All, This event will not work in Oracle 10g. You should upgrade your version of SQR to at least version 8.3.x (Hyperion not Peoplesoft) 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 Jim McKeever Sent: Monday, July 31, 2006 12:28 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. The following was offered as a solution several months ago and it worked for us. Of course, this applied to Oracle 9.2 so it may or may not take care of 10g... =20=20=20 Have a DBA issue the following command: alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE =20=20 "Knapp, Richard" wrote: =20=20 Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Jim McKeever=20 Sr. PeopleSoft Analyst=20 "When you were born, you were crying and everyone around you was smiling. Live your life so that when you die, you're the one who is smiling and everyone around you is crying." =20=09=09 --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 14:01:04 2006 Date: Mon, 31 Jul 2006 10:58:21 -0700 (PDT) From: Prasanth Pennepalli Subject: Re: [sqr-users] String2Em: String to Decimal Object Conversion Error. If you are on Oracle 9.2.0.7, try to upgrade the Oracle to the next patch level. It worked for us. ----- Original Message ---- From: Peter Burton To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Sent: Monday, July 31, 2006 9:42:47 AM Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. All, This event will not work in Oracle 10g. You should upgrade your version of SQR to at least version 8.3.x (Hyperion not Peoplesoft) 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 Jim McKeever Sent: Monday, July 31, 2006 12:28 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. The following was offered as a solution several months ago and it worked for us. Of course, this applied to Oracle 9.2 so it may or may not take care of 10g... Have a DBA issue the following command: alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE "Knapp, Richard" wrote: Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Jim McKeever Sr. PeopleSoft Analyst "When you were born, you were crying and everyone around you was smiling. Live your life so that when you die, you're the one who is smiling and everyone around you is crying." --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 01 00:02:08 2006 Date: Tue, 1 Aug 2006 00:00:02 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.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 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 01 11:43:32 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Tue, 1 Aug 2006 08:40:44 -0700 From: "Rey Camoras" Same thing happens: (SQR 6806) String2Em: String to Decimal Object Conversion Error. If only we could upgrade to version 8.3.x. We can't because management doesn't deem it necessary.=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Monday, July 31, 2006 8:41 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 01 12:27:34 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Tue, 1 Aug 2006 11:25:35 -0500 From: "Knapp, Richard" Ray, I'm baffled as to why SQR is attempting a conversion. I think you are right - altering the db columns sounds like the easiest fix. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Tuesday, August 01, 2006 10:41 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Same thing happens: (SQR 6806) String2Em: String to Decimal Object Conversion Error. If only we could upgrade to version 8.3.x. We can't because management doesn't deem it necessary.=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Monday, July 31, 2006 8:41 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 01 12:35:37 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Tue, 1 Aug 2006 11:33:05 -0500 From: "Bob Stone" It's not SQR attempting it, it's Oracle. We had the same issue with our 9i upgrade, and I believe it should work for 10g. If it's easier to alter all the tables to specify the columns, that's probably your best bet. The other option is to always call it using "to_number" or "to_char" in the select.=20=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Tuesday, August 01, 2006 11:26 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, I'm baffled as to why SQR is attempting a conversion. I think you are right - altering the db columns sounds like the easiest fix. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Tuesday, August 01, 2006 10:41 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Same thing happens: (SQR 6806) String2Em: String to Decimal Object Conversion Error. If only we could upgrade to version 8.3.x. We can't because management doesn't deem it necessary.=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Monday, July 31, 2006 8:41 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 02:31:59 2006 Date: Tue, 1 Aug 2006 23:29:36 -0700 (PDT) From: pplsoftnerd Subject: [sqr-users] SQR generates .gotit file Hi, There is custom SQR which generates a .dat files. When run in production the SQR apart from generating .dat file also generates files with extension .gotit. Can anyone come across this? Not all the SQR which generates .dat files does the same only selected does this way. What are these .gotit files. please help. Thanks --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 06:45:46 2006 From: "the dragon" Subject: RE: [sqr-users] SQR generates .gotit file Date: Wed, 02 Aug 2006 05:42:27 -0500 Seek the answer in your code. It's a custom sqr, and is doing something extra... 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, There is custom SQR which generates a .dat files. When run in production the SQR apart from generating .dat file also generates files with extension .gotit. Can anyone come across this? Not all the SQR which generates .dat files does the same only selected does this way. What are these .gotit files. please help. 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 Wed Aug 02 09:19:33 2006 Subject: RE: [sqr-users] SQR generates .gotit file Date: Wed, 2 Aug 2006 08:17:37 -0500 From: "Knapp, Richard" RTFC. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of pplsoftnerd Sent: Wednesday, August 02, 2006 1:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR generates .gotit file Hi, There is custom SQR which generates a .dat files. When run in production = the SQR apart from generating .dat file also generates files with extension= .gotit. Can anyone come across this? Not all the SQR which generates .dat files does the same only selected does= this way. What are these .gotit files. please help. Thanks =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 02 12:30:06 2006 From: "ashish kothary" Date: Wed, 02 Aug 2006 16:27:37 +0000 Subject: [sqr-users] SQL Perfomance monitoring in an SQR Hi All I have a SQR which all of a sudden is taking a long time to run. Jumped from 20 mins to 2 Hr. This SQR has tons of SQL Statement in them. How do I find out which SQL is takinga long time to run. I am running this SQR thru PS Prcoess Schedular. using -S flag gives me some detauils but not the timings. Database is MS-SQL Server. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 13:45:27 2006 Date: Wed, 2 Aug 2006 11:43:29 -0600 From: "Robert Goshko" Subject: Re: [sqr-users] SQL Perfomance monitoring in an SQR On 8/2/06, ashish kothary wrote: > Hi All > > I have a SQR which all of a sudden is taking a long time to run. Jumped from > 20 mins to 2 Hr. This SQR has tons of SQL Statement in them. How do I find > out which SQL is takinga long time to run. I am running this SQR thru PS > Prcoess Schedular. using -S flag gives me some detauils but not the timings. > Database is MS-SQL Server. Quickest way is to put some show statements in your program, 1 before each "begin-select' and then one inside with a time stamp, then you can see which is taking the longest to run. Your DBA may be able to tell you which SQL is hitting the database and causing issues. -- ...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.6+ GB web mail (for free), 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 Sat Aug 05 17:23:37 2006 Date: Sat, 5 Aug 2006 14:21:14 -0700 (PDT) From: razeel zaleel Subject: Re: [sqr-users] .eps file we are on 8.9 and trying to print logo with .eps file when running i am selecting PS Printer option as advised by peoplesoft but its not printing the logo, just prints rectangular box with x on it any idea ? __________________________________________________ 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 07 16:12:24 2006 Date: Mon, 7 Aug 2006 13:09:56 -0700 (PDT) From: Clark Murray Subject: [sqr-users] Can execute Oracle stored procedure only x number of times? Our environment is: SQR server 8.2 on Win 2003 SP1 Oracle 9.2.0.5 The program generates lists of customers. It loops through a list of customer IDs and for each one it calls a stored procedure to get the customer's name, address, etc. It works just fine until it has done 253 records, then it reports an error in executing the procedure. I don't know whether or not this is significant, but the last character of the procedure name is truncated in the error message: Error on line 91: (SQR 3913) Could not EXECUTE stored procedure or function. SQL: EXEC Transcription_Utilities.Get_Transcription_Recor Error on line 91: (SQR 3913) Could not EXECUTE stored procedure or function. SQR: Program Aborting. Is there an issue with the record it's trying to process? No -- it's handled just fine if I change the selection criteria so that that customer is within the first 253. If I rerun it, it processes the remainders just fine (so long as there are less that 254, I assume). The code I believe to be relevant follows. !------------------------------------------------------------ Get_Record begin-procedure Get_Record execute do=write_transcription_record ! on-error=Oracle_Error @#proc_return_status = Transcription_Utilities.Get_Transcription_Record @p_customer_id = #customer_id , @p_output_record = $transcription_record OUTPUT end-procedure Get_Record !-------------------------------------------- Write_Transcription_Record begin-procedure Write_Transcription_Record !display $transcription_record write 1 from $transcription_record add 1 to #record_count end-procedure Write_Transcription_Record Any insight into this issue will be greatly appreciated. Clark Murray _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 09 14:23:36 2006 Date: Wed, 9 Aug 2006 11:21:03 -0700 (PDT) From: Courtney Nelson Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 09 15:32:39 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Joining 2 data sources (local results) Date: Wed, 9 Aug 2006 12:29:57 -0700 Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 09 16:08:14 2006 Date: Wed, 9 Aug 2006 13:05:48 -0700 (PDT) From: Courtney Nelson Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document. One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this. Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 09 16:28:47 2006 Subject: RE: [sqr-users] Joining 2 data sources (local results) Date: Wed, 9 Aug 2006 15:26:35 -0500 From: "Knapp, Richard" Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document.=20=20 =20=20=20 One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) =20=20=20 Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this.=20=20 =20=20=20 Any info would be great. =20=20=20 Thanks for your reply! =20=20=20 CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com]=20 Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user.=20 Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results?=20 I have asked around and no one can tell me that it can be done. Can this be done?=20 If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=09 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 10 16:50:53 2006 Date: Thu, 10 Aug 2006 13:48:26 -0700 (PDT) From: Courtney Nelson Subject: RE: [sqr-users] Joining 2 data sources (local results) Richard - thanks for your reply. I do have ODBC version of SQR - right now I simply need a sample of what the connect code would look like. I have tried several ones but I am not having any luck. Thanks again Courtney "Knapp, Richard" wrote: Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document. One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this. Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 10 17:14:14 2006 Subject: RE: [sqr-users] Joining 2 data sources (local results) Date: Thu, 10 Aug 2006 16:11:56 -0500 From: "Knapp, Richard" Hi Courtney, I think whatever method works, you will have to store the data from one db in a data structure then combine/merge it with the other db's data. The only SQR command that approaches what you want to do is the connect command. I believe I have used it this way: 1. start your SQR logging into the db that makes the most sense as the first db. 2. get the data you need into a file or an array. 3. use the connect command to log into the other db. The connect command wants to assume that you are logging into the same db as a different user but you can fool it if the remote db supports the database name as part of the username/password sequence. In the oracle world that would look like: connect 'user/password@remote_db'. If this won't work, get the data you need from the first db into a flat file with one program then call another to connect to your second db, read that flat file and process accordingly. You may have to chain several programs and flat files. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Thursday, August 10, 2006 3:48 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.; Steven.Alexander@sanjoseca.gov Subject: RE: [sqr-users] Joining 2 data sources (local results) Richard - thanks for your reply.=20=20 =20=20=20 I do have ODBC version of SQR - right now I simply need a sample of what the connect code would look like.=20=20 =20=20=20 I have tried several ones but I am not having any luck. =20=20=20 Thanks again Courtney "Knapp, Richard" wrote: =20=20 Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document.=20 One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this.=20 Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com]=20 Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user.=20 Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results?=20 I have asked around and no one can tell me that it can be done. Can this be done?=20 If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09 --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 11 13:45:16 2006 Date: Fri, 11 Aug 2006 13:42:36 -0400 From: "Mingazov, Maya" Subject: [sqr-users] .pdf files from an sqr Hello, Can anybody tell me how .pdf files created in SQR? Is it something SQR supports and no code needed or I have to run a program to create .pdf file? Right now if I run SQR on my local machine I see .pdf files in same directory where all other outputs created. But when users run SQR they do not get any .pdf files. I search the SQR Program that created .pdf file and do not see any coding for that. Any suggestions or example of code if needed will be helpful. Thank you, Maya=20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 13:51:24 2006 Date: Fri, 11 Aug 2006 13:49:03 -0400 From: "Larry Roux" Subject: Re: [sqr-users] .pdf files from an sqr sqr supports this by default (it calls another program to create the pdf files) You just need to tell it to produce the PDF output by specifying that output type (a -PRINTER:PD flag in the command line) Larry Roux Information Systems Syracuse University lroux@syr.edu >>> MMingazov@newsamerica.com 8/11/2006 1:42 PM >>> Hello, Can anybody tell me how .pdf files created in SQR? Is it something SQR supports and no code needed or I have to run a program to create .pdf file? Right now if I run SQR on my local machine I see .pdf files in same directory where all other outputs created. But when users run SQR they do not get any .pdf files. I search the SQR Program that created .pdf file and do not see any coding for that. Any suggestions or example of code if needed will be helpful. Thank you, Maya This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 11 14:05:55 2006 Subject: RE: [sqr-users] .pdf files from an sqr Date: Fri, 11 Aug 2006 14:03:58 -0400 From: "Wes Williams" Search the messages; I know I have posted examples and so have others. 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 Mingazov, Maya Sent: Friday, August 11, 2006 1:43 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] .pdf files from an sqr Hello, Can anybody tell me how .pdf files created in SQR? Is it something SQR supports and no code needed or I have to run a program to create .pdf file? Right now if I run SQR on my local machine I see .pdf files in same directory where all other outputs created. But when users run SQR they do not get any .pdf files. I search the SQR Program that created .pdf file and do not see any coding for that. Any suggestions or example of code if needed will be helpful. Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 11 14:19:14 2006 Date: Fri, 11 Aug 2006 14:17:22 -0400 From: "Moss, Mike " Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the navigation through the web is alot different than before. Is there query or report that can be used to specify the portal navigation path for a given panelgroup name? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 14:29:47 2006 From: "Krist Dewilde" Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 20:35:25 +0200 Hi, You can retrieve this in PeopleTools > Portal >... There is a component in where you can give your component name and it generates an overview of the navigation path(s). Regards, Krist Dewilde -----Original Message----- From: sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org [mailto:sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org] On Behalf Of Moss, Mike Sent: vrijdag 11 augustus 2006 20:17 To: sqr-users@sqrug.org Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the navigation through the web is alot different than before. Is there query or report that can be used to specify the portal navigation path for a given panelgroup name? ==================== This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 14:47:23 2006 Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 14:45:05 -0400 From: "Moss, Mike " Yeah, I saw that and used it to help work up the sql I have now, but I'm looking for the whole list. -----Original Message----- From: sqr-users-bounces+mmoss=3Dgeico.com@sqrug.org [mailto:sqr-users-bounces+mmoss=3Dgeico.com@sqrug.org] On Behalf Of Krist Dewilde Sent: Friday, August 11, 2006 2:35 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Hi, You can retrieve this in PeopleTools > Portal >... There is a component in where you can give your component name and it generates an overview of the navigation path(s). Regards, Krist Dewilde -----Original Message----- From: sqr-users-bounces+krist.dewilde=3Dskynet.be@sqrug.org [mailto:sqr-users-bounces+krist.dewilde=3Dskynet.be@sqrug.org] On Behalf Of Moss, Mike=20 Sent: vrijdag 11 augustus 2006 20:17 To: sqr-users@sqrug.org Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the navigation through the web is alot different than before. Is there query or report that can be used to specify the portal navigation path for a given panelgroup name? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 15:01:47 2006 From: "Jeffrey Newton" Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 14:59:16 -0400 Mike: There are some SQRs on Customer Connection - they put them out for the change from 8.0 SP1 to 8.9, but they may provide what you need. You might not expect where to find them because they are under the Campus Solutions documentation but they include the whole Campus Solutions / HCM system. To find them on customer connection, go to: Support, Documentation, Documentation Updates, Enterprise, Campus Solutions, All in Selected Product Line, Navigation Menu Mapping for Campus Solutions 8.9. >From: "Moss, Mike " >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] Question about upgrading from 8.3 to 8.9 >Date: Fri, 11 Aug 2006 14:45:05 -0400 > >Yeah, I saw that and used it to help work up the sql I have now, but I'm >looking for the whole list. > >-----Original Message----- >From: sqr-users-bounces+mmoss=geico.com@sqrug.org >[mailto:sqr-users-bounces+mmoss=geico.com@sqrug.org] On Behalf Of Krist >Dewilde >Sent: Friday, August 11, 2006 2:35 PM >To: 'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.' >Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 > >Hi, > >You can retrieve this in PeopleTools > Portal >... There is a component >in where you can give your component name and it generates an overview >of the navigation path(s). > >Regards, > >Krist Dewilde > >-----Original Message----- >From: sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org >[mailto:sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org] On Behalf >Of Moss, Mike >Sent: vrijdag 11 augustus 2006 20:17 >To: sqr-users@sqrug.org >Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 > >We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the >navigation through the web is alot different than before. Is there >query or report that can be used to specify the portal navigation path >for a given panelgroup name? >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 16:32:56 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 13:30:23 -0700 You could also check out the PSPRSMDEFN table. It contains the tree structure of components and folders. An important field is PORTAL_REFTYPE. If it is "C", it is a component. If it is "F", it is a folder. You may wish to restrict PORTAL_NAME to "EMPLOYEE". PORTAL_OBJNAME is the name of the object, and PORTAL_PRNTOBJNAME is the parent's object name. Objects at the ROOT level have PORTAL_PRNTOBJNAME = "PORTAL_ROOT_OBJECT" -----Original Message----- From: Jeffrey Newton [mailto:jeffrey_d_newton@msn.com] Sent: Friday, August 11, 2006 11:59 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Mike: There are some SQRs on Customer Connection - they put them out for the change from 8.0 SP1 to 8.9, but they may provide what you need. You might not expect where to find them because they are under the Campus Solutions documentation but they include the whole Campus Solutions / HCM system. To find them on customer connection, go to: Support, Documentation, Documentation Updates, Enterprise, Campus Solutions, All in Selected Product Line, Navigation Menu Mapping for Campus Solutions 8.9. >From: "Moss, Mike " >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] Question about upgrading from 8.3 to 8.9 >Date: Fri, 11 Aug 2006 14:45:05 -0400 > >Yeah, I saw that and used it to help work up the sql I have now, but I'm >looking for the whole list. > >-----Original Message----- >From: sqr-users-bounces+mmoss=geico.com@sqrug.org >[mailto:sqr-users-bounces+mmoss=geico.com@sqrug.org] On Behalf Of Krist >Dewilde >Sent: Friday, August 11, 2006 2:35 PM >To: 'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.' >Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 > >Hi, > >You can retrieve this in PeopleTools > Portal >... There is a component >in where you can give your component name and it generates an overview >of the navigation path(s). > >Regards, > >Krist Dewilde > >-----Original Message----- >From: sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org >[mailto:sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org] On Behalf >Of Moss, Mike >Sent: vrijdag 11 augustus 2006 20:17 >To: sqr-users@sqrug.org >Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 > >We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the >navigation through the web is alot different than before. Is there >query or report that can be used to specify the portal navigation path >for a given panelgroup name? >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 12 02:50:37 2006 Date: Sat, 12 Aug 2006 12:17:50 +0530 From: "Ganesh, Muralidhar \(IE10\)" Subject: [sqr-users] SQR for sending email that contains Hyperlink to web page. Hi All, =20 I need to write a SQR which generates the email notification. Body of the email should contain hyper link to web page. Similar to www.google.com this in the email. =20 =20 =20 Regards, Ganesh A.M =20 =20 =20 =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 08:56:03 2006 Date: Sun, 13 Aug 2006 18:23:16 +0530 From: "Ganesh, Muralidhar \(IE10\)" Subject: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returned fetching row from database. Hi all. =20 An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. =20 I am getting following error in the mid of the execution (not all the rows are fetched). =20 ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. =20 =20 I am not sure whether it is due to the refresh and Ptools upgrade. =20 Kindly help me in resolving this issue. =20 =20 Regards, Ganesh A.M =20 =20 =20 =20 =20 =20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 09:47:15 2006 From: "the dragon" Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Date: Sun, 13 Aug 2006 08:44:40 -0500 Check you *Data* first. 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 all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ 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 13 11:56:42 2006 Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Date: Sun, 13 Aug 2006 21:23:47 +0530 From: "Ganesh, Muralidhar \(IE10\)" Hi Clark, What exactly should I check in the data? Table doesn't contain any column with long data type.=20 The same query works fine in the SQL* PLUS and toad but only in the SQR it fails. SQR don't give error while fetching the subset of the rows in the table with some where conditions but, while selecting the whole data it gives an error.=20 Will the values for the following does matter in the PSSQR.ini [Processing-Limits]=20 ; DYNAMICARGS=20=20=20=20=20=20=20 DYNAMICARGS=20=20=20=20=20=20=20=20 EXPRESSIONSPACE=20=20=20=20 FORWARDREFS=20=20=20=20=20=20=20=20 NUMVARIABLES=20=20=20=20=20=20=20 ONBREAKS=20=20=20=20=20=20=20=20=20=20=20 POSITIONS=20=20=20=20=20=20=20=20=20=20 PROGLINEPARS=20=20=20=20=20=20=20 PROGLINES=20=20=20=20=20=20=20=20=20=20 QUERIES=20=20=20=20=20=20=20=20=20=20=20=20 QUERYARGS=20=20=20=20=20=20=20=20=20=20 SQLSIZE=20=20=20=20=20=20=20=20=20=20=20=20 STRINGSPACE=20=20=20=20=20=20=20=20 SUBVARS=20=20=20=20=20=20=20=20=20=20=20=20 VARIABLES=20=20=20=20=20=20=20=20=20=20 WHENS=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ; BREAKS=20=20=20=20=20=20=20=20=20=20=20=20 ; LONGSPACE=20=20=20=20=20=20=20=20=20 Regards, Ganesh A.M ----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Sunday, August 13, 2006 7:15 PM To: sqr-users@sqrug.org Cc: Ganesh, Muralidhar (IE10) Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Check you *Data* first. 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---- Hi all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ 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 From sqr-users-bounces@sqrug.org Sun Aug 13 13:19:55 2006 Date: Sun, 13 Aug 2006 13:17:10 -0400 From: "Larry Roux" Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Try this: begin-select {field list} show {keys} from {tablename} end-select it should create a cursor and iterate through the table until it hits the row that is broken. The last display should eb the row before that. You will probably want to do an order-by to ensure you know what row is giving you the issue. Then look at the data in the row to see if there is something odd there (control characters or something) Larry Roux Information Systems Syracuse University lroux@syr.edu >>> Ganesh.Muralidhar@honeywell.com 8/13/2006 11:53:47 AM >>> Hi Clark, What exactly should I check in the data? Table doesn't contain any column with long data type. The same query works fine in the SQL* PLUS and toad but only in the SQR it fails. SQR don't give error while fetching the subset of the rows in the table with some where conditions but, while selecting the whole data it gives an error. Will the values for the following does matter in the PSSQR.ini [Processing-Limits] ; DYNAMICARGS DYNAMICARGS EXPRESSIONSPACE FORWARDREFS NUMVARIABLES ONBREAKS POSITIONS PROGLINEPARS PROGLINES QUERIES QUERYARGS SQLSIZE STRINGSPACE SUBVARS VARIABLES WHENS ; BREAKS ; LONGSPACE Regards, Ganesh A.M ----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Sunday, August 13, 2006 7:15 PM To: sqr-users@sqrug.org Cc: Ganesh, Muralidhar (IE10) Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Check you *Data* first. 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 all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ 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 Sun Aug 13 21:46:49 2006 Date: Sun, 13 Aug 2006 20:44:09 -0500 From: "Bob Helm" Subject: [sqr-users] How can I alter bar-code width? While I can adjust the height of the bar-code, I can't find a way to shrink= the width of the barcode. I've got a report and I change font-size off and on, using alter-printer, b= ut this doesn't seem to affect the bar-code at all. Is it possible to adjust the width of a bar-code? Thanks for any help! Bob Bob Helm Medication Management Division bob.helm@mediware.com 913-307-1045 This message (including any attachments) constitutes a confidential communi= cation and/or contains confidential information intended for a specific ind= ividual and purpose, and is protected by law. If you are not the intended= recipient, please notify the sender by return email and delete this messag= e and any attachments. Any disclosure, copying, or distribution of this me= ssage, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 21:58:37 2006 From: "the dragon" Subject: RE: [sqr-users] How can I alter bar-code width? Date: Sun, 13 Aug 2006 20:55:56 -0500 According to my sqr ref manual, you can't... But it is version 4. 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---- While I can adjust the height of the bar-code, I can't find a way to shrink the width of the barcode. I've got a report and I change font-size off and on, using alter-printer, but this doesn't seem to affect the bar-code at all. Is it possible to adjust the width of a bar-code? Thanks for any help! Bob Bob Helm Medication Management Division bob.helm@mediware.com 913-307-1045 This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. _______________________________________________ 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 14 12:58:12 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Badreturnedfetching row from database. Date: Mon, 14 Aug 2006 09:54:38 -0700 I had this problem a few weeks ago. In my case, there were extended ASCII characters (between 128 and 255) in a character field. -----Original Message----- From: Larry Roux [mailto:LRoux@syr.edu] Sent: Sunday, August 13, 2006 10:17 AM To: Ganesh.Muralidhar@honeywell.com; the dragon; sqr-users@sqrug.org Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Badreturnedfetching row from database. Try this: begin-select {field list} show {keys} from {tablename} end-select it should create a cursor and iterate through the table until it hits the row that is broken. The last display should eb the row before that. You will probably want to do an order-by to ensure you know what row is giving you the issue. Then look at the data in the row to see if there is something odd there (control characters or something) Larry Roux Information Systems Syracuse University lroux@syr.edu >>> Ganesh.Muralidhar@honeywell.com 8/13/2006 11:53:47 AM >>> Hi Clark, What exactly should I check in the data? Table doesn't contain any column with long data type. The same query works fine in the SQL* PLUS and toad but only in the SQR it fails. SQR don't give error while fetching the subset of the rows in the table with some where conditions but, while selecting the whole data it gives an error. Will the values for the following does matter in the PSSQR.ini [Processing-Limits] ; DYNAMICARGS DYNAMICARGS EXPRESSIONSPACE FORWARDREFS NUMVARIABLES ONBREAKS POSITIONS PROGLINEPARS PROGLINES QUERIES QUERYARGS SQLSIZE STRINGSPACE SUBVARS VARIABLES WHENS ; BREAKS ; LONGSPACE Regards, Ganesh A.M ----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Sunday, August 13, 2006 7:15 PM To: sqr-users@sqrug.org Cc: Ganesh, Muralidhar (IE10) Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Check you *Data* first. 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 all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 14 13:09:21 2006 Date: Mon, 14 Aug 2006 10:06:10 -0700 (PDT) From: Courtney Nelson Subject: RE: [sqr-users] Joining 2 data sources (local results) You helped a lot. I got it working in Teradata. Thanks so much! "Knapp, Richard" wrote: Hi Courtney, I think whatever method works, you will have to store the data from one db in a data structure then combine/merge it with the other db's data. The only SQR command that approaches what you want to do is the connect command. I believe I have used it this way: 1. start your SQR logging into the db that makes the most sense as the first db. 2. get the data you need into a file or an array. 3. use the connect command to log into the other db. The connect command wants to assume that you are logging into the same db as a different user but you can fool it if the remote db supports the database name as part of the username/password sequence. In the oracle world that would look like: connect 'user/password@remote_db'. If this won't work, get the data you need from the first db into a flat file with one program then call another to connect to your second db, read that flat file and process accordingly. You may have to chain several programs and flat files. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Thursday, August 10, 2006 3:48 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.; Steven.Alexander@sanjoseca.gov Subject: RE: [sqr-users] Joining 2 data sources (local results) Richard - thanks for your reply. I do have ODBC version of SQR - right now I simply need a sample of what the connect code would look like. I have tried several ones but I am not having any luck. Thanks again Courtney "Knapp, Richard" wrote: Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document. One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this. Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 16 09:03:10 2006 Date: Wed, 16 Aug 2006 09:00:21 -0400 From: "Bahney, Barbara J." Subject: [sqr-users] Using OCR B font in an SQR We are a PeopleSoft customer who uses an SQR program to print our paychecks. There is a project currently underway to change the 'Pay to the Order Of' Name and Address, on the paycheck, to print with an OCR B font. Our paychecks will be printing on a Xerox Docuprint N32 printer. If anyone is familiar with using OCR fonts, in an SQR program, could they please let me know what steps I need to take to implement this?=20 Any information you could pass my way would be greatly appreciated. Thanks! Barbara J. Bahney University of Pittsburgh Medical Center Information Services Division Senior PeopleSoft Analyst (HRMS) Forbes Tower - Room 3025-9 Email: rusnakbj@msx.upmc.edu Phone: 412-647-3081 Fax: 412-647-4499 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 08:56:35 2006 From: manu.a@tcs.com Date: Fri, 18 Aug 2006 18:23:00 +0530 Subject: [sqr-users] Problem in accesing DB oracle 9i with SQR 6.0 Hi , This is regarding problem accessing the data base problem while running SQR Reports . I am using SQR version 6.0 with oracle8i user . But when i am using SQR 6.0 with oracle9i user , its giving me error . Oracle error which says 'Cannot logon to database' . I have query whether SQR 6.0 is compatible with oracle9i user or not . Thanks in advance . Regards, Manu Agarwal Tata Consultancy Services Limited Mailto: manu.a@tcs.com Website: http://www.tcs.com =====-----=====-----===== 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 Fri Aug 18 09:30:34 2006 From: "the dragon" Subject: RE: [sqr-users] Problem in accesing DB oracle 9i with SQR 6.0 Date: Fri, 18 Aug 2006 08:27:50 -0500 YES, as long as yu have the right versions. 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 regarding problem accessing the data base problem while running SQR Reports . I am using SQR version 6.0 with oracle8i user . But when i am using SQR 6.0 with oracle9i user , its giving me error . Oracle error which says 'Cannot logon to database' . I have query whether SQR 6.0 is compatible with oracle9i user or not . Thanks in advance . Regards, Manu Agarwal Tata Consultancy Services Limited Mailto: manu.a@tcs.com Website: http://www.tcs.com =====-----=====-----===== 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 _________________________________________________________________ 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 Aug 18 10:00:05 2006 Date: Fri, 18 Aug 2006 08:57:49 -0500 From: "Knapp, Richard" Subject: [sqr-users] RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR Do you have the ODBC version of SQR? =20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 ________________________________ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com]=20 Sent: Friday, August 18, 2006 2:04 AM To: Knapp, Richard; Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Hi Richard / Steven / All,=20 I got your mail id from 'SQRUG' forum. Could you please provide a solution to the below mentioned problem? =20 I am using SQR and Hyperion 8.3 in UNIX environment. For my reporting purpose, i need to pull data from TWO separate Sybase Databases (say, DEV1 and DEV2). So, I thought I need to use ODBC connection. I tried this using the -DB keyword after BEGIN-SELECT as follows:=20 Let $StrDev1 =3D 'DSN=3D20.104.13.26,6020;UID=3Duid1;PWD=3Dpwd1' Begin-Select -DB$StrDev1 PDPD_ID &PDPD_ID Next-Listing Need =3D 12 SkipLines =3D 10 Print &PDPD_ID (+10,50) Print $StrDev1 (,150) Let Product.PDPD_ID(#i) =3D &PDPD_ID Let #i =3D #i + 1 =46rom fctenv01.dbo.CMC_PDPD_PRODUCT=20 Where=20 PDPD_ID LIKE 'ABRI%' End-Select But, while running. It's throwing error as:=20 "(SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [-XP] [LOOPS=3Dnnn] [ON-ERROR=3Dprocedure [(arg1[,argi]...)]] Begin-Select -DB$StrDev1"=20 I found in the SQR manual that the -DB keyword can be used for specifying Connection string. But here, it's not recognizing it. Do we need to specify ODBC connection details somewhere else? I am not sure of what the error is?=20=20 It would be great if you could help me to come out of this!!! Note: Is there any other method other than ODBC to implement the functionality of pulling data and comparing it from TWO databases (both are Sybase). What my logic was, to pull the required data (Single field) from db1, put it in an array, connect to 2nd db, and compare the array data with the data fetched from 2nd db using a query. =20 Expecting your reply soon. Thanks in advance, Regards,=20 Ravishankar B, Cognizant, INDIA =20 =20 =20 =20 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly=20 prohibited and may be unlawful. Visit us at http://www.cognizant.com =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 11:43:08 2006 Date: Fri, 18 Aug 2006 10:40:50 -0500 From: "Knapp, Richard" Subject: [sqr-users] RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR Find out what the correct syntax for a Sybase connect string is and use the connect command. =20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 ________________________________ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com]=20 Sent: Friday, August 18, 2006 9:30 AM To: Knapp, Richard; Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Hi Richard, =20 This is the version info of our SQR: =20 SQR/8.3.1/IBM RS6000/AIX 5.1/Sybase SDK 12.0/Jan 27 2005 =20 I don't think it is the ODBC Version. =20 Can't we implement the functionality without ODBC version? =20 =20 =20 Thanks, Regards,=20 Ravishankar B=20=20 =20 "The most successful man in life is the man who has the best information" =20 ________________________________ From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, August 18, 2006 7:28 PM To: B, Ravishankar (Cognizant); Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Do you have the ODBC version of SQR? =20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 ________________________________ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com]=20 Sent: Friday, August 18, 2006 2:04 AM To: Knapp, Richard; Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Hi Richard / Steven / All,=20 I got your mail id from 'SQRUG' forum. Could you please provide a solution to the below mentioned problem? =20 I am using SQR and Hyperion 8.3 in UNIX environment. For my reporting purpose, i need to pull data from TWO separate Sybase Databases (say, DEV1 and DEV2). So, I thought I need to use ODBC connection. I tried this using the -DB keyword after BEGIN-SELECT as follows:=20 Let $StrDev1 =3D 'DSN=3D20.104.13.26,6020;UID=3Duid1;PWD=3Dpwd1' Begin-Select -DB$StrDev1 PDPD_ID &PDPD_ID Next-Listing Need =3D 12 SkipLines =3D 10 Print &PDPD_ID (+10,50) Print $StrDev1 (,150) Let Product.PDPD_ID(#i) =3D &PDPD_ID Let #i =3D #i + 1 =46rom fctenv01.dbo.CMC_PDPD_PRODUCT=20 Where=20 PDPD_ID LIKE 'ABRI%' End-Select But, while running. It's throwing error as:=20 "(SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [-XP] [LOOPS=3Dnnn] [ON-ERROR=3Dprocedure [(arg1[,argi]...)]] Begin-Select -DB$StrDev1"=20 I found in the SQR manual that the -DB keyword can be used for specifying Connection string. But here, it's not recognizing it. Do we need to specify ODBC connection details somewhere else? I am not sure of what the error is?=20=20 It would be great if you could help me to come out of this!!! Note: Is there any other method other than ODBC to implement the functionality of pulling data and comparing it from TWO databases (both are Sybase). What my logic was, to pull the required data (Single field) from db1, put it in an array, connect to 2nd db, and compare the array data with the data fetched from 2nd db using a query. =20 Expecting your reply soon. Thanks in advance, Regards,=20 Ravishankar B, Cognizant, INDIA =20 =20 =20 =20 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly=20 prohibited and may be unlawful. Visit us at http://www.cognizant.com =09 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly=20 prohibited and may be unlawful. Visit us at http://www.cognizant.com =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 12:29:15 2006 From: "Alexander, Steven" Date: Fri, 18 Aug 2006 09:26:33 -0700 Subject: [sqr-users] RE: Help Needed - SQR - Switch database inside SQR - Any Comments will be greatly appreciated Ravishankar, please don't send e-mail to me directly. I prefer that you join the SQR users group list and send your questions there. I'll see them there and try to help, and you'll have hundreds of other programmers who could also help you. As for your question - unless you have the ODBC version of SQR, there is no way for a single SQR program to switch from one database instance to another or from one database server to another. I've faced the same task as you have and I've found only two solutions: 1. Write a program to read the first database and write it to a disk file. Write another program to read the disk file and compare it to the second database. 2. Have the Database Administrator (DBA) create a link within the databases so that you can log into the first database and have access to the tables in the second database. Ask the DBA to show you the way to refer to tables in the second database. Some DBAs won't want to do this - and there are often good reasons not to. If so, you're stuck with option 1. _____ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com] Sent: Friday, August 18, 2006 9:15 AM To: sqr-users@sqrug.org; jiju vengal; Steven.Alexander@sanjoseca.gov; DWhite@drc.com; rayo@ontko.com Subject: Help Needed - SQR - Switch database inside SQR - Any Comments will be greatly appreciated Hi all, I've been stuck up with an issue for the last 2-3 days. Any comments on how to proceed will be greatly appreciated. The issue is: I need to switch database server inside the SQR report. This is the version info of SQR we using: SQR/8.3.1/IBM RS6000/AIX 5.1/Sybase SDK 12.0/Jan 27 2005 Functionality: My goal is to fetch data from a table inside one server (dev1), compare it with another table which resides in another server (dev2) and list those matching data in the report. Both servers are SYBASE. We run our SQR report in UNIX environment. I ran the report from one server (dev1) and pulled data into an array. Now I want to switch the server to dev2 and compare the data inside the array. Here only, I got stuck up. I've tried the following stuffs to come out of the situation: 1) used -DB keyword with begin-select to switch the db. It returned error message "Bad param found on 'BEGIN-SELECT' line; ..." 2) used Connect command like: Connect 'usrid/passwd@dev2' It also returned error message "CONNECT failed. Perhaps username/password incorrect." 3) changed environment variables in UNIX from SQR to switch the server: Call system using 'export Server=dev2' #statuscode Call system using 'export Server=user' #statuscode Call system using 'export Server=pwd' #statuscode It returned no error. But, the variables are not changing as specified. It still holds its old value while echoing the value after export. 4) called a shellscript from SQR for exporting the values. It changed the values to dev2 while echoed from the shell script. But, when coming back to SQR and echo, still holds the old value. 5) still to try the db link: CREATE PUBLIC DATABASE LINK MY_LINK CONNECT TO userid IDENTIFIED BY passwd USING 'T: dev1:rptenv01' I think this code need to be run from Sybase - is it? Will it need to be performed by DBA? Anyway, I don't know whether this will work or not? Can anybody suggest any method for implementing the functionality? Can somebody help me to get out of this hell? Any comments on the same will do a world of good. Thanks in advance, Regards, Ravishankar B * Landline: (91)(44) 42284499 * Extn: 4499 * VNET: 444620 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 14:26:36 2006 Date: Fri, 18 Aug 2006 23:53:58 +0530 From: "B, Ravishankar \(Cognizant\)" Subject: [sqr-users] (no subject) Do anybody know about the CONNECT Command Syntax in SQR for Sybase which sw= itches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi =0D This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 19 02:04:13 2006 Date: Sat, 19 Aug 2006 11:31:21 +0530 From: "B, Ravishankar \(Cognizant\)" Subject: [sqr-users] Invalid Count- Error Message in SQR (Error No: SQR 6) Hi all, =0D I didn't find answer for my previous problem still. Now I got a new one. =0D I am getting the following error message while trying to run an SQR report from my login id(UNIX Environment). =0D (SQR 6) Corrupt message file: Invalid count (Got 1118, Should be 1055) =0D The $SQRDIR variable points to .../SQR/syb/bin directory. =0D But anyway, with the admin's id, report is working fine without any error. All the other users except admin are reporting the same issue as mine. =0D Heard that we need to reload the .../SQR/syb/bin/sqrerr.dat file. Where can we get the new version from? =0D Do any body know some other method to solve this? =0D Thank You, =0D =0D Regards,=0D Ravishankar B =0D =0D "The most successful man in life is the man who has the best information" =0D ________________________________ From: B, Ravishankar (Cognizant)=0D Sent: Friday, August 18, 2006 11:54 PM To: sqr-users@sqrug.org Subject:=0D =0D Do anybody know about the CONNECT Command Syntax in SQR for Sybase which switches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi =0D This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 21 17:54:00 2006 Date: Mon, 21 Aug 2006 17:51:13 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Running SQR thru Process scheduler as well as command prompt Hi All I got to run a sqr thru process scheduler as well as thru command prompt s= o that sqr executes accordingly. I tried checking for $prc_process_instance= and checking it for null to see whether it has been scheduled via process = scheduler.If its the case, then Iam selecting some flds from run control ta= ble else iam giving set of input statements. When I run the sqr thru cooman= d prompt, it errors out saying table does not exist. Is there any other way= apart from $prc_process_instance to check whether sqr is executed thru p= rocess scheduler or cmd prompt. Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 21 20:49:32 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Date: Mon, 21 Aug 2006 17:46:55 -0700 I think something else is happening, because the run control table does exist whether you run from the process scheduler or the command line. Which table doesn't exist? Are you sure you have the right table name? And this may just be a typo in your e-mail, but the variable name is $prcs_process_instance - you're missing the first "s". $prcs_process_instance, $prcs_oprid, and $database_name come from items on the SQR command line that the process scheduler uses to run your program. The variables are set in Peoplesoft-written procedures that you can find by following the stdapi-init call through the sqc files. They will all probably be null if you run it with your own command line. -----Original Message----- From: Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) [mailto:ramakrishnan.vaidyanathan@ge.com] Sent: Monday, August 21, 2006 2:51 PM To: sqr-users@sqrug.org Subject: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Hi All I got to run a sqr thru process scheduler as well as thru command prompt so that sqr executes accordingly. I tried checking for $prc_process_instance and checking it for null to see whether it has been scheduled via process scheduler.If its the case, then Iam selecting some flds from run control table else iam giving set of input statements. When I run the sqr thru coomand prompt, it errors out saying table does not exist. Is there any other way apart from $prc_process_instance to check whether sqr is executed thru process scheduler or cmd prompt. Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 21 21:18:51 2006 From: "the dragon" Subject: RE: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Date: Mon, 21 Aug 2006 20:16:10 -0500 That's because you have to excute it from the command prompt as the table owner (hint sysadm) or have grants and synonyms created for the user you are executing it as. 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 All I got to run a sqr thru process scheduler as well as thru command prompt so that sqr executes accordingly. I tried checking for $prc_process_instance and checking it for null to see whether it has been scheduled via process scheduler.If its the case, then Iam selecting some flds from run control table else iam giving set of input statements. When I run the sqr thru coomand prompt, it errors out saying table does not exist. Is there any other way apart from $prc_process_instance to check whether sqr is executed thru process scheduler or cmd prompt. Thanks Ram _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://www.windowsonecare.com/trial.aspx?sc_cid=msn_hotmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 22 06:31:48 2006 Date: Tue, 22 Aug 2006 06:28:01 -0400 From: "tgaudioso" Subject: Re: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Try putting "sysadm." in front of your table name i.e sysadm.ps_job Tony ----- Original Message ----- From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" To: Sent: Monday, August 21, 2006 5:51 PM Subject: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Hi All I got to run a sqr thru process scheduler as well as thru command prompt so that sqr executes accordingly. I tried checking for $prc_process_instance and checking it for null to see whether it has been scheduled via process scheduler.If its the case, then Iam selecting some flds from run control table else iam giving set of input statements. When I run the sqr thru coomand prompt, it errors out saying table does not exist. Is there any other way apart from $prc_process_instance to check whether sqr is executed thru process scheduler or cmd prompt. Thanks Ram _______________________________________________ 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 Free Edition. Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 8/18/2006 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 22 15:27:17 2006 From: JOHN_HARRIS@qvc.com Date: Tue, 22 Aug 2006 15:24:25 -0400 Subject: [sqr-users] WITH UR (uncommitted read) This is a multi-part message in MIME format... --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2 Content-type: text/plain; charset=US-ASCII Has anyone ever needed to have the WITH UR statement in their SQR. It seems that SQR is locking tables during execution. I am using SQR for ODBC and going against DB2. Thank you. Regards, John (Embedded image moved to John Harris file: pic13985.jpg) Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2-- From sqr-users-bounces@sqrug.org Tue Aug 22 16:19:23 2006 Date: Tue, 22 Aug 2006 13:16:49 -0700 (PDT) From: kota vijayalakshmi Subject: Re: [sqr-users] WITH UR (uncommitted read) We were using "WITH UR" when running the regular SQL queries against DB2 on the back end, not in the SQRs. If I am correct tables in DB2 will get locked by users if their session is open and they are not using WITH UR. The DBA can check the user ID, by whom the table is locked and then you have to notify that user to log-out the session. Hope that helps. Regards, VJ JOHN_HARRIS@qvc.com wrote: Has anyone ever needed to have the WITH UR statement in their SQR. It seems that SQR is locking tables during execution. I am using SQR for ODBC and going against DB2. Thank you. Regards, John (Embedded image moved to John Harris file: pic13985.jpg) Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 22 17:00:41 2006 Subject: RE: [sqr-users] WITH UR (uncommitted read) Date: Tue, 22 Aug 2006 14:57:49 -0600 From: "Munger, Lance" We use it in absolutely every SQR we build, fixed a lot of issues for us, and yes we are in a DB2 environment using ODBC. I don't know if this would come in handy for you, but another nifty thing we discovered was putting the below statement right before the begin select, helps speed things up a bit. BEGIN-SQL set current query optimization 9; END-SQL=20 Lance D. Munger =20 Report Development Carlson Wagonlit Travel * formerly TQ3Navigant Direct Line: +1 (303) 925-3120 Email: lmunger@carlsonwagonlit.com =20 -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of JOHN_HARRIS@qvc.com Sent: Tuesday, August 22, 2006 1:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] WITH UR (uncommitted read) Has anyone ever needed to have the WITH UR statement in their SQR. It seems that SQR is locking tables during execution. I am using SQR for ODBC and going against DB2. =20 =20 Thank you. =20 Regards, =20 John =20 =20 =20 (Embedded image moved to John Harris file: pic13985.jpg) Programmer/Analyst Application Development - Internal =20 QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 23 22:47:24 2006 Date: Wed, 23 Aug 2006 19:44:49 -0700 (PDT) From: Aleksandr Slobodyanik Subject: Re: [sqr-users] (no subject) I dobt you can do it if DB is on the other server, because you have to specify server name in SQR.INI. I don't remember correctly syntax, but in .INI should be line for SYBASE something like DSQUERY=server_name "B, Ravishankar (Cognizant)" wrote: Do anybody know about the CONNECT Command Syntax in SQR for Sybase which switches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 23 22:58:33 2006 Date: Wed, 23 Aug 2006 19:56:01 -0700 (PDT) From: Aleksandr Slobodyanik Subject: Re: [sqr-users] Invalid Count- Error Message in SQR (Error No: SQR 6) 1. Try to trim columns in SELECT statement. 2. Increase sizes in .ini file. Sorry, I don't remember how I fixed the same problem. "B, Ravishankar (Cognizant)" wrote: Hi all, I didn't find answer for my previous problem still. Now I got a new one. I am getting the following error message while trying to run an SQR report from my login id(UNIX Environment). (SQR 6) Corrupt message file: Invalid count (Got 1118, Should be 1055) The $SQRDIR variable points to .../SQR/syb/bin directory. But anyway, with the admin's id, report is working fine without any error. All the other users except admin are reporting the same issue as mine. Heard that we need to reload the .../SQR/syb/bin/sqrerr.dat file. Where can we get the new version from? Do any body know some other method to solve this? Thank You, Regards, Ravishankar B "The most successful man in life is the man who has the best information" ________________________________ From: B, Ravishankar (Cognizant) Sent: Friday, August 18, 2006 11:54 PM To: sqr-users@sqrug.org Subject: Do anybody know about the CONNECT Command Syntax in SQR for Sybase which switches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 24 10:58:03 2006 Date: Thu, 24 Aug 2006 07:55:11 -0700 (PDT) From: prashanth reddy Subject: [sqr-users] Print issue Hello, I'm trying to print multiple values from different tables for each userid. Program gets the data accordingly, but when trying to print, its not in proper format. Current format: OprID Name HR Rolename Dept Grade Empcd Emplid ----- ---- ----------- ---- ----- ----- ------ FS007 John D H Payroll H Data Entry H Reports 107D G728292 Expected format: OprID Name HR Rolename Dept Grade Empcd Emplid ----- ----- -- --------- ---- ----- ------ ------ FS007 John D H Payroll 107D F892389 H Data Entry F839303 H Reports G728292 Data in two tables: table1: roleuser rolename ------- -------- FS007 Payroll FS007 Data Entry FS007 Reports table2: oprid emplid deptid ----- ------ ------ FS007 F892389 FS007 F839303 FS007 G728292 FS007 107D program:!*********************************************************************** begin-procEdure get-oprid-data !*********************************************************************** Let $rowsecclass = ' ' Let $classdefndesc = ' ' begin-select distinct OPR.OPRID &opr.oprid OPR.OPRDEFNDESC &opr.oprdefndesc OPR.ROWSECCLASS CLS.CLASSDEFNDESC move &opr.oprid to $oprid move &opr.rowsecclass to $rowsecclass move &cls.classdefndesc to $classdefndesc let $Company = &COMPANY do get-role-count do check-custom-security if #count > 1 do evaluate-HR-User do get-role-data do evaluate-custom-security end-if FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, PS_JOB JOB !FSCPR001 Begin change WHERE OPR.ROWSECCLASS = CLS.CLASSID AND OPR.OPRID = RU.ROLEUSER AND OPR.OPRID = JOB.EMPLID AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= SYSDATE) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT = JOB.EFFDT) [$COMPANY-SQL1] [$ROLENAME-SQL1] !FSCPR001 End change ORDER BY OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure !*********************************************************************** begin-procedure get-role-data !*********************************************************************** let $rolename = '' let #Idx = 0 begin-select RU.ROLEUSER RU.ROLENAME let $roleuser = &ru.roleuser let $rolename = &ru.rolename do write-data FROM PSROLEUSER RU WHERE RU.ROLEUSER = $oprid AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT LIKE '%Employee%' ORDER BY RU.ROLEUSER end-select end-procedure !*********************************************************************** begin-procedure get-role-count !*********************************************************************** begin-select COUNT(COUNT.ROLENAME) &count move &count to #count FROM PSROLEUSER COUNT WHERE COUNT.ROLEUSER = $oprid AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-HR-User !*********************************************************************** let $HRUser = ' ' let $BusOwner = ' ' begin-select HR.ROLENAME Evaluate &hr.ROLENAME When = 'HR User' move 'H' to $HRUser move 'H' to $HR_output When = 'Business Owner' move 'B' to $BusOwner move 'B' to $BO_Output End-evaluate FROM PSROLEUSER HR WHERE HR.ROLEUSER = $oprid AND HR.ROLENAME IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-custom-security !*********************************************************************** Let $deptid = ' ' Let $grade = ' ' Let $empcd = ' ' Let $emplid = ' ' Let $empType = ' ' Let $location = ' ' begin-select SEC.OPRID SEC.DEPTID &sec.Deptid SEC.GRADE &sec.Grade SEC.FSC_EMPLOYER_CODE &sec.Empcd SEC.EMPLID &sec.Emplid SEC.EMPL_TYPE &sec.EmpType SEC.LOCATION &sec.Location Let $deptid = &sec.Deptid Let $grade = &sec.Grade Let $empcd = &sec.Empcd Let $emplid = &sec.Emplid Let $emptype = &sec.EmpType Let $location = &sec.Location do write-data1 FROM PS_CUSTOM_SEC_TBL SEC WHERE SEC.OPRID = $oprid ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION end-select end-procedure begin-procedure write-data1 print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) end-procedure !*********************************************************************** begin-procedure write-data !*********************************************************************** print $oprid (+1,1,11) on-break print=change skiplines=1 print &opr.oprdefndesc (0,12,30) on-break print=change print $HR_output (0,43,2) print $$BO_output (0,46,2) print $rowsecclass (0,49,8) on-break print=change print $classdefndesc (0,58,31) on-break print=change print $rolename (0,90,30) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) end-procedure __________________________________________________ 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 Thu Aug 24 15:20:58 2006 Subject: RE: [sqr-users] Print issue Date: Thu, 24 Aug 2006 13:18:04 -0600 From: "Munger, Lance" I think the issue is that you make the call to write_data and then you process more data and call write_data1. Try this version. program: !*********************************************************************** begin-procEdure get-oprid-data !*********************************************************************** move '' to $rowsecclass move '' to $classdefndesc begin-select distinct OPR.OPRID &opr.oprid OPR.OPRDEFNDESC &opr.oprdefndesc OPR.ROWSECCLASS CLS.CLASSDEFNDESC move &opr.oprid to $oprid move &opr.rowsecclass to $rowsecclass move &cls.classdefndesc to $classdefndesc let $Company =3D &COMPANY do get-role-count do check-custom-security if #count > 1 do evaluate-HR-User do get-role-data ! do evaluate-custom-security end-if FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, PS_JOB JOB !FSCPR001 Begin change WHERE OPR.ROWSECCLASS =3D CLS.CLASSID AND OPR.OPRID =3D RU.ROLEUSER AND OPR.OPRID =3D JOB.EMPLID AND JOB.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT <=3D SYSDATE) AND JOB.EFFSEQ =3D (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT =3D JOB.EFFDT) [$COMPANY-SQL1] [$ROLENAME-SQL1] !FSCPR001 End change ORDER BY OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure !*********************************************************************** begin-procedure get-role-data !*********************************************************************** move '' to $rolename move 0 to #Idx begin-select RU.ROLEUSER RU.ROLENAME let $roleuser =3D &ru.roleuser let $rolename =3D &ru.rolename do evaluate-custom-security FROM PSROLEUSER RU WHERE RU.ROLEUSER =3D $oprid AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT LIKE '%Employee%' ORDER BY RU.ROLEUSER end-select end-procedure !*********************************************************************** begin-procedure get-role-count !*********************************************************************** begin-select COUNT(COUNT.ROLENAME) &count move &count to #count FROM PSROLEUSER COUNT WHERE COUNT.ROLEUSER =3D $oprid AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-HR-User !*********************************************************************** move '' to $HRUser move '' to $BusOwner =3D ' ' begin-select HR.ROLENAME Evaluate &hr.ROLENAME When =3D 'HR User' move 'H' to $HRUser move 'H' to $HR_output When =3D 'Business Owner' move 'B' to $BusOwner move 'B' to $BO_Output End-evaluate FROM PSROLEUSER HR WHERE HR.ROLEUSER =3D $oprid AND HR.ROLENAME IN ('HR User','Business Owner')=20 end-select=20 end-procedure !*********************************************************************** begin-procedure evaluate-custom-security !*********************************************************************** move '' to $deptid move '' to $grade move '' to $empcd move '' to $emplid move '' to $empType move '' to $location begin-select SEC.OPRID SEC.DEPTID &sec.Deptid SEC.GRADE &sec.Grade SEC.FSC_EMPLOYER_CODE &sec.Empcd SEC.EMPLID &sec.Emplid SEC.EMPL_TYPE &sec.EmpType SEC.LOCATION &sec.Location Let $deptid =3D &sec.Deptid Let $grade =3D &sec.Grade Let $empcd =3D &sec.Empcd Let $emplid =3D &sec.Emplid Let $emptype =3D &sec.EmpType Let $location =3D &sec.Location do write-data1 FROM PS_CUSTOM_SEC_TBL SEC WHERE SEC.OPRID =3D $oprid ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION=20 end-select=20 end-procedure begin-procedure write-data1 print $oprid (+1,1,11) on-break print=3Dchange skiplines=3D1 print &opr.oprdefndesc (0,12,30) on-break print=3Dchange print $HR_output (0,43,2) print $$BO_output (0,46,2) print $rowsecclass (0,49,8) on-break print=3Dchange print $classdefndesc (0,58,31) on-break print=3Dchange print $rolename (0,90,30) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) end-procedure Lance D. Munger =20 Report Development Carlson Wagonlit Travel * formerly TQ3Navigant Direct Line: +1 (303) 925-3120 Email: lmunger@carlsonwagonlit.com =20 -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of prashanth reddy Sent: Thursday, August 24, 2006 8:55 AM To: sqr-users@sqrug.org Subject: [sqr-users] Print issue Hello, I'm trying to print multiple values from different tables for each userid. Program gets the data accordingly, but when trying to print, its not in proper format. Current format: OprID Name HR Rolename Dept Grade Empcd Emplid ----- ---- ----------- ---- ----- ----- ------=20=20 FS007 John D H Payroll H Data Entry H Reports 107D G728292 Expected format: OprID Name HR Rolename Dept Grade Empcd Emplid=20 ----- ----- -- --------- ---- ----- ------ ------ FS007 John D H Payroll 107D F892389 H Data Entry F839303 H Reports G728292 Data in two tables: table1: roleuser rolename ------- --------=20 FS007 Payroll FS007 Data Entry FS007 Reports table2: oprid emplid deptid ----- ------ ------ FS007 F892389 FS007 F839303 FS007 G728292=20 FS007 107D program:!*************************************************************** ******** begin-procEdure get-oprid-data !*********************************************************************** Let $rowsecclass =3D ' ' Let $classdefndesc =3D ' ' begin-select distinct=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 OPR.OPRID &opr.oprid=20=20=20=20=20=20=20=20=20=20=20=20=20 OPR.OPRDEFNDESC &opr.oprdefndesc=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 OPR.ROWSECCLASS CLS.CLASSDEFNDESC=20 move &opr.oprid to $oprid move &opr.rowsecclass to $rowsecclass move &cls.classdefndesc to $classdefndesc let $Company =3D &COMPANY =20=20=20=20 do get-role-count do check-custom-security =20=20=20=20 if #count > 1 do evaluate-HR-User do get-role-data=20 do evaluate-custom-security=20 end-if =20=20=20 FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, PS_JOB JOB !FSCPR001 Begin change WHERE OPR.ROWSECCLASS =3D CLS.CLASSID AND OPR.OPRID =3D RU.ROLEUSER AND OPR.OPRID =3D JOB.EMPLID AND JOB.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT <=3D SYSDATE) AND JOB.EFFSEQ =3D (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT =3D JOB.EFFDT) [$COMPANY-SQL1] [$ROLENAME-SQL1]=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 !FSCPR001 End change ORDER BY OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure !*********************************************************************** begin-procedure get-role-data !*********************************************************************** let $rolename =3D '' let #Idx =3D 0 begin-select=20 RU.ROLEUSER=20=20=20=20=20=20=20=20=20 RU.ROLENAME let $roleuser =3D &ru.roleuser let $rolename =3D &ru.rolename =20 do write-data FROM PSROLEUSER RU WHERE RU.ROLEUSER =3D $oprid AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT LIKE '%Employee%' ORDER BY RU.ROLEUSER end-select end-procedure !*********************************************************************** begin-procedure get-role-count !*********************************************************************** begin-select COUNT(COUNT.ROLENAME) &count move &count to #count FROM PSROLEUSER COUNT WHERE COUNT.ROLEUSER =3D $oprid AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-HR-User !*********************************************************************** let $HRUser =3D ' ' let $BusOwner =3D ' ' begin-select=20 HR.ROLENAME Evaluate &hr.ROLENAME=20 When =3D 'HR User' move 'H' to $HRUser move 'H' to $HR_output When =3D 'Business Owner' move 'B' to $BusOwner move 'B' to $BO_Output End-evaluate FROM PSROLEUSER HR WHERE HR.ROLEUSER =3D $oprid AND HR.ROLENAME IN ('HR User','Business Owner')=20 end-select end-procedure !*********************************************************************** begin-procedure evaluate-custom-security=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 !*********************************************************************** =20 Let $deptid =3D ' ' Let $grade =3D ' ' Let $empcd =3D ' ' Let $emplid =3D ' ' Let $empType =3D ' ' Let $location =3D ' '=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =20=20=20 begin-select=20=20=20 SEC.OPRID=20=20 SEC.DEPTID &sec.Deptid=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 SEC.GRADE &sec.Grade SEC.FSC_EMPLOYER_CODE &sec.Empcd SEC.EMPLID &sec.Emplid=20 SEC.EMPL_TYPE &sec.EmpType=20 SEC.LOCATION &sec.Location =20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 Let $deptid =3D &sec.Deptid=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 Let $grade =3D &sec.Grade Let $empcd =3D &sec.Empcd Let $emplid =3D &sec.Emplid Let $emptype =3D &sec.EmpType Let $location =3D &sec.Location =20=20 do write-data1 =20=20=20=20 FROM PS_CUSTOM_SEC_TBL SEC=20 WHERE SEC.OPRID =3D $oprid ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION end-select end-procedure=20 begin-procedure write-data1 print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade=20 print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8)=20=20=20=20 !&sec.EmpType print $location (0,165,10)=20 end-procedure=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 !*********************************************************************** begin-procedure write-data !*********************************************************************** =20=20=20 print $oprid (+1,1,11) on-break print=3Dchange skiplines=3D1=20=20=20=20=20=20=20=20=20=20=20=20 print &opr.oprdefndesc (0,12,30) on-break print=3Dchange=20=20=20=20=20=20=20=20=20=20=20=20=20=20 print $HR_output (0,43,2) print $$BO_output (0,46,2) print $rowsecclass (0,49,8) on-break print=3Dchange print $classdefndesc (0,58,31) on-break print=3Dchange print $rolename (0,90,30) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade=20 print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8)=20=20=20=20 !&sec.EmpType print $location (0,165,10)=20=20=20=20=20 end-procedure __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 24 19:43:19 2006 From: "Dwight Schrute" Subject: RE: [sqr-users] Print issue Date: Thu, 24 Aug 2006 18:40:28 -0500 This proposed solution will not work. The problem is with the data relationship of many-to-many. You have four items in one table and three items in another and neither relates to the other except by roleuser/oprid. This will give you twelve rows in a result set. You must divide it into separate pieces in order to conquer this obstacle. You must try something like this... !----------------------------------- get-roleuser begin-procedure get-roleuser begin-select distinct ROLEUSER &roleuser (+2,1) let $roleuser = '''' || &roleuser || '''' let #starting-point = #current-line do get-rolename do get-emplid do get-deptid position (#max-lines) FROM TABLE1 end-select end-procedure !----------------------------------- get-rolename begin-procedure get-rolename begin-select ROLENAME (0,90,30) position (+1) FROM TABLE1 WHERE ROLEUSER = [$roleuser] end-select let #max-lines = #current-line end-procedure !------------------------------------- get-emplid begin-procedure get-emplid position (#starting-point) begin-select EMPLID (0,144,11) position (+1) FROM TABLE2 WHERE OPRID = [$roleuser] end-select if #current-line > #max-lines let #max-lines = #current-line end-if end-procedure !------------------------------------- get-deptid begin-procedure get-deptid position (#starting-point) begin-select DEPTID (0,121,10) position (+1) FROM TABLE2 WHERE OPRID = [$roleuser] end-select if #current-line > #max-lines let #max-lines = #current-line end-if end-procedure This way you can print down and then move back to the starting line. You could also use columns. If this does not do the trick, you can try some nifty arrays. Dwight >From: "Munger, Lance" >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 issue >Date: Thu, 24 Aug 2006 13:18:04 -0600 > >I think the issue is that you make the call to write_data and then you >process more data and call write_data1. Try this version. > >program: >!*********************************************************************** >begin-procEdure get-oprid-data >!*********************************************************************** > move '' to $rowsecclass > move '' to $classdefndesc > >begin-select distinct >OPR.OPRID &opr.oprid >OPR.OPRDEFNDESC &opr.oprdefndesc >OPR.ROWSECCLASS >CLS.CLASSDEFNDESC > > move &opr.oprid to $oprid > move &opr.rowsecclass to $rowsecclass > move &cls.classdefndesc to $classdefndesc > let $Company = &COMPANY > > do get-role-count > do check-custom-security > > if #count > 1 > do evaluate-HR-User > do get-role-data >! do evaluate-custom-security > end-if > >FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, >PS_JOB JOB !FSCPR001 Begin change >WHERE OPR.ROWSECCLASS = CLS.CLASSID >AND OPR.OPRID = RU.ROLEUSER >AND OPR.OPRID = JOB.EMPLID >AND JOB.EFFDT = (SELECT MAX(EFFDT) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT <= SYSDATE) >AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT = JOB.EFFDT) >[$COMPANY-SQL1] >[$ROLENAME-SQL1] > !FSCPR001 End change ORDER BY >OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure > >!*********************************************************************** >begin-procedure get-role-data >!*********************************************************************** > > move '' to $rolename > move 0 to #Idx > >begin-select >RU.ROLEUSER >RU.ROLENAME > > let $roleuser = &ru.roleuser > let $rolename = &ru.rolename > > do evaluate-custom-security > >FROM PSROLEUSER RU >WHERE RU.ROLEUSER = $oprid >AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT >LIKE '%Employee%' >ORDER BY RU.ROLEUSER >end-select >end-procedure > >!*********************************************************************** >begin-procedure get-role-count >!*********************************************************************** >begin-select >COUNT(COUNT.ROLENAME) &count > > move &count to #count > >FROM PSROLEUSER COUNT >WHERE COUNT.ROLEUSER = $oprid >AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-HR-User >!*********************************************************************** > move '' to $HRUser > move '' to $BusOwner = ' ' > >begin-select >HR.ROLENAME > > Evaluate &hr.ROLENAME > When = 'HR User' > move 'H' to $HRUser > move 'H' to $HR_output > When = 'Business Owner' > move 'B' to $BusOwner > move 'B' to $BO_Output > End-evaluate > >FROM PSROLEUSER HR >WHERE HR.ROLEUSER = $oprid >AND HR.ROLENAME IN ('HR User','Business Owner') >end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-custom-security >!*********************************************************************** > > move '' to $deptid > move '' to $grade > move '' to $empcd > move '' to $emplid > move '' to $empType > move '' to $location > >begin-select >SEC.OPRID >SEC.DEPTID &sec.Deptid >SEC.GRADE &sec.Grade >SEC.FSC_EMPLOYER_CODE &sec.Empcd >SEC.EMPLID &sec.Emplid >SEC.EMPL_TYPE &sec.EmpType >SEC.LOCATION &sec.Location > > Let $deptid = &sec.Deptid > Let $grade = &sec.Grade > Let $empcd = &sec.Empcd > Let $emplid = &sec.Emplid > Let $emptype = &sec.EmpType > Let $location = &sec.Location > > do write-data1 > >FROM PS_CUSTOM_SEC_TBL SEC >WHERE SEC.OPRID = $oprid >ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, >SEC.EMPL_TYPE, SEC.LOCATION >end-select >end-procedure > >begin-procedure write-data1 > > print $oprid (+1,1,11) on-break > print=change skiplines=1 > print &opr.oprdefndesc (0,12,30) on-break > print=change > print $HR_output (0,43,2) > print $$BO_output (0,46,2) > print $rowsecclass (0,49,8) on-break > print=change > print $classdefndesc (0,58,31) on-break > print=change > print $rolename (0,90,30) > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) !&sec.EmpType > print $location (0,165,10) > > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) !&sec.EmpType > print $location (0,165,10) > >end-procedure > > >Lance D. Munger > > > > >Report Development >Carlson Wagonlit Travel * formerly TQ3Navigant >Direct Line: +1 (303) 925-3120 >Email: lmunger@carlsonwagonlit.com > >-----Original Message----- >From: sqr-users-bounces+lance.munger=tq3navigant.com@sqrug.org >[mailto:sqr-users-bounces+lance.munger=tq3navigant.com@sqrug.org] On >Behalf Of prashanth reddy >Sent: Thursday, August 24, 2006 8:55 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Print issue > >Hello, > > I'm trying to print multiple values from different >tables for each userid. Program gets the data >accordingly, > but when trying to print, its not in proper format. >Current format: >OprID Name HR Rolename Dept Grade Empcd Emplid >----- ---- ----------- ---- ----- ----- ------ >FS007 John D H Payroll > H Data Entry > H Reports > 107D G728292 > >Expected format: >OprID Name HR Rolename Dept Grade Empcd Emplid > >----- ----- -- --------- ---- ----- ------ ------ > >FS007 John D H Payroll 107D F892389 > H Data Entry F839303 > H Reports G728292 > >Data in two tables: > >table1: >roleuser rolename >------- -------- >FS007 Payroll >FS007 Data Entry >FS007 Reports >table2: >oprid emplid deptid >----- ------ ------ >FS007 F892389 >FS007 F839303 >FS007 G728292 >FS007 107D > >program:!*************************************************************** >******** >begin-procEdure get-oprid-data >!*********************************************************************** >Let $rowsecclass = ' ' >Let $classdefndesc = ' ' > >begin-select distinct >OPR.OPRID &opr.oprid >OPR.OPRDEFNDESC &opr.oprdefndesc >OPR.ROWSECCLASS >CLS.CLASSDEFNDESC > move &opr.oprid to $oprid > move &opr.rowsecclass to $rowsecclass > move &cls.classdefndesc to $classdefndesc > let $Company = &COMPANY > > do get-role-count > do check-custom-security > > if #count > 1 > do evaluate-HR-User > do get-role-data > do evaluate-custom-security > end-if > >FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, >PS_JOB JOB !FSCPR001 Begin change >WHERE OPR.ROWSECCLASS = CLS.CLASSID >AND OPR.OPRID = RU.ROLEUSER >AND OPR.OPRID = JOB.EMPLID >AND JOB.EFFDT = (SELECT MAX(EFFDT) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT <= SYSDATE) >AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT = JOB.EFFDT) >[$COMPANY-SQL1] >[$ROLENAME-SQL1] > !FSCPR001 End change >ORDER BY OPR.ROWSECCLASS, OPR.OPRID >end-select >end-procedure > >!*********************************************************************** >begin-procedure get-role-data >!*********************************************************************** >let $rolename = '' >let #Idx = 0 >begin-select >RU.ROLEUSER >RU.ROLENAME > let $roleuser = &ru.roleuser > let $rolename = &ru.rolename > > do write-data >FROM PSROLEUSER RU >WHERE RU.ROLEUSER = $oprid >AND RU.ROLENAME NOT IN ('HR User','Business Owner') >AND RU.ROLENAME NOT LIKE '%Employee%' >ORDER BY RU.ROLEUSER >end-select >end-procedure > >!*********************************************************************** >begin-procedure get-role-count >!*********************************************************************** >begin-select >COUNT(COUNT.ROLENAME) &count > > move &count to #count > >FROM PSROLEUSER COUNT >WHERE COUNT.ROLEUSER = $oprid >AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') >end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-HR-User >!*********************************************************************** >let $HRUser = ' ' >let $BusOwner = ' ' > >begin-select >HR.ROLENAME > > Evaluate &hr.ROLENAME > When = 'HR User' > move 'H' to $HRUser > move 'H' to $HR_output > When = 'Business Owner' > move 'B' to $BusOwner > move 'B' to $BO_Output > End-evaluate > >FROM PSROLEUSER HR >WHERE HR.ROLEUSER = $oprid >AND HR.ROLENAME IN ('HR User','Business Owner') >end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-custom-security > >!*********************************************************************** > >Let $deptid = ' ' >Let $grade = ' ' >Let $empcd = ' ' >Let $emplid = ' ' >Let $empType = ' ' >Let $location = ' ' > >begin-select >SEC.OPRID >SEC.DEPTID &sec.Deptid > >SEC.GRADE &sec.Grade >SEC.FSC_EMPLOYER_CODE &sec.Empcd >SEC.EMPLID &sec.Emplid >SEC.EMPL_TYPE &sec.EmpType >SEC.LOCATION &sec.Location > > > Let $deptid = &sec.Deptid > Let $grade = &sec.Grade > Let $empcd = &sec.Empcd > Let $emplid = &sec.Emplid > Let $emptype = &sec.EmpType > Let $location = &sec.Location > > do write-data1 > >FROM PS_CUSTOM_SEC_TBL SEC >WHERE SEC.OPRID = $oprid >ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, >SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION >end-select >end-procedure > >begin-procedure write-data1 > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) >!&sec.EmpType > print $location (0,165,10) >end-procedure > > > >!*********************************************************************** >begin-procedure write-data >!*********************************************************************** > > print $oprid (+1,1,11) on-break >print=change skiplines=1 > print &opr.oprdefndesc (0,12,30) on-break >print=change > print $HR_output (0,43,2) > print $$BO_output (0,46,2) > print $rowsecclass (0,49,8) on-break >print=change > print $classdefndesc (0,58,31) on-break >print=change > print $rolename (0,90,30) > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) >!&sec.EmpType > print $location (0,165,10) >end-procedure > >__________________________________________________ >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 _________________________________________________________________ Search from any web page with powerful protection. Get the FREE Windows Live Toolbar Today! http://get.live.com/toolbar/overview _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 25 00:00:16 2006 Date: Thu, 24 Aug 2006 20:57:38 -0700 (PDT) From: Marsha Subject: [sqr-users] PeopleSoft Custom Paycheck SQR I'm trying to modify out custom PeopleSoft paycheck sqr, a clone of pay003, where I pull in a file of employee numbers and match those records to the paycheck number in the sqr. Once I have the paycheck numbers, I'm building a variable to be used in the selection statement for paycheck_nbr. I'm trying to use this: Paycheck_Nbr IN (1234,1356,1465). It's fine if I hardcode this in the sqr, but the file I build is getting an error. I think it's because paycheck_nbr is numeric and my variable is not, but I don't know how to code it. Pieces of the code are below: while 1 = 1 read 1 into $Input_Area:6 if #end-file = 1 break !exit the "while" end-if let $File_Emplid = substr($Input_Area, 1, 6) do Get-Check-Numbers show '$Check_No = ' $Check_No if $First_Check = 'Y' let $First_Check = 'N' let $Check_Range = $Check_No else let $Format_Check_No = ','||$Check_No let $Check_Range = $Check_Range||$Format_Check_No show '$Check_Range = ' $Check_Range end-if end-while begin-SELECT PC.PAYCHECK_NBR show 'Found' show '$File_Emplid = ' $File_Emplid let #Check_No = &PC.PAYCHECK_NBR let $Check_No = To_Char(#Check_No) show '$Check_No = ' $Check_No FROM PS_PAY_CHECK PC WHERE PC.EMPLID = $File_Emplid AND PC.PAY_END_DT = '2006-07-15' AND PC.OFF_CYCLE = 'N' let $Check_Rangex = rtrim($Check_Range, ' ') WHERE [$SlctCalendar] AND B.PAYCHECK_OPTION IN ('C','&') AND A.COMPANY = A1.COMPANY AND A.PAYGROUP = A1.PAYGROUP AND A.PAY_END_DT = A1.PAY_END_DT AND A1.BALANCE_ID = $Calendar_Year_Id AND B.OFF_CYCLE IN ($SlctOffCycleA, $SlctOffCycleB) AND B.PAGE_NUM BETWEEN #SlctPageFrom AND #SlctPageThru AND B.COMPANY = A.COMPANY AND B.PAYGROUP = A.PAYGROUP AND B.PAY_END_DT = A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 ! AND B.PAYCHECK_NBR IN ($Check_Rangex) ! This doesn't work AND B.PAYCHECK_NBR IN (1245,1242,1241) ! This works !AND B.PAYCHECK_NBR <= #ThruPayCheck_Nbr AND B.PAYCHECK_STATUS = 'F' AND G.COMPANY = A.COMPANY Error msg Found $File_Emplid = 003011 $Check_No = 1241 $Check_No = 1241 $Check_Range = 1245,1242,1241 $Check_Rangex = 1245,1242,1241 In Get-Paychecks (SQR 5528) ODBC SQL dbexec: SQLExecute error 8114 in cursor 52: [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. Error on line 301: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. P.S. I later tried to create multiple rows of: AND (B.PAYCHECK_NBR = 1241 OR B.PAYCHECK_NBR = 1242 OR B.PAYCHECK_NBR = 1243) etc. but I get an error for that also. I included carriage returns and line feeds at the end of each row. I have "shows" in the sqr and it looks okay. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 25 02:22:59 2006 Date: Thu, 24 Aug 2006 23:20:54 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] PeopleSoft Custom Paycheck SQR When you code this: AND B.PAYCHECK_NBR IN ($Check_Rangex) I believe that SQR is sending something like this: AND B.PAYCHECK_NBR IN ('1245,1242,1241') In other words, it's sending one string instead of a list of numbers. So try a regular text replacement: AND B.PAYCHECK_NBR IN ([$Check_Rangex]) Note the square brackets, which tell SQR to use the exact value of the variable at that place in the SQL. That should result in this: AND B.PAYCHECK_NBR IN (1245,1242,1241) Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] PeopleSoft Custom Paycheck SQR From: Marsha Date: Thu, August 24, 2006 8:57 pm To: sqr-users@sqrug.org I'm trying to modify out custom PeopleSoft paycheck sqr, a clone of pay003, where I pull in a file of employee numbers and match those records to the paycheck number in the sqr. Once I have the paycheck numbers, I'm building a variable to be used in the selection statement for paycheck_nbr. I'm trying to use this: Paycheck_Nbr IN (1234,1356,1465). It's fine if I hardcode this in the sqr, but the file I build is getting an error. I think it's because paycheck_nbr is numeric and my variable is not, but I don't know how to code it. Pieces of the code are below: while 1 = 1 read 1 into $Input_Area:6 if #end-file = 1 break !exit the "while" end-if let $File_Emplid = substr($Input_Area, 1, 6) do Get-Check-Numbers show '$Check_No = ' $Check_No if $First_Check = 'Y' let $First_Check = 'N' let $Check_Range = $Check_No else let $Format_Check_No = ','||$Check_No let $Check_Range = $Check_Range||$Format_Check_No show '$Check_Range = ' $Check_Range end-if end-while begin-SELECT PC.PAYCHECK_NBR show 'Found' show '$File_Emplid = ' $File_Emplid let #Check_No = &PC.PAYCHECK_NBR let $Check_No = To_Char(#Check_No) show '$Check_No = ' $Check_No FROM PS_PAY_CHECK PC WHERE PC.EMPLID = $File_Emplid AND PC.PAY_END_DT = '2006-07-15' AND PC.OFF_CYCLE = 'N' let $Check_Rangex = rtrim($Check_Range, ' ') WHERE [$SlctCalendar] AND B.PAYCHECK_OPTION IN ('C','&') AND A.COMPANY = A1.COMPANY AND A.PAYGROUP = A1.PAYGROUP AND A.PAY_END_DT = A1.PAY_END_DT AND A1.BALANCE_ID = $Calendar_Year_Id AND B.OFF_CYCLE IN ($SlctOffCycleA, $SlctOffCycleB) AND B.PAGE_NUM BETWEEN #SlctPageFrom AND #SlctPageThru AND B.COMPANY = A.COMPANY AND B.PAYGROUP = A.PAYGROUP AND B.PAY_END_DT = A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 ! AND B.PAYCHECK_NBR IN ($Check_Rangex) ! This doesn't work AND B.PAYCHECK_NBR IN (1245,1242,1241) ! This works !AND B.PAYCHECK_NBR <= #ThruPayCheck_Nbr AND B.PAYCHECK_STATUS = 'F' AND G.COMPANY = A.COMPANY Error msg Found $File_Emplid = 003011 $Check_No = 1241 $Check_No = 1241 $Check_Range = 1245,1242,1241 $Check_Rangex = 1245,1242,1241 In Get-Paychecks (SQR 5528) ODBC SQL dbexec: SQLExecute error 8114 in cursor 52: [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. Error on line 301: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. P.S. I later tried to create multiple rows of: AND (B.PAYCHECK_NBR = 1241 OR B.PAYCHECK_NBR = 1242 OR B.PAYCHECK_NBR = 1243) etc. but I get an error for that also. I included carriage returns and line feeds at the end of each row. I have "shows" in the sqr and it looks okay. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 25 12:11:48 2006 Date: Fri, 25 Aug 2006 11:08:21 -0500 From: "Brooke Funk" Subject: [sqr-users] Count of only one instance I am drawing a blank on how to find where only one instance in a table exis= ts. There are some accounts that have multiple rows but I am looking for o= nly those that have only one row in the table. I have tried grouping with = the count (*) =3D 1 but it is returning accounts that have more than 1 row = in it. Can someone help me out? I can say what I want but in writing it i= n SQL it's not working. I have several other columns from different tables= I am pulling but I want only those accounts that have only 1 instance in t= his particular table regardless of multiple rows in other existing tables I= am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 25 12:17:57 2006 Subject: RE: [sqr-users] Count of only one instance Date: Fri, 25 Aug 2006 09:14:51 -0700 From: "Lynds,Rick" Did you try: .... Group by=20 Having count(*) =3D 1 =20 -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of Brooke Funk Sent: Friday, August 25, 2006 9:08 AM To: sqr-users@sqrug.org Subject: [sqr-users] Count of only one instance I am drawing a blank on how to find where only one instance in a table exists. There are some accounts that have multiple rows but I am looking for only those that have only one row in the table. I have tried grouping with the count (*) =3D 1 but it is returning accounts that have more than 1 row in it. Can someone help me out? I can say what I want but in writing it in SQL it's not working. I have several other columns from different tables I am pulling but I want only those accounts that have only 1 instance in this particular table regardless of multiple rows in other existing tables I am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list s