From sqr-users-admin@sqrug.org Wed Jan 1 15:18:15 2003 Date: Wed, 1 Jan 2003 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.14 $ $Date: 2002-11-13 12:55:07-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 Digests 3.4 Obtaining your password 3.5 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 2002/04/17: o Reflect the new location of the list and the new list server software being used. 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 Brio Software (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. 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-2002 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the MailMan list server package. All of the MailMan functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section, and click the "Edit Options" button. In the page that comes up, there will be an "Unsubscribing from sqr-users" section; simply enter your password in the box there and click the "Unsubscribe" button. Assuming you enter the correct password, you will recieve a message stating "You have been unsubscribed." and the removal will take effect immediately (there is no need to send in a confirmation e-mail message). (If you have forgotton your password, see the instructions below.) 3.3. 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, enter your address in the "sqr-users Subscribers" section of the sqr-users List Info page and click the "Edit Options" button. At the bottom of the resulting page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option to "On", enter your subscription password in the box provided, and click the "Submit My Changes" button. (If you have forgotton your password, see the instructions below.) 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.4. Obtaining your password You will not be able to unsubscribe or change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the Edit Options page and your password will be e-mailed 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.5. 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). 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 in reply from other subscribers.) 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. 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 fule 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 Brio product and version number (see notes below) o Operating system 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's, so it's very important to mention whether you are using Brio'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 version number listed here is the one under which this copy of SQR was compiled, so you'll still need to include this infor- mation 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-admin@sqrug.org Wed Jan 1 15:45:05 2003 From: Nathan Stratton Treadway Date: Wed, 1 Jan 2003 15:42:40 -0500 Subject: [sqr-users] Re: Globals in Local Procedures On Tue, Dec 31, 2002 at 05:40:10PM -0800, Alexander, Steve wrote: > I know I can refer to global variables within a local procedure by using > #_var and $_var. It also seems possible to refer to database columns as > &_ALIAS.FIELD. Is it possible to refer to arrays? Actually, arrays are _always_ global -- so you just refer to them by their name (with no "_") in either local or global contexts. (Unfortunately, this also means that you can't create a local array, so there is no way to "protect" an array from use elsewhere in your program....) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | nathanst@ontko.com | Mid-Atlantic region Software consulting services | Ray Ontko & Co. | http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 11:52:25 2003 Date: Thu, 2 Jan 2003 11:51:44 -0500 From: "Braswell, Michael" Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 12:38:06 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Tuning for inserts after each field selected Date: Thu, 2 Jan 2003 09:38:15 -0800 You've left out the from and where clause of your selection, which may be the place most open to improvement. There's not much you can improve with inserts. One thing I'd suggest is to not join PS_PERSONAL_DATA just to pick up the "name in Peoplesoft". Is it so important to have that in addition to the name in your input table? If you absolutely need it in the error reporting, and you don't have many errors, call a subroutine to select PS_PERSONAL_DATA for just the employees with errors. Another improvement is to say "begin-select -b1000". That will buffer 1000 rows at a time rather than the default of 10. Also, are you using "on-error" with your insert? If so, you may be getting errors (i.e. duplicate rows), which take much longer to process than successful inserts. -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if 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-admin@sqrug.org Thu Jan 2 12:49:07 2003 Subject: RE: [sqr-users] Tuning for inserts after each field selected Date: Thu, 2 Jan 2003 12:48:35 -0500 From: "Braswell, Michael" Hi, Below is the from and where clause, sorry about that. I can double check and see if they can live without the name from Peoplesoft in the report. I suppose they just wanted to do a visual validation at this time. I suppose my concern was how we do an insert after each field selected. Usually I would select all fields then do an insert. I thought because this is not the way it's normally done it may cause SQR to perform poorly. If anyone had run into this before I would suggest that we change the data file and go from there. The b-1000 is a good suggestion. In fact I learned about this a couple weeks ago and tried it, unfortunately no significant improvement was made in the completion time. I do use an on-error routine, in which I write out the errors to a report if anything happens. We are not getting any errors like this but I will double check the report. Here is the from and where clause. Thanks. >From PS_NEX_TM_LOAD_TMP TP, PS_JOB JOB, PS_PERSONAL_DATA PD where JOB.EMPLID = PD.EMPLID and PD.EMPLID = TP.Emplid and JOB.EMPL_RCD# = 0 and JOB.EFFDT = (select max(EFFDT) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT <= $Pay_End_Dt) and JOB.EFFSEQ = (select max(EFFSEQ) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT = JOB.EFFDT) order by TP.NEX_LEGAL_ENTITY, JOB.LOCATION,TP.EMPLID -----Original Message----- From: Alexander, Steve [mailto:Steve.Alexander@ci.sj.ca.us] Sent: Thursday, January 02, 2003 12:38 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Tuning for inserts after each field selected You've left out the from and where clause of your selection, which may be the place most open to improvement. There's not much you can improve with inserts. One thing I'd suggest is to not join PS_PERSONAL_DATA just to pick up the "name in Peoplesoft". Is it so important to have that in addition to the name in your input table? If you absolutely need it in the error reporting, and you don't have many errors, call a subroutine to select PS_PERSONAL_DATA for just the employees with errors. Another improvement is to say "begin-select -b1000". That will buffer 1000 rows at a time rather than the default of 10. Also, are you using "on-error" with your insert? If so, you may be getting errors (i.e. duplicate rows), which take much longer to process than successful inserts. -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 12:55:13 2003 Subject: RE: [sqr-users] Tuning for inserts after each field selected Date: Thu, 2 Jan 2003 11:53:56 -0600 From: "Knapp, Richard" If it's all inserts and no updates and you can run this during off hours, you may want to drop the indexes first, do your inserts, then rebuild the indexes. Bound to save you time. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 11:49 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Tuning for inserts after each field selected Hi, Below is the from and where clause, sorry about that. I can double check and see if they can live without the name from Peoplesoft in the report. I suppose they just wanted to do a visual validation at this time. I suppose my concern was how we do an insert after each field selected. Usually I would select all fields then do an insert. I thought because this is not the way it's normally done it may cause SQR to perform poorly. If anyone had run into this before I would suggest that we change the data file and go from there. The b-1000 is a good suggestion. In fact I learned about this a couple weeks ago and tried it, unfortunately no significant improvement was made in the completion time. I do use an on-error routine, in which I write out the errors to a report if anything happens. We are not getting any errors like this but I will double check the report. Here is the from and where clause. Thanks. >From PS_NEX_TM_LOAD_TMP TP, PS_JOB JOB, PS_PERSONAL_DATA PD where JOB.EMPLID = PD.EMPLID and PD.EMPLID = TP.Emplid and JOB.EMPL_RCD# = 0 and JOB.EFFDT = (select max(EFFDT) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT <= $Pay_End_Dt) and JOB.EFFSEQ = (select max(EFFSEQ) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT = JOB.EFFDT) order by TP.NEX_LEGAL_ENTITY, JOB.LOCATION,TP.EMPLID -----Original Message----- From: Alexander, Steve [mailto:Steve.Alexander@ci.sj.ca.us] Sent: Thursday, January 02, 2003 12:38 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Tuning for inserts after each field selected You've left out the from and where clause of your selection, which may be the place most open to improvement. There's not much you can improve with inserts. One thing I'd suggest is to not join PS_PERSONAL_DATA just to pick up the "name in Peoplesoft". Is it so important to have that in addition to the name in your input table? If you absolutely need it in the error reporting, and you don't have many errors, call a subroutine to select PS_PERSONAL_DATA for just the employees with errors. Another improvement is to say "begin-select -b1000". That will buffer 1000 rows at a time rather than the default of 10. Also, are you using "on-error" with your insert? If so, you may be getting errors (i.e. duplicate rows), which take much longer to process than successful inserts. -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 13:31:07 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Tuning for inserts after each field selected Date: Thu, 2 Jan 2003 10:31:22 -0800 That's "-b1000", not "b-1000". What do you mean by "an insert after each field selected"? The selection returns your entire row at once. You may be doing an insert for each field, but you'd be doing the same number of inserts even if your source table were normalized and had one row for each ERNCD and OTH_HOURS. Another thought - I'm familiar with the PS_PAY_OTH_EARNS table. How are you getting the keys other than ERNCD (COMPANY, PAYGROUP, PAY_END_DT, OFF_CYCLE, PAGE_NUM, and LINE_NUM, ADDL_NUM, ERNCD, and SEPCHK)? Are you do other selections, one for each insert? That will really slow you down. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Thursday, January 02, 2003 9:54 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Tuning for inserts after each field selected If it's all inserts and no updates and you can run this during off hours, you may want to drop the indexes first, do your inserts, then rebuild the indexes. Bound to save you time. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 11:49 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Tuning for inserts after each field selected Hi, Below is the from and where clause, sorry about that. I can double check and see if they can live without the name from Peoplesoft in the report. I suppose they just wanted to do a visual validation at this time. I suppose my concern was how we do an insert after each field selected. Usually I would select all fields then do an insert. I thought because this is not the way it's normally done it may cause SQR to perform poorly. If anyone had run into this before I would suggest that we change the data file and go from there. The b-1000 is a good suggestion. In fact I learned about this a couple weeks ago and tried it, unfortunately no significant improvement was made in the completion time. I do use an on-error routine, in which I write out the errors to a report if anything happens. We are not getting any errors like this but I will double check the report. Here is the from and where clause. Thanks. >From PS_NEX_TM_LOAD_TMP TP, PS_JOB JOB, PS_PERSONAL_DATA PD where JOB.EMPLID = PD.EMPLID and PD.EMPLID = TP.Emplid and JOB.EMPL_RCD# = 0 and JOB.EFFDT = (select max(EFFDT) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT <= $Pay_End_Dt) and JOB.EFFSEQ = (select max(EFFSEQ) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT = JOB.EFFDT) order by TP.NEX_LEGAL_ENTITY, JOB.LOCATION,TP.EMPLID -----Original Message----- From: Alexander, Steve [mailto:Steve.Alexander@ci.sj.ca.us] Sent: Thursday, January 02, 2003 12:38 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Tuning for inserts after each field selected You've left out the from and where clause of your selection, which may be the place most open to improvement. There's not much you can improve with inserts. One thing I'd suggest is to not join PS_PERSONAL_DATA just to pick up the "name in Peoplesoft". Is it so important to have that in addition to the name in your input table? If you absolutely need it in the error reporting, and you don't have many errors, call a subroutine to select PS_PERSONAL_DATA for just the employees with errors. Another improvement is to say "begin-select -b1000". That will buffer 1000 rows at a time rather than the default of 10. Also, are you using "on-error" with your insert? If so, you may be getting errors (i.e. duplicate rows), which take much longer to process than successful inserts. -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 13:33:05 2003 Subject: RE: [sqr-users] Tuning for inserts after each field selected Date: Thu, 2 Jan 2003 13:32:55 -0500 From: "Braswell, Michael" Yes, that is true. We are only inserting around 5000 records however and we have other programs inserting similar quantities of data into this table with no real time issues. Because of this I was thinking the issue was possibly more centered around the layout of the data file and having to do processing after each field vs doing processing after the select has been run. thanks Michael Braswell -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Thursday, January 02, 2003 12:54 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Tuning for inserts after each field selected If it's all inserts and no updates and you can run this during off hours, you may want to drop the indexes first, do your inserts, then rebuild the indexes. Bound to save you time. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 11:49 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Tuning for inserts after each field selected Hi, Below is the from and where clause, sorry about that. I can double check and see if they can live without the name from Peoplesoft in the report. I suppose they just wanted to do a visual validation at this time. I suppose my concern was how we do an insert after each field selected. Usually I would select all fields then do an insert. I thought because this is not the way it's normally done it may cause SQR to perform poorly. If anyone had run into this before I would suggest that we change the data file and go from there. The b-1000 is a good suggestion. In fact I learned about this a couple weeks ago and tried it, unfortunately no significant improvement was made in the completion time. I do use an on-error routine, in which I write out the errors to a report if anything happens. We are not getting any errors like this but I will double check the report. Here is the from and where clause. Thanks. >From PS_NEX_TM_LOAD_TMP TP, PS_JOB JOB, PS_PERSONAL_DATA PD where JOB.EMPLID = PD.EMPLID and PD.EMPLID = TP.Emplid and JOB.EMPL_RCD# = 0 and JOB.EFFDT = (select max(EFFDT) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT <= $Pay_End_Dt) and JOB.EFFSEQ = (select max(EFFSEQ) from PS_JOB where EMPLID = JOB.EMPLID and EMPL_RCD# = JOB.EMPL_RCD# and EFFDT = JOB.EFFDT) order by TP.NEX_LEGAL_ENTITY, JOB.LOCATION,TP.EMPLID -----Original Message----- From: Alexander, Steve [mailto:Steve.Alexander@ci.sj.ca.us] Sent: Thursday, January 02, 2003 12:38 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Tuning for inserts after each field selected You've left out the from and where clause of your selection, which may be the place most open to improvement. There's not much you can improve with inserts. One thing I'd suggest is to not join PS_PERSONAL_DATA just to pick up the "name in Peoplesoft". Is it so important to have that in addition to the name in your input table? If you absolutely need it in the error reporting, and you don't have many errors, call a subroutine to select PS_PERSONAL_DATA for just the employees with errors. Another improvement is to say "begin-select -b1000". That will buffer 1000 rows at a time rather than the default of 10. Also, are you using "on-error" with your insert? If so, you may be getting errors (i.e. duplicate rows), which take much longer to process than successful inserts. -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 14:04:26 2003 From: "Ward, Daniel" Date: Thu, 2 Jan 2003 14:00:30 -0500 Subject: [sqr-users] Report Viewer running under Windows2000 I have a kinda technical question for the group. My company just moved to the Windows 2000 environment and we Are having problems with Report view running inside one of our PowerBuilder 7 applications. When Report viewer Opens in our application and we try to use the e-mail function, our application crashes. Does anybody know if There are any settings or upgrades we may need for report viewer to operate under Windows 2000. The problem May be with the ocx called sqrvc.ocx or it may have something to do with permissions. If anybody has Any information on the subject, please let me know. >From what I see we are running ReportViewer version 6.0.0.0 Thanks Dan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 16:29:29 2003 From: "John Berk" Date: Thu, 02 Jan 2003 15:28:11 -0600 Subject: [sqr-users] Call System thru NT Process Schedular Hello all, I'm trying to execute a .bat file in an SQR using the Call System command. code: let $COMSPEC=getenv('COMSPEC') let $Copy_String = $COMSPEC || ' /C d:\temp\copy.bat' Call System Using $Copy_String #Status show $Copy_String show #Status If #Status<>0 Show 'Error' End-if The .bat file executes fine when the SQR is run manually through SQRW; however when I run through the Windows 2000 Process Schedular the .bat file does not execute but I receive a successful #Status (0.00). What am I missing? Thanks, John Berk _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 16:55:06 2003 From: rwulfson@bost.com Date: Thu, 2 Jan 2003 14:56:00 -0700 Subject: [sqr-users] WEIRD SQL STATEMENTS I have an sqr that was provided to me from another company - via a new employee, who is now on vacation. So I can't ask him about it. It contains some syntax that I've never seen. I was wondering if anyone knows what this refers to: It looks like a form of dynamic sql, but I've never seen the slashes used this way or the "with" clause???? FROM \$recname\ WHERE \$fieldname\ IN (\$Search_String\) WITH UR Thanks, Russ Wulfson _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 17:36:19 2003 Date: Thu, 2 Jan 2003 14:35:11 -0800 (PST) From: Jim Wyant Subject: Re: [sqr-users] WEIRD SQL STATEMENTS I believe the slashes are for DB2 specific dynamic SQL and the "with" references an index. Jim --- rwulfson@bost.com wrote: > I have an sqr that was provided to me from another company - via a > new > employee, who is now on vacation. So I can't ask him about it. It > contains > some syntax that I've never seen. I was wondering if anyone knows > what > this refers to: > It looks like a form of dynamic sql, but I've never seen the slashes > used > this way or the "with" clause???? > > FROM \$recname\ > WHERE \$fieldname\ IN (\$Search_String\) > WITH UR > > Thanks, > > Russ Wulfson > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 2 17:47:07 2003 Subject: Re: [sqr-users] WEIRD SQL STATEMENTS From: rwulfson@bost.com Date: Thu, 2 Jan 2003 15:48:34 -0700 Jim - Thanks - I thought it might be platform specific. I'll modify it for my database. Thanks, Russ Wulfson Jim Wyant cc: Sent by: Subject: Re: [sqr-users] WEIRD SQL STATEMENTS sqr-users-admin@s qrug.org 01/02/2003 03:35 PM Please respond to sqr-users I believe the slashes are for DB2 specific dynamic SQL and the "with" references an index. Jim --- rwulfson@bost.com wrote: > I have an sqr that was provided to me from another company - via a > new > employee, who is now on vacation. So I can't ask him about it. It > contains > some syntax that I've never seen. I was wondering if anyone knows > what > this refers to: > It looks like a form of dynamic sql, but I've never seen the slashes > used > this way or the "with" clause???? > > FROM \$recname\ > WHERE \$fieldname\ IN (\$Search_String\) > WITH UR > > Thanks, > > Russ Wulfson > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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-admin@sqrug.org Fri Jan 3 09:23:52 2003 Date: Fri, 3 Jan 2003 09:19:21 -0500 From: dewhite@vicr.com Subject: [sqr-users] RE: Tuning for inserts after each field selected Hi, The thing that is confusing me is that you keep talking about a 'data file' and its layout, but it appears to me that your data is in a table. If you are really reading a flat file, loading it into a temporary table, and then joining that table to others, perhaps you would get better performance if you just processed the flat file as you read each record, instead of using a temporary table at all. You have a few very minor things that would not cause any significant performance problem: setting $flags to ' ', and then performing an if with an else that resets it to the same value (you could leave either the let statement or the else clause out); setting #Errors-This-Row to 0, and then having an if check to see if it is 0 (just do Validate-Payline; no need for an if statement), etc. But these are so minor they would not cause any performance hits. To find out where you are having slow performance, you might want to put show or display statements at certain points in your logic to see how long various procedures are taking. Also, do an explain plan on each SQL statement, including any selects, and tune accordingly. HTH, Denise White Sr. Software Engineer Vicor -----Original Message----- From: Braswell, Michael [mailto:Michael.Braswell@usi.net] Sent: Thursday, January 02, 2003 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Tuning for inserts after each field selected Hello, We are processing records from a data file and inserting them into PS payroll. The data file is arranged in a fashion similar to the following: "emplid","hoursforearningscode1","hoursforearningscode2","hoursforearnin gscode3".... (there are 18 earning codes!) so data looks like 0123,8,4,5,... 0234,7,3,6,... We have to do validation on each earnings code and then insert into the pay_others table (which is setup as having one earnings code per record). So the file does not really match the database structure but we are trying not to change the datafile. Please look at the following piece code and you will see that after we select for instance "hoursforearningscode1" we do an insert into pay_others same thing for all the other earning codes. So we may do a total of 18 inserts for one select if the person has hours in each earnings code. I've only included a piece of it but the code continues in the same fashion for all 18 earning codes. Typically the SQR's I've written have the file so that you do not have to do inserts after selecting a particular field. Rather you would select the emplid and earnings code and do an insert. Does anyone know if the way we are having to write the SQR (below) is causing it to run in 3-4 hours? Has anyone written a program using the inserts after each field that performed efficiently. We are just going over our options and wondering if this is causing the problem and maybe we should change the file layout. The procedures called below for validation run instantly so we have eliminated this as the bottleneck. Thanks in advance for any help. Begin-Select TP.EMPLID TP.NEX_LEGAL_ENTITY TP.NAME PD.NAME JOB.EMPL_STATUS JOB.FULL_PART_TIME JOB.LOCATION let $EMPLID = &TP.EMPLID let $NAME = &TP.NAME let $LEGAL_ENTITY = &TP.NEX_LEGAL_ENTITY let $FULL_PART_TIME = &JOB.FULL_PART_TIME let $EMPL_STATUS = &JOB.EMPL_STATUS let $NAME_IN_PS = &PD.NAME let $LOCATION = &JOB.LOCATION let $message = '' let #Errors-This-Row = 0 let $flags = ' ' if $EMPL_STATUS = 'T' let $flags = 'T' else let $flags = ' ' end-if add 1 to #Total-Records-Read ! let #Row = Edit(#Total-Records-Read,'99999') ! Validate values if #Errors-This-Row = 0 do Validate-Payline end-if if #Errors-This-Row >= 1 add 1 to #Total-Error-Rows add 1 to #array_count Put $Legal_entity $location $emplid $Name_in_ps $Name ' ' 0 $Message Into Errors(#array_count) else Do Pay-Ern-Update end-if TP.NEX_HRS_REG Let $erncd = 'REG' Let #Hours_in = &TP.NEX_HRS_REG let #O_amount = round(#Hours_in, 2) #debug show 'amount= ' #O_amount Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'F' !full/part time enhancement validation 9/25/02 do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SF1 Let $erncd = 'SF1' Let #Hours_in = &TP.NEX_HRS_SF1 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if TP.NEX_HRS_SD0 Let $erncd = 'SDO' Let #Hours_in = &TP.NEX_HRS_SD0 let #O_amount = round(#Hours_in, 2) Let #Hours = #O_amount if #Errors-This-Row = 0 and #Hours <> 0 If $FULL_PART_TIME = 'P' do Write-full-part-time-error else let #Row = #Row + 1 do Insert-Pay-Oth-Earns end-if end-if _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 11:43:16 2003 From: "Dinesh" Date: Fri, 3 Jan 2003 08:41:30 -0800 Subject: [sqr-users] question I am having problem with the following statement. cust_id ( ) on-break skiplines=0 after = call_another_procedure what I ideally wanted to do was not print cust_id and just stored it into &cust_id variable. Is there a way to do that with on-break statement. To be more clear what I want is the following, cust_id on-break skiplines=0 after = call_another_procedure move &cust_id to $cust_id let me know if you have the workaround. thanks in advance, dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:12:05 2003 From: "Patel, Samir (CITS)" Subject: RE: [sqr-users] question Date: Fri, 3 Jan 2003 12:11:08 -0500 add PRINT=NEVER... cust_id ( ) on-break PRINT=NEVER skiplines=0 after = call_another_procedure save =$cust_id Samir -----Original Message----- From: Dinesh [mailto:dinesh@redwoodtoxicology.com] Sent: Friday, January 03, 2003 12:07 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] question looks like it still prints out the cust_id. Any idea? dinesh -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ramzi_Salameh@daveandbusters.com Sent: Friday, January 03, 2003 9:12 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] question Use the 'save' parameter with the on-break. For example: cust_id ( ) on-break skiplines=0 after = call_another_procedure save =$cust_id HTH ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Dinesh" cology.com> cc: Sent by: Subject: [sqr-users] question sqr-users-admin@sqr ug.org 01/03/03 10:41 AM Please respond to sqr-users I am having problem with the following statement. cust_id ( ) on-break skiplines=0 after = call_another_procedure what I ideally wanted to do was not print cust_id and just stored it into &cust_id variable. Is there a way to do that with on-break statement. To be more clear what I want is the following, cust_id on-break skiplines=0 after = call_another_procedure move &cust_id to $cust_id let me know if you have the workaround. thanks in advance, dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:24:37 2003 From: "Dinesh" Subject: RE: [sqr-users] question Date: Fri, 3 Jan 2003 09:21:52 -0800 it works now! thanks everbody for ur help. dinesh -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Patel, Samir (CITS) Sent: Friday, January 03, 2003 9:11 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] question add PRINT=NEVER... cust_id ( ) on-break PRINT=NEVER skiplines=0 after = call_another_procedure save =$cust_id Samir -----Original Message----- From: Dinesh [mailto:dinesh@redwoodtoxicology.com] Sent: Friday, January 03, 2003 12:07 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] question looks like it still prints out the cust_id. Any idea? dinesh -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ramzi_Salameh@daveandbusters.com Sent: Friday, January 03, 2003 9:12 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] question Use the 'save' parameter with the on-break. For example: cust_id ( ) on-break skiplines=0 after = call_another_procedure save =$cust_id HTH ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Dinesh" cology.com> cc: Sent by: Subject: [sqr-users] question sqr-users-admin@sqr ug.org 01/03/03 10:41 AM Please respond to sqr-users I am having problem with the following statement. cust_id ( ) on-break skiplines=0 after = call_another_procedure what I ideally wanted to do was not print cust_id and just stored it into &cust_id variable. Is there a way to do that with on-break statement. To be more clear what I want is the following, cust_id on-break skiplines=0 after = call_another_procedure move &cust_id to $cust_id let me know if you have the workaround. thanks in advance, dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 11:55:19 2003 Subject: Re: [sqr-users] question From: Ramzi_Salameh@daveandbusters.com Date: Fri, 3 Jan 2003 11:12:14 -0600 Use the 'save' parameter with the on-break. For example: cust_id ( ) on-break skiplines=0 after = call_another_procedure save =$cust_id HTH ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Dinesh" cology.com> cc: Sent by: Subject: [sqr-users] question sqr-users-admin@sqr ug.org 01/03/03 10:41 AM Please respond to sqr-users I am having problem with the following statement. cust_id ( ) on-break skiplines=0 after = call_another_procedure what I ideally wanted to do was not print cust_id and just stored it into &cust_id variable. Is there a way to do that with on-break statement. To be more clear what I want is the following, cust_id on-break skiplines=0 after = call_another_procedure move &cust_id to $cust_id let me know if you have the workaround. thanks in advance, dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:09:07 2003 From: "Dinesh" Subject: RE: [sqr-users] question Date: Fri, 3 Jan 2003 09:07:26 -0800 looks like it still prints out the cust_id. Any idea? dinesh -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ramzi_Salameh@daveandbusters.com Sent: Friday, January 03, 2003 9:12 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] question Use the 'save' parameter with the on-break. For example: cust_id ( ) on-break skiplines=0 after = call_another_procedure save =$cust_id HTH ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Dinesh" cology.com> cc: Sent by: Subject: [sqr-users] question sqr-users-admin@sqr ug.org 01/03/03 10:41 AM Please respond to sqr-users I am having problem with the following statement. cust_id ( ) on-break skiplines=0 after = call_another_procedure what I ideally wanted to do was not print cust_id and just stored it into &cust_id variable. Is there a way to do that with on-break statement. To be more clear what I want is the following, cust_id on-break skiplines=0 after = call_another_procedure move &cust_id to $cust_id let me know if you have the workaround. thanks in advance, dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:18:04 2003 Date: Fri, 3 Jan 2003 12:17:39 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] question Use the print=never option of on-break. On Fri, 3 Jan 2003, Dinesh wrote: > looks like it still prints out the cust_id. Any idea? > > dinesh > > -----Original Message----- > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On > Behalf Of Ramzi_Salameh@daveandbusters.com > Sent: Friday, January 03, 2003 9:12 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] question > > > > Use the 'save' parameter with the on-break. For example: > > cust_id ( ) on-break skiplines=0 after = call_another_procedure save > =$cust_id > > > HTH > > ------------------------------------------------ > Ramzi Salameh > PeopleSoft Technical Analyst > Dave & Busters, Inc. > > Voice (214) 904-2550 > Fax (214) 350-0941 > ------------------------------------------------ > > > > "Dinesh" > > cology.com> cc: > Sent by: Subject: [sqr-users] > question > sqr-users-admin@sqr > ug.org > > > 01/03/03 10:41 AM > Please respond to > sqr-users > > > > > > > I am having problem with the following statement. > > cust_id ( ) on-break skiplines=0 after = call_another_procedure > > what I ideally wanted to do was not print cust_id and just stored it into > &cust_id variable. Is there a way to do that with on-break statement. > To be more clear what I want is the following, > > cust_id on-break skiplines=0 after = > call_another_procedure > move &cust_id to $cust_id > > let me know if you have the workaround. > > thanks in advance, > > dinesh > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:15:04 2003 From: "Jones, Barbra" Subject: RE: [sqr-users] question Date: Fri, 3 Jan 2003 11:14:28 -0600 Use print=never after the ()on-break -----Original Message----- From: Dinesh [mailto:dinesh@redwoodtoxicology.com] Sent: Friday, January 03, 2003 11:07 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] question looks like it still prints out the cust_id. Any idea? dinesh -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ramzi_Salameh@daveandbusters.com Sent: Friday, January 03, 2003 9:12 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] question Use the 'save' parameter with the on-break. For example: cust_id ( ) on-break skiplines=0 after = call_another_procedure save =$cust_id HTH ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Dinesh" cology.com> cc: Sent by: Subject: [sqr-users] question sqr-users-admin@sqr ug.org 01/03/03 10:41 AM Please respond to sqr-users I am having problem with the following statement. cust_id ( ) on-break skiplines=0 after = call_another_procedure what I ideally wanted to do was not print cust_id and just stored it into &cust_id variable. Is there a way to do that with on-break statement. To be more clear what I want is the following, cust_id on-break skiplines=0 after = call_another_procedure move &cust_id to $cust_id let me know if you have the workaround. thanks in advance, dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Jan 4 07:15:51 2003 From: Ramanarao_Pokuri Subject: RE: [sqr-users] question Date: Sat, 4 Jan 2003 17:43:51 +0530 yes, use print=never. > cust_id ( ) on-break skiplines=0 after = call_another_procedure > print=never > regards, ramana > ---------- > From: Dinesh[SMTP:dinesh@redwoodtoxicology.com] > Reply To: sqr-users@sqrug.org > Sent: Friday, January 03, 2003 10:11 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] question > > I am having problem with the following statement. > > cust_id ( ) on-break skiplines=0 after = call_another_procedure > > what I ideally wanted to do was not print cust_id and just stored it into > &cust_id variable. Is there a way to do that with on-break statement. > To be more clear what I want is the following, > > cust_id on-break skiplines=0 after = > call_another_procedure > move &cust_id to $cust_id > > let me know if you have the workaround. > > thanks in advance, > > dinesh > > > ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:00:06 2003 Date: Fri, 3 Jan 2003 10:59:46 -0600 From: "Lindquist, Maria" Subject: [sqr-users] Wildcards with Evaluate Statements Is there any way to use Wildcards with Evaluate-When statements in SQR? I wanted to find class sections that begin with a certain letter and do something. For example: EVALUATE &CLSFEE2.CLASS_SECTION When = '%B%' Let $ClassSection = &CLSFEE2.CLASS_SECTION Let $MND_ItemType = '152100000000' Let $MND_CrseRate = ' ' Let $MND_AdjTerm = $Term || 'STD' Let $MND_Waiver = ' ' Let $TUT_ItemType = '151000000000' Let $TUT_CrseRate = ' ' Let $TUT_AdjTerm = $Term || 'STD' Let $TUT_Waiver = ' ' Do Check-for-Prev-Acct-Type IF &A.ACCOUNT_TYPE_SF = 'MND' Do Insert-TUT-Sub-Fee Else Do Insert-MND-Sub-Fee End-if When = 'D%' Let $ClassSection = &CLSFEE2.CLASS_SECTION Let $MND_ItemType = '202100000000' Let $MND_CrseRate = ' ' Let $MND_AdjTerm = $Term || 'STD' Let $MND_Waiver = ' ' Let $TUT_ItemType = '201000000000' Let $TUT_CrseRate = ' ' Let $TUT_AdjTerm = $Term || 'STD' Let $TUT_Waiver = ' ' Do Check-for-Prev-Acct-Type IF &A.ACCOUNT_TYPE_SF = 'MND' Do Insert-TUT-Sub-Fee Else Do Insert-MND-Sub-Fee End-if etc............ *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:32:25 2003 Date: Fri, 3 Jan 2003 12:31:36 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Wildcards with Evaluate Statements On Fri, 3 Jan 2003, Lindquist, Maria wrote: > Is there any way to use Wildcards with Evaluate-When statements in SQR? Nope. The "evaluate" command and the "when" both on;y accept values, not expressions. > I wanted to find class sections that begin with a certain letter and do > something. For example: If the above is what you want to do, you could say.... let $begins_with = substr(&CLSFEE2.CLASS_SECTION, 1, 1) evaluate $begins_with when = 'B' ..... when = 'D' ..... If you want to do checks like below, for "has a 'B' in it" and "starts with 'D'", then seperate "if" statements would probably be best. > EVALUATE &CLSFEE2.CLASS_SECTION > > When = '%B%' > .... > When = 'D%' > .... > > etc............ > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 3 12:38:30 2003 Subject: RE: [sqr-users] Wildcards with Evaluate Statements Date: Fri, 3 Jan 2003 11:37:48 -0600 From: "Lindquist, Maria" I just tried this before you sent this message and that's how I'm going to do it. Thanks anyways for the suggestions! -----Original Message----- From: Don Mellen [mailto:donm@ontko.com] Sent: Friday, January 03, 2003 11:32 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Wildcards with Evaluate Statements On Fri, 3 Jan 2003, Lindquist, Maria wrote: > Is there any way to use Wildcards with Evaluate-When statements in > SQR? Nope. The "evaluate" command and the "when" both on;y accept values, not expressions. > I wanted to find class sections that begin with a certain letter and > do something. For example: If the above is what you want to do, you could say.... let $begins_with = substr(&CLSFEE2.CLASS_SECTION, 1, 1) evaluate $begins_with when = 'B' ..... when = 'D' ..... If you want to do checks like below, for "has a 'B' in it" and "starts with 'D'", then seperate "if" statements would probably be best. > EVALUATE &CLSFEE2.CLASS_SECTION > > When = '%B%' > .... > When = 'D%' > .... > > etc............ > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 6 10:40:30 2003 Date: Mon, 06 Jan 2003 10:37:56 -0500 From: "Dan Brinkley" Subject: [sqr-users] Recomputing Peoplesoft Balance Tables YTD, QTD amounts from MTD amounts Does anyone know of an SQR (or some procedure) that recalculate the QTD and YTD amounts from the MTD amounts in the Payroll balance tables. We have some inconsistency because, during conversion of PS_EARNINGS_BAL, periods 5 and 6 (may, June) were written with QTR=1 (should be 2). We just noticed this now and also caused the YTD totals to not jive with the MTD totals. Fortunately, a small set of earnings codes are affected. I can easily fix the bad QUARTER, but fixing the numbers would take me more time. Surely someone has had to write something to fix (or at least report) this kind of table inconsistency. Peoplesoft support has stated they provide nothing, but to use TAX015.sqr as a guide. Thanks in advance for anyone's help. Maybe this is really easy. I just hate to miss something, and really screw up these tables. Daniel Brinkley Techneglas, Inc. Daniel Brinkley Programmer/Analyst Techneglas, Inc. dbrinkley@techneglas.com phone: (614) 445-4721 fax: (614) 445-4723 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 6 13:07:23 2003 Date: Mon, 06 Jan 2003 10:06:25 -0800 From: "Yingqi Cui" Subject: [sqr-users] SQR Tools for PS 8.18 We are evaluating SQR tools for PeopleSoft Tools 8.18. Which one is compatible? SQR Plus, Brio SQR Builder, SQR Workbench? Which one are you using? Do you like it? Any info is greatly appreciated! Yingqi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 18:58:47 2003 Subject: Re: [sqr-users] SQR Tools for PS 8.18 From: gopal_krishan@peoplesoft.com Date: Wed, 8 Jan 2003 09:38:35 +1000 I have been using SqrPlus in PeopleSoft environment. It is very good and convenient to work with. "Yingqi Cui" To: "<" Sent by: cc: sqr-users-admin@s Subject: [sqr-users] SQR Tools for PS 8.18 qrug.org 01/07/2003 05:06 AM Please respond to sqr-users We are evaluating SQR tools for PeopleSoft Tools 8.18. Which one is compatible? SQR Plus, Brio SQR Builder, SQR Workbench? Which one are you using? Do you like it? Any info is greatly appreciated! Yingqi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 10:51:20 2003 From: "Karver" Subject: RE: [sqr-users] SQR Tools for PS 8.18 Date: Thu, 9 Jan 2003 23:53:27 +0800 Hi Yingqi, Pardon me if I give my own product a plug. SQR Tree is a utility for showing a tree structure of the procedure calls and #include files in an SQR program. It uses a Windows Explorer type interface with expandable branches on the left, and a listing of the program on the right. Clicking on a branch in the tree causes the listing to jump to the line calling the procedure or #include file. Double clicking on a branch causes the listing to jump to the line where the procedure or #include file begins. I've had plenty of positive comments from people who've used it. See if you like it! I have a very basic web page you can download it from at: http://www.angelfire.com/biz7/sqrtree Regards Wayne Ivory -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Yingqi Cui Sent: Tuesday, 7 January 2003 2:06 AM To: < Subject: [sqr-users] SQR Tools for PS 8.18 We are evaluating SQR tools for PeopleSoft Tools 8.18. Which one is compatible? SQR Plus, Brio SQR Builder, SQR Workbench? Which one are you using? Do you like it? Any info is greatly appreciated! Yingqi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 11:15:15 2003 From: Bob Helm Subject: RE: [sqr-users] SQR Tools for PS 8.18 Date: Thu, 9 Jan 2003 10:14:09 -0600 Then please, allow me to plug SQR TREE ;-) I have SQR Tree and I highly recommend it to anyone working with SQR. It's most useful, very affordable and has saved me hours of time. Sincerely, B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons -----Original Message----- From: Karver [mailto:basic@gateway.net.au] Sent: Thursday, January 09, 2003 9:53 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Tools for PS 8.18 Hi Yingqi, Pardon me if I give my own product a plug. SQR Tree is a utility for showing a tree structure of the procedure calls and #include files in an SQR program. It uses a Windows Explorer type interface with expandable branches on the left, and a listing of the program on the right. Clicking on a branch in the tree causes the listing to jump to the line calling the procedure or #include file. Double clicking on a branch causes the listing to jump to the line where the procedure or #include file begins. I've had plenty of positive comments from people who've used it. See if you like it! I have a very basic web page you can download it from at: http://www.angelfire.com/biz7/sqrtree Regards Wayne Ivory -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Yingqi Cui Sent: Tuesday, 7 January 2003 2:06 AM To: < Subject: [sqr-users] SQR Tools for PS 8.18 We are evaluating SQR tools for PeopleSoft Tools 8.18. Which one is compatible? SQR Plus, Brio SQR Builder, SQR Workbench? Which one are you using? Do you like it? Any info is greatly appreciated! Yingqi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 11:18:07 2003 Subject: RE: [sqr-users] SQR Tools for PS 8.18 From: Rick_Creel@aoncons.com Date: Thu, 9 Jan 2003 11:17:30 -0500 Affordable? You mean it's not free?!?! Bob Helm e.com> cc: Sent by: Subject: RE: [sqr-users] SQR Tools for PS 8.18 sqr-users-admin@s qrug.org 01/09/2003 11:14 AM Please respond to sqr-users Then please, allow me to plug SQR TREE ;-) I have SQR Tree and I highly recommend it to anyone working with SQR. It's most useful, very affordable and has saved me hours of time. Sincerely, B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons -----Original Message----- From: Karver [mailto:basic@gateway.net.au] Sent: Thursday, January 09, 2003 9:53 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Tools for PS 8.18 Hi Yingqi, Pardon me if I give my own product a plug. SQR Tree is a utility for showing a tree structure of the procedure calls and #include files in an SQR program. It uses a Windows Explorer type interface with expandable branches on the left, and a listing of the program on the right. Clicking on a branch in the tree causes the listing to jump to the line calling the procedure or #include file. Double clicking on a branch causes the listing to jump to the line where the procedure or #include file begins. I've had plenty of positive comments from people who've used it. See if you like it! I have a very basic web page you can download it from at: http://www.angelfire.com/biz7/sqrtree Regards Wayne Ivory -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Yingqi Cui Sent: Tuesday, 7 January 2003 2:06 AM To: < Subject: [sqr-users] SQR Tools for PS 8.18 We are evaluating SQR tools for PeopleSoft Tools 8.18. Which one is compatible? SQR Plus, Brio SQR Builder, SQR Workbench? Which one are you using? Do you like it? Any info is greatly appreciated! Yingqi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 11:41:06 2003 From: "Karver" Subject: RE: [sqr-users] SQR Tools for PS 8.18 Date: Fri, 10 Jan 2003 00:43:35 +0800 SQR Tree is shareware. You are free to download and try it. If you like it you can pay $25. Regards Wayne Ivory -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Rick_Creel@aoncons.com Sent: Friday, 10 January 2003 12:18 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Tools for PS 8.18 Affordable? You mean it's not free?!?! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 6 15:28:28 2003 From: "Poonam Auluck" Date: Mon, 6 Jan 2003 15:26:02 -0500 Subject: [sqr-users] Auto-commits Hi All - I was wondering if anyone came across turning the auto-commit functionality off in SQR. I would like to insert some rows into a table, but I don't want to commit it. I just want the data to be temporarily sitting in there. I thought there was a flag or maybe someplace that I can turn this off, but I can't find it. I thought the flag was -XC, which should suppress the database commit when the report has finished running, only when I use this in the command line, I get an error saying it doesn't understand it. Should I be typing in something else along w/ '-XC'...Do I have to put 'False' in there somewhere? Any help is appreciated! Thanks! _________________ Poonam Auluck AMS, Inc. 703-227-5576 . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 6 16:38:29 2003 Subject: Re: [sqr-users] Auto-commits From: rwulfson@bost.com Date: Mon, 6 Jan 2003 13:55:53 -0700 The book cites this flag for a "callable" sqr? But couldn't you do a rollback before the program ends? Thanks, Russ Wulfson Developer Boston Market Corporation 303-216-5614 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 6 16:54:08 2003 From: "Genady Sosnovsky" Subject: Re: [sqr-users] Auto-commits Date: Mon, 6 Jan 2003 15:53:03 -0600 Hi, Binary SQR modules do not have (-XC) flag available. Only Callable SQR ( sqr invoked via sqr API) has this option. Here is the work around I can suggest: If you determine ( within you report logic) that there is a need to rollback inserted/deleted/updated data you can just explicitly issue ROLLBACK command or its equivalent depends on what database you use. For Oracle: BEGIN-PROCEDURE ora_rollback BEGIN-SQL Begin Rollback;; End;; END-SQL END-PROCEDURE ! ora_rollback Also, sqr will not commit data if terminated with an error. Genady Sosnovsky genadys@ontko.com ----- Original Message ----- From: "Poonam Auluck" To: Sent: Monday, January 06, 2003 2:26 PM Subject: [sqr-users] Auto-commits > Hi All - I was wondering if anyone came across turning the auto-commit > functionality off in SQR. I would like to insert some rows into a table, > but I don't want to commit it. I just want the data to be temporarily > sitting in there. > > I thought there was a flag or maybe someplace that I can turn this off, but > I can't find it. I thought the flag was -XC, which should suppress the > database commit when the report has finished running, only when I use this > in the command line, I get an error saying it doesn't understand it. > Should I be typing in something else along w/ '-XC'...Do I have to put > 'False' in there somewhere? > > Any help is appreciated! > Thanks! > > > _________________ > Poonam Auluck > AMS, Inc. > 703-227-5576 > > > . > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 6 16:54:24 2003 Subject: Re: [sqr-users] Auto-commits From: amy.harvel@phoenix.gov Date: Mon, 6 Jan 2003 14:53:49 -0700 Place a Rollback in your program before the end of the program. If you are using PeopleSoft put the rollback before the reset and sttapi-term Rollback Show 'Rolling Back Database' do RESET do STDAPI-TERM do Get-Current-DateTime show $ProgName ' Completed Successfully at ' $AsOfNow ' on ' $AsOfToday Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 "Poonam Auluck" Sent by: sqr-users-admin@sqrug.org 01/06/2003 01:26 PM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: [sqr-users] Auto-commits Hi All - I was wondering if anyone came across turning the auto-commit functionality off in SQR. I would like to insert some rows into a table, but I don't want to commit it. I just want the data to be temporarily sitting in there. I thought there was a flag or maybe someplace that I can turn this off, but I can't find it. I thought the flag was -XC, which should suppress the database commit when the report has finished running, only when I use this in the command line, I get an error saying it doesn't understand it. Should I be typing in something else along w/ '-XC'...Do I have to put 'False' in there somewhere? Any help is appreciated! Thanks! _________________ Poonam Auluck AMS, Inc. 703-227-5576 . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 06:33:32 2003 Date: Tue, 07 Jan 2003 06:30:47 -0500 From: "Jeffrey Bedell" Subject: Re: [sqr-users] Auto-commits As the last step in your program, do a rollback. Jeffrey K. Bedell Senior Systems Analyst Information Systems Syracuse University (315) 443-9273 >>> poonam.auluck@ams.com 01/06/03 03:26PM >>> Hi All - I was wondering if anyone came across turning the auto-commit functionality off in SQR. I would like to insert some rows into a table, but I don't want to commit it. I just want the data to be temporarily sitting in there. I thought there was a flag or maybe someplace that I can turn this off, but I can't find it. I thought the flag was -XC, which should suppress the database commit when the report has finished running, only when I use this in the command line, I get an error saying it doesn't understand it. Should I be typing in something else along w/ '-XC'...Do I have to put 'False' in there somewhere? Any help is appreciated! Thanks! _________________ Poonam Auluck AMS, Inc. 703-227-5576 . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 10:35:05 2003 From: "Turner, Ivan" Subject: RE: [sqr-users] Auto-commits Date: Tue, 7 Jan 2003 10:34:16 -0500 If you are on a Oracle database you can create a GLOBAL TEMPORARY TABLE. Part of the syntax of creating this table is either ON COMMIT DELETE ROWS or ON COMMIT PRESERVE ROWS. This may be your best solution. -----Original Message----- From: Genady Sosnovsky [mailto:genadys@ontko.com] Sent: Monday, January 06, 2003 4:53 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Auto-commits Hi, Binary SQR modules do not have (-XC) flag available. Only Callable SQR ( sqr invoked via sqr API) has this option. Here is the work around I can suggest: If you determine ( within you report logic) that there is a need to rollback inserted/deleted/updated data you can just explicitly issue ROLLBACK command or its equivalent depends on what database you use. For Oracle: BEGIN-PROCEDURE ora_rollback BEGIN-SQL Begin Rollback;; End;; END-SQL END-PROCEDURE ! ora_rollback Also, sqr will not commit data if terminated with an error. Genady Sosnovsky genadys@ontko.com ----- Original Message ----- From: "Poonam Auluck" To: Sent: Monday, January 06, 2003 2:26 PM Subject: [sqr-users] Auto-commits > Hi All - I was wondering if anyone came across turning the auto-commit > functionality off in SQR. I would like to insert some rows into a table, > but I don't want to commit it. I just want the data to be temporarily > sitting in there. > > I thought there was a flag or maybe someplace that I can turn this off, but > I can't find it. I thought the flag was -XC, which should suppress the > database commit when the report has finished running, only when I use this > in the command line, I get an error saying it doesn't understand it. > Should I be typing in something else along w/ '-XC'...Do I have to put > 'False' in there somewhere? > > Any help is appreciated! > Thanks! > > > _________________ > Poonam Auluck > AMS, Inc. > 703-227-5576 > > > . > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 10:05:15 2003 Date: Tue, 07 Jan 2003 10:02:43 -0500 From: "James Lanter" Subject: [sqr-users] Save As for Text Files This one seems easy, but I'm at a lost. Basically, I need to create a new text file each time the SQR is run. The output has to be a fixed length text file and I use the date in the file name. The problem is I can't open a text file that is not there and I don't want to overwrite a previous run's output. Am I missing something simple here? Thanks! Jamie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 10:26:09 2003 Date: Tue, 07 Jan 2003 10:24:40 -0500 From: "Prasanna Menta" Subject: Re: [sqr-users] Save As for Text Files If you are using Peoplesoft, you can use your process instance concatenated with the date which might be a good solution. If not you need to initialise a counter which needs to be stored at a back end table and update the counter each time when a new process is run and use this to get the file name Hope this helps Prasanna James Lanter wrote: > > This one seems easy, but I'm at a lost. > > Basically, I need to create a new text file each time the SQR is run. > The output has to be a fixed length text file and I use the date in the > file name. The problem is I can't open a text file that is not there > and I don't want to overwrite a previous run's output. Am I missing > something simple here? > > Thanks! > > Jamie > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 10:40:27 2003 Subject: Re: [sqr-users] Save As for Text Files From: Ramzi_Salameh@daveandbusters.com Date: Tue, 7 Jan 2003 09:43:08 -0600 You could add the hours and minutes (and maybe even seconds) to the file name, along with the date, just in case you need to run the SQR several times in 1 day. By adding the date & time to the filename you should always get a unique name. The file doesn't have to already exist in order to open it for writing. HTH ------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. ------------------------------------------ "Prasanna Menta" To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: Re: [sqr-users] Save As for Text Files qrug.org 01/07/03 09:24 AM Please respond to sqr-users If you are using Peoplesoft, you can use your process instance concatenated with the date which might be a good solution. If not you need to initialise a counter which needs to be stored at a back end table and update the counter each time when a new process is run and use this to get the file name Hope this helps Prasanna James Lanter wrote: > > This one seems easy, but I'm at a lost. > > Basically, I need to create a new text file each time the SQR is run. > The output has to be a fixed length text file and I use the date in the > file name. The problem is I can't open a text file that is not there > and I don't want to overwrite a previous run's output. Am I missing > something simple here? > > Thanks! > > Jamie > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 11:30:12 2003 From: "Stephen Ratliff" Subject: Re: [sqr-users] Save As for Text Files Date: Tue, 7 Jan 2003 10:27:09 -0600 Or, you can even create a new subfolder that is dated to put the new file with the same filename. You can do this by using command line commands while the SQR is running. Something like: let $FileDT = $AsOfToday let $Make_Dir = 'command.com /c mkdir T:\Groups\Custom\' || $FileDT call system using $Make_Dir #Dir_Return_Value It's an option if the filename must be consistant and you cannot concatenate process_instance, counter or time to the filename. Hope this helps. Stephen ----- Original Message ----- From: "James Lanter" To: Sent: Tuesday, January 07, 2003 9:02 AM Subject: [sqr-users] Save As for Text Files > This one seems easy, but I'm at a lost. > > Basically, I need to create a new text file each time the SQR is run. > The output has to be a fixed length text file and I use the date in the > file name. The problem is I can't open a text file that is not there > and I don't want to overwrite a previous run's output. Am I missing > something simple here? > > Thanks! > > Jamie > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 12:15:07 2003 Date: Tue, 7 Jan 2003 11:14:11 -0600 From: "Lindquist, Maria" Subject: [sqr-users] Images in PDF Is there something special you have to do to get images to show up in PDF? I changed my image to a jpeg and it still didn't work. print-image (0,78) type=jpeg-file image-size=(30,5) source='F:\sa80\testsqr\uwc_logo.jpg' *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 13:55:27 2003 Date: Tue, 7 Jan 2003 10:54:01 -0800 (PST) From: D Patel Subject: Re: [sqr-users] Images in PDF Nothing is wrong, change 0 to 1 and try to generate report. D Patel --- "Lindquist, Maria" wrote: > Is there something special you have to do to get > images to show up in > PDF? I changed my image to a jpeg and it still > didn't work. > > print-image (0,78) > type=jpeg-file > image-size=(30,5) > source='F:\sa80\testsqr\uwc_logo.jpg' > > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 14:33:26 2003 Subject: RE: [sqr-users] Images in PDF Date: Tue, 7 Jan 2003 13:31:53 -0600 From: "Lindquist, Maria" The image just shows up as a box with a X in it. -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Tuesday, January 07, 2003 12:54 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Images in PDF Nothing is wrong, change 0 to 1 and try to generate report. D Patel --- "Lindquist, Maria" wrote: > Is there something special you have to do to get > images to show up in > PDF? I changed my image to a jpeg and it still > didn't work. > > print-image (0,78) > type=jpeg-file > image-size=(30,5) > source='F:\sa80\testsqr\uwc_logo.jpg' > > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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-admin@sqrug.org Tue Jan 7 15:16:38 2003 From: "Jones, Barbra" Subject: RE: [sqr-users] Images in PDF Date: Tue, 7 Jan 2003 14:15:34 -0600 Your code below is how ours is set up, and the images appear in the PDF. The only difference is the image is in the same directory as the sqr, so the source line references the file name only (ex: 'source=uwc_logo.jpg') You may also try declaring the image (declare-image) in the setup section - you shouldn't have to though. Barbra -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Tuesday, January 07, 2003 1:32 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Images in PDF The image just shows up as a box with a X in it. -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Tuesday, January 07, 2003 12:54 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Images in PDF Nothing is wrong, change 0 to 1 and try to generate report. D Patel --- "Lindquist, Maria" wrote: > Is there something special you have to do to get > images to show up in > PDF? I changed my image to a jpeg and it still > didn't work. > > print-image (0,78) > type=jpeg-file > image-size=(30,5) > source='F:\sa80\testsqr\uwc_logo.jpg' > > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 16:00:09 2003 Subject: RE: [sqr-users] Images in PDF Date: Wed, 8 Jan 2003 14:59:14 -0600 From: "Lindquist, Maria" What version are you using of PeopleSoft? -----Original Message----- From: Jones, Barbra [mailto:bjones@vignette.com] Sent: Tuesday, January 07, 2003 2:16 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Images in PDF Your code below is how ours is set up, and the images appear in the PDF. The only difference is the image is in the same directory as the sqr, so the source line references the file name only (ex: 'source=uwc_logo.jpg') You may also try declaring the image (declare-image) in the setup section - you shouldn't have to though. Barbra -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Tuesday, January 07, 2003 1:32 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Images in PDF The image just shows up as a box with a X in it. -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Tuesday, January 07, 2003 12:54 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Images in PDF Nothing is wrong, change 0 to 1 and try to generate report. D Patel --- "Lindquist, Maria" wrote: > Is there something special you have to do to get > images to show up in > PDF? I changed my image to a jpeg and it still > didn't work. > > print-image (0,78) > type=jpeg-file > image-size=(30,5) > source='F:\sa80\testsqr\uwc_logo.jpg' > > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 16:15:10 2003 From: "Jones, Barbra" Subject: RE: [sqr-users] Images in PDF Date: Wed, 8 Jan 2003 15:13:50 -0600 We do not use PeopleSoft. We have implemented Brio as our reporting solution, and SQR as part of that. We are on SQR 6.1.3 hitting an Oracle 8i db and both of those on Solaris boxes. We use Brio Portal which allows auto creation of PDFs (there is a check box when publishing the SQR). Maybe someone out there has had this problem with PDFs through PeopleSoft? Barbra -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Wednesday, January 08, 2003 2:59 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Images in PDF What version are you using of PeopleSoft? -----Original Message----- From: Jones, Barbra [mailto:bjones@vignette.com] Sent: Tuesday, January 07, 2003 2:16 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Images in PDF Your code below is how ours is set up, and the images appear in the PDF. The only difference is the image is in the same directory as the sqr, so the source line references the file name only (ex: 'source=uwc_logo.jpg') You may also try declaring the image (declare-image) in the setup section - you shouldn't have to though. Barbra -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Tuesday, January 07, 2003 1:32 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Images in PDF The image just shows up as a box with a X in it. -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Tuesday, January 07, 2003 12:54 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Images in PDF Nothing is wrong, change 0 to 1 and try to generate report. D Patel --- "Lindquist, Maria" wrote: > Is there something special you have to do to get > images to show up in > PDF? I changed my image to a jpeg and it still > didn't work. > > print-image (0,78) > type=jpeg-file > image-size=(30,5) > source='F:\sa80\testsqr\uwc_logo.jpg' > > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 16:26:07 2003 From: "Vallabhu, Bindu" Subject: RE: [sqr-users] Images in PDF Date: Wed, 8 Jan 2003 16:24:52 -0500 Barbra, can you check to see in explorer what the file size of the .gif file is. sometimes it gets deleted but then appears to be there and the file size would be 0. you got to copy it again into the directory and run the program. -----Original Message----- From: Jones, Barbra [mailto:bjones@vignette.com] Sent: 01/08/2003 4:14 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Images in PDF We do not use PeopleSoft. We have implemented Brio as our reporting solution, and SQR as part of that. We are on SQR 6.1.3 hitting an Oracle 8i db and both of those on Solaris boxes. We use Brio Portal which allows auto creation of PDFs (there is a check box when publishing the SQR). Maybe someone out there has had this problem with PDFs through PeopleSoft? Barbra -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Wednesday, January 08, 2003 2:59 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Images in PDF What version are you using of PeopleSoft? -----Original Message----- From: Jones, Barbra [mailto:bjones@vignette.com] Sent: Tuesday, January 07, 2003 2:16 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Images in PDF Your code below is how ours is set up, and the images appear in the PDF. The only difference is the image is in the same directory as the sqr, so the source line references the file name only (ex: 'source=uwc_logo.jpg') You may also try declaring the image (declare-image) in the setup section - you shouldn't have to though. Barbra -----Original Message----- From: Lindquist, Maria [mailto:mlindqui@uwc.edu] Sent: Tuesday, January 07, 2003 1:32 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Images in PDF The image just shows up as a box with a X in it. -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Tuesday, January 07, 2003 12:54 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Images in PDF Nothing is wrong, change 0 to 1 and try to generate report. D Patel --- "Lindquist, Maria" wrote: > Is there something special you have to do to get > images to show up in > PDF? I changed my image to a jpeg and it still > didn't work. > > print-image (0,78) > type=jpeg-file > image-size=(30,5) > source='F:\sa80\testsqr\uwc_logo.jpg' > > > > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 13:06:42 2003 From: Joe Hanna Date: Tue, 7 Jan 2003 10:05:19 -0800 Subject: [sqr-users] SQR report printing to a Zebra printer This is a multi-part message in MIME format... ------_=_NextPart_000_01C2B677.5725BE50 Content-Type: text/plain I'm challenged! Attempting to send a label report written in SQR to a Zebra printer. I've seen the previous messages in Aug 2000. Does anyone have any further info? I'm generating a label with 2 characters in the middle of the line. Code is as follows: Declare-Layout Default Orientation = PORTRAIT Paper-Size = (3in, 1in) Top-Margin = 0.2 Bottom-Margin = 0.02 Left-Margin = 0.002 LINE-WIDTH = 2.8 Line-Height = 1 Char-Width = 1 End-Declare Declare-Printer ZEBRA_TLP_2844 Type=LP End-Declare End-Setup !*************************************************************************** ***** Begin-Program Do Main End-Program !*************************************************************************** ***** Begin-Procedure Main print 'XXX-XX-XX-XX-XX' (1,1) BOLD NEW-PAGE print 'THIS IS THE BINNUM' (1,1) End-Procedure Anyone see a glitch??? Thanks, Joe Hanna Calpine Maximo Support Center Tel: 916-294-6152 Cell: 281-799-8923 jhanna@calpine.com / http://calpinetoday.calpine.com/maximo-support/ ------_=_NextPart_000_01C2B677.5725BE50 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. ------_=_NextPart_000_01C2B677.5725BE50-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 14:13:38 2003 From: "Langdon, Jodi" Date: Tue, 7 Jan 2003 14:11:58 -0500 Subject: [sqr-users] Help in setting up an encrypted password Has anybody encrypted the SYSADM PeopleSoft password so developers can run their SQRs from the UNIX prompt?? I am creating an OPS$PASSWORD user in Oracle to store the PeopleSoft SYSADM password in a table. I need to encrypt this password in Oracle. How do I pass this password to run SQRs from the UNIX prompt$ Any help with writing this would be appreciated. Thanks, Jodi Jodi Langdon Standard Register Company jodi.langdon@standardregister.com (937) 221-3452 - Work _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 14:30:28 2003 Date: Tue, 07 Jan 2003 14:29:19 -0500 From: "Prasanna Menta" Subject: Re: [sqr-users] Help in setting up an encrypted password WIll it be Ok to store the password as a variable in .profile and call the variable at the unix prompt? "Langdon, Jodi" wrote: > > Has anybody encrypted the SYSADM PeopleSoft password so developers can run > their SQRs from the UNIX prompt?? > > I am creating an OPS$PASSWORD user in Oracle to store the PeopleSoft SYSADM > password in a table. I need to encrypt this password in Oracle. > > How do I pass this password to run SQRs from the UNIX prompt$ > > Any help with writing this would be appreciated. > > Thanks, > Jodi > > Jodi Langdon > Standard Register Company > jodi.langdon@standardregister.com > (937) 221-3452 - Work > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 14:46:25 2003 From: "Langdon, Jodi" Subject: RE: [sqr-users] Help in setting up an encrypted password Date: Tue, 7 Jan 2003 14:44:56 -0500 I am not sure. The issue is that we do not want the SYSADM password used or seen by the developers since it is a privileged account. Thanks, Jodi Jodi Langdon Standard Register Company jodi.langdon@standardregister.com (937) 221-3452 - Work -----Original Message----- From: Prasanna Menta [mailto:pmenta@umuc.edu] Sent: Tuesday, January 07, 2003 2:29 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Help in setting up an encrypted password WIll it be Ok to store the password as a variable in .profile and call the variable at the unix prompt? "Langdon, Jodi" wrote: > > Has anybody encrypted the SYSADM PeopleSoft password so developers can run > their SQRs from the UNIX prompt?? > > I am creating an OPS$PASSWORD user in Oracle to store the PeopleSoft SYSADM > password in a table. I need to encrypt this password in Oracle. > > How do I pass this password to run SQRs from the UNIX prompt$ > > Any help with writing this would be appreciated. > > Thanks, > Jodi > > Jodi Langdon > Standard Register Company > jodi.langdon@standardregister.com > (937) 221-3452 - Work > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 11:00:07 2003 From: Al H Subject: Re: [sqr-users] Help in setting up an encrypted password Date: Wed, 08 Jan 2003 07:58:13 -0800 The only real "secure" way to deal with this issue is to set up a non-sysadm account with grants and synonyms that the developers could run their SQR's through, or to use some kind of front end execution program that has the password hidden in it. If you are using PeopleSoft, Process Scheduler does this for you. The reality is that if an SQR is to run using the system password, then the developer of the SQR pretty much has all the power of the account anyway so its a rather futile effort. On Tue, 7 Jan 2003 14:11:58 -0500 , you wrote: >Has anybody encrypted the SYSADM PeopleSoft password so developers can run >their SQRs from the UNIX prompt?? > >I am creating an OPS$PASSWORD user in Oracle to store the PeopleSoft SYSADM >password in a table. I need to encrypt this password in Oracle. > >How do I pass this password to run SQRs from the UNIX prompt$ > >Any help with writing this would be appreciated. > >Thanks, >Jodi > >Jodi Langdon >Standard Register Company >jodi.langdon@standardregister.com >(937) 221-3452 - Work > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 18:46:06 2003 Subject: Re: [sqr-users] Help in setting up an encrypted password From: gopal_krishan@peoplesoft.com Date: Thu, 9 Jan 2003 09:45:35 +1000 You may consider SqrPlus Workbench. It lets sqr developer run their sqr's without knowing the password. "Al H" cc: Sent by: Subject: Re: [sqr-users] Help in setting up an encrypted password sqr-users-admin@sq rug.org 01/09/2003 02:58 AM Please respond to sqr-users The only real "secure" way to deal with this issue is to set up a non-sysadm account with grants and synonyms that the developers could run their SQR's through, or to use some kind of front end execution program that has the password hidden in it. If you are using PeopleSoft, Process Scheduler does this for you. The reality is that if an SQR is to run using the system password, then the developer of the SQR pretty much has all the power of the account anyway so its a rather futile effort. On Tue, 7 Jan 2003 14:11:58 -0500 , you wrote: >Has anybody encrypted the SYSADM PeopleSoft password so developers can run >their SQRs from the UNIX prompt?? > >I am creating an OPS$PASSWORD user in Oracle to store the PeopleSoft SYSADM >password in a table. I need to encrypt this password in Oracle. > >How do I pass this password to run SQRs from the UNIX prompt$ > >Any help with writing this would be appreciated. > >Thanks, >Jodi > >Jodi Langdon >Standard Register Company >jodi.langdon@standardregister.com >(937) 221-3452 - Work > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 14:57:26 2003 From: "Katrina Trescott" Date: Tue, 7 Jan 2003 14:55:53 -0500 (EST) Subject: [sqr-users] Help in running ben100 Hello, We are trying to run Ben100 in one environement and are getting an error because the ownerid is not getting put in front of the table name ; where the table name is supplied by a substitution variable. The ownerid is put in front of tables that do not use the substitution variable. This SQR runs in our development environment; but not is our integration testing environment. This is very confusing to me. Where does the ownerid come from in when a substitution variable is used versus not. We run on OS390 and have DB2.Thanks,Katrina Trescott _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 15:03:26 2003 Subject: Re: [sqr-users] Help in running ben100 From: rwulfson@bost.com Date: Tue, 7 Jan 2003 13:04:37 -0700 Are you running this from a page inside psoft or outside from the command line? The variables for oprid , etc come from the run control record associated with the page. Thanks, Russ Wulfson Developer Boston Market Corporation 303-216-5614 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 15:12:26 2003 From: "Langdon, Jodi" Subject: RE: [sqr-users] Help in running ben100 Date: Tue, 7 Jan 2003 15:11:33 -0500 I am running this on the outside from the command line. Jodi Langdon Standard Register Company jodi.langdon@standardregister.com (937) 221-3452 - Work (937) 272-4224 - Cell -----Original Message----- From: rwulfson@bost.com [mailto:rwulfson@bost.com] Sent: Tuesday, January 07, 2003 3:05 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Help in running ben100 Are you running this from a page inside psoft or outside from the command line? The variables for oprid , etc come from the run control record associated with the page. Thanks, Russ Wulfson Developer Boston Market Corporation 303-216-5614 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 15:13:25 2003 From: "David Thorburn" Subject: Re: [sqr-users] Help in running ben100 Date: Tue, 7 Jan 2003 12:12:05 -0800 Look at the expended JES JCL and see what DBID or OWNERID is resolved when your JUCL is submitted. Usually different PROCS are set up for each DB/ENVIRONMENT. You are probably not using the right PROC setup for your acceptance DB image. Your DBA will probably be helpful in this case too! Regards, David ----- Original Message ----- From: "Katrina Trescott" To: Sent: Tuesday, January 07, 2003 11:55 AM Subject: [sqr-users] Help in running ben100 > Hello, We are trying to run Ben100 in one environement and are getting an error because the ownerid is not getting put in front of the table name ; where the table name is supplied by a substitution variable. The ownerid is put in front of tables that do not use the substitution variable. This SQR runs in our development environment; but not is our integration testing environment. This is very confusing to me. Where does the ownerid come from in when a substitution variable is used versus not. We run on OS390 and have DB2.Thanks,Katrina Trescott > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 16:25:17 2003 Subject: Re: [sqr-users] Help in running ben100 From: "Katrina Trescott" Date: Tue, 7 Jan 2003 16:23:32 -0500 (EST) We are running it on the mainframe using JCL. --- On Tue 01/07, wrote: From: [mailto: rwulfson@bost.com] To: sqr-users@sqrug.org Date: Tue, 7 Jan 2003 13:04:37 -0700 Subject: Re: [sqr-users] Help in running ben100 Are you running this from a page inside psoft or outside from the command line? The variables for oprid , etc come from the run control record associated with the page. Thanks, Russ Wulfson Developer Boston Market Corporation 303-216-5614 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 16:28:06 2003 Subject: Re: [sqr-users] Help in running ben100 From: "Katrina Trescott" Date: Tue, 7 Jan 2003 16:26:25 -0500 (EST) Thank you david. What I don't understand is that the SQL works if the table name is explicitly stated; i.e. select emplid from ps_job. It does not work if you define $tbname to be 'ps_job' and use select emplid from /$tbname/ I will check with the DBA though. Katrina Trescott --- On Tue 01/07, David Thorburn wrote:From: David Thorburn [mailto: thorburn@conl.net]To: sqr-users@sqrug.orgDate: Tue, 7 Jan 2003 12:12:05 -0800Subject: Re: [sqr-users] Help in running ben100Look at the expended JES JCL and see what DBID or OWNERID is resolved whenyour JUCL is submitted.Usually different PROCS are set up for each DB/ENVIRONMENT.You are probably not using the right PROC setup for your acceptance DBimage.Your DBA will probably be helpful in this case too!Regards,David----- Original Message -----From: "Katrina Trescott" To: Sent: Tuesday, January 07, 2003 11:55 AMSubject: [sqr-users] Help in running ben100> Hello, We are trying to run Ben100 in one environement and are getting anerror because the ownerid is not getting put in front of the table name ;where the table name is supplied by a substitution variable. The ownerid isput in front of tables that do not use the substitution variable. This SQRruns in our development environment; but not is our integration testingenvironment. This is very confusing to me. Where does the ownerid comefrom in when a substitution variable is used versus not. We run on OS390and have DB2.Thanks,Katrina Trescott>> _______________________________________________> Join Excite! - http://www.excite.com> The most personalized portal on the Web!>> _______________________________________________> sqr-users mailing list> sqr-users@sqrug.org> http://www.sqrug.org/mailman/listinfo/sqr-users>_______________________________________________sqr-users mailing listsqr-users@sqrug.orghttp://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 15:30:26 2003 From: DKubicek@grede.com Date: Tue, 7 Jan 2003 14:29:49 -0600 Subject: [sqr-users] SQL Server 7 Trigger Maximo 4.1.1P03 Sql Server7 I am trying to create the following trigger to protect the short description field on the item table. This is being done because my users still need access to the longdescription field so I can not make the field read only in Object Nationaliser. the problem is in the line: select @old_desc = (select a.description from maxtest.dbo.item a, inserted ins where a.itemnum = ins.itemnum) This does not set @old_desc = to the description befor it is changed. if I put select @old_desc = 'OLD DESCRIPTION' it does replace the changed description with "OLD DESCRIPTION'. Does anybody have any idea why this trigger would not work. IF EXISTS (SELECT name FROM sysobjects WHERE name = 'Protect_Item_Description' AND type = 'TR') DROP TRIGGER Protect_Item_Description GO create trigger Protect_Item_Description on item for update as declare @itemnum varchar(32) declare @old_desc varchar(254) declare @new_desc varchar(254) BEGIN select @itemnum = ins.itemnum from inserted ins select @new_desc = ins.description from inserted ins select @old_desc = (select a.description from maxtest.dbo.item a, inserted ins where a.itemnum = ins.itemnum) update item set description = @old_desc where itemnum = @itemnum END Daniel Kubicek (Maximo SA) Senior Programmer Analyst - Engineering & Procurement Grede Foundries, Inc. 414.256.9210 414-708-9210 Cell dkubicek@grede.com Daniel Kubicek (Maximo SA) Senior Programmer Analyst - Engineering & Procurement Grede Foundries, Inc. 414.256.9210 414-708-9210 Cell dkubicek@grede.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 17:12:31 2003 From: CARFREH1@Nationwide.com Date: Tue, 7 Jan 2003 17:11:00 -0500 Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 17:25:35 2003 Subject: Re: [sqr-users] Passing Variables to Inline Views From: Rick_Creel@aoncons.com Date: Tue, 7 Jan 2003 17:27:45 -0500 I have done something like this and it seems to work fine for me --------------------------------- let $squote = '''' let $dynamic_where = ' col5 in (' let $dynamic_where = $dynamic_where || $squote || 'aaa' || $squote || ',' let $dynamic_where = $dynamic_where || $squote || 'bbb' || $squote || ',' let $dynamic_where = $dynamic_where || $squote || 'ccc' || $squote || ')' this should yield $dynamic_where = ' col5 in ('aaa','bbb','ccc') Then you can have: (select col1, col2, col3 col4 from table_c, table_d where [$dynamic_where]) --------------------------------- CARFREH1@nationwi de.com To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Passing Variables to Inline Views qrug.org 01/07/2003 05:11 PM Please respond to sqr-users Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 17:37:26 2003 From: James Womeldorf Subject: RE: [sqr-users] Passing Variables to Inline Views Date: Tue, 7 Jan 2003 16:35:54 -0600 I believe 'Dynamic SQL' is the answer here. I have not tested this, but I think this will work. The show statement should look like this: $var1 = 'aaa','bbb' let $Q = chr(39) let $var1 = $Q || 'aaa' || $Q || ',' $Q || 'bbb' || $Q show '$var1 = ' $var1 begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in ([$var1])) c -----Original Message----- From: CARFREH1@nationwide.com [mailto:CARFREH1@nationwide.com] Sent: Tuesday, January 07, 2003 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 7 17:49:36 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Passing Variables to Inline Views Date: Tue, 7 Jan 2003 14:47:40 -0800 That looks good, Rick, but why so bulky? It's not like we're expecting SQL or SQR to change the value of $squote. I'd write it as: let $in_list = '(''aaa'',''bbb'',''ccc'')' -----Original Message----- From: Rick_Creel@aoncons.com [mailto:Rick_Creel@aoncons.com] Sent: Tuesday, January 07, 2003 2:28 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Passing Variables to Inline Views I have done something like this and it seems to work fine for me --------------------------------- let $squote = '''' let $dynamic_where = ' col5 in (' let $dynamic_where = $dynamic_where || $squote || 'aaa' || $squote || ',' let $dynamic_where = $dynamic_where || $squote || 'bbb' || $squote || ',' let $dynamic_where = $dynamic_where || $squote || 'ccc' || $squote || ')' this should yield $dynamic_where = ' col5 in ('aaa','bbb','ccc') Then you can have: (select col1, col2, col3 col4 from table_c, table_d where [$dynamic_where]) --------------------------------- CARFREH1@nationwi de.com To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Passing Variables to Inline Views qrug.org 01/07/2003 05:11 PM Please respond to sqr-users Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 10:55:35 2003 Subject: RE: [sqr-users] Passing Variables to Inline Views From: CARFREH1@Nationwide.com Date: Wed, 8 Jan 2003 10:50:57 -0500 Still not working...I will give you exactly what I am running and maybe that will clarify (Please note that the variable $ga_numbers is being passed in at execution ('aaa','bbb','ccc') ). If I put [ ] around the variable $ga_numbers the SQR fails with an ORA-00921. It appears that SQL cannot see the variable due to the open bracket. Thanks everyone!!! SQL: select v.policy_number, v.product_code, pf.fund_code, f.fund_abbrev, pf.fund_unit_balance, pf.fund_company, pf.fund_type, pf.fund_version, v.annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in And here is the block: begin-select v.policy_number &policy_number v.product_code &product_code pf.fund_code &fund_code f.fund_abbrev &fund_abbrev pf.fund_unit_balance &fund_units pf.fund_company &fund_company pf.fund_type &fund_type pf.fund_version &fund_version v.annuitant_phone_number &annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in $ga_numbers and p.writing_agent_number = ale.wa_nbr union select p2.policy_number, p2.product_code, p2.annuitant_phone_number from expl_dly_policies p2, agents_linked_expld ale2, df_legend_ann_phone_nums dl where p2.policy_status_code between '1' and '5' and p2.writing_agent_number = ale2.wa_nbr and ale2.ga_nbr in ('ddd','eee') and p2.annuitant_phone_number = dl.annuitant_phone_number) v where pf.fund_company = f.fund_company and pf.fund_code||'' = f.fund_code and pf.fund_balance > 0 and v.policy_number = pf.policy_number order by v.policy_number, pf.fund_code end-select James Womeldorf T To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@sqrug.o rg bcc: Subject: RE: [sqr-users] Passing Variables to Inline Views 01/07/03 05:35 PM Please respond to sqr-users I believe 'Dynamic SQL' is the answer here. I have not tested this, but I think this will work. The show statement should look like this: $var1 = 'aaa','bbb' let $Q = chr(39) let $var1 = $Q || 'aaa' || $Q || ',' $Q || 'bbb' || $Q show '$var1 = ' $var1 begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in ([$var1])) c -----Original Message----- From: CARFREH1@nationwide.com [mailto:CARFREH1@nationwide.com] Sent: Tuesday, January 07, 2003 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 11:32:06 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Passing Variables to Inline Views Date: Wed, 8 Jan 2003 08:31:28 -0800 Please show us the code in which you set the value of $ga_numbers. -----Original Message----- From: CARFREH1@Nationwide.com [mailto:CARFREH1@Nationwide.com] Sent: Wednesday, January 08, 2003 7:51 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Passing Variables to Inline Views Still not working...I will give you exactly what I am running and maybe that will clarify (Please note that the variable $ga_numbers is being passed in at execution ('aaa','bbb','ccc') ). If I put [ ] around the variable $ga_numbers the SQR fails with an ORA-00921. It appears that SQL cannot see the variable due to the open bracket. Thanks everyone!!! SQL: select v.policy_number, v.product_code, pf.fund_code, f.fund_abbrev, pf.fund_unit_balance, pf.fund_company, pf.fund_type, pf.fund_version, v.annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in And here is the block: begin-select v.policy_number &policy_number v.product_code &product_code pf.fund_code &fund_code f.fund_abbrev &fund_abbrev pf.fund_unit_balance &fund_units pf.fund_company &fund_company pf.fund_type &fund_type pf.fund_version &fund_version v.annuitant_phone_number &annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in $ga_numbers and p.writing_agent_number = ale.wa_nbr union select p2.policy_number, p2.product_code, p2.annuitant_phone_number from expl_dly_policies p2, agents_linked_expld ale2, df_legend_ann_phone_nums dl where p2.policy_status_code between '1' and '5' and p2.writing_agent_number = ale2.wa_nbr and ale2.ga_nbr in ('ddd','eee') and p2.annuitant_phone_number = dl.annuitant_phone_number) v where pf.fund_company = f.fund_company and pf.fund_code||'' = f.fund_code and pf.fund_balance > 0 and v.policy_number = pf.policy_number order by v.policy_number, pf.fund_code end-select James Womeldorf T To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@sqrug.o rg bcc: Subject: RE: [sqr-users] Passing Variables to Inline Views 01/07/03 05:35 PM Please respond to sqr-users I believe 'Dynamic SQL' is the answer here. I have not tested this, but I think this will work. The show statement should look like this: $var1 = 'aaa','bbb' let $Q = chr(39) let $var1 = $Q || 'aaa' || $Q || ',' $Q || 'bbb' || $Q show '$var1 = ' $var1 begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in ([$var1])) c -----Original Message----- From: CARFREH1@nationwide.com [mailto:CARFREH1@nationwide.com] Sent: Tuesday, January 07, 2003 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 14:27:21 2003 Subject: RE: [sqr-users] Passing Variables to Inline Views From: CARFREH1@Nationwide.com Date: Wed, 8 Jan 2003 14:26:12 -0500 Not a problem. Here you go. Thank you!!! input $co_abbrev 'Input company abbrev' input $eff_dt 'Input effective date, YYYYMMDD' input $ga_numbers 'Input GA Nums' input $feed_path 'Input report path' |---------+--------------------------------------> | | "Alexander, Steve" | | | | | | | | | Sent by: | | | sqr-users-admin@sqrug.o| | | rg | | | | | | | | | | | | 01/08/03 11:31 AM | | | Please respond to | | | sqr-users | | | | |---------+--------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | T | | To: "'sqr-users@sqrug.org'" | | cc: | | | | bcc: | | Subject: RE: [sqr-users] Passing Variables to Inline Views | >--------------------------------------------------------------------------------------------------------------------------------------------------| Please show us the code in which you set the value of $ga_numbers. -----Original Message----- From: CARFREH1@Nationwide.com [mailto:CARFREH1@Nationwide.com] Sent: Wednesday, January 08, 2003 7:51 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Passing Variables to Inline Views Still not working...I will give you exactly what I am running and maybe that will clarify (Please note that the variable $ga_numbers is being passed in at execution ('aaa','bbb','ccc') ). If I put [ ] around the variable $ga_numbers the SQR fails with an ORA-00921. It appears that SQL cannot see the variable due to the open bracket. Thanks everyone!!! SQL: select v.policy_number, v.product_code, pf.fund_code, f.fund_abbrev, pf.fund_unit_balance, pf.fund_company, pf.fund_type, pf.fund_version, v.annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in And here is the block: begin-select v.policy_number &policy_number v.product_code &product_code pf.fund_code &fund_code f.fund_abbrev &fund_abbrev pf.fund_unit_balance &fund_units pf.fund_company &fund_company pf.fund_type &fund_type pf.fund_version &fund_version v.annuitant_phone_number &annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in $ga_numbers and p.writing_agent_number = ale.wa_nbr union select p2.policy_number, p2.product_code, p2.annuitant_phone_number from expl_dly_policies p2, agents_linked_expld ale2, df_legend_ann_phone_nums dl where p2.policy_status_code between '1' and '5' and p2.writing_agent_number = ale2.wa_nbr and ale2.ga_nbr in ('ddd','eee') and p2.annuitant_phone_number = dl.annuitant_phone_number) v where pf.fund_company = f.fund_company and pf.fund_code||'' = f.fund_code and pf.fund_balance > 0 and v.policy_number = pf.policy_number order by v.policy_number, pf.fund_code end-select James Womeldorf T To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@sqrug.o rg bcc: Subject: RE: [sqr-users] Passing Variables to Inline Views 01/07/03 05:35 PM Please respond to sqr-users I believe 'Dynamic SQL' is the answer here. I have not tested this, but I think this will work. The show statement should look like this: $var1 = 'aaa','bbb' let $Q = chr(39) let $var1 = $Q || 'aaa' || $Q || ',' $Q || 'bbb' || $Q show '$var1 = ' $var1 begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in ([$var1])) c -----Original Message----- From: CARFREH1@nationwide.com [mailto:CARFREH1@nationwide.com] Sent: Tuesday, January 07, 2003 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 20:24:05 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Passing Variables to Inline Views Date: Wed, 8 Jan 2003 17:23:11 -0800 So the users enter the values of $ga_numbers? That seems fraught with peril. You have to be sure the users type the list with a left parenthesis, one single quote, a value, one single quote, a comma, repeat as necessary, ... and a right parenthesis. (You only need two single quotes within the program itself for the SQR compiler to differentiate between the end of a string and a quote within a string.) For debugging, you might output the value of $ga_numbers. For ongoing use, I would write code to validate that string character by character, as hard as that would be. There are a lot of ways it could be wrong. The where clause won't work without the [] brackets around $ga_numbers. You could write "and ale.ga_nbr in ($ga_number1, $ga_number2, ...)" if you knew how many numbers there would be. Then the users should enter each $ga_number WITHOUT the parenthesis, quotes, and commas. But an ordinary variable can't contain a list of literal values. The SQR interface to the SQL interpreter won't expect to find multiple values and punctuation in an ordinary variable. It needs you to use a dynamic variable. -----Original Message----- From: CARFREH1@Nationwide.com [mailto:CARFREH1@Nationwide.com] Sent: Wednesday, January 08, 2003 11:26 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Passing Variables to Inline Views Not a problem. Here you go. Thank you!!! input $co_abbrev 'Input company abbrev' input $eff_dt 'Input effective date, YYYYMMDD' input $ga_numbers 'Input GA Nums' input $feed_path 'Input report path' |---------+--------------------------------------> | | "Alexander, Steve" | | | | | | | | | Sent by: | | | sqr-users-admin@sqrug.o| | | rg | | | | | | | | | | | | 01/08/03 11:31 AM | | | Please respond to | | | sqr-users | | | | |---------+--------------------------------------> >--------------------------------------------------------------------------- -----------------------------------------------------------------------| | | | T | | To: "'sqr-users@sqrug.org'" | | cc: | | | | bcc: | | Subject: RE: [sqr-users] Passing Variables to Inline Views | >--------------------------------------------------------------------------- -----------------------------------------------------------------------| Please show us the code in which you set the value of $ga_numbers. -----Original Message----- From: CARFREH1@Nationwide.com [mailto:CARFREH1@Nationwide.com] Sent: Wednesday, January 08, 2003 7:51 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Passing Variables to Inline Views Still not working...I will give you exactly what I am running and maybe that will clarify (Please note that the variable $ga_numbers is being passed in at execution ('aaa','bbb','ccc') ). If I put [ ] around the variable $ga_numbers the SQR fails with an ORA-00921. It appears that SQL cannot see the variable due to the open bracket. Thanks everyone!!! SQL: select v.policy_number, v.product_code, pf.fund_code, f.fund_abbrev, pf.fund_unit_balance, pf.fund_company, pf.fund_type, pf.fund_version, v.annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in And here is the block: begin-select v.policy_number &policy_number v.product_code &product_code pf.fund_code &fund_code f.fund_abbrev &fund_abbrev pf.fund_unit_balance &fund_units pf.fund_company &fund_company pf.fund_type &fund_type pf.fund_version &fund_version v.annuitant_phone_number &annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in $ga_numbers and p.writing_agent_number = ale.wa_nbr union select p2.policy_number, p2.product_code, p2.annuitant_phone_number from expl_dly_policies p2, agents_linked_expld ale2, df_legend_ann_phone_nums dl where p2.policy_status_code between '1' and '5' and p2.writing_agent_number = ale2.wa_nbr and ale2.ga_nbr in ('ddd','eee') and p2.annuitant_phone_number = dl.annuitant_phone_number) v where pf.fund_company = f.fund_company and pf.fund_code||'' = f.fund_code and pf.fund_balance > 0 and v.policy_number = pf.policy_number order by v.policy_number, pf.fund_code end-select James Womeldorf T To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@sqrug.o rg bcc: Subject: RE: [sqr-users] Passing Variables to Inline Views 01/07/03 05:35 PM Please respond to sqr-users I believe 'Dynamic SQL' is the answer here. I have not tested this, but I think this will work. The show statement should look like this: $var1 = 'aaa','bbb' let $Q = chr(39) let $var1 = $Q || 'aaa' || $Q || ',' $Q || 'bbb' || $Q show '$var1 = ' $var1 begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in ([$var1])) c -----Original Message----- From: CARFREH1@nationwide.com [mailto:CARFREH1@nationwide.com] Sent: Tuesday, January 07, 2003 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 14:32:05 2003 Date: Wed, 08 Jan 2003 14:33:24 -0500 From: Debbie Larney Subject: [sqr-users] Limiting Process Scheduler Output Options I would like the ability to limit the Type and Format available at runtime on the process scheduler request page. We are in version 8. I have tried changing the output destination options type in my proces definition but that doesn't limit the options available at runtime. I am prsuming these options are defined in pssqr.ini or on the sqr process type definition but I can not make a universal change and was hoping it could be handled in the process definition. Does anyone know if this can be done? Any help would be greatly appreciated. Debbie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 15:51:17 2003 Date: Wed, 08 Jan 2003 15:50:17 -0500 From: "Prasanna Menta" Subject: Re: [sqr-users] Limiting Process Scheduler Output Options I think you can inactivate the xlat values so that they do not appear on the drop down, but it will affect for all the processes. If you are restricting it for certain specific processes than you can do using the peoplecode. Hope this helps Prasanna Debbie Larney wrote: > > I would like the ability to limit the Type and Format available at runtime on > the process scheduler request page. We are in version 8. I have tried changing > the output destination options type in my proces definition but that doesn't > limit the options available at runtime. I am prsuming these options are > defined in pssqr.ini or on the sqr process type definition but I can not make a > universal change and was hoping it could be handled in the process definition. > Does anyone know if this can be done? > > Any help would be greatly appreciated. > > Debbie > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 17:16:11 2003 Date: Wed, 8 Jan 2003 14:15:15 -0800 (PST) From: Pradeep Yedlarajaiah Subject: [sqr-users] SQR and ASP Hi All, I have an ASP front end and some reports developed in SQR. I want to know if I can dynamically pass the parameteres from ASP to SQR report and generate the final pdf file. Regards, Pradeep __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 18:41:13 2003 Date: Wed, 8 Jan 2003 15:40:11 -0800 (PST) From: Jim Wyant Subject: Re: [sqr-users] SQR and ASP You should be able to. To do so you'll have to build a command line which includes the drive\path for SQRW.exe plus SQR and logon info, flags and the parameters you want to pass. You can kick it off via a "shell" command. Jim --- Pradeep Yedlarajaiah wrote: > Hi All, > I have an ASP front end and some reports developed in > SQR. I want to know if I can dynamically pass the > parameteres from ASP to SQR report and generate the > final pdf file. > > Regards, > Pradeep > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 20:18:47 2003 Date: Wed, 8 Jan 2003 17:17:44 -0800 (PST) From: Pradeep Yedlarajaiah Subject: Re: [sqr-users] SQR and ASP Jim, Thanks for the reply. Do you have any code sample or using shell command from ASP code? -Pradeep --- Jim Wyant wrote: > > You should be able to. To do so you'll have to build > a command line > which includes the drive\path for SQRW.exe plus SQR > and logon info, > flags and the parameters you want to pass. You can > kick it off via a > "shell" command. > > Jim > > --- Pradeep Yedlarajaiah > wrote: > > Hi All, > > I have an ASP front end and some reports developed > in > > SQR. I want to know if I can dynamically pass the > > parameteres from ASP to SQR report and generate > the > > final pdf file. > > > > Regards, > > Pradeep > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > > http://mailplus.yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 8 18:44:04 2003 From: Franck Masson Subject: RE: [sqr-users] SQR and ASP Date: Wed, 8 Jan 2003 15:44:48 -0800 from your asp code you can call a bat file . in this bat file you will run sqr with proper parameter and output directory of sqr. after your asp can either do an http redirect to the pdf file as return page from execution or read & send the pdf file. franck, -----Original Message----- From: Pradeep Yedlarajaiah [mailto:yrpradeep@yahoo.com] Sent: mercredi 8 janvier 2003 23:15 To: sqr-users@sqrug.org Subject: [sqr-users] SQR and ASP Hi All, I have an ASP front end and some reports developed in SQR. I want to know if I can dynamically pass the parameteres from ASP to SQR report and generate the final pdf file. Regards, Pradeep __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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-admin@sqrug.org Wed Jan 8 20:18:12 2003 Date: Wed, 8 Jan 2003 17:16:53 -0800 (PST) From: Pradeep Yedlarajaiah Subject: RE: [sqr-users] SQR and ASP Franck, Thanks for the reply. Could you point me to some code regarding how to call a bat file from asp code. Thanks once again. -Pradeep --- Franck Masson wrote: > from your asp code you can call a bat file . > in this bat file you will run sqr with proper > parameter and output directory > of sqr. > after your asp can either do an http redirect to the > pdf file as return page > from execution > or read & send the pdf file. > > franck, > > -----Original Message----- > From: Pradeep Yedlarajaiah > [mailto:yrpradeep@yahoo.com] > Sent: mercredi 8 janvier 2003 23:15 > To: sqr-users@sqrug.org > Subject: [sqr-users] SQR and ASP > > > Hi All, > I have an ASP front end and some reports developed > in > SQR. I want to know if I can dynamically pass the > parameteres from ASP to SQR report and generate the > final pdf file. > > Regards, > Pradeep > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.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 __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 09:24:27 2003 Date: Thu, 9 Jan 2003 09:19:53 -0500 From: dewhite@vicr.com Subject: [sqr-users] RE: Passing Variables to Inline Views This can work if you put the input statement in a loop, have the users input the values one by one, and concatenate them. Here is an example I have used: move '''' to $regions ! set to starting quote while 1 = 1 input $region_in maxlen=10 'Enter Territory Code or leave blank to exit' uppercase $region_in if rtrim($region_in, ' ') = '' ! user has left blank to exit loop; append final quote and exit loop concat '''' with $regions break end-if if $regions <> '''' ! append end quote/comma/begin quote if there is already a value in $regions concat ''',''' with $regions end-if concat $region_in with $regions end-while ................. let $select_regions = '('||$regions||')' ................. BEGIN-SELECT ................. where c.region_cd in [$select_regions] END-SELECT HTH, Denise White Sr. Software Engineer Vicor --__--__-- Message: 16 From: "Alexander, Steve" To: "'sqr-users@sqrug.org'" Subject: RE: [sqr-users] Passing Variables to Inline Views Date: Wed, 8 Jan 2003 17:23:11 -0800 Reply-To: sqr-users@sqrug.org So the users enter the values of $ga_numbers? That seems fraught with peril. You have to be sure the users type the list with a left parenthesis, one single quote, a value, one single quote, a comma, repeat as necessary, ... and a right parenthesis. (You only need two single quotes within the program itself for the SQR compiler to differentiate between the end of a string and a quote within a string.) For debugging, you might output the value of $ga_numbers. For ongoing use, I would write code to validate that string character by character, as hard as that would be. There are a lot of ways it could be wrong. The where clause won't work without the [] brackets around $ga_numbers. You could write "and ale.ga_nbr in ($ga_number1, $ga_number2, ...)" if you knew how many numbers there would be. Then the users should enter each $ga_number WITHOUT the parenthesis, quotes, and commas. But an ordinary variable can't contain a list of literal values. The SQR interface to the SQL interpreter won't expect to find multiple values and punctuation in an ordinary variable. It needs you to use a dynamic variable. -----Original Message----- From: CARFREH1@Nationwide.com [mailto:CARFREH1@Nationwide.com] Sent: Wednesday, January 08, 2003 11:26 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Passing Variables to Inline Views Not a problem. Here you go. Thank you!!! input $co_abbrev 'Input company abbrev' input $eff_dt 'Input effective date, YYYYMMDD' input $ga_numbers 'Input GA Nums' input $feed_path 'Input report path' |---------+--------------------------------------> | | "Alexander, Steve" | | | | | | | | | Sent by: | | | sqr-users-admin@sqrug.o| | | rg | | | | | | | | | | | | 01/08/03 11:31 AM | | | Please respond to | | | sqr-users | | | | |---------+--------------------------------------> >--------------------------------------------------------------------------- -----------------------------------------------------------------------| | | | T | | To: "'sqr-users@sqrug.org'" | | cc: | | | | bcc: | | Subject: RE: [sqr-users] Passing Variables to Inline Views | >--------------------------------------------------------------------------- -----------------------------------------------------------------------| Please show us the code in which you set the value of $ga_numbers. -----Original Message----- From: CARFREH1@Nationwide.com [mailto:CARFREH1@Nationwide.com] Sent: Wednesday, January 08, 2003 7:51 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Passing Variables to Inline Views Still not working...I will give you exactly what I am running and maybe that will clarify (Please note that the variable $ga_numbers is being passed in at execution ('aaa','bbb','ccc') ). If I put [ ] around the variable $ga_numbers the SQR fails with an ORA-00921. It appears that SQL cannot see the variable due to the open bracket. Thanks everyone!!! SQL: select v.policy_number, v.product_code, pf.fund_code, f.fund_abbrev, pf.fund_unit_balance, pf.fund_company, pf.fund_type, pf.fund_version, v.annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in And here is the block: begin-select v.policy_number &policy_number v.product_code &product_code pf.fund_code &fund_code f.fund_abbrev &fund_abbrev pf.fund_unit_balance &fund_units pf.fund_company &fund_company pf.fund_type &fund_type pf.fund_version &fund_version v.annuitant_phone_number &annuitant_phone_number from expl_dly_funds f, expl_dly_policy_funds pf, (select p.policy_number, p.product_code, p.annuitant_phone_number from expl_dly_policies p, agents_linked_expld ale where p.policy_status_code between '1' and '5' and ale.ga_nbr in $ga_numbers and p.writing_agent_number = ale.wa_nbr union select p2.policy_number, p2.product_code, p2.annuitant_phone_number from expl_dly_policies p2, agents_linked_expld ale2, df_legend_ann_phone_nums dl where p2.policy_status_code between '1' and '5' and p2.writing_agent_number = ale2.wa_nbr and ale2.ga_nbr in ('ddd','eee') and p2.annuitant_phone_number = dl.annuitant_phone_number) v where pf.fund_company = f.fund_company and pf.fund_code||'' = f.fund_code and pf.fund_balance > 0 and v.policy_number = pf.policy_number order by v.policy_number, pf.fund_code end-select James Womeldorf T To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@sqrug.o rg bcc: Subject: RE: [sqr-users] Passing Variables to Inline Views 01/07/03 05:35 PM Please respond to sqr-users I believe 'Dynamic SQL' is the answer here. I have not tested this, but I think this will work. The show statement should look like this: $var1 = 'aaa','bbb' let $Q = chr(39) let $var1 = $Q || 'aaa' || $Q || ',' $Q || 'bbb' || $Q show '$var1 = ' $var1 begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in ([$var1])) c -----Original Message----- From: CARFREH1@nationwide.com [mailto:CARFREH1@nationwide.com] Sent: Tuesday, January 07, 2003 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing Variables to Inline Views Here is a problem I am running into right now: begin-select . . . from table_a a, table_b b, (select col1, col2, col3 col4 from table_c, table_d where col5 in $var1) c where . . . This will not pass the var1 values ('aaa','bbb','ccc'...) into the inline view properly as no data is returned. however if a single value is passed: where col5 = $var1 It works fine. I have tried messing with single quotes, [ and ] and [$where] clauses and none have worked. Could really use some help at this point. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 14:55:59 2003 From: "Fisher, Sandy K" Date: Thu, 9 Jan 2003 13:52:15 -0600 Subject: [sqr-users] Email from SQR Is there a way to generate an email from an sqr program that would send a report? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:13:27 2003 Subject: Re: [sqr-users] Email from SQR From: Ramzi_Salameh@daveandbusters.com Date: Thu, 9 Jan 2003 14:12:38 -0600 Yes. You can do a 'call system' to an external e-mail utility (we use Commail) and set the report name to attach to it. If you plan on attaching a report generated by the calling SQR, you need to execute a 'New-Report' statement to release the report in order to attach to the e-mail (hope that makes sense). HTH, ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Fisher, Sandy K" To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Email from SQR qrug.org 01/09/03 01:52 PM Please respond to sqr-users Is there a way to generate an email from an sqr program that would send a report? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:16:25 2003 Date: Thu, 09 Jan 2003 15:14:11 -0500 From: "Prasanna Menta" Subject: Re: [sqr-users] Email from SQR Use the Operating system command say if you use Unix use the mailx command Hope this helps Prasanna "Fisher, Sandy K" wrote: > > Is there a way to generate an email from an sqr program that would send a > report? Thanks. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:16:54 2003 Subject: Re: [sqr-users] Email from SQR From: Rick_Creel@aoncons.com Date: Thu, 9 Jan 2003 15:15:00 -0500 The info you've given is very minimal. Will this SQR be running on client or server? What environment? We have several SQRs that send email. The are run on our UNIX server and issue a "call system" command to invoke the sending of the email. What I found out is that the SQR that creates the report can NOT be the SQR that issues the "call system" command. The have a 2-step approach: 1) the report generation SQR will make an entry in a email parameter table and among other things, it will store the path of where the report is located and the actual name of the report. 2) immediately after the report SQR has completed, the email SQR is initiated. It will get the parameters that were stored in the table and then build a command string that is appropriate for the email program that runs on our UNIX box. The last thing the email SQR does is: Call System Using $command_string #status Hope this helps. "Fisher, Sandy K" To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Email from SQR qrug.org 01/09/2003 02:52 PM Please respond to sqr-users Is there a way to generate an email from an sqr program that would send a report? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:26:30 2003 Subject: RE: [sqr-users] Email from SQR Date: Thu, 9 Jan 2003 15:25:17 -0500 From: "Blackwell, Lisa" Here is a simple piece of code that I use in one of my programs...program.log is the file that I email...but it can be anything. Also this file is not sent as an attachment (it's the body of the email) and at the moment I can't find the syntax to do the attachment. This is run on a Unix system. Hope this helps... *********************** Begin-procedure 0800_send_email let $email_cmd = 'mail username@vt.edu < program.log' call system using $email_cmd #email_status end-procedure !0800_send_email -----Original Message----- From: Fisher, Sandy K [mailto:skfisher@ou.edu] Sent: Thursday, January 09, 2003 2:52 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Email from SQR Is there a way to generate an email from an sqr program that would send a report? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:48:24 2003 Date: Thu, 9 Jan 2003 12:47:30 -0800 (PST) From: Greg Rabinovich Subject: RE: [sqr-users] Email from SQR Here is a way I've been sending attachments from Unix/Oracle: let $mail_cmd = ' (cat body.txt; uuencode attach.txt attach.txt) | mailx -s "My Subject Line" my_email@my_email.com,my_email2@other_email.com' call SYSTEM using $mail_cmd #status nowait body.txt is the body of my e-mail. attach.txt is the attachment file. Greg. --- "Blackwell, Lisa" wrote: > Here is a simple piece of code that I use in one of > my programs...program.log is the file that I > email...but it can be anything. Also this file is > not sent as an attachment (it's the body of the > email) and at the moment I can't find the syntax to > do the attachment. This is run on a Unix system. > > Hope this helps... > > > *********************** > Begin-procedure 0800_send_email > let $email_cmd = 'mail username@vt.edu < > program.log' > call system using $email_cmd #email_status > > end-procedure !0800_send_email > > > > > > > -----Original Message----- > From: Fisher, Sandy K [mailto:skfisher@ou.edu] > Sent: Thursday, January 09, 2003 2:52 PM > To: 'sqr-users@sqrug.org' > Subject: [sqr-users] Email from SQR > > > Is there a way to generate an email from an sqr > program that would send a > report? Thanks. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 09:31:30 2003 Date: Fri, 10 Jan 2003 06:30:27 -0800 (PST) From: D Patel Subject: RE: [sqr-users] Email from SQR (Question) What if I am working on Windows System? D Patel --- Greg Rabinovich wrote: > > Here is a way I've been sending attachments from > Unix/Oracle: > > let $mail_cmd = ' (cat body.txt; uuencode attach.txt > attach.txt) | mailx -s "My Subject Line" > my_email@my_email.com,my_email2@other_email.com' > > call SYSTEM using $mail_cmd #status nowait > > body.txt is the body of my e-mail. > attach.txt is the attachment file. > > Greg. > > --- "Blackwell, Lisa" wrote: > > Here is a simple piece of code that I use in one > of > > my programs...program.log is the file that I > > email...but it can be anything. Also this file is > > not sent as an attachment (it's the body of the > > email) and at the moment I can't find the syntax > to > > do the attachment. This is run on a Unix system. > > > > Hope this helps... > > > > > > *********************** > > Begin-procedure 0800_send_email > > let $email_cmd = 'mail username@vt.edu < > > program.log' > > call system using $email_cmd #email_status > > > > end-procedure !0800_send_email > > > > > > > > > > > > > > -----Original Message----- > > From: Fisher, Sandy K [mailto:skfisher@ou.edu] > > Sent: Thursday, January 09, 2003 2:52 PM > > To: 'sqr-users@sqrug.org' > > Subject: [sqr-users] Email from SQR > > > > > > Is there a way to generate an email from an sqr > > program that would send a > > report? Thanks. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 10:30:40 2003 Date: Fri, 10 Jan 2003 07:29:10 -0800 (PST) From: Greg Rabinovich Subject: RE: [sqr-users] Email from SQR (Question) Under Windows, you may try this. I never had to use it, though. It depends on the e-mail system you are using under Windows. begin-procedure Process-Main !************************************************************************** ! Explanations: ! ! d:\mapisend : Win 95/98 or Win NT Utility to reside in the Workstation of person running this SQR ! -p dummypw : Dummy password ! -u Last,Name : MicroSoft Outlook Profile of person running this SQR ! -r "receiver@email.com" : Emailid(s) of person(s) about to receive the email ! -c "cclist@hotmail.com" : CC emailid list ! -s "Winmail SQR" : Subject text ! -m "Attached... Winmail SQR" : Message body text ! -t d:\msgbody.txt : Message body text from a file (Negates the above -t argument) ! -f d:\winmail.xls;d:\winmail.txt : Filenames to be attached to the email ! !************************************************************************** Call system using 'c:\windir\mapisend -p dummypw -u "Greg" -r "receiver@email.com" -c "cclist@llll.com" -s "My email SQR" -m "This is my message body text" -t c:\temp\temp1.txt -f c:\temp\temp.txt' #status Display '#status after sending mail is: ' noline Display #status END-PROCEDURE Process-Main Greg. --- D Patel wrote: > > What if I am working on Windows System? > > D Patel > --- Greg Rabinovich wrote: > > > > Here is a way I've been sending attachments from > > Unix/Oracle: > > > > let $mail_cmd = ' (cat body.txt; uuencode > attach.txt > > attach.txt) | mailx -s "My Subject Line" > > my_email@my_email.com,my_email2@other_email.com' > > > > call SYSTEM using $mail_cmd #status nowait > > > > body.txt is the body of my e-mail. > > attach.txt is the attachment file. > > > > Greg. > > > > --- "Blackwell, Lisa" wrote: > > > Here is a simple piece of code that I use in one > > of > > > my programs...program.log is the file that I > > > email...but it can be anything. Also this file > is > > > not sent as an attachment (it's the body of the > > > email) and at the moment I can't find the syntax > > to > > > do the attachment. This is run on a Unix > system. > > > > > > Hope this helps... > > > > > > > > > *********************** > > > Begin-procedure 0800_send_email > > > let $email_cmd = 'mail username@vt.edu < > > > program.log' > > > call system using $email_cmd #email_status > > > > > > end-procedure !0800_send_email > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > From: Fisher, Sandy K [mailto:skfisher@ou.edu] > > > Sent: Thursday, January 09, 2003 2:52 PM > > > To: 'sqr-users@sqrug.org' > > > Subject: [sqr-users] Email from SQR > > > > > > > > > Is there a way to generate an email from an sqr > > > program that would send a > > > report? Thanks. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > > now. > > http://mailplus.yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:29:25 2003 From: "Fisher, Sandy K" Date: Thu, 9 Jan 2003 14:26:29 -0600 Subject: [sqr-users] Email from SQR The SQR will be running on Unix and Oracle. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 15:41:30 2003 From: "Fisher, Sandy K" Subject: RE: [sqr-users] Email from SQR Date: Thu, 9 Jan 2003 14:38:45 -0600 Thanks for your help with the email. I will try some of these. -----Original Message----- From: Rick_Creel@aoncons.com [mailto:Rick_Creel@aoncons.com] Sent: Thursday, January 09, 2003 2:15 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Email from SQR The info you've given is very minimal. Will this SQR be running on client or server? What environment? We have several SQRs that send email. The are run on our UNIX server and issue a "call system" command to invoke the sending of the email. What I found out is that the SQR that creates the report can NOT be the SQR that issues the "call system" command. The have a 2-step approach: 1) the report generation SQR will make an entry in a email parameter table and among other things, it will store the path of where the report is located and the actual name of the report. 2) immediately after the report SQR has completed, the email SQR is initiated. It will get the parameters that were stored in the table and then build a command string that is appropriate for the email program that runs on our UNIX box. The last thing the email SQR does is: Call System Using $command_string #status Hope this helps. "Fisher, Sandy K" To: "'sqr-users@sqrug.org'" Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Email from SQR qrug.org 01/09/2003 02:52 PM Please respond to sqr-users Is there a way to generate an email from an sqr program that would send a report? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 9 17:47:42 2003 Date: Thu, 09 Jan 2003 16:46:03 -0600 From: "Suman Buddharaju" Subject: [sqr-users] SQR bug #3089 - Data type for parameter 2 has changed since first SQLExecute call We are a PeopleSoft site using SQR 4.3.4 in our PS 7.5 implementation. SQR Version 4.3.4 /PC/Windows NT 4.0/ODBC Level 2/ Jun 03 1999 Database: Sybase When we run ODBC compliant SQR to fetch data and insert data through ODBC we get the following error Data type for parameter 2 has changed since first SQLExecute call. I have gone through the posts on www.sqrug.com and found that this was due to a known sqr bug #3089. Is there a fix or a workaround for this. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 06:52:51 2003 From: "Weaver, Judith R" Date: Fri, 10 Jan 2003 06:51:35 -0500 Subject: [sqr-users] Running SQR on the Client in PeopleSoft 8.x Is this possible? I've searched the archives but get so many hits (10 pages worth) that I'd appreciate being pointed to the correct time frame to search. Judy Weaver United Space Alliance Application Engineering Services WeaverJR@usafoo.unitedspacealliance.com Phone: (321)799-6019 Fax: (321)799-5970 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 08:34:31 2003 From: "Rhonda Hudgins" Date: Fri, 10 Jan 2003 08:32:47 -0500 Subject: Re: [sqr-users] Running SQR on the Client in PeopleSoft 8.x we do it , you need to have the database connection installed on the pc (for us it is the oracle client sw). and access to the file server where sqr is installed. rhonda "Weaver, Judith R" cc: Sent by: Subject: [sqr-users] Running SQR on the Client in PeopleSoft 8.x sqr-users-admin@sqrug.org 01/10/2003 06:51 AM Please respond to sqr-users Is this possible? I've searched the archives but get so many hits (10 pages worth) that I'd appreciate being pointed to the correct time frame to search. Judy Weaver United Space Alliance Application Engineering Services WeaverJR@usafoo.unitedspacealliance.com Phone: (321)799-6019 Fax: (321)799-5970 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 17:21:06 2003 Date: Fri, 10 Jan 2003 17:19:13 -0500 From: "Ven Garlapati" Subject: [sqr-users] Freeze column names in xls output file Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 17:31:07 2003 Date: Fri, 10 Jan 2003 16:29:10 -0600 From: "Kent Parker" Subject: Re: [sqr-users] Freeze column names in xls output file I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:19 >>> Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 17:36:05 2003 Date: Fri, 10 Jan 2003 16:34:56 -0600 From: "Kent Parker" Subject: Re: [sqr-users] Freeze column names in xls output file I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:29 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:19 >>> Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 17:41:09 2003 Date: Fri, 10 Jan 2003 16:40:11 -0600 From: "Kent Parker" Subject: Re: [sqr-users] Freeze column names in xls output file I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:34 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:29 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:19 >>> Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 17:47:06 2003 Date: Fri, 10 Jan 2003 16:46:13 -0600 From: "Kent Parker" Subject: Re: [sqr-users] Freeze column names in xls output file I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:40 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:34 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:29 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:19 >>> Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 17:52:06 2003 Date: Fri, 10 Jan 2003 16:51:28 -0600 From: "Kent Parker" Subject: Re: [sqr-users] Freeze column names in xls output file I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:46 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:40 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:34 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:29 >>> I will be out of the office Friday afternoon, January 10th. I will respond to e-mail when I return on Monday. Thank You, Kent >>> sqr-users 01/10/03 16:19 >>> Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 10 18:39:13 2003 From: James Womeldorf Subject: RE: [sqr-users] Freeze column names in xls output file Date: Fri, 10 Jan 2003 17:09:54 -0600 Hi Ven, I've used the slk format quite a bit, and I'm quite certain freezing is not supported by slk. The way I usually test the compatibility of a feature is to create an Excel file with the feature I'm interested in. Then I 'save as' the file to the .slk type. Then I close Excel. Finally, I double click on the filename and up it comes in Excel. This is the test - is the feature still there? If not, it is not supported and I forget about it. If it is still there, then I load the file in a text editor and try to figure out how the feature is represented in the file so I can produce it in SQR. Good luck. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Friday, January 10, 2003 4:19 PM To: sqr-users@sqrug.org Subject: [sqr-users] Freeze column names in xls output file Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 13 16:11:15 2003 Subject: RE: [sqr-users] Freeze column names in xls output file Date: Mon, 13 Jan 2003 14:42:50 -0500 From: "Ven Garlapati" Thanks Jim, For the helpful hint and Good Luck. I think I am pushing my luck here. Does SQR allows appending (for-append) the data to EXCEL file - (reading from a csv file)? Thanks, Ven Garlapati -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, January 10, 2003 6:10 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Freeze column names in xls output file Hi Ven, I've used the slk format quite a bit, and I'm quite certain freezing is not supported by slk. The way I usually test the compatibility of a feature is to create an Excel file with the feature I'm interested in. Then I 'save as' the file to the .slk type. Then I close Excel. Finally, I double click on the filename and up it comes in Excel. This is the test - is the feature still there? If not, it is not supported and I forget about it. If it is still there, then I load the file in a text editor and try to figure out how the feature is represented in the file so I can produce it in SQR. Good luck. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Friday, January 10, 2003 4:19 PM To: sqr-users@sqrug.org Subject: [sqr-users] Freeze column names in xls output file Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 09:08:55 2003 From: James Womeldorf Subject: RE: [sqr-users] Freeze column names in xls output file Date: Mon, 13 Jan 2003 23:09:14 -0600 Hi Ven, You should be able to open the file For-Append instead of For-Writing. I think that should work. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Monday, January 13, 2003 1:43 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Freeze column names in xls output file Thanks Jim, For the helpful hint and Good Luck. I think I am pushing my luck here. Does SQR allows appending (for-append) the data to EXCEL file - (reading from a csv file)? Thanks, Ven Garlapati -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, January 10, 2003 6:10 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Freeze column names in xls output file Hi Ven, I've used the slk format quite a bit, and I'm quite certain freezing is not supported by slk. The way I usually test the compatibility of a feature is to create an Excel file with the feature I'm interested in. Then I 'save as' the file to the .slk type. Then I close Excel. Finally, I double click on the filename and up it comes in Excel. This is the test - is the feature still there? If not, it is not supported and I forget about it. If it is still there, then I load the file in a text editor and try to figure out how the feature is represented in the file so I can produce it in SQR. Good luck. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Friday, January 10, 2003 4:19 PM To: sqr-users@sqrug.org Subject: [sqr-users] Freeze column names in xls output file Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 10:50:42 2003 Subject: RE: [sqr-users] Freeze column names in xls output file Date: Tue, 14 Jan 2003 10:44:22 -0500 From: "Ven Garlapati" Thank again Jim: I have tried this, but in vain - SQR can neither directly create an EXCEL file nor can append the data to an EXCEL file (not CSV file format). May be the future version of SQR can solve this issue. Ven -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Tuesday, January 14, 2003 12:09 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Freeze column names in xls output file Hi Ven, You should be able to open the file For-Append instead of For-Writing. I think that should work. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Monday, January 13, 2003 1:43 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Freeze column names in xls output file Thanks Jim, For the helpful hint and Good Luck. I think I am pushing my luck here. Does SQR allows appending (for-append) the data to EXCEL file - (reading from a csv file)? Thanks, Ven Garlapati -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, January 10, 2003 6:10 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Freeze column names in xls output file Hi Ven, I've used the slk format quite a bit, and I'm quite certain freezing is not supported by slk. The way I usually test the compatibility of a feature is to create an Excel file with the feature I'm interested in. Then I 'save as' the file to the .slk type. Then I close Excel. Finally, I double click on the filename and up it comes in Excel. This is the test - is the feature still there? If not, it is not supported and I forget about it. If it is still there, then I load the file in a text editor and try to figure out how the feature is represented in the file so I can produce it in SQR. Good luck. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Friday, January 10, 2003 4:19 PM To: sqr-users@sqrug.org Subject: [sqr-users] Freeze column names in xls output file Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 11:49:07 2003 Date: Tue, 14 Jan 2003 12:06:42 -0400 From: "Peter Clark" Subject: RE: [sqr-users] Freeze column names in xls output file Unlikely that MicroSoft would allow that :-) >>> VXG@creditacceptance.com 2003/01/14 11:44:22 am >>> Thank again Jim: I have tried this, but in vain - SQR can neither directly create an EXCEL file nor can append the data to an EXCEL file (not CSV file format). May be the future version of SQR can solve this issue. Ven -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Tuesday, January 14, 2003 12:09 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Freeze column names in xls output file Hi Ven, You should be able to open the file For-Append instead of For-Writing. I think that should work. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Monday, January 13, 2003 1:43 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Freeze column names in xls output file Thanks Jim, For the helpful hint and Good Luck. I think I am pushing my luck here. Does SQR allows appending (for-append) the data to EXCEL file - (reading from a csv file)? Thanks, Ven Garlapati -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Friday, January 10, 2003 6:10 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Freeze column names in xls output file Hi Ven, I've used the slk format quite a bit, and I'm quite certain freezing is not supported by slk. The way I usually test the compatibility of a feature is to create an Excel file with the feature I'm interested in. Then I 'save as' the file to the .slk type. Then I close Excel. Finally, I double click on the filename and up it comes in Excel. This is the test - is the feature still there? If not, it is not supported and I forget about it. If it is still there, then I load the file in a text editor and try to figure out how the feature is represented in the file so I can produce it in SQR. Good luck. Jim -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: Friday, January 10, 2003 4:19 PM To: sqr-users@sqrug.org Subject: [sqr-users] Freeze column names in xls output file Hi all, I just used "slk file format" to produce a xls file. It works great, but now the user wants the freeze the column names in the xls output, so it will be easy to scroll down or up on the data with column names visible on top all the time. I have tried to use the same .slk file format for this as well, but in vain. Any information would be helpful. Thanks, Ven Garlapati _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 13 14:32:22 2003 From: Steffon Johnson Date: Mon, 13 Jan 2003 10:31:01 -0500 Subject: [sqr-users] ARUPDATE I am conducting a lite survey concerning ARUPDATE (PREDICTOR, POSTING, AGING) and would like to know how long your process take to run. I would be most appreciative if you can provide the following, otherwise the total run time for each is at least a start. 1) Database 2) OS 3) # of Transactions 4) # of lines in lockbox 5) Length of time for PREDICTOR 6) Length of time for POSTING 7) Length of time for AGING 8) # of rows on PS_ITEM, ITEM_ACTIVITY, ITEM_DST 9) # of rows on PS_GROUP_CONTROL, PS_PENDING_ITEM, PS_PENDING_DST 10) # of open items on PS_ITEM Thank you in advance, Steffon 1.877.THEBSPS _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 13 14:36:20 2003 Date: Mon, 13 Jan 2003 10:50:12 -0500 (Eastern Standard Time) From: "Jonathan D'Sa" Subject: [sqr-users] problems with #include This is a multi-part message in MIME format... --------------Boundary-00=_OBTNKFN2QL8000000000 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0D I have noticed that EOJ.sqc (v8.0)has:=0D =0D #include "tranctrl.sqc"=0D =0D Every other sqc that includes tranctrl.sqc, it is included in single quotes. Is there a functional difference between the 2 includes? =0D =0D thanks in advance...=0D =0D Jonathan D'Sa =0D Information Systems & Manufacturing Technology=0D Algoma Steel Inc.=0D (705)945-3670 jdsa@algoma.com --------------Boundary-00=_OBTNKFN2QL8000000000 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/gif' MIME type. It has been automatically discarded before sending the message to the list. --------------Boundary-00=_OBTNKFN2QL8000000000-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 13 14:36:30 2003 From: ramaswamy.krishnan@verizon.com Date: Mon, 13 Jan 2003 11:41:14 -0500 Subject: [sqr-users] SQR - Error while printing output report from SPF file This is a multi-part message in MIME format... --0__=0ABBE63EDFC960C78f9e8a93df938690918c0ABBE63EDFC960C7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am encountering an error, "(SQR 6004) Encountered unknown SPF code (42240) while reading the printer file. ". The SQR has been running fine in Production for the last 8 months. The output report was generated till Page 404 and then the process terminated due to above error. The SPF file contains all of the report data (so it's not an allocated space problem). I beleive a variable contains an unprintable HEX character that the report program cannot interpret. Attached is the .SPF data. As you can see, it produces results for AUG and beyond. The report program cannot tranlsate something after the footer in this text (Line 26871 of the SPF file). It may be the value of the Verizon literal that includes X'0D'. We don't know how the literal got there. This is the "Description" which we get intially in the program and use it while printing the header information. Till page 404, everything looks fine in the report. Any suggestions? Thanks Krish (See attached file: cb93 NY SPF output.doc) --0__=0ABBE63EDFC960C78f9e8a93df938690918c0ABBE63EDFC960C7 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/msword' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBE63EDFC960C78f9e8a93df938690918c0ABBE63EDFC960C7-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 09:07:21 2003 From: Damian Davini Date: Tue, 14 Jan 2003 11:51:58 +0800 Subject: [sqr-users] Printing from SQR Viewer is too large. Hi, I have an issue with printing from SQR Viewer (SQRV/4.3.4) and am wondering if you may know of a solution. If I execute a PeopleSoft Asset Management report to the screen (using -ziv extension), it displays fine using SQR Viewer. However if I then try to print the report the font is so large that it actually takes up about 2 page widths instead of fitting onto the 1 page. If I execute the same report direct to a printer, without previewing it, it prints correctly - in a small enough font to all fit comfortably onto 1 page. Are there any solutions to this problem? An obvious workaround is to execute the report to screen, preview the report then close it and finally execute the report again direct to the printer. This however would not be feasible on an ongoing basis or for large reports. Thank you for any ideas, Damian Davini -- Damian Davini Administrative Computing Services The University of Western Australia 35 Stirling Highway CRAWLEY WA 6009 Ph: +61 8 9380 7294 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 09:09:11 2003 Date: Tue, 14 Jan 2003 00:49:46 -0800 (PST) From: vadlamudi srinivasa chowdary Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 10:49:22 2003 Subject: RE: [sqr-users] Performance problems in SQR Date: Tue, 14 Jan 2003 08:36:12 -0600 From: "Knapp, Richard" Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:10:04 2003 Date: Wed, 15 Jan 2003 07:26:51 -0800 (PST) From: vadlamudi srinivasa chowdary Subject: RE: [sqr-users] Performance problems in SQR Please find my SQL queries here: I have been using Arrays and Sorting techniques. Basically my out put like this:(Parent - Child) Lcoation1 Description AAAAA DESCAAAAAAAAAAAAAAA BBBBB DESCBBBBBBBBBBBBBBB Please guide us how should I tune this query. I will apprciate youe quick help Thanks Srinivas BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF END-PROCEDURE !populate_array =============Sort================================ BEGIN-PROCEDURE sorter($new_parent, #i) LET #rec_count = #i LET #counter = 0 IF #indented = 0 LET #indented = 1 END-IF WHILE #counter < #rec_count LET $parent = parents.parent(#counter) LET $location = parents.location(#counter) LET $children = parents.children(#counter) IF $parent = $new_parent IF #down = 0 CLEAR-ARRAY NAME=backup POSITION (+2, {col1}) LET #wraplength = {width} - LENGTH($location) PRINT $location (,{col1a}) BOLD WRAP #wraplength 5 LET $top_level = $location ELSE LET #indented = #down MULTIPLY {spacer} TIMES #indented LET #wraplength = ({width} - #indented) - LENGTH($location) IF #wraplength < LENGTH($location) POSITION (+1,{col1}) LET #wraplength = (({width} - {col1}) + 2) - LENGTH($location) !LET $parent = backup.parent(#down) ! PRINT $parent () BOLD BOX IF $children = 'Y' LET $spacer = '+' ELSE LET $spacer = '-' END-IF STRING $parent $spacer $location BY ' ' INTO $full_line PRINT $full_line () BOLD BOX WRAP #wraplength 5 ! PRINT $location () BOLD BOX WRAP #wraplength 5 ELSE POSITION (+1, #indented) PRINT $location () BOLD WRAP #wraplength 5 !print 'SUB LOCATION' () END-IF END-IF LET $locations_loc = 'location = ' || '''' ||$location || '''' BEGIN-SELECT description &new_desc PRINT &new_desc (,+1) WRAP #wraplength 5 from maximo.locations where [$locations_loc] END-SELECT "Knapp, Richard" wrote: Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:28:30 2003 From: =?iso-8859-2?Q?Gerg=F5_B=E1cska?= Subject: RE: [sqr-users] Performance problems in SQR Date: Wed, 15 Jan 2003 18:22:17 +0100 1. You can find some shorting technics in www.sqrtools.com 2. user order by in your sql Best Regards Gergo -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of vadlamudi srinivasa chowdary Sent: Wednesday, January 15, 2003 4:27 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance problems in SQR Please find my SQL queries here: I have been using Arrays and Sorting techniques. Basically my out put like this:(Parent - Child) Lcoation1 Description AAAAA DESCAAAAAAAAAAAAAAA BBBBB DESCBBBBBBBBBBBBBBB Please guide us how should I tune this query. I will apprciate youe quick help Thanks Srinivas BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF END-PROCEDURE !populate_array =============Sort================================ BEGIN-PROCEDURE sorter($new_parent, #i) LET #rec_count = #i LET #counter = 0 IF #indented = 0 LET #indented = 1 END-IF WHILE #counter < #rec_count LET $parent = parents.parent(#counter) LET $location = parents.location(#counter) LET $children = parents.children(#counter) IF $parent = $new_parent IF #down = 0 CLEAR-ARRAY NAME=backup POSITION (+2, {col1}) LET #wraplength = {width} - LENGTH($location) PRINT $location (,{col1a}) BOLD WRAP #wraplength 5 LET $top_level = $location ELSE LET #indented = #down MULTIPLY {spacer} TIMES #indented LET #wraplength = ({width} - #indented) - LENGTH($location) IF #wraplength < LENGTH($location) POSITION (+1,{col1}) LET #wraplength = (({width} - {col1}) + 2) - LENGTH($location) !LET $parent = backup.parent(#down) ! PRINT $parent () BOLD BOX IF $children = 'Y' LET $spacer = '+' ELSE LET $spacer = '-' END-IF STRING $parent $spacer $location BY ' ' INTO $full_line PRINT $full_line () BOLD BOX WRAP #wraplength 5 ! PRINT $location () BOLD BOX WRAP #wraplength 5 ELSE POSITION (+1, #indented) PRINT $location () BOLD WRAP #wraplength 5 !print 'SUB LOCATION' () END-IF END-IF LET $locations_loc = 'location = ' || '''' ||$location || '''' BEGIN-SELECT description &new_desc PRINT &new_desc (,+1) WRAP #wraplength 5 from maximo.locations where [$locations_loc] END-SELECT "Knapp, Richard" wrote: Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 11:49:53 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Performance problems in SQR Date: Tue, 14 Jan 2003 08:30:10 -0800 Why don't you send us the select statement(s), and we might see something that would help. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Tuesday, January 14, 2003 6:36 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance problems in SQR Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:41:26 2003 Date: Wed, 15 Jan 2003 13:39:46 -0400 From: "Peter Clark" Subject: RE: [sqr-users] Performance problems in SQR These lines are in the wrong place. IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF Instead of after END-SELECT they should be in the body of your select. BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT END-PROCEDURE !populate_array >>> vadlamudisrinu@yahoo.com 2003/01/15 11:26:51 am >>> Please find my SQL queries here: I have been using Arrays and Sorting techniques. Basically my out put like this:(Parent - Child) Lcoation1 Description AAAAA DESCAAAAAAAAAAAAAAA BBBBB DESCBBBBBBBBBBBBBBB Please guide us how should I tune this query. I will apprciate youe quick help Thanks Srinivas BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF END-PROCEDURE !populate_array =============Sort================================ BEGIN-PROCEDURE sorter($new_parent, #i) LET #rec_count = #i LET #counter = 0 IF #indented = 0 LET #indented = 1 END-IF WHILE #counter < #rec_count LET $parent = parents.parent(#counter) LET $location = parents.location(#counter) LET $children = parents.children(#counter) IF $parent = $new_parent IF #down = 0 CLEAR-ARRAY NAME=backup POSITION (+2, {col1}) LET #wraplength = {width} - LENGTH($location) PRINT $location (,{col1a}) BOLD WRAP #wraplength 5 LET $top_level = $location ELSE LET #indented = #down MULTIPLY {spacer} TIMES #indented LET #wraplength = ({width} - #indented) - LENGTH($location) IF #wraplength < LENGTH($location) POSITION (+1,{col1}) LET #wraplength = (({width} - {col1}) + 2) - LENGTH($location) !LET $parent = backup.parent(#down) ! PRINT $parent () BOLD BOX IF $children = 'Y' LET $spacer = '+' ELSE LET $spacer = '-' END-IF STRING $parent $spacer $location BY ' ' INTO $full_line PRINT $full_line () BOLD BOX WRAP #wraplength 5 ! PRINT $location () BOLD BOX WRAP #wraplength 5 ELSE POSITION (+1, #indented) PRINT $location () BOLD WRAP #wraplength 5 !print 'SUB LOCATION' () END-IF END-IF LET $locations_loc = 'location = ' || '''' ||$location || '''' BEGIN-SELECT description &new_desc PRINT &new_desc (,+1) WRAP #wraplength 5 from maximo.locations where [$locations_loc] END-SELECT "Knapp, Richard" wrote: Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:59:28 2003 Date: Wed, 15 Jan 2003 13:57:09 -0400 From: "Peter Clark" Subject: RE: [sqr-users] Performance problems in SQR Forget that ... got interrupted before I had time to think that one entirely though. Sorry. >>> PGCLARK@vac-acc.gc.ca 2003/01/15 1:39:46 pm >>> These lines are in the wrong place. IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF Instead of after END-SELECT they should be in the body of your select. BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT END-PROCEDURE !populate_array >>> vadlamudisrinu@yahoo.com 2003/01/15 11:26:51 am >>> Please find my SQL queries here: I have been using Arrays and Sorting techniques. Basically my out put like this:(Parent - Child) Lcoation1 Description AAAAA DESCAAAAAAAAAAAAAAA BBBBB DESCBBBBBBBBBBBBBBB Please guide us how should I tune this query. I will apprciate youe quick help Thanks Srinivas BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF END-PROCEDURE !populate_array =============Sort================================ BEGIN-PROCEDURE sorter($new_parent, #i) LET #rec_count = #i LET #counter = 0 IF #indented = 0 LET #indented = 1 END-IF WHILE #counter < #rec_count LET $parent = parents.parent(#counter) LET $location = parents.location(#counter) LET $children = parents.children(#counter) IF $parent = $new_parent IF #down = 0 CLEAR-ARRAY NAME=backup POSITION (+2, {col1}) LET #wraplength = {width} - LENGTH($location) PRINT $location (,{col1a}) BOLD WRAP #wraplength 5 LET $top_level = $location ELSE LET #indented = #down MULTIPLY {spacer} TIMES #indented LET #wraplength = ({width} - #indented) - LENGTH($location) IF #wraplength < LENGTH($location) POSITION (+1,{col1}) LET #wraplength = (({width} - {col1}) + 2) - LENGTH($location) !LET $parent = backup.parent(#down) ! PRINT $parent () BOLD BOX IF $children = 'Y' LET $spacer = '+' ELSE LET $spacer = '-' END-IF STRING $parent $spacer $location BY ' ' INTO $full_line PRINT $full_line () BOLD BOX WRAP #wraplength 5 ! PRINT $location () BOLD BOX WRAP #wraplength 5 ELSE POSITION (+1, #indented) PRINT $location () BOLD WRAP #wraplength 5 !print 'SUB LOCATION' () END-IF END-IF LET $locations_loc = 'location = ' || '''' ||$location || '''' BEGIN-SELECT description &new_desc PRINT &new_desc (,+1) WRAP #wraplength 5 from maximo.locations where [$locations_loc] END-SELECT "Knapp, Richard" wrote: Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 16 09:22:06 2003 Date: Thu, 16 Jan 2003 06:21:24 -0800 (PST) From: vadlamudi srinivasa chowdary Subject: RE: [sqr-users] Performance problems in SQR Peter, Thank you very much for your quick reply. I didn't get you. Could you please send me the detailed description. Thanks Srinivas Peter Clark wrote:Forget that ... got interrupted before I had time to think that one entirely though. Sorry. >>> PGCLARK@vac-acc.gc.ca 2003/01/15 1:39:46 pm >>> These lines are in the wrong place. IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF Instead of after END-SELECT they should be in the body of your select. BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT END-PROCEDURE !populate_array >>> vadlamudisrinu@yahoo.com 2003/01/15 11:26:51 am >>> Please find my SQL queries here: I have been using Arrays and Sorting techniques. Basically my out put like this:(Parent - Child) Lcoation1 Description AAAAA DESCAAAAAAAAAAAAAAA BBBBB DESCBBBBBBBBBBBBBBB Please guide us how should I tune this query. I will apprciate youe quick help Thanks Srinivas BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF END-PROCEDURE !populate_array =============Sort================================ BEGIN-PROCEDURE sorter($new_parent, #i) LET #rec_count = #i LET #counter = 0 IF #indented = 0 LET #indented = 1 END-IF WHILE #counter < #rec_count LET $parent = parents.parent(#counter) LET $location = parents.location(#counter) LET $children = parents.children(#counter) IF $parent = $new_parent IF #down = 0 CLEAR-ARRAY NAME=backup POSITION (+2, {col1}) LET #wraplength = {width} - LENGTH($location) PRINT $location (,{col1a}) BOLD WRAP #wraplength 5 LET $top_level = $location ELSE LET #indented = #down MULTIPLY {spacer} TIMES #indented LET #wraplength = ({width} - #indented) - LENGTH($location) IF #wraplength < LENGTH($location) POSITION (+1,{col1}) LET #wraplength = (({width} - {col1}) + 2) - LENGTH($location) !LET $parent = backup.parent(#down) ! PRINT $parent () BOLD BOX IF $children = 'Y' LET $spacer = '+' ELSE LET $spacer = '-' END-IF STRING $parent $spacer $location BY ' ' INTO $full_line PRINT $full_line () BOLD BOX WRAP #wraplength 5 ! PRINT $location () BOLD BOX WRAP #wraplength 5 ELSE POSITION (+1, #indented) PRINT $location () BOLD WRAP #wraplength 5 !print 'SUB LOCATION' () END-IF END-IF LET $locations_loc = 'location = ' || '''' ||$location || '''' BEGIN-SELECT description &new_desc PRINT &new_desc (,+1) WRAP #wraplength 5 from maximo.locations where [$locations_loc] END-SELECT "Knapp, Richard" wrote: Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 14:41:32 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Performance problems in SQR Date: Wed, 15 Jan 2003 11:38:54 -0800 What is the value of $where, and how many times do you call populate_array? -----Original Message----- From: Peter Clark [mailto:PGCLARK@vac-acc.gc.ca] Sent: Wednesday, January 15, 2003 9:57 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance problems in SQR Forget that ... got interrupted before I had time to think that one entirely though. Sorry. >>> PGCLARK@vac-acc.gc.ca 2003/01/15 1:39:46 pm >>> These lines are in the wrong place. IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF Instead of after END-SELECT they should be in the body of your select. BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT END-PROCEDURE !populate_array >>> vadlamudisrinu@yahoo.com 2003/01/15 11:26:51 am >>> Please find my SQL queries here: I have been using Arrays and Sorting techniques. Basically my out put like this:(Parent - Child) Lcoation1 Description AAAAA DESCAAAAAAAAAAAAAAA BBBBB DESCBBBBBBBBBBBBBBB Please guide us how should I tune this query. I will apprciate youe quick help Thanks Srinivas BEGIN-PROCEDURE populate_array LET $P1 = UPPER($P1) LET $P2 = UPPER($P2) LET $new_parent = 'parent = ' || '''' ||$P2 || '''' LET $newloc = $P2 IF $P1 != 'ALL' LET $sys_id ='and systemid = ' || '''' ||$P1 || '''' ELSE LET $sys_id = '' END-IF LET #i = 0 BEGIN-SELECT location &location parent &parent children &children LET parents.location(#i) = &location LET parents.parent(#i) = &parent LET parents.children(#i) = &children LET #i = #i + 1 from maximo.lochierarchy where [$where] [$sys_id] order by parent, location END-SELECT IF #i > 0 LET $firsttime = 'Y' DO sorter($newloc, #i) END-IF END-PROCEDURE !populate_array =============Sort================================ BEGIN-PROCEDURE sorter($new_parent, #i) LET #rec_count = #i LET #counter = 0 IF #indented = 0 LET #indented = 1 END-IF WHILE #counter < #rec_count LET $parent = parents.parent(#counter) LET $location = parents.location(#counter) LET $children = parents.children(#counter) IF $parent = $new_parent IF #down = 0 CLEAR-ARRAY NAME=backup POSITION (+2, {col1}) LET #wraplength = {width} - LENGTH($location) PRINT $location (,{col1a}) BOLD WRAP #wraplength 5 LET $top_level = $location ELSE LET #indented = #down MULTIPLY {spacer} TIMES #indented LET #wraplength = ({width} - #indented) - LENGTH($location) IF #wraplength < LENGTH($location) POSITION (+1,{col1}) LET #wraplength = (({width} - {col1}) + 2) - LENGTH($location) !LET $parent = backup.parent(#down) ! PRINT $parent () BOLD BOX IF $children = 'Y' LET $spacer = '+' ELSE LET $spacer = '-' END-IF STRING $parent $spacer $location BY ' ' INTO $full_line PRINT $full_line () BOLD BOX WRAP #wraplength 5 ! PRINT $location () BOLD BOX WRAP #wraplength 5 ELSE POSITION (+1, #indented) PRINT $location () BOLD WRAP #wraplength 5 !print 'SUB LOCATION' () END-IF END-IF LET $locations_loc = 'location = ' || '''' ||$location || '''' BEGIN-SELECT description &new_desc PRINT &new_desc (,+1) WRAP #wraplength 5 from maximo.locations where [$locations_loc] END-SELECT "Knapp, Richard" wrote: Generally, it takes a little more information than you are providing to tune an SQR program. However, as a first step you can put a display statement in your driving select to see how long it takes to start returning rows. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: vadlamudi srinivasa chowdary [mailto:vadlamudisrinu@yahoo.com] Sent: Tuesday, January 14, 2003 2:50 AM To: sqr-users@sqrug.org Subject: [sqr-users] Performance problems in SQR Could you please send me the performance techniques. I have been usind arrays which fetches 8,000 records from oracle datbase. It is taking 4 hours yto display the output. Please help me reagrding this. I will appriciate your help. Thanks Srinivas --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 23:52:16 2003 From: Ramanarao_Pokuri Subject: RE: [sqr-users] Performance problems in SQR Date: Thu, 16 Jan 2003 10:20:11 +0530 Hi Srinivas, It'll be great, if you are able to provide some more info. Like get the explain plan for your select statement.I guess you are using oracle DB. regards, ramana > ---------- > From: vadlamudi srinivasa chowdary[SMTP:vadlamudisrinu@yahoo.com] > Reply To: sqr-users@sqrug.org > Sent: Tuesday, January 14, 2003 2:19 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Performance problems in SQR > > > Could you please send me the performance techniques. > > I have been usind arrays which fetches 8,000 records from oracle datbase. > > It is taking 4 hours yto display the output. Please help me reagrding > this. > > > > I will appriciate your help. > > > > Thanks > > Srinivas > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 10:50:30 2003 Date: Tue, 14 Jan 2003 09:35:30 -0600 From: "Amber Johnson" Subject: [sqr-users] No CSV file generated I researched the archives and found out that a Java module is needed for the CSV conversion. I made sure the JRE folder was at the same level as the BINW folder. I also made sure I was running the correct version of JRE to match my Brio version. However, when I click Save As CSV, no file is created. I looked in the SPL folder where the .lis and .spf files are located. There is nothing there. And a search of my entire system yields no results. Any help would be greatly appreciated! SQR/6.1.3/PC/Windows NT 4.0/Oracle 8.0.6/Oct 05 2000 Windows XP Professional Oracle 8i Enterprise Edition 8.1.7.3.0 - 64 bit Maximo 4.1.1 Kindest regards, Amber D. Johnson City of Corpus Christi Maximo Systems Administrator 1201 Leopard Street Corpus Christi, TX 78401 361-880-3755 Voice 361-815-3866 Cell amberj@cctexas.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 13:47:19 2003 Subject: RE: [sqr-users] No CSV file generated Date: Tue, 14 Jan 2003 11:43:41 -0600 From: "Knapp, Richard" Why not write your csv file directly from the sqr? If your output normally contains commas, use another delimiter. Excell will be able to do the import. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Amber Johnson [mailto:AmberJ@cctexas.com] Sent: Tuesday, January 14, 2003 9:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] No CSV file generated I researched the archives and found out that a Java module is needed for the CSV conversion. I made sure the JRE folder was at the same level as the BINW folder. I also made sure I was running the correct version of JRE to match my Brio version. However, when I click Save As CSV, no file is created. I looked in the SPL folder where the .lis and .spf files are located. There is nothing there. And a search of my entire system yields no results. Any help would be greatly appreciated! SQR/6.1.3/PC/Windows NT 4.0/Oracle 8.0.6/Oct 05 2000 Windows XP Professional Oracle 8i Enterprise Edition 8.1.7.3.0 - 64 bit Maximo 4.1.1 Kindest regards, Amber D. Johnson City of Corpus Christi Maximo Systems Administrator 1201 Leopard Street Corpus Christi, TX 78401 361-880-3755 Voice 361-815-3866 Cell amberj@cctexas.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-admin@sqrug.org Tue Jan 14 14:52:45 2003 From: Franck Masson Subject: RE: [sqr-users] No CSV file generated Date: Tue, 14 Jan 2003 11:44:19 -0800 by default the jre is 2 directories regarding the binw .../jre .../SQRserver/odb/binw but you can specify the path of jre in the sqr.ini using these parameters SQR_JRE_EXE=... SQR_JRE_VER=... SQR_JRE_FLAGS=... franck, -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: mardi 14 janvier 2003 18:44 To: sqr-users@sqrug.org Subject: RE: [sqr-users] No CSV file generated Why not write your csv file directly from the sqr? If your output normally contains commas, use another delimiter. Excell will be able to do the import. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Amber Johnson [mailto:AmberJ@cctexas.com] Sent: Tuesday, January 14, 2003 9:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] No CSV file generated I researched the archives and found out that a Java module is needed for the CSV conversion. I made sure the JRE folder was at the same level as the BINW folder. I also made sure I was running the correct version of JRE to match my Brio version. However, when I click Save As CSV, no file is created. I looked in the SPL folder where the .lis and .spf files are located. There is nothing there. And a search of my entire system yields no results. Any help would be greatly appreciated! SQR/6.1.3/PC/Windows NT 4.0/Oracle 8.0.6/Oct 05 2000 Windows XP Professional Oracle 8i Enterprise Edition 8.1.7.3.0 - 64 bit Maximo 4.1.1 Kindest regards, Amber D. Johnson City of Corpus Christi Maximo Systems Administrator 1201 Leopard Street Corpus Christi, TX 78401 361-880-3755 Voice 361-815-3866 Cell amberj@cctexas.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:09:32 2003 Date: Wed, 15 Jan 2003 05:46:03 -0800 (PST) From: Yuri Lakef Subject: [sqr-users] .PRN file format problems for SQR inbound interface Hello, I'm having trouble getting a text file to format correctly from Excel to be processed by an SQR interface program. I'm wanting to save the Excel worksheet as a .PRN file, which will have fixed-length columns. The problem is that the worksheet has 23 columns and three of the fields have betwen 30-50 characters which causes some of the rows to exceed 240 bytes. The MicroSoft support website revealed that, by design, Formatted Text (Space Delimited) (.PRN) files have a limit of 240 characters per line. If several rows on the same worksheet contain text beyond 240 characters, the text begins wrapping at the row after the last row that contains data. If I save the Excel worksheet as a comma-delimted (.CSV) file type, then all data saves correctly. The only problem I have is that fields which have embedded commas in the data will be surrounded by double-quotes in the text file. This makes is very difficult to parse out each field on the row using the SQR interface program. That's why I prefer using .PRN which has fixed-length columns. QUESTION: Does anyone know if I can change the default delimiter in Excel from comma to tilde ('~') or something else? That way when I save a worksheet as .CSV format, instead of separating each field in a row with a comma, the '~' (tilde) character will be used. Then, using my interface program, I can parse each field on a row using this character, which will not be used within any data column. Any other suggestions would be appreciated! Thanks in advance for any help. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:30:26 2003 Subject: Re: [sqr-users] .PRN file format problems for SQR inbound interface From: lgcombs@firstenergycorp.com Date: Wed, 15 Jan 2003 12:17:19 -0500 I don't know of any way to change the default delimiter in Excel, but there is a work-around. You could save it as tab-delimited, then open it in Word and replace the tabs with tildes. Yuri Lakef cc: Sent by: Subject: [sqr-users] .PRN file format problems for SQR inbound sqr-users-admin interface @sqrug.org 01/15/2003 08:46 AM Please respond to sqr-users Hello, I'm having trouble getting a text file to format correctly from Excel to be processed by an SQR interface program. I'm wanting to save the Excel worksheet as a .PRN file, which will have fixed-length columns. The problem is that the worksheet has 23 columns and three of the fields have betwen 30-50 characters which causes some of the rows to exceed 240 bytes. The MicroSoft support website revealed that, by design, Formatted Text (Space Delimited) (.PRN) files have a limit of 240 characters per line. If several rows on the same worksheet contain text beyond 240 characters, the text begins wrapping at the row after the last row that contains data. If I save the Excel worksheet as a comma-delimted (.CSV) file type, then all data saves correctly. The only problem I have is that fields which have embedded commas in the data will be surrounded by double-quotes in the text file. This makes is very difficult to parse out each field on the row using the SQR interface program. That's why I prefer using .PRN which has fixed-length columns. QUESTION: Does anyone know if I can change the default delimiter in Excel from comma to tilde ('~') or something else? That way when I save a worksheet as .CSV format, instead of separating each field in a row with a comma, the '~' (tilde) character will be used. Then, using my interface program, I can parse each field on a row using this character, which will not be used within any data column. Any other suggestions would be appreciated! Thanks in advance for any help. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:32:27 2003 From: Vishner@aol.com Date: Wed, 15 Jan 2003 12:31:10 EST Subject: Re: [sqr-users] .PRN file format problems for SQR inbound interface Try saving the file as a text (tab-delimited) file. Then you can use unstring to easily pop columns into variables using $Input_Delim which has been defined as: let $Input_Delim = chr(9) !TAB character HTH, Hugh In a message dated 1/15/2003 12:13:01 PM Eastern Standard Time, lakef250@yahoo.com writes: > Hello, > I'm having trouble getting a text file to format correctly from Excel to be > processed by an SQR interface program. I'm wanting to save the Excel > worksheet as a .PRN file, which will have fixed-length columns. The > problem is that the worksheet has 23 columns and three of the fields have > betwen 30-50 characters which causes some of the rows to exceed 240 bytes. > The MicroSoft support website revealed that, by design, Formatted Text > (Space Delimited) (.PRN) files have a limit of 240 characters per line. If > several rows on the same worksheet contain text beyond 240 characters, the > text begins wrapping at the row after the last row that contains data. > If I save the Excel worksheet as a comma-delimted (.CSV) file type, then > all data saves correctly. The only problem I have is that fields which > have embedded commas in the data will be surrounded by double-quotes in the > text file. This makes is very difficult to parse out each field on the row > using the SQR interface program. That's why I prefer using .PRN which has > fixed-length columns. > QUESTION: Does anyone know if I can change the default delimiter in Excel > from comma to tilde ('~') or something else? That way when I save a > worksheet as .CSV format, instead of separating each field in a row with a > comma, the '~' (tilde) character will be used. Then, using my interface > program, I can parse each field on a row using this character, which will > not be used within any data column. Any other suggestions would be > appreciated! > Thanks in advance for any help. > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 15:30:24 2003 Date: Wed, 15 Jan 2003 12:29:45 -0800 (PST) From: Yuri Lakef Subject: Re: [sqr-users] .PRN file format problems for SQR inbound interface Thanks for the response, Hugh. The only problem I'm having with .CSV (comma-delimited) or .TXT (tab-delimited) formatted files is that Excel surrounds any field with a valid comma as part of the data in double-quotes (e.g, "data, more data"). I could strip these in the SQR, but double-quotes could also be valid data (e.g., PART "A2") and I wouldn't want to remove them in this case. For this reason, having either fixed-width columns or a delimiter that will not be confused with actual data is my desire. Any other ideas? Thanks, again. Vishner@aol.com wrote:Try saving the file as a text (tab-delimited) file. Then you can use unstring to easily pop columns into variables using $Input_Delim which has been defined as: let $Input_Delim = chr(9) !TAB character HTH, Hugh In a message dated 1/15/2003 12:13:01 PM Eastern Standard Time, lakef250@yahoo.com writes: > Hello, > I'm having trouble getting a text file to format correctly from Excel to be > processed by an SQR interface program. I'm wanting to save the Excel > worksheet as a .PRN file, which will have fixed-length columns. The > problem is that the worksheet has 23 columns and three of the fields have > betwen 30-50 characters which causes some of the rows to exceed 240 bytes. > The MicroSoft support website revealed that, by design, Formatted Text > (Space Delimited) (.PRN) files have a limit of 240 characters per line. If > several rows on the same worksheet contain text beyond 240 characters, the > text begins wrapping at the row after the last row that contains data. > If I save the Excel worksheet as a comma-delimted (.CSV) file type, then > all data saves correctly. The only problem I have is that fields which > have embedded commas in the data will be surrounded by double-quotes in the > text file. This makes is very difficult to parse out each field on the row > using the SQR interface program. That's why I prefer using .PRN which has > fixed-length columns. > QUESTION: Does anyone know if I can change the default delimiter in Excel > from comma to tilde ('~') or something else? That way when I save a > worksheet as .CSV format, instead of separating each field in a row with a > comma, the '~' (tilde) character will be used. Then, using my interface > program, I can parse each field on a row using this character, which will > not be used within any data column. Any other suggestions would be > appreciated! > Thanks in advance for any help. > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 17:11:17 2003 From: Vishner@aol.com Date: Wed, 15 Jan 2003 17:10:09 EST Subject: Re: [sqr-users] .PRN file format problems for SQR inbound interface Im sorry. I dont have a late release of XL handy. I tried saving in an old spreadsheet product, and although .CSV files wrapped quotes around comma-embedded fields, .TXT files did not. Fixed-length columns are more trouble than they're worth. I'm afraid I cant think of anything else. In a message dated 1/15/2003 3:31:53 PM Eastern Standard Time, lakef250@yahoo.com writes: > Thanks for the response, Hugh. > The only problem I'm having with .CSV (comma-delimited) or .TXT > (tab-delimited) formatted files is that Excel surrounds any field with a > valid comma as part of the data in double-quotes (e.g, "data, more data"). > I could strip these in the SQR, but double-quotes could also be valid data > (e.g., PART "A2") and I wouldn't want to remove them in this case. > For this reason, having either fixed-width columns or a delimiter that will > not be confused with actual data is my desire. > Any other ideas? Thanks, again. > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 14 11:49:36 2003 From: "Arnon Oppenheimer" Date: Tue, 14 Jan 2003 18:12:37 +0200 Subject: [sqr-users] GRAYSCALE Charts We use SQR 4.3.4 / Win2K / Oracle. How can I define to display in SQR Viewer GRAYSCALE charts (Print-Chart with Fill = GRAYSCALE) ? Even when I defined printer with color=no, I get colors. TIA. Arnon Oppenheimer _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 07:48:42 2003 Date: Tue, 14 Jan 2003 16:53:13 -0800 From: Ken Boettger Subject: [sqr-users] What twabbling me... NOT EXIST and DISTINCT MAX Platform: UNIX I have two questions with SQL related to a SQR I am working on. The SQR is failing so I took the SQL statements out to run them directly in Oracle. The questions are best explained by simple examples. So here goes... Example #1, simple select select Mb.EFFDT FROM PS_PERS_DATA_EFFDT Mb WHERE Mb.EMPLID = '10057607' EFFDT ----------- 02-JUN-1997 20-DEC-2002 *********************************** Example #2, simple select with NOT EXISTS clause (there are no records in the PS_CUSTOM) select Mb.EFFDT FROM PS_PERS_DATA_EFFDT Mb WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE PCR.EMPLID = Mb.EMPLID) and Mb.EMPLID = '10057607' no rows selected Question #1: The first example proves that there is data to be selected, but we lose it by adding the NOT EXISTS clause. Since there are no records in PCR, the NOT EXISTS should evaluate to true and generate the same thing as example #1. Why do I get the result "no records selected"? Can someone help? *********************************** Example #3, simple select using distinct and maximum select distinct MAX(Mb.EFFDT) FROM PS_PERS_DATA_EFFDT Mb WHERE Mb.EMPLID = '10057607' MAX(MB.EFFDT) ------------------------ 20-DEC-2002 *********************************** Example #4, same as example #3 but with the NOT EXIST clause added (again, PCR has no records or data). select distinct MAX(Mb.EFFDT) FROM PS_PERS_DATA_EFFDT Mb WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE PCR.EMPLID = Mb.EMPLID) and Mb.EMPLID = '10057607' MAX(MB.EFFDT) ------------------------- Note that it I get something returned but no actual data. Almost as if I recieved a null value as a result set. Question #2: Can someone explain what is happening here? I added the NOT EXISTS clause to my select statement and I would think I would still return the 20-DEC-2002 (again, there are no records in PCR so the NOT EXISTS should evaluate to a true state and Example #3 and #4 should be identical in what they return. Ken Boettger boettgek@cwu.edu http://www.cwu.edu/~boettgek x2944 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:08:56 2003 Date: Wed, 15 Jan 2003 08:41:36 -0500 From: "George Jansen" Subject: Re: [sqr-users] What twabbling me... NOT EXIST and DISTINCT MAX 1. NOT EXISTS If in fact there are no records in PS_CUSTOM then chances are you've hit a bug. Your employer pays a LOT of $$ to Oracle to resolve this kind of thing--call them. 2. MAX will return a null value for an empty table. If you have the time, the patience, and a handy library, you can find an essay by C.J. Date discussing the iniquity of this, but it is what SQL is supposed to do. 2a. What does "distinct" add to "MAX"? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:10:45 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] What twabbling me... NOT EXIST and DISTINCT MAX Date: Wed, 15 Jan 2003 08:19:40 -0800 I don't use the exists feature too often, but I think you may have to select a single field or literal, rather than all fields; ... where not exists (select 'X' from ... -----Original Message----- From: Ken Boettger [mailto:BoettgeK@cwu.edu] Sent: Tuesday, January 14, 2003 4:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] What twabbling me... NOT EXIST and DISTINCT MAX Platform: UNIX I have two questions with SQL related to a SQR I am working on. The SQR is failing so I took the SQL statements out to run them directly in Oracle. The questions are best explained by simple examples. So here goes... Example #1, simple select select Mb.EFFDT FROM PS_PERS_DATA_EFFDT Mb WHERE Mb.EMPLID = '10057607' EFFDT ----------- 02-JUN-1997 20-DEC-2002 *********************************** Example #2, simple select with NOT EXISTS clause (there are no records in the PS_CUSTOM) select Mb.EFFDT FROM PS_PERS_DATA_EFFDT Mb WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE PCR.EMPLID = Mb.EMPLID) and Mb.EMPLID = '10057607' no rows selected Question #1: The first example proves that there is data to be selected, but we lose it by adding the NOT EXISTS clause. Since there are no records in PCR, the NOT EXISTS should evaluate to true and generate the same thing as example #1. Why do I get the result "no records selected"? Can someone help? *********************************** Example #3, simple select using distinct and maximum select distinct MAX(Mb.EFFDT) FROM PS_PERS_DATA_EFFDT Mb WHERE Mb.EMPLID = '10057607' MAX(MB.EFFDT) ------------------------ 20-DEC-2002 *********************************** Example #4, same as example #3 but with the NOT EXIST clause added (again, PCR has no records or data). select distinct MAX(Mb.EFFDT) FROM PS_PERS_DATA_EFFDT Mb WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE PCR.EMPLID = Mb.EMPLID) and Mb.EMPLID = '10057607' MAX(MB.EFFDT) ------------------------- Note that it I get something returned but no actual data. Almost as if I recieved a null value as a result set. Question #2: Can someone explain what is happening here? I added the NOT EXISTS clause to my select statement and I would think I would still return the 20-DEC-2002 (again, there are no records in PCR so the NOT EXISTS should evaluate to a true state and Example #3 and #4 should be identical in what they return. Ken Boettger boettgek@cwu.edu http://www.cwu.edu/~boettgek x2944 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 07:46:39 2003 From: "Daniel Holgate" Date: Wed, 15 Jan 2003 11:53:19 +0900 Subject: [sqr-users] PDF files with Simplified Chinese All, Has anyone had any success producing PDF files containing Simplified Chinese characters using SQR 6.1.4 sqrwp? Our environment is: Orignal datasource: Chinese text in Oracle 8i - (DB character set ZHS16GBK) SQR 6.1.4 Simplified Chinese Windows 2000 I have successfully created a .spf file which displays chinese characters correctly, and I then use sqrwp to produce a PDF file. However, no combination of encoding settings in sqr.ini seems to allow me to produce a .pdf file containing Chinese characters. The characters at the moment always get turned into a jumbled string of ascii characters and it doesn't look like the fonts are getting embedded correctly. Does anyone have advice on the correct encoding / font substitution list for the sqr.ini file? Thanks in advance Daniel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 07:49:12 2003 From: "Dhekra Bedoui" Date: Wed, 15 Jan 2003 13:33:14 +0100 Subject: [sqr-users] Question about the Payment report This is a multi-part message in MIME format... ------=_NextPartTM-000-735f38a4-4771-4646-a92d-2a2903204cd9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello Everybody, I have a timing problem's with editing the Payment Report. In effect, we have an average of 180 payslips about 9 hours, so 1 will be writin in 3 minutes ... it is too much, because of the number of payslips we have to done, in each agency. Will someone have this problem, and can help me, or can give a solution ... it's great for me Dhek ------=_NextPartTM-000-735f38a4-4771-4646-a92d-2a2903204cd9 Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Ce message et toutes les pieces jointes (ci - apres le \"message\" ) sont etablis a l'attention exclusive de ses destinataires et sont strictement confidentiels. Si vous n'etes pas le destinataire du message, il vous est interdit d'en faire la copie, de le faire suivre, d'en divulguer le contenu ou de l'utiliser en tout ou partie. Si vous avez recu ce message par erreur, merci d'en avertir immediatement l'expediteur et de le detruire. L'integrite du message n'est pas assuree sur Internet, chaque information pouvant etre interceptee, modifiee, perdue, subir un retard dans sa transmission ou contenir des virus. L'expediteur decline donc toute responsabilite pour toute alteration, deformation ou falsification subie par le message au cours de sa transmission. Toute opinion contenue dans ce message appartient a son auteur et ne peut engager la responsabilite de SIN-ET-STES ou de l'entite expeditrice du message, a moins que cela ait ete clairement specifie dans le message et qu'il soit verifie que son auteur etait en mesure d'engager SIN-ET-STES ou ladite entite. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This message and any attachments are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee you may not copy, forward, disclose or use any part of the message or its attachments and if you have received this message in error, please notify the sender immediately by return e-mail and delete it from your system. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. The sender therefore does not accept liability for any errors or omissions in the context of this message which arise as a result of Internet transmission. Any opinions contained in this message are those of the author and are not given or endorsed by SIN-ET-STES or office through which this message is sent unless otherwise clearly indicated in this message and the authority of the author to so bind SIN-ET-STES entity referred to is duly verified. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ------=_NextPartTM-000-735f38a4-4771-4646-a92d-2a2903204cd9-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:06:39 2003 Date: Wed, 15 Jan 2003 05:37:29 -0800 (PST) From: Phil McKenzie Subject: [sqr-users] Select from character fields returns no data This is a multi-part message in MIME format... --0-905526340-1042637849=:4415 Content-Type: text/plain; charset=us-ascii When trying to select data to write to a file, I receive no values for any character fields however I do receive values for Number and Date Fields. I've executed the exact SQL statmetn in a SQL editor and it returns values from the database. I've executed several SQRs that select from different tables. I'm attaching the custom code I built as well as the output file. Further examples are available if they would help in solving this dilemma. Please assist if you have any ideas. Thanks for your attention. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --0-905526340-1042637849=:4415 Content-Type: text/plain; name="OCLISL01.sqr" Content-Description: OCLISL01.sqr Content-Disposition: inline; filename="OCLISL01.sqr" !**********************************************************************! ! Report Name : OCLISL01.sqr -Inventory Storage Locations ! !----------------------------------------------------------------------! ! Author : Mark Malcolm, BearingPoint ! ! January, 2003 ! !----------------------------------------------------------------------! ! ! ! Program Desc: ! ! ! ! !----------------------------------------------------------------------! ! Code Modifications: ! ! ! ! 1) 01/13/03 Initial Development of Report ! !----------------------------------------------------------------------! ! Prompts: Directory and input file name ! !----------------------------------------------------------------------! ! Output : ! ! ! ! ! !**********************************************************************! #include 'setenv.sqc' ! Set Environment procedure #include 'setup02.sqc' ! Landscape printer/page size init !******************************************************************************* begin-Report !******************************************************************************* !Do Get-Current-DateTime !Do Define-Prcs-Vars !Do Get-Run-Control-Parms do Init-report do open-file do Process-Main close 1 !Do Update-Prcs-Run-Status Do Get-Current-DateTime Show 'Start Time: ' $ReportDate ' ' $ReportTime Show ' ' end-Report !******************************************************************************* begin-procedure Init-Report !******************************************************************************* move 0 to #counter Let $todaydate = edit($current-date, 'YYYY-MM-DD') let $output = 'C:\Malcolm\Storage Location data.txt' end-procedure begin-procedure open-file open $Output as 1 for-writing Record=100:VARY status = #filestat if #filestat = 0 Display 'Opening ' noline Display 'new vendor data.txt' Display ' ' else Display 'Cannot open ' noline Display 'new vendor data.txt' Display ' ' show 'File Status ' show #filestat stop end-if end-procedure !Init-Report !******************************************************************************* Begin-Procedure Process-Main !******************************************************************************* BEGIN-SELECT A.INV_ITEM_ID A.STORAGE_AREA A.STAGED_DATE Show &A.INV_ITEM_ID Show &A.STORAGE_AREA Show &A.STAGED_DATE MOVE &A.INV_ITEM_ID TO $INV_ITEM_ID MOVE &A.STORAGE_AREA TO $STORAGE_AREA MOVE &A.STAGED_DATE TO $STAGED_DATE Show $INV_ITEM_ID Show $STORAGE_AREA Show $STAGED_DATE do write-to-file FROM PS_PHYSICAL_INV A !WHERE A.BUSINESS_UNIT = '01002' ! or A.BUSINESS_UNIT = '01003' end-select End-Procedure !****************************************************************** ! Writing Inventory Storage Location Data !****************************************************************** begin-procedure write-to-file SHOW 'Writing location data to file' write 1 from $INV_ITEM_ID:18 $STORAGE_AREA:5 $STAGED_DATE:10 status=#filestat end-procedure !******************************************************************************* ! Called SQC procedures - (Use Lower Case for Oracle) !******************************************************************************* #include 'ldnumlit.sqc' !Load-Numlits-Array (eg: 1 is 'One') #include 'number.sqc' !Format Numbers #include 'tranctrl.sqc' !do-Commit, Rollback #include 'reset.sqc' !Reset Printer procedure ----! #include 'curdttim.sqc' !Get-Current-DateTime procedure #include 'datetime.sqc' !Routines for date and time formatting #include 'dnumtest.sqc' !Routines to verify decimal signed number format #include 'stdapi.sqc' !For error messaging #include 'prcsapi.sqc' ! Update process Request API #include 'prcsdef.sqc' ! Update Process Request variable declare --0-905526340-1042637849=:4415 Content-Type: text/plain; name="Storage Location data.txt" Content-Description: Storage Location data.txt Content-Disposition: inline; filename="Storage Location data.txt" 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 1900-01-01 --0-905526340-1042637849=:4415-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:11:18 2003 From: "Vallabhu, Bindu" Date: Wed, 15 Jan 2003 11:33:47 -0500 Subject: [sqr-users] SQL question Hi All, Is there a way we can generate a list of numbers in SQL. the list should include all numbers from 0 to 100. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:27:27 2003 From: =?iso-8859-2?Q?Gerg=F5_B=E1cska?= Subject: RE: [sqr-users] SQL question Date: Wed, 15 Jan 2003 18:18:44 +0100 Hi Like this move 0 to #i while #i<= 100 add 1 to #i #debug show #i end-while Best Regards Gergo -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Vallabhu, Bindu Sent: Wednesday, January 15, 2003 5:34 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQL question Hi All, Is there a way we can generate a list of numbers in SQL. the list should include all numbers from 0 to 100. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:27:59 2003 From: "Turner, Ivan" Subject: RE: [sqr-users] SQL question Date: Wed, 15 Jan 2003 10:22:26 -0700 create a sequence in your db and initialize it to zero then select it form dual. This is assuming it's an oracle db. -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@staples.com] Sent: Wednesday, January 15, 2003 11:34 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQL question Hi All, Is there a way we can generate a list of numbers in SQL. the list should include all numbers from 0 to 100. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 12:29:00 2003 Subject: RE: [sqr-users] SQL question Date: Wed, 15 Jan 2003 12:23:13 -0500 From: "Ven Garlapati" Hi Bindu: SQL> select rownum -1 from temp_table 2 where rownum < 12; ROWNUM-1 --------- 0 1 2 3 4 5 6 7 8 9 10 11 rows selected. this will work provided if you have more than 100 records in a table. Thanks, Ven Garlapati -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@staples.com] Sent: Wednesday, January 15, 2003 11:34 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQL question Hi All, Is there a way we can generate a list of numbers in SQL. the list should include all numbers from 0 to 100. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 13:01:25 2003 From: "Vallabhu, Bindu" Subject: RE: [sqr-users] SQL question Date: Wed, 15 Jan 2003 13:00:05 -0500 Hi Ven, I am working on the DB2 database so this does not work. I will ask my dba if there is an alternative to rownum in db2. Thank you, Bindu -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: 01/15/2003 12:23 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQL question Hi Bindu: SQL> select rownum -1 from temp_table 2 where rownum < 12; ROWNUM-1 --------- 0 1 2 3 4 5 6 7 8 9 10 11 rows selected. this will work provided if you have more than 100 records in a table. Thanks, Ven Garlapati -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@staples.com] Sent: Wednesday, January 15, 2003 11:34 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQL question Hi All, Is there a way we can generate a list of numbers in SQL. the list should include all numbers from 0 to 100. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 15 13:08:29 2003 Subject: RE: [sqr-users] SQL question From: Rick_Creel@aoncons.com Date: Wed, 15 Jan 2003 13:07:03 -0500 #count = 0 while #count < 101 show 'count = ' #count add 1 to #count end-while "Vallabhu, Bindu" taples.com> cc: Sent by: Subject: RE: [sqr-users] SQL question sqr-users-admin@s qrug.org 01/15/2003 01:00 PM Please respond to sqr-users Hi Ven, I am working on the DB2 database so this does not work. I will ask my dba if there is an alternative to rownum in db2. Thank you, Bindu -----Original Message----- From: Ven Garlapati [mailto:VXG@creditacceptance.com] Sent: 01/15/2003 12:23 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQL question Hi Bindu: SQL> select rownum -1 from temp_table 2 where rownum < 12; ROWNUM-1 --------- 0 1 2 3 4 5 6 7 8 9 10 11 rows selected. this will work provided if you have more than 100 records in a table. Thanks, Ven Garlapati -----Original Message----- From: Vallabhu, Bindu [mailto:Bindu.Vallabhu@staples.com] Sent: Wednesday, January 15, 2003 11:34 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] SQL question Hi All, Is there a way we can generate a list of numbers in SQL. the list should include all numbers from 0 to 100. Thank you, Bindu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 16 07:01:29 2003 Date: Fri, 17 Jan 2003 00:58:07 +1300 From: harij@tui.lincoln.ac.nz Subject: [sqr-users] sqr-users digest, Vol 1 #121 - 24 msgs I'm currently out of the office, returning Tue, 21 Jan 03. For any urgent issues I can be contacted on my mobile, 027 218 4675 Hari Jitindar Singh Applications Manager Lincoln University Ph : + 64 3 325 3677 Mobile : +64 27 218 4675 Email : harij@lincoln.ac.nz _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 16 08:35:13 2003 From: "=?iso-8859-1?Q?Tha=EE?= Le Tat" Date: Thu, 16 Jan 2003 14:34:05 +0100 Subject: [sqr-users] =?iso-8859-1?Q?R=E9f=2E_=3A_[sqr-users]_What_twabbling_me=2E=2E=2E_NOT?=EXIST and DISTINCT MAX This is a multi-part message in MIME format... ------------7NhE3WuB9OnU6N9D2A0R5Y7 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable It looks like an Oracle bug. 1/ Can you try the following, and give us the results ? SQL> select * from dual where 'a'=3D'b'; no rows selected SQL> select sysdate from dual; SYSDATE --------- 16-JAN-03 SQL> select sysdate from dual where not exists (select * from dual w= here 'a'=3D'b'); SYSDATE --------- 16-JAN-03 2/ You can replace your NOT EXISTS with an NOT IN ( if EMPLID is never = null (or empty) in PS_CUSTOM ). Regards, Thai LE TAT Ken Boettger @sqrug.org le 15/01/2003 01:53:13 Veuillez r=E9pondre =E0 sqr-users@sqrug.org Envoy=E9 par : sqr-users-admin@sqrug.org Pour : sqr-users@sqrug.org cc : (ccc : Tha=EE Le Tat/DSP/DSTI/CLY) Objet : [sqr-users] What twabbling me... NOT EXIST and DISTINCT MAX Platform: UNIX I have two questions with SQL related to a SQR I am working on. The SQR is failing so I took the SQL statements out to run them directly in Oracle. The questions are best explained by simple examples. So here goes... Example #1, simple select select Mb.EFFDT FROM PS_PERS_DATA_EFFDT Mb WHERE Mb.EMPLID =3D '10057607' EFFDT ----------- 02-JUN-1997 20-DEC-2002 *********************************** Example #2, simple select with NOT EXISTS clause (there are no records in the PS_CUSTOM) select Mb.EFFDT FROM PS_PERS_DATA_EFFDT Mb WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE PCR.EMPLID =3D Mb.EMPLI= D) and Mb.EMPLID =3D '10057607' no rows selected Question #1: The first example proves that there is data to be selected, but we lose it by adding the NOT EXISTS clause. Since there are no records in PCR, the NOT EXISTS should evaluate to true and generate the same thing as example #1. Why do I get the result "no records selected"? Can someone help? *********************************** Example #3, simple select using distinct and maximum select distinct MAX(Mb.EFFDT) FROM PS_PERS_DATA_EFFDT Mb WHERE Mb.EMPLID =3D '10057607' MAX(MB.EFFDT) ------------------------ 20-DEC-2002 *********************************** Example #4, same as example #3 but with the NOT EXIST clause added (again, PCR has no records or data). select distinct MAX(Mb.EFFDT) FROM PS_PERS_DATA_EFFDT Mb WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE PCR.EMPLID =3D Mb.EMPLI= D) and Mb.EMPLID =3D '10057607' MAX(MB.EFFDT) ------------------------- Note that it I get something returned but no actual data. Almost as if I recieved a null value as a result set. Question #2: Can someone explain what is happening here? I added the NOT EXISTS clause to my select statement and I would think I would still return the 20-DEC-2002 (again, there are no records in PCR so the NOT EXISTS should evaluate to a true state and Example #3 and #4 should be identical in what they return. Ken Boettger boettgek@cwu.edu http://www.cwu.edu/~boettgek x2944 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------7NhE3WuB9OnU6N9D2A0R5Y7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ce message contient des informations confidentielles ou appartenant au Cr=E9dit Lyonnais et est =E9tabli =E0 l'intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit =EAtre pr=E9alablement autoris=E9e. Tout message =E9lectronique est susceptible d'alt=E9ration et son int=E9grit=E9 ne peut =EAtre assur=E9e. Le Cr=E9dit Lyonnais d=E9cline toute responsabilit=E9 au titre de ce message s'il a =E9t=E9 modifi=E9 ou falsifi=E9. Si vous n'=EAtes pas destinataire de ce message, merci de le d=E9truire imm=E9diatement et d'avertir l'exp=E9diteur de l'erreur de distribution et de la destruction du message. Cr=E9dit Lyonnais, SA au capital de Euros 1.807.874.827 - RCS Lyon B 954 50= 9 741 Si=E8ge Central : 19, boulevard des Italiens. 75002 Paris. France This e-mail contains confidential information or information belonging to Cr=E9dit Lyonnais and is intended solely for the addressees. The unauthorised disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guarant= eed. Cr=E9dit Lyonnais shall not be liable for this e-mail if modified or falsif= ied. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Cr=E9dit Lyonnais SA. Share Capital of Euros 1.807.874.827. Registered Office : Lyon (B 954 509 741) Central and administrative Office : 19, boulevard des Italiens. 75002 Paris= . France ------------7NhE3WuB9OnU6N9D2A0R5Y7-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 16 08:50:06 2003 Date: Thu, 16 Jan 2003 05:48:48 -0800 (PST) From: Greg Rabinovich Subject: Re: [sqr-users] Réf._:_[sqr-users]_What_twabbling_me..._NOTEXIST and DISTINCT MAX I don't see where the contradiction is. NOT EXISTS (select * from dual where 'a'='b') evaluates to True and therefore you get rows. If you change this to EXISTS, then you will get no rows. select sysdate from dual where exists (select * from dual where 'a'='b') no rows selected --- Thaî Le Tat wrote: > > > It looks like an Oracle bug. > > 1/ Can you try the following, and give us the > results ? > > SQL> select * from dual where 'a'='b'; > no rows selected > > SQL> select sysdate from dual; > SYSDATE > --------- > 16-JAN-03 > > SQL> select sysdate from dual where not > exists (select * from dual where 'a'='b'); > SYSDATE > --------- > 16-JAN-03 > > 2/ You can replace your NOT EXISTS with an NOT IN > ( if EMPLID is never null (or empty) in PS_CUSTOM > ). > > Regards, > Thai LE TAT > > > > > > > Ken Boettger @sqrug.org le > 15/01/2003 01:53:13 > > Veuillez répondre à sqr-users@sqrug.org > > Envoyé par : sqr-users-admin@sqrug.org > > > Pour : sqr-users@sqrug.org > cc : (ccc : Thaî Le Tat/DSP/DSTI/CLY) > > Objet : [sqr-users] What twabbling me... NOT > EXIST and DISTINCT MAX > > > Platform: UNIX > > I have two questions with SQL related to a SQR I am > working on. The SQR is > failing so I took the SQL statements out to run them > directly in Oracle. > The questions are best explained by simple examples. > So here goes... > > > Example #1, simple select > > select Mb.EFFDT > FROM PS_PERS_DATA_EFFDT Mb > WHERE Mb.EMPLID = '10057607' > > > EFFDT > ----------- > 02-JUN-1997 > 20-DEC-2002 > > *********************************** > > Example #2, simple select with NOT EXISTS clause > (there are no records in > the PS_CUSTOM) > > select Mb.EFFDT > FROM PS_PERS_DATA_EFFDT Mb > WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE > PCR.EMPLID = Mb.EMPLID) > and Mb.EMPLID = '10057607' > > no rows selected > > Question #1: The first example proves that there is > data to be selected, > but we lose it by adding the NOT EXISTS clause. > Since there are no records > in PCR, the NOT EXISTS should evaluate to true and > generate the same thing > as example #1. Why do I get the result "no records > selected"? Can someone > help? > > *********************************** > > Example #3, simple select using distinct and maximum > > select distinct MAX(Mb.EFFDT) > FROM PS_PERS_DATA_EFFDT Mb > WHERE Mb.EMPLID = '10057607' > > > MAX(MB.EFFDT) > ------------------------ > 20-DEC-2002 > > *********************************** > > Example #4, same as example #3 but with the NOT > EXIST clause added (again, > PCR has no records or data). > > select distinct MAX(Mb.EFFDT) > FROM PS_PERS_DATA_EFFDT Mb > WHERE NOT EXISTS (SELECT * FROM PS_CUSTOM PCR WHERE > PCR.EMPLID = Mb.EMPLID) > and Mb.EMPLID = '10057607' > > MAX(MB.EFFDT) > ------------------------- > > > Note that it I get something returned but no actual > data. Almost as if I > recieved a null value as a result set. > > Question #2: Can someone explain what is happening > here? I added the NOT > EXISTS clause to my select statement and I would > think I would still return > the 20-DEC-2002 (again, there are no records in PCR > so the NOT EXISTS > should evaluate to a true state and Example #3 and > #4 should be identical > in what they return. > > Ken Boettger > boettgek@cwu.edu > http://www.cwu.edu/~boettgek > x2944 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > Ce message contient des informations confidentielles > ou appartenant au > Crédit Lyonnais et est établi à l'intention > exclusive de ses > destinataires. Toute divulgation, utilisation, > diffusion ou reproduction > (totale ou partielle) de ce message, ou des > informations qu'il contient, > doit être préalablement autorisée. Tout message > électronique est > susceptible d'altération et son intégrité ne peut > être assurée. > Le Crédit Lyonnais décline toute responsabilité au > titre de ce > message s'il a été modifié ou falsifié. Si vous > n'êtes pas > destinataire de ce message, merci de le détruire > immédiatement et > d'avertir l'expéditeur de l'erreur de distribution > et de la destruction > du message. > Crédit Lyonnais, SA au capital de Euros > 1.807.874.827 - RCS Lyon B 954 509 741 > Siège Central : 19, boulevard des Italiens. 75002 > Paris. France > > This e-mail contains confidential information or > information belonging > to Crédit Lyonnais and is intended solely for the > addressees. > The unauthorised disclosure, use, dissemination or > copying (either whole > or partial) of this e-mail, or any information it > contains, is prohibited. > E-mails are susceptible to alteration and their > integrity cannot be guaranteed. > Crédit Lyonnais shall not be liable for this e-mail > if modified or falsified. > If you are not the intended recipient of this > e-mail, please delete it > immediately from your system and notify the sender > of the wrong delivery > and the mail deletion. > Crédit Lyonnais SA. > Share Capital of Euros 1.807.874.827. > Registered Office : Lyon (B 954 509 741) > Central and administrative Office : 19, boulevard > des Italiens. 75002 Paris. France > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 12:59:48 2003 Date: Fri, 17 Jan 2003 13:57:29 -0400 From: "Peter Clark" Subject: [sqr-users] Winword Anyone have any experience in launching a network version of MS Word with a Call System? No problem doing it with my local copy of Word, but our users have a networked version and I can't get it to work by referencing it giving it the network path to winword.exe. Is there a trick to it? This is what I am doing: let $Word_Path = 'F:\WINAPPS\WORD2002E\FILES\PFILES\MSOFFICE\OFFICE10\WINWORD.EXE' let $System_Command = $Word_Path || ' C:\TEMP\ID_Renewal_List.dat' CALL SYSTEM USING $System_Command #Call_Status NOWAIT SQR 4.3.2 & Windows2000 Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 13:07:06 2003 From: "Bummer, Antonio" Subject: RE: [sqr-users] Winword Date: Fri, 17 Jan 2003 10:06:22 -0800 You might want to path out the server as well. Instead of using F: use \\servername\.etc\etc.. Antonio > -----Original Message----- > From: Peter Clark [SMTP:PGCLARK@vac-acc.gc.ca] > Sent: Friday, January 17, 2003 9:57 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Winword > > Anyone have any experience in launching a network version of MS Word > with a Call System? No problem doing it with my local copy of Word, but > our users have a networked version and I can't get it to work by > referencing it giving it the network path to winword.exe. Is there a > trick to it? > > This is what I am doing: > let $Word_Path = > 'F:\WINAPPS\WORD2002E\FILES\PFILES\MSOFFICE\OFFICE10\WINWORD.EXE' > let $System_Command = $Word_Path || ' C:\TEMP\ID_Renewal_List.dat' > CALL SYSTEM USING $System_Command #Call_Status NOWAIT > > SQR 4.3.2 & Windows2000 > > Thanks > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 13:17:05 2003 From: Stu-Wood Subject: RE: [sqr-users] Winword Date: Fri, 17 Jan 2003 13:15:46 -0500 I think you can just use winword as the application name. The operating system should have this defined as an environment variable that points to the executable path. Stu -----Original Message----- From: Bummer, Antonio [mailto:ABummer@calwater.com] Sent: Friday, January 17, 2003 1:06 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Winword You might want to path out the server as well. Instead of using F: use \\servername\.etc\etc.. Antonio > -----Original Message----- > From: Peter Clark [SMTP:PGCLARK@vac-acc.gc.ca] > Sent: Friday, January 17, 2003 9:57 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Winword > > Anyone have any experience in launching a network version of MS Word > with a Call System? No problem doing it with my local copy of Word, but > our users have a networked version and I can't get it to work by > referencing it giving it the network path to winword.exe. Is there a > trick to it? > > This is what I am doing: > let $Word_Path = > 'F:\WINAPPS\WORD2002E\FILES\PFILES\MSOFFICE\OFFICE10\WINWORD.EXE' > let $System_Command = $Word_Path || ' C:\TEMP\ID_Renewal_List.dat' > CALL SYSTEM USING $System_Command #Call_Status NOWAIT > > SQR 4.3.2 & Windows2000 > > Thanks > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 13:18:05 2003 Date: Fri, 17 Jan 2003 13:16:52 -0500 From: "Larry Roux" Subject: RE: [sqr-users] Winword And remember - if you are on Windows XP the C:\TEMP\ directory is inaccessible. Users need to start getting used to another TEMP directory. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> ABummer@calwater.com 01/17/03 01:06PM >>> You might want to path out the server as well. Instead of using F: use \\servername\.etc\etc.. Antonio > -----Original Message----- > From: Peter Clark [SMTP:PGCLARK@vac-acc.gc.ca] > Sent: Friday, January 17, 2003 9:57 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Winword > > Anyone have any experience in launching a network version of MS Word > with a Call System? No problem doing it with my local copy of Word, but > our users have a networked version and I can't get it to work by > referencing it giving it the network path to winword.exe. Is there a > trick to it? > > This is what I am doing: > let $Word_Path = > 'F:\WINAPPS\WORD2002E\FILES\PFILES\MSOFFICE\OFFICE10\WINWORD.EXE' > let $System_Command = $Word_Path || ' C:\TEMP\ID_Renewal_List.dat' > CALL SYSTEM USING $System_Command #Call_Status NOWAIT > > SQR 4.3.2 & Windows2000 > > Thanks > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 14:08:05 2003 From: "Lindenmayer, Rodney" Subject: RE: [sqr-users] Winword Date: Fri, 17 Jan 2003 14:09:44 -0500 additional considerations (after Antonio's, Stu-Wood's, Larry's): 1) I found that if the string following the arguments that's passed to the CALL SYSTEM command has a space(s) in it, everything after the first space is ignored; this can be corrected using double quotes. Try: let $System_Command = '"'|| $Word_Path || ' C:\TEMP\ID_Renewal_List.dat"' 2) For Windows you may need to prepend with 'cmd /c ' as in: let $System_Command = 'cmd /c "'|| $Word_Path || ' C:\TEMP\ID_Renewal_List.dat"' *these 2 steps are what got my ap working that needed to do a CALL SYSTEM USING $cmd #status WAIT ...where $cmd = 'cmd /c "dir '||$sourcepath||' /O:D /A:-D /-C>'||$curr_dir||'"' 3) the login ID that is being used to run SQR must have sufficient rights (i.e. if SQR runs from a server, the ID with which you logged into the server when installing / configuring / running SQR must either be a network account with enough rights or a local account specifically designated as having rights on the server host of F:\) Hope this helps, -RL Rodney Lindenmayer Manager, Reporting Application Architecture Verizon Avenue -----Original Message----- From: Peter Clark [mailto:PGCLARK@vac-acc.gc.ca] Sent: Friday, January 17, 2003 12:57 PM To: sqr-users@sqrug.org Subject: [sqr-users] Winword Anyone have any experience in launching a network version of MS Word with a Call System? No problem doing it with my local copy of Word, but our users have a networked version and I can't get it to work by referencing it giving it the network path to winword.exe. Is there a trick to it? This is what I am doing: let $Word_Path = 'F:\WINAPPS\WORD2002E\FILES\PFILES\MSOFFICE\OFFICE10\WINWORD.EXE' let $System_Command = $Word_Path || ' C:\TEMP\ID_Renewal_List.dat' CALL SYSTEM USING $System_Command #Call_Status NOWAIT SQR 4.3.2 & Windows2000 Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 14:02:15 2003 Date: Fri, 17 Jan 2003 13:01:44 -0600 From: "Caroline Budianto" Subject: [sqr-users] Font Size Hello - I am trying to print different type and size fonts on my report. I tried to use alter-printer and change the point-size to a bigger number but it doesn't seem to work. I'm not sure if my printer and layout declaration is causing problems. Included below is the printer and layout definition. Can anyone help? declare-printer HP-definition type = HPLASERJET point-size = 12 symbol-set = 0U font = 4 pitch = 10 end-declare declare-layout default paper-size = (8.5,14) orientation = portrait max-columns = 100 max-lines = 100 left-margin = 0.5 top-margin = 0.5 line-height = 9 char-width = 7.2 end-declare Thanks in advance. Caroline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Jan 18 08:43:09 2003 Date: Sat, 18 Jan 2003 07:42:10 -0600 From: "Hallmark, Robert J" Subject: RE: [sqr-users] Font Size Caroline, Did you use the alter-printer command as follows: alter-printer font=4 point-size=14 ? -----Original Message----- Subject: [sqr-users] Font Size Hello - I am trying to print different type and size fonts on my report. I tried to use alter-printer and change the point-size to a bigger number but it doesn't seem to work. I'm not sure if my printer and layout declaration is causing problems. Included below is the printer and layout definition. Can anyone help? declare-printer HP-definition type = HPLASERJET point-size = 12 symbol-set = 0U font = 4 pitch = 10 end-declare declare-layout default paper-size = (8.5,14) orientation = portrait max-columns = 100 max-lines = 100 left-margin = 0.5 top-margin = 0.5 line-height = 9 char-width = 7.2 end-declare Thanks in advance. Caroline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 17:34:19 2003 Subject: RE: [sqr-users] Font Size Date: Mon, 20 Jan 2003 13:59:57 -0600 From: "Caroline Budianto" Robert, I did use the alter-printer command as you specify. And it worked only when I'm printing to letter sized paper. The declare-layout that I have for some reason doesn't change the paper size to legal. So I inserted this command before my print statement. Encode <27>E<27>&13A into $legal Print-direct $legal. But when I do that, the alter-printer no longer works. The report prints in Courier and there are no change in point-size either. Any ideas? ---- "Hallmark, Robert J" wrote ---- Caroline, Did you use the alter-printer command as follows: alter-printer font=4 point-size=14 ? -----Original Message----- Subject: [sqr-users] Font Size Hello - I am trying to print different type and size fonts on my report. I tried to use alter-printer and change the point-size to a bigger number but it doesn't seem to work. I'm not sure if my printer and layout declaration is causing problems. Included below is the printer and layout definition. Can anyone help? declare-printer HP-definition type = HPLASERJET point-size = 12 symbol-set = 0U font = 4 pitch = 10 end-declare declare-layout default paper-size = (8.5,14) orientation = portrait max-columns = 100 max-lines = 100 left-margin = 0.5 top-margin = 0.5 line-height = 9 char-width = 7.2 end-declare Thanks in advance. Caroline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 20:04:31 2003 From: NEDOLPH@aol.com Date: Mon, 20 Jan 2003 20:03:15 EST Subject: Re: [sqr-users] Font Size The best (most reliable) way I have found to manipulate the HP is to forget about SQR's commands Alter printer etc. alltogether. and encode several variables to switch features in and out as needed. just as you have created a variable $legal, create variables for $myBigFont $MyRegularFont $MyItalics $myTabToCol45... etc. For example, just do Print $myBigFont and it will stay that way till you change it. Using your own library of hand created HP switches means the printer will always do exactly what you tell it to do without confusion from Wizards. Once you create the library, you can easily re-use it across many projects. In the string you encoded the E is resetting the printer and thus blowing out all the previously set parameters. You may need to set to legal At the very top of your command sequence and / or try your string without the <27>E HTH Norman Dolph _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 17 18:23:44 2003 From: "Kirk Katzbet" Date: Fri, 17 Jan 2003 18:20:37 -0500 Subject: [sqr-users] Putting a line at the top of every page? Make it part of the Heading?? Thanks in advance!! I have a line with some variables: Base and Alias Client #, and Client and Alias name at the bottom of my headings of a report (so it is at the top of the body of my report). This line is also printed throughout the body of the report as the variables change(as a new record gets read). This heading line is the first thing that gets printed as I read a new record. Also maybe there is a better way to do this without using the heading to put this line at the top of every page? Here are my problems using the line as part of the heading? Problem 1: ============= I am having a problem with that I do not want to print this line in the body of the report for the first GOOD record that I read because it will be there already because it is in the heading. PeopleSoft AP Report ID: SSS2034 FYAP CLIENTS COMBINED Page No. 1 Run Date 12/12/02 Run Time 16:39:56 Base Client # Client Name Alias Client # Alias Name __________________________ __________________________ 0000000389 EDWARDS, JOSEPH 0000000100 KELLY, MARY -------------------------------- ------------------------------------- 0000000389 EDWARDS, JOSEPH 0000000100 KELLY, MARY -------------------------------- ----------------------------------- The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000083, Contract ID 0000000190 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000002, Contract ID 0000000011 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000003, Contract ID 0000000011 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000005, Contract ID 0000000012 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000006, Contract ID 0000000012 Problem 2: ============= Also when a new record is read and the variables in that line are populated in the middle of the page(body of the report), then the page is printed when it has the maximum number of lines the heading is printed last and it has the new record information when I need it to have the previous record information because there is some lines at the top of the body of the report that belong to the previous record. PeopleSoft AP Report ID: SSS2034 FYAP CLIENTS COMBINED Page No. 5 Run Date 12/12/02 Run Time 16:39:56 Base Client # Client Name Alias Client # Alias Name __________________________ __________________________ 0000000389 EDWARDS, JOSEPH 0000000101 KELLY, SANDRA -------------------------------- ------------------------------------ he Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074001, Organization RG, Fiscal Year 1996, Accounting Period 8 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074001, Organization RG, Fiscal Year 1996, Accounting Period 9 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074002, Organization ER, Fiscal Year 1996, Accounting Period 8 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 021705, Organization RG, Fiscal Year 1997, Accounting Period 1 The Alias Client Id has been updated to the Base Clients ID for Case Number 123456, Involvement Number 1, Office 017 and Unit Case Load B016 0000000389 EDWARDS, JOSEPH 0000000101 KELLY, SANDRA -------------------------------- --------------------------------- The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000003 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000004 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000007 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID C000000011 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000012 Thanks Ken _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Jan 18 07:01:18 2003 Date: Sun, 19 Jan 2003 00:59:27 +1300 From: harij@tui.lincoln.ac.nz Subject: [sqr-users] sqr-users digest, Vol 1 #123 - 7 msgs I'm currently out of the office, returning Tue, 21 Jan 03. For any urgent issues I can be contacted on my mobile, 027 218 4675 Hari Jitindar Singh Applications Manager Lincoln University Ph : + 64 3 325 3677 Mobile : +64 27 218 4675 Email : harij@lincoln.ac.nz _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 08:53:29 2003 Date: Mon, 20 Jan 2003 08:52:05 -0500 From: Tom Dommermuth Subject: [sqr-users] Printing SQRs on Unix with Unix print queues defined as Postscript Hello, For the PeopleSoft customers, do you have any problems with running SQRs that print graphical data or use printer type specific command like those in the Paycheck (PAY003) and W2 (TAX960US) SQR's? Our print queue on Unix is only set up to handle Postscript type printer definitions. Since the Paycheck and W2 use HPLASTERJET as the printer type, this causes all the fonts and images to come out horrible from Unix. To run these SQRs we run them on NT instead. Since we are in the middle of an upgrade to 8, I was wondering if this issue of Unix print queues was an issue at any other institutions. If so, can you let me know what you did to resolve this or do you still run and print them on NT? Are Unix print queues forced to use Postscript printer types? Is this a limitation of Unix print queues or something that our institution has implemented to restrict it to Postscript perhaps? Thanks, Tom Dommermuth Princeton. University. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 21 09:56:25 2003 Subject: RE: [sqr-users] Printing SQRs on Unix with Unix print queues defined as Postscript Date: Tue, 21 Jan 2003 08:55:38 -0600 From: "Knapp, Richard" Unix print ques are described by the printcap file which contains printer definitions and translations of printer control characters. There could be a printcap entry for PCL (what HPLASERJET produces). Ask your sys admin. If not, one can be added. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Tom Dommermuth [mailto:tdommer@princeton.edu] Sent: Monday, January 20, 2003 7:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing SQRs on Unix with Unix print queues defined as Postscript Hello, For the PeopleSoft customers, do you have any problems with running SQRs that print graphical data or use printer type specific command like those in the Paycheck (PAY003) and W2 (TAX960US) SQR's? Our print queue on Unix is only set up to handle Postscript type printer definitions. Since the Paycheck and W2 use HPLASTERJET as the printer type, this causes all the fonts and images to come out horrible from Unix. To run these SQRs we run them on NT instead. Since we are in the middle of an upgrade to 8, I was wondering if this issue of Unix print queues was an issue at any other institutions. If so, can you let me know what you did to resolve this or do you still run and print them on NT? Are Unix print queues forced to use Postscript printer types? Is this a limitation of Unix print queues or something that our institution has implemented to restrict it to Postscript perhaps? Thanks, Tom Dommermuth Princeton. University. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 11:01:19 2003 From: "Kirk Katzbet" Date: Mon, 20 Jan 2003 10:56:44 -0500 Subject: [sqr-users] Putting a line a the top of every page in a report Thanks in advance!! I have a line with some variables: Base and Alias Client #, and Client and Alias name at the bottom of my headings of a report (so it is at the top of the body of my report). This line is also printed throughout the body of the report as the variables change(as a new record gets read). This heading line is the first thing that gets printed as I read a new record. Also maybe there is a better way to do this without using the heading to put this line at the top of every page? Here are my problems using the line as part of the heading? Problem 1: ============= I am having a problem with that I do not want to print this line in the body of the report for the first GOOD record that I read because it will be there already because it is in the heading. PeopleSoft AP Report ID: SSS2034 FYAP CLIENTS COMBINED Page No. 1 Run Date 12/12/02 Run Time 16:39:56 Base Client # Client Name Alias Client # Alias Name __________________________ __________________________ 0000000389 EDWARDS, JOSEPH 0000000100 KELLY, MARY -------------------------------- ------------------------------------- 0000000389 EDWARDS, JOSEPH 0000000100 KELLY, MARY -------------------------------- ----------------------------------- The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000083, Contract ID 0000000190 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000002, Contract ID 0000000011 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000003, Contract ID 0000000011 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000005, Contract ID 0000000012 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000006, Contract ID 0000000012 Problem 2: ============= Also when a new record is read and the variables in that line are populated in the middle of the page(body of the report), then the page is printed when it has the maximum number of lines the heading is printed last and it has the new record information when I need it to have the previous record information because there is some lines at the top of the body of the report that belong to the previous record. PeopleSoft AP Report ID: SSS2034 FYAP CLIENTS COMBINED Page No. 5 Run Date 12/12/02 Run Time 16:39:56 Base Client # Client Name Alias Client # Alias Name __________________________ __________________________ 0000000389 EDWARDS, JOSEPH 0000000101 KELLY, SANDRA -------------------------------- ------------------------------------ he Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074001, Organization RG, Fiscal Year 1996, Accounting Period 8 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074001, Organization RG, Fiscal Year 1996, Accounting Period 9 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074002, Organization ER, Fiscal Year 1996, Accounting Period 8 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 021705, Organization RG, Fiscal Year 1997, Accounting Period 1 The Alias Client Id has been updated to the Base Clients ID for Case Number 123456, Involvement Number 1, Office 017 and Unit Case Load B016 0000000389 EDWARDS, JOSEPH 0000000101 KELLY, SANDRA -------------------------------- --------------------------------- The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000003 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000004 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000007 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID C000000011 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000012 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 11:26:06 2003 Subject: RE: [sqr-users] Putting a line a the top of every page in a report Date: Mon, 20 Jan 2003 11:25:04 -0500 From: "Wright, Rodney" Have you tried using the on-break print=change/top-page option of the Print statement? This would go where you print the body of the report, not in the heading area. It will always print as the first line of a new group and at the top of each page. It will not print on subsequent lines within the group. Rod Wright Senior Applications Specialist The Rouse Company 410-992-6307 -----Original Message----- From: Kirk Katzbet [mailto:kk_413@hotmail.com] Sent: Monday, January 20, 2003 10:57 AM To: sqr-users@sqrug.org Subject: [sqr-users] Putting a line a the top of every page in a report Thanks in advance!! I have a line with some variables: Base and Alias Client #, and Client and Alias name at the bottom of my headings of a report (so it is at the top of the body of my report). This line is also printed throughout the body of the report as the variables change(as a new record gets read). This heading line is the first thing that gets printed as I read a new record. Also maybe there is a better way to do this without using the heading to put this line at the top of every page? Here are my problems using the line as part of the heading? Problem 1: ============= I am having a problem with that I do not want to print this line in the body of the report for the first GOOD record that I read because it will be there already because it is in the heading. PeopleSoft AP Report ID: SSS2034 FYAP CLIENTS COMBINED Page No. 1 Run Date 12/12/02 Run Time 16:39:56 Base Client # Client Name Alias Client # Alias Name __________________________ __________________________ 0000000389 EDWARDS, JOSEPH 0000000100 KELLY, MARY -------------------------------- ------------------------------------- 0000000389 EDWARDS, JOSEPH 0000000100 KELLY, MARY -------------------------------- ----------------------------------- The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000083, Contract ID 0000000190 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000002, Contract ID 0000000011 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000003, Contract ID 0000000011 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000005, Contract ID 0000000012 The Alias Client Id has been updated to the Base Clients ID for Voucher ID 00000006, Contract ID 0000000012 Problem 2: ============= Also when a new record is read and the variables in that line are populated in the middle of the page(body of the report), then the page is printed when it has the maximum number of lines the heading is printed last and it has the new record information when I need it to have the previous record information because there is some lines at the top of the body of the report that belong to the previous record. PeopleSoft AP Report ID: SSS2034 FYAP CLIENTS COMBINED Page No. 5 Run Date 12/12/02 Run Time 16:39:56 Base Client # Client Name Alias Client # Alias Name __________________________ __________________________ 0000000389 EDWARDS, JOSEPH 0000000101 KELLY, SANDRA -------------------------------- ------------------------------------ he Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074001, Organization RG, Fiscal Year 1996, Accounting Period 8 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074001, Organization RG, Fiscal Year 1996, Accounting Period 9 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 074002, Organization ER, Fiscal Year 1996, Accounting Period 8 The Alias Client Id has been updated to the Base Clients ID for the Ledger ACTUALS, Office 017, Object Code 021705, Organization RG, Fiscal Year 1997, Accounting Period 1 The Alias Client Id has been updated to the Base Clients ID for Case Number 123456, Involvement Number 1, Office 017 and Unit Case Load B016 0000000389 EDWARDS, JOSEPH 0000000101 KELLY, SANDRA -------------------------------- --------------------------------- The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000003 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000004 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000007 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID C000000011 The Alias Client Id has been updated to the Base Clients ID for Purchase Order ID 0000000012 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 21 11:35:31 2003 Date: Tue, 21 Jan 2003 11:35:34 -0500 From: Robert Foster Subject: RE: [sqr-users] Putting a line a the top of every page in a report This is a multi-part message in MIME format... --------------E81049823F037D15C4B6B0A8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I ended up creating my own procedure(see below) to handle "top of page" printing. I suppose if you had a variable in the begin/end-heading section and then changed that for each new page that might work. I've never tried it though. With the procedure below you simply "do checkPageRoom" before any print statements. The print statements are grouped together, hopefully, and you do them as a set. If there's not enough room on the page then you go to a new page and do your printing, after doing the header line. Bob. ! ! PROCEDURE checkPageRoom ! PURPOSE: ! ------------------------------------------------- begin-procedure checkPageRoom(#NEED_SIZE, $HEADER_LINE) if #_current-line > ({PAGE_LENGTH} - {FOOTING_SIZE} - #NEED_SIZE) let #LAST_LINE = {PAGE_LENGTH} - {FOOTING_SIZE} - {HEADING_SIZE} print 'Continued...' (#LAST_LINE, 64) new-page if $HEADER_LINE != '' print $HEADER_LINE (+1,{LEFT_MARGIN}) end-if end-if end-procedure ! checkPageRoom sqr-users-request@sqrug.org wrote: > > Have you tried using the > > on-break print=change/top-page > > option of the Print statement? This would go where you print the body of > the report, not in the heading area. It will always print as the first > line of a new group and at the top of each page. It will not print on > subsequent lines within the group. > > Rod Wright > Senior Applications Specialist > The Rouse Company > 410-992-6307 > > > -----Original Message----- > From: Kirk Katzbet [mailto:kk_413@hotmail.com] > Sent: Monday, January 20, 2003 10:57 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Putting a line a the top of every page in a report > > === Bob Foster I/S Coordinator Mid-Michigan MRI, Inc. Direct Line: (517) 364-2673 mailto:rkf@radiology.msu.edu --------------E81049823F037D15C4B6B0A8 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. --------------E81049823F037D15C4B6B0A8-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 21 12:15:07 2003 Date: Tue, 21 Jan 2003 12:14:39 -0500 (EST) From: Don Mellen Subject: RE: [sqr-users] Putting a line a the top of every page in a report Another way to handle this is using the "Next-Listing" command with a "need=" and checking the page. Something along these lines.... move #page-count to #curr_page next-listing no-advance skiplines=#detail_skip need=#detail_need if #page-count > #curr_page do print_section_heading end-if ...print detail stuff... The print_section_heading procedure would also be called by an on-break procedure, or similar condition, and would contain it's own "Next-Listing" command like... next-listing no-advance skiplines=#section_skip need=#section_need ...print section heading stuff... next-listing skiplines=#detail_skip where the #section_need variable has enough room for the section heading plus 1 detail section plus any spacer lines between them. HTH, ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 15:39:30 2003 Date: Mon, 20 Jan 2003 15:37:39 -0500 From: Allan Geetter Subject: [sqr-users] VMS platform users This is only for Open VMS users only. Need to know if anyone has linked SQR version 4.3.5 to ORACLE Version 9.2 . Also, need to know how many VMS users are on this listserv who maintain BRIO support for SQR. Please reply directly so as not to clog up the listserv. Thank you in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 20 16:16:06 2003 From: Ray Ontko Date: Mon, 20 Jan 2003 16:15:12 -0500 Subject: Re: [sqr-users] VMS platform users Allan, Some of the rest of us are interested as well. If you receive any out-of-listserve responses, please summarize the number of VMS/OpenVMS sites and any solutions that you come up with and post the results to the listserv. I'd like to have it in the for posterity. Ray On Mon, Jan 20, 2003 at 03:37:39PM -0500, Allan Geetter wrote: > This is only for Open VMS users only. > > Need to know if anyone has linked SQR version 4.3.5 to ORACLE Version > 9.2 . > > Also, need to know how many VMS users are on this listserv who maintain > BRIO support for SQR. > > Please reply directly so as not to clog up the listserv. > > Thank you in advance. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 21 04:27:41 2003 From: Murray Izzett - CPX Tetra Date: Tue, 21 Jan 2003 11:26:22 +0200 Subject: [sqr-users] sqr-Crystal conversion tool I am busy preparing a proof of concept for a cleint that uses SQR and is interested in Crystal Reports/Enterprise to upgrade to. Is there a 3rd party tool out there that converts SQR reports to .rpt format? Murray Izzett Consultant Comparex Africa - Tetra (w) 021 5503413 (c) 082 8709842 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 21 07:04:19 2003 Date: Wed, 22 Jan 2003 01:01:53 +1300 From: harij@tui.lincoln.ac.nz Subject: [sqr-users] sqr-users digest, Vol 1 #126 - 8 msgs I'm currently out of the office, returning Tue, 21 Jan 03. For any urgent issues I can be contacted on my mobile, 027 218 4675 Hari Jitindar Singh Applications Manager Lincoln University Ph : + 64 3 325 3677 Mobile : +64 27 218 4675 Email : harij@lincoln.ac.nz _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 22 11:56:08 2003 Date: Wed, 22 Jan 2003 08:54:36 -0800 (PST) From: D Patel Subject: [sqr-users] Basic doubts about SQR Hi All, I am new to SQR.. I have some doubts/questions.... 1. Do we have any facilty in SQR so I can execute an existing SQL procedure which returns back me Reference Cursor? How can I retrieve data from the return value? 2. Do we have debug facility in SQR? 3. I have dynamic SQL queries inside the SQR. Is there any way we can get query, which is being generated and executed (To check the result in SQL*Plus)? 4. How can I write combined queries with UNION operator? 5. How can I write Subquery? 6. I have a report in which I wrote two separate queries(Each returns only one column - Different no. of rows). Now I want to display result of both query in two Columns. I can not join these two queries. Can anybody give me idea how? I tried to use Position.. but it didn't work... Thanks in advance... D __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 22 12:30:07 2003 From: Ray Ontko Date: Wed, 22 Jan 2003 12:29:19 -0500 Subject: Re: [sqr-users] Basic doubts about SQR D Patel, > Hi All, > I am new to SQR.. I have some doubts/questions.... > > 1. Do we have any facilty in SQR so I can execute an > existing SQL procedure which returns back me Reference > Cursor? How can I retrieve data from the return value? Take a look at the #sql-status variable. > 2. Do we have debug facility in SQR? No. Use "#debug show" to see what's going on. There are some tools which will automatically insert these into your code at each procedure for tracing purposes, if you want to get fancy. > 3. I have dynamic SQL queries inside the SQR. Is there > any way we can get query, which is being generated and > executed (To check the result in SQL*Plus)? Yes. Add "-s" to the command line. > 4. How can I write combined queries with UNION > operator? Add the UNION text to the bottom of the select, just before the END-SELECT statement. > 5. How can I write Subquery? Just insert the text into the query just like you normally would in SQL. It goes after the FROM clause and before the END-SELECT statement. > 6. I have a report in which I wrote two separate > queries(Each returns only one column - Different no. > of rows). Now I want to display result of both query > in two Columns. I can not join these two queries. Can > anybody give me idea how? I tried to use Position.. > but it didn't work... You can't hop back and forth between two queries if that's what you're trying to do. If you're sure that the query won't spill onto another page, you can use POSITION to jump back to the top of the after you finish the first query. If there's a chance that one or both queries will run onto a second page, I recommend creating an ARRAY and putting the results of one (or both) queries into the array and then cycling through the array to do the printing, line by line. Hope this helps. Ray ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 22 12:41:05 2003 Subject: RE: [sqr-users] Basic doubts about SQR Date: Wed, 22 Jan 2003 11:40:37 -0600 From: "Knapp, Richard" I'll make a stab (I was skeptical 7 years ago when I first started, too. I was used to Pro-C and PL/SQL). 1. no but... you can make a good guess based on the sequence of the begin-select or begin-sql statements in your program. The 0 cursor is used to open the connection. 2. not in the versions I'm familiar with. There are utilities available which can help or you can insert display statements. 3. deliberately cause an error? 4. everything after the union is straight SQL - no sqr variables for example. Usual rules apply. 5. same as ever 6. next-column Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Wednesday, January 22, 2003 10:55 AM To: sqr-users@sqrug.org Subject: [sqr-users] Basic doubts about SQR Hi All, I am new to SQR.. I have some doubts/questions.... 1. Do we have any facilty in SQR so I can execute an existing SQL procedure which returns back me Reference Cursor? How can I retrieve data from the return value? 2. Do we have debug facility in SQR? 3. I have dynamic SQL queries inside the SQR. Is there any way we can get query, which is being generated and executed (To check the result in SQL*Plus)? 4. How can I write combined queries with UNION operator? 5. How can I write Subquery? 6. I have a report in which I wrote two separate queries(Each returns only one column - Different no. of rows). Now I want to display result of both query in two Columns. I can not join these two queries. Can anybody give me idea how? I tried to use Position.. but it didn't work... Thanks in advance... D __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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-admin@sqrug.org Wed Jan 22 12:48:05 2003 From: "the dragon" Subject: Re: [sqr-users] Basic doubts about SQR Date: Wed, 22 Jan 2003 11:40:41 -0600 D., [soapbox mode=on] First, before answering some of your questions I will need to give you the following advice - You should take an sqr training class. While it won't give you everything you need to know, it will give you the basics to work with. Next, you will need some reference materials - either the cds or "SQR in PeopleSoft and Other Applications" by Landres and Landres, [available from Amazon and www.half.com] as well as the SQR language reference Guide from Brio as well as their Users guide and Developer's guide available from Brio and probably PeopleSoft. A couple of other resources would be Don Mellon's SQR Programmer Reference and Weessies and Kramer's PeopleSoft SQR Cheat Sheet, also available from Amazon: http://www.amazon.com/exec/obidos/search-handle-form/002-6462211-6938433 [soapbox mode = off] Now, on to your questions.... 1. I am not certain what you are asking for here. Please give an example. 2. Of course - see the reference manuals, or use show and print statements and -debug commands. 3. #sql-count, #sql-error, #sql-status come to mind for this. 4. Do a search on 'Union' at the sqr user's group ay www.sqrug.com, since I don't have this memorized. 5. How do you mean this? You can perform any sql in sqr that you can do in a sql editor. Otherwise you create a new procedure and call it. 6. There are many ways to address this, but I think what you want may want to try a not exists to get the information you want - or, you may need to use an array and a bubble sort to print. depending on what the data is and how you are trying to arrange it - for a comparrison or whatever. Clark 'the dragon' Willis Dragon Enterprises looking forward to living the American dream, some day.... PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi All, I am new to SQR.. I have some doubts/questions.... 1. Do we have any facilty in SQR so I can execute an existing SQL procedure which returns back me Reference Cursor? How can I retrieve data from the return value? 2. Do we have debug facility in SQR? 3. I have dynamic SQL queries inside the SQR. Is there any way we can get query, which is being generated and executed (To check the result in SQL*Plus)? 4. How can I write combined queries with UNION operator? 5. How can I write Subquery? 6. I have a report in which I wrote two separate queries(Each returns only one column - Different no. of rows). Now I want to display result of both query in two Columns. I can not join these two queries. Can anybody give me idea how? I tried to use Position.. but it didn't work... Thanks in advance... D _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 22 13:12:11 2003 Date: Wed, 22 Jan 2003 13:11:06 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Basic doubts about SQR Just to add a few thoughts.... On Wed, 22 Jan 2003, D Patel wrote: > 1. Do we have any facilty in SQR so I can execute an > existing SQL procedure which returns back me Reference > Cursor? How can I retrieve data from the return value? When you say "existing SQL procedure" do you mean "stored procedures" by any chance? > 3. I have dynamic SQL queries inside the SQR. Is there > any way we can get query, which is being generated and > executed (To check the result in SQL*Plus)? As Richard Knapp pointed out, the best way to see the entire SQL as it will be run (in SQR versions 6.2 and before) is to blow it up. Easiest way is to put a fake alias.column as the very last thing before the end-select (I usually use "ka.boom" or something similar). You can use the compiler directive "#debug" to be able to run, then blow up, then run, etc. during testing. In SQR version 8.0, there is a reserved variable called $sql-text which has the last executed BEGIN-SQL, BEGIN-SELECT, or LOAD-LOOKUP. ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 23 09:56:29 2003 Date: Thu, 23 Jan 2003 06:55:22 -0800 (PST) From: D Patel Subject: Re: [sqr-users] Basic doubts about SQR Hi, Thanks a lot to all of you. I just read your response, I will try those options suggested by you. And if required now I will post my question with suitable example. Once again thanks for replying. D __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 22 13:30:05 2003 Date: Wed, 22 Jan 2003 13:28:31 -0500 From: "George Jansen" Subject: Re: [sqr-users] Basic doubts about SQR I assume that by item 1 D is referring to Oracle's REF CURSORs: a stored procedure or function can give you an open cursor to fetch from. Somebody on this list a while ago mentioned that this will be available soon in an new revision of SQR. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 22 13:13:11 2003 Date: Wed, 22 Jan 2003 13:11:11 -0500 From: Allan Geetter Subject: [sqr-users] VMS platform users Ray, just to let you know that I received no replies from this listserv. We have 25 known higher education institutions using SQR on a VMS platform. A large percentage of these institutions are in the SUNY organization. In working with a Julia Link of Brio Product Marketing, she is trying to work with the technical people in getting 4.3.5 to link with Oracle 9.2. According to the SUNY technical people, they need a MAKE9.com file in order to link sqr with Oracle 9.2. They were lucky in that the MAKE8.com file worked with Oracle 9.1. The reason for the error (problem) is because the Oracle directory structure has changed in version 9.2.0.2. The key point is that we all have been and are paying for SUPPORT. We paid $3,900 for maintenance support for this year alone. Julia Link is sending me the official documentation for the de-support of the VMS platform and other platforms. Thanks for your help. Allan Geetter University of Hartford West Hartford, Ct 06117 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 23 11:48:17 2003 Date: Thu, 23 Jan 2003 11:54:47 -0500 From: "Harris, Sam" Subject: RE: [sqr-users] Help needed with fonts Hi All, I have completed a document for a client who now wants two words in the document be italicized. We have a file that we include in our reports that contain all the escape sequences for our HP printers. The file was created three years ago and does not contain an escape sequence for italics Does anyone know how I might italicize in a document paragraph? Sam -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Thursday, January 23, 2003 9:55 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Basic doubts about SQR Hi, Thanks a lot to all of you. I just read your response, I will try those options suggested by you. And if required now I will post my question with suitable example. Once again thanks for replying. D __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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-admin@sqrug.org Thu Jan 23 12:38:22 2003 Date: Thu, 23 Jan 2003 12:37:41 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] Help needed with fonts The PCL command for italics is ESC (s1S. You can return to normal printing by sending escape sequence ESC (s0S. Don Barclay Westinghouse Savannah River Co. Aiken, SC "Harris, Sam" Sent by: sqr-users-admin@sqrug.org 01/23/2003 11:54 AM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: RE: [sqr-users] Help needed with fonts Hi All, I have completed a document for a client who now wants two words in the document be italicized. We have a file that we include in our reports that contain all the escape sequences for our HP printers. The file was created three years ago and does not contain an escape sequence for italics Does anyone know how I might italicize in a document paragraph? Sam -----Original Message----- From: D Patel [mailto:dgpinfo@yahoo.com] Sent: Thursday, January 23, 2003 9:55 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Basic doubts about SQR Hi, Thanks a lot to all of you. I just read your response, I will try those options suggested by you. And if required now I will post my question with suitable example. Once again thanks for replying. D __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 11:33:18 2003 From: "Atluri, Sreenivas S109" Date: Fri, 24 Jan 2003 11:32:42 -0500 Subject: [sqr-users] Writing SQR output file to CARTridge Hi, We are processing large volumes of data in our SQR reports. When we are trying to use CARTridge(Tape) as output file. It is giving below error message. We are using SQR 6.1.4 on Mainframe (S/390) and DB2 5.0 database. Right now we are using DASD for the out put, but it is growing to 5000 cylinders and taking hours for finding out volumes. IKJ56641I DSN ENDED DUE TO ERROR+ IKJ56641I USER ABEND CODE 4087 REASON CODE 00000008 CEE3250C The system or user abend S002 R=000000AC was issued. From entry point sqr1402 at compile unit offset +000001A2 at address 1DEBF032. Any help is appreciated. Thanks in advance. Sreeni. ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 12:07:15 2003 Subject: RE: [sqr-users] Writing SQR output file to CARTridge Date: Fri, 24 Jan 2003 11:06:46 -0600 From: "Knapp, Richard" To understand your problem, the first thing you must do is look up the operating system/database errors you are getting. They will help you understand the nature of the error. If the error is an SQR error and not an OS or db error, we may be able to help. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] Sent: Friday, January 24, 2003 10:33 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Writing SQR output file to CARTridge Hi, We are processing large volumes of data in our SQR reports. When we are trying to use CARTridge(Tape) as output file. It is giving below error message. We are using SQR 6.1.4 on Mainframe (S/390) and DB2 5.0 database. Right now we are using DASD for the out put, but it is growing to 5000 cylinders and taking hours for finding out volumes. IKJ56641I DSN ENDED DUE TO ERROR+ IKJ56641I USER ABEND CODE 4087 REASON CODE 00000008 CEE3250C The system or user abend S002 R=000000AC was issued. From entry point sqr1402 at compile unit offset +000001A2 at address 1DEBF032. Any help is appreciated. Thanks in advance. Sreeni. ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 12:24:06 2003 From: "Atluri, Sreenivas S109" Subject: RE: [sqr-users] Writing SQR output file to CARTridge Date: Fri, 24 Jan 2003 12:21:40 -0500 I was looking at the operating system error. It did not help me. I tried lot of different ways and diferent run time flags and nothing worked. Did any body ever used CARTridge for SQR out put file on mainframe envoronment ? > -----Original Message----- > From: Knapp, Richard [SMTP:KnappR@umsystem.edu] > Sent: Friday, January 24, 2003 12:07 PM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > To understand your problem, the first thing you must do is look up the > operating system/database errors you are getting. They will help you > understand the nature of the error. If the error is an SQR error and not > an OS or db error, we may be able to help. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] > Sent: Friday, January 24, 2003 10:33 AM > To: 'sqr-users@sqrug.org' > Subject: [sqr-users] Writing SQR output file to CARTridge > > > Hi, > > We are processing large volumes of data in our SQR reports. When we are > trying to use CARTridge(Tape) as output file. It is giving below error > message. > We are using SQR 6.1.4 on Mainframe (S/390) and DB2 5.0 database. > Right now we are using DASD for the out put, but it is growing to 5000 > cylinders and taking hours for finding out volumes. > > IKJ56641I DSN ENDED DUE TO ERROR+ > IKJ56641I USER ABEND CODE 4087 REASON CODE 00000008 > > CEE3250C The system or user abend S002 R=000000AC was issued. > > From entry point sqr1402 at compile unit offset +000001A2 at > address 1DEBF032. > > Any help is appreciated. Thanks in advance. > > Sreeni. > > > > -------------------------------------------------------------------------- > ---- > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please > immediately notify the sender by e-mail at the address shown. This e-mail > transmission may contain confidential information. This information is > intended only for the use of the individual(s) or entity to whom it is > intended even if addressed incorrectly. Please delete it from your files > if you are not the intended recipient. Thank you for your compliance. > Copyright (c) 2003 CIGNA > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 12:33:05 2003 Subject: RE: [sqr-users] Writing SQR output file to CARTridge Date: Fri, 24 Jan 2003 11:32:04 -0600 From: "Knapp, Richard" And when you looked up the error ABEND CODE 4087 and REASON CODE 00000008 what did you find out? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] Sent: Friday, January 24, 2003 11:22 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Writing SQR output file to CARTridge I was looking at the operating system error. It did not help me. I tried lot of different ways and diferent run time flags and nothing worked. Did any body ever used CARTridge for SQR out put file on mainframe envoronment ? > -----Original Message----- > From: Knapp, Richard [SMTP:KnappR@umsystem.edu] > Sent: Friday, January 24, 2003 12:07 PM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > To understand your problem, the first thing you must do is look up the > operating system/database errors you are getting. They will help you > understand the nature of the error. If the error is an SQR error and not > an OS or db error, we may be able to help. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] > Sent: Friday, January 24, 2003 10:33 AM > To: 'sqr-users@sqrug.org' > Subject: [sqr-users] Writing SQR output file to CARTridge > > > Hi, > > We are processing large volumes of data in our SQR reports. When we are > trying to use CARTridge(Tape) as output file. It is giving below error > message. > We are using SQR 6.1.4 on Mainframe (S/390) and DB2 5.0 database. > Right now we are using DASD for the out put, but it is growing to 5000 > cylinders and taking hours for finding out volumes. > > IKJ56641I DSN ENDED DUE TO ERROR+ > IKJ56641I USER ABEND CODE 4087 REASON CODE 00000008 > > CEE3250C The system or user abend S002 R=000000AC was issued. > > From entry point sqr1402 at compile unit offset +000001A2 at > address 1DEBF032. > > Any help is appreciated. Thanks in advance. > > Sreeni. > > > > -------------------------------------------------------------------------- > ---- > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please > immediately notify the sender by e-mail at the address shown. This e-mail > transmission may contain confidential information. This information is > intended only for the use of the individual(s) or entity to whom it is > intended even if addressed incorrectly. Please delete it from your files > if you are not the intended recipient. Thank you for your compliance. > Copyright (c) 2003 CIGNA > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 12:38:30 2003 From: "Atluri, Sreenivas S109" Subject: RE: [sqr-users] Writing SQR output file to CARTridge Date: Fri, 24 Jan 2003 12:37:22 -0500 Here is the info for that abend code: 4087 VBACKUP OR VRECOVER IN PROGRESS FOR FAT DASD DEVICE. Explanation: Informational Sreeni. > -----Original Message----- > From: Knapp, Richard [SMTP:KnappR@umsystem.edu] > Sent: Friday, January 24, 2003 12:32 PM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > And when you looked up the error ABEND CODE 4087 and REASON CODE 00000008 > what did you find out? > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] > Sent: Friday, January 24, 2003 11:22 AM > To: 'sqr-users@sqrug.org' > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > I was looking at the operating system error. It did not help me. I tried > lot > of different ways and diferent run time flags and nothing worked. Did any > body ever used CARTridge for SQR out put file on mainframe envoronment ? > > > -----Original Message----- > > From: Knapp, Richard [SMTP:KnappR@umsystem.edu] > > Sent: Friday, January 24, 2003 12:07 PM > > To: sqr-users@sqrug.org > > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > > > > To understand your problem, the first thing you must do is look up the > > operating system/database errors you are getting. They will help you > > understand the nature of the error. If the error is an SQR error and > not > > an OS or db error, we may be able to help. > > > > Richard Knapp > > Database Programmer/Analyst > > Institutional Research and Planning > > University of Missouri System > > 573-882-8856 > > knappr@umsystem.edu > > > > > > -----Original Message----- > > From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] > > Sent: Friday, January 24, 2003 10:33 AM > > To: 'sqr-users@sqrug.org' > > Subject: [sqr-users] Writing SQR output file to CARTridge > > > > > > Hi, > > > > We are processing large volumes of data in our SQR reports. When we are > > trying to use CARTridge(Tape) as output file. It is giving below error > > message. > > We are using SQR 6.1.4 on Mainframe (S/390) and DB2 5.0 database. > > Right now we are using DASD for the out put, but it is growing to 5000 > > cylinders and taking hours for finding out volumes. > > > > IKJ56641I DSN ENDED DUE TO ERROR+ > > IKJ56641I USER ABEND CODE 4087 REASON CODE 00000008 > > > > CEE3250C The system or user abend S002 R=000000AC was issued. > > > > From entry point sqr1402 at compile unit offset +000001A2 at > > address 1DEBF032. > > > > Any help is appreciated. Thanks in advance. > > > > Sreeni. > > > > > > > > > -------------------------------------------------------------------------- > > ---- > > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, > please > > immediately notify the sender by e-mail at the address shown. This > e-mail > > transmission may contain confidential information. This information is > > intended only for the use of the individual(s) or entity to whom it is > > intended even if addressed incorrectly. Please delete it from your > files > > if you are not the intended recipient. Thank you for your compliance. > > Copyright (c) 2003 CIGNA > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > -------------------------------------------------------------------------- > ---- > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please > immediately notify the sender by e-mail at the address shown. This e-mail > transmission may contain confidential information. This information is > intended only for the use of the individual(s) or entity to whom it is > intended even if addressed incorrectly. Please delete it from your files > if you are not the intended recipient. Thank you for your compliance. > Copyright (c) 2003 CIGNA > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 13:22:06 2003 Date: Fri, 24 Jan 2003 10:20:58 -0800 (PST) From: Yuri Lakef Subject: [sqr-users] criteria on LONG datatypes Does anyone know how I can search for a string in a LONG datatype? Thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 14:24:17 2003 Date: Fri, 24 Jan 2003 14:23:19 -0500 From: "George Jansen" Subject: Re: [sqr-users] criteria on LONG datatypes If you are using Oracle, you'll want to use what is now called the interMedia Text option. Basically, you pre-build special indexes on such fields, and can then use queries like SELECT a FROM b WHERE contains(c, 'some string', 1) > 0 There is plenty of documentation available on this. A good place to start would be Technet, otn.oracle.com. >>> lakef250@yahoo.com 01/24/03 01:20PM >>> Does anyone know how I can search for a string in a LONG datatype? Thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 14:29:06 2003 From: "Atluri, Sreenivas S109" Subject: RE: [sqr-users] criteria on LONG datatypes Date: Fri, 24 Jan 2003 14:28:16 -0500 You can use "Instring" command in SQR Sreeni. > -----Original Message----- > From: George Jansen [SMTP:GJANSEN@aflcio.org] > Sent: Friday, January 24, 2003 2:23 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] criteria on LONG datatypes > > If you are using Oracle, you'll want to use what is now called the > interMedia Text option. Basically, you pre-build special indexes on such > fields, and can then use queries like > > SELECT a > FROM b > WHERE contains(c, 'some string', 1) > 0 > > There is plenty of documentation available on this. A good place to > start would be Technet, otn.oracle.com. > > > >>> lakef250@yahoo.com 01/24/03 01:20PM >>> > > Does anyone know how I can search for a string in a LONG datatype? > > Thanks in advance. > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 12:54:07 2003 Subject: RE: [sqr-users] Writing SQR output file to CARTridge Date: Fri, 24 Jan 2003 11:53:20 -0600 From: "Knapp, Richard" Hmmm - the tape drive is not really a DASD device, is it? Are you sure you are pointing to the tape drive? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] Sent: Friday, January 24, 2003 11:37 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Writing SQR output file to CARTridge Here is the info for that abend code: 4087 VBACKUP OR VRECOVER IN PROGRESS FOR FAT DASD DEVICE. Explanation: Informational Sreeni. > -----Original Message----- > From: Knapp, Richard [SMTP:KnappR@umsystem.edu] > Sent: Friday, January 24, 2003 12:32 PM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > And when you looked up the error ABEND CODE 4087 and REASON CODE 00000008 > what did you find out? > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] > Sent: Friday, January 24, 2003 11:22 AM > To: 'sqr-users@sqrug.org' > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > I was looking at the operating system error. It did not help me. I tried > lot > of different ways and diferent run time flags and nothing worked. Did any > body ever used CARTridge for SQR out put file on mainframe envoronment ? > > > -----Original Message----- > > From: Knapp, Richard [SMTP:KnappR@umsystem.edu] > > Sent: Friday, January 24, 2003 12:07 PM > > To: sqr-users@sqrug.org > > Subject: RE: [sqr-users] Writing SQR output file to CARTridge > > > > > > To understand your problem, the first thing you must do is look up the > > operating system/database errors you are getting. They will help you > > understand the nature of the error. If the error is an SQR error and > not > > an OS or db error, we may be able to help. > > > > Richard Knapp > > Database Programmer/Analyst > > Institutional Research and Planning > > University of Missouri System > > 573-882-8856 > > knappr@umsystem.edu > > > > > > -----Original Message----- > > From: Atluri, Sreenivas S109 [mailto:Sreenivas.Atluri@CIGNA.COM] > > Sent: Friday, January 24, 2003 10:33 AM > > To: 'sqr-users@sqrug.org' > > Subject: [sqr-users] Writing SQR output file to CARTridge > > > > > > Hi, > > > > We are processing large volumes of data in our SQR reports. When we are > > trying to use CARTridge(Tape) as output file. It is giving below error > > message. > > We are using SQR 6.1.4 on Mainframe (S/390) and DB2 5.0 database. > > Right now we are using DASD for the out put, but it is growing to 5000 > > cylinders and taking hours for finding out volumes. > > > > IKJ56641I DSN ENDED DUE TO ERROR+ > > IKJ56641I USER ABEND CODE 4087 REASON CODE 00000008 > > > > CEE3250C The system or user abend S002 R=000000AC was issued. > > > > From entry point sqr1402 at compile unit offset +000001A2 at > > address 1DEBF032. > > > > Any help is appreciated. Thanks in advance. > > > > Sreeni. > > > > > > > > > -------------------------------------------------------------------------- > > ---- > > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, > please > > immediately notify the sender by e-mail at the address shown. This > e-mail > > transmission may contain confidential information. This information is > > intended only for the use of the individual(s) or entity to whom it is > > intended even if addressed incorrectly. Please delete it from your > files > > if you are not the intended recipient. Thank you for your compliance. > > Copyright (c) 2003 CIGNA > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > -------------------------------------------------------------------------- > ---- > CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please > immediately notify the sender by e-mail at the address shown. This e-mail > transmission may contain confidential information. This information is > intended only for the use of the individual(s) or entity to whom it is > intended even if addressed incorrectly. Please delete it from your files > if you are not the intended recipient. Thank you for your compliance. > Copyright (c) 2003 CIGNA > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2003 CIGNA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 13:15:12 2003 Date: Fri, 24 Jan 2003 10:13:50 -0800 (PST) From: andy kumar Subject: [sqr-users] error in SQR Hi All, I tried to run a SQR program from peoplesoft 7.5 HRMS as shown below: #include 'setenv.sqc' !Set environment Begin-Report Do proc1 End-Report Begin-Procedure proc1 BEGIN-SELECT NAME (1,1) FROM PS_PERSONAL_DATA WHERE EMPLID='6601' END-SELECT End-Procedure Giving error: (SQR 5528) SQLBase SQLCOM error 601 in cursor 1: Table has not been created SQL: select NAME FROM PS_PERSONAL_DATA WHERE EMPLID='6601' Error at: PS_PERSONAL_DATA Error on line 15: (SQR 3716) Error in SQL statement. Please help me. Thanks,andy. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 14:31:06 2003 Date: Fri, 24 Jan 2003 14:29:18 -0500 From: "Prasanna Menta" Subject: Re: [sqr-users] error in SQR Try using sysadm.ps_personal_data it might resolve the problem. andy kumar wrote: > > Hi All, > > I tried to run a SQR program from peoplesoft 7.5 HRMS as shown below: > > #include 'setenv.sqc' !Set environment > Begin-Report > Do proc1 > End-Report > > Begin-Procedure proc1 > BEGIN-SELECT > NAME (1,1) > FROM PS_PERSONAL_DATA > WHERE EMPLID='6601' > END-SELECT > End-Procedure > > Giving error: > > (SQR 5528) SQLBase SQLCOM error 601 in cursor 1: > Table has not been created > > SQL: select NAME FROM PS_PERSONAL_DATA WHERE EMPLID='6601' > Error at: PS_PERSONAL_DATA > > Error on line 15: > (SQR 3716) Error in SQL statement. > > Please help me. > > Thanks,andy. > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Jan 25 18:36:26 2003 Date: Sat, 25 Jan 2003 15:32:33 -0800 (PST) From: andy kumar Subject: Re: [sqr-users] error in SQR I tried but giving the following error: (SQR 5528) SQLBase SQLCOM error 1102 in cursor 1: Security violation attempting to access SQL: select NAME FROM SYSADM.PS_PERSONAL_DATA WHERE EMPLID='6601' Error at: PS_PERSONAL_DATA Error on line 17: (SQR 3716) Error in SQL statement. Errors were found in the program file. SQR: Program Aborting. Thanks,anand. Prasanna Menta wrote:Try using sysadm.ps_personal_data it might resolve the problem. andy kumar wrote: > > Hi All, > > I tried to run a SQR program from peoplesoft 7.5 HRMS as shown below: > > #include 'setenv.sqc' !Set environment > Begin-Report > Do proc1 > End-Report > > Begin-Procedure proc1 > BEGIN-SELECT > NAME (1,1) > FROM PS_PERSONAL_DATA > WHERE EMPLID='6601' > END-SELECT > End-Procedure > > Giving error: > > (SQR 5528) SQLBase SQLCOM error 601 in cursor 1: > Table has not been created > > SQL: select NAME FROM PS_PERSONAL_DATA WHERE EMPLID='6601' > Error at: PS_PERSONAL_DATA > > Error on line 15: > (SQR 3716) Error in SQL statement. > > Please help me. > > Thanks,andy. > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 15:05:29 2003 Date: Fri, 24 Jan 2003 15:03:45 -0500 From: "Larry Roux" Subject: Re: [sqr-users] error in SQR This usually means a) the table does not exist or b) you do not have security to see that table or c) you ran it against the wrong Database Being as it is unlikely that PERSONAL_DATA does not exist I would look at b and c ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> andy_us99@yahoo.com 01/24/03 01:13PM >>> Hi All, I tried to run a SQR program from peoplesoft 7.5 HRMS as shown below: #include 'setenv.sqc' !Set environment Begin-Report Do proc1 End-Report Begin-Procedure proc1 BEGIN-SELECT NAME (1,1) FROM PS_PERSONAL_DATA WHERE EMPLID='6601' END-SELECT End-Procedure Giving error: (SQR 5528) SQLBase SQLCOM error 601 in cursor 1: Table has not been created SQL: select NAME FROM PS_PERSONAL_DATA WHERE EMPLID='6601' Error at: PS_PERSONAL_DATA Error on line 15: (SQR 3716) Error in SQL statement. Please help me. Thanks,andy. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 15:21:10 2003 Subject: Re: [sqr-users] error in SQR From: rwulfson@bost.com Date: Fri, 24 Jan 2003 13:22:34 -0700 RUN THE SQL AS THE SAME USER AS THE PEOPLESOFT CONNECTION. Thanks, Russ Wulfson Developer Boston Market Corporation 303-216-5614 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 15:56:11 2003 From: "Wagner, Jennifer A" Date: Fri, 24 Jan 2003 15:55:51 -0500 Subject: [sqr-users] Need Help with Evaluation Hi, I used to be on this group, but somehow stopped receiving mail... that was okay because I stopped using SQR....until now... Anway, I have a tricky SQR to write (at least, it seems tricky). I have a record, cmt_id, in Commitments (cmts) which has many statuses in the Statuses table. What I want to do is find the "highest" or "most important" status and insert that current status in the cmts table. So, I need to get all the statuses for the rec cmt_id and then compare them. It's not that easy, because even if they both have the status Pending, then we want to take the one with the most recent date. Same goes if it is Delayed or Ongoing, because they are on the same level of importance, so we'd want the latest one. I'm thinking of an evaluation statement, but I'm not even sure how to start it. I've selected all the statuses for the particular cmt_id like this: begin-procedure get_cmt select cmt_id &cmt_id do get_stat from pmc_commitments end-procedure begin-procedure get_stat select status &status from pmc_statuses where cmt_id = &cmt_id Okay, that returns the cmt_id and all it's statuses.... now how do I go about comparing the different statuses so that I can pull the "most important" one (based on the criteria I have). Thanks a ton in advance!!! jenny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 16:03:05 2003 Subject: Re: [sqr-users] Need Help with Evaluation From: rwulfson@bost.com Date: Fri, 24 Jan 2003 14:04:11 -0700 What's the logic to the 'statuses'? Is it just by recent date? Thanks, Russ Wulfson Developer Boston Market Corporation 303-216-5614 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 16:12:06 2003 Date: Fri, 24 Jan 2003 16:10:52 -0500 From: "George Jansen" Subject: Re: [sqr-users] Need Help with Evaluation I'm assuming you have a table, call it status_ranks, with fields status and rank. If you don't, you really should. Then this becomes: SELECT c.cmt_id, s.status FROM pmc_commitments c, pmc_statuses s, status_ranks r WHERE c.cmt_id = s.cmt_id AND s.status = r.status AND NOT EXISTS (SELECT 1 FROM pms_statuses s1, status_ranks r1 WHERE s1.status = r1.status AND s1.cmt_id = s.cmt_id AND (r1.rank > r.rank OR (r1.rank = r.rank AND s1.datefield > s.datefield))); >>> WAGNERJ@cder.fda.gov 01/24/03 03:55PM >>> Hi, I used to be on this group, but somehow stopped receiving mail... that was okay because I stopped using SQR....until now... Anway, I have a tricky SQR to write (at least, it seems tricky). I have a record, cmt_id, in Commitments (cmts) which has many statuses in the Statuses table. What I want to do is find the "highest" or "most important" status and insert that current status in the cmts table. So, I need to get all the statuses for the rec cmt_id and then compare them. It's not that easy, because even if they both have the status Pending, then we want to take the one with the most recent date. Same goes if it is Delayed or Ongoing, because they are on the same level of importance, so we'd want the latest one. I'm thinking of an evaluation statement, but I'm not even sure how to start it. I've selected all the statuses for the particular cmt_id like this: begin-procedure get_cmt select cmt_id &cmt_id do get_stat from pmc_commitments end-procedure begin-procedure get_stat select status &status from pmc_statuses where cmt_id = &cmt_id Okay, that returns the cmt_id and all it's statuses.... now how do I go about comparing the different statuses so that I can pull the "most important" one (based on the criteria I have). Thanks a ton in advance!!! jenny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 24 17:20:13 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Need Help with Evaluation Date: Fri, 24 Jan 2003 14:19:40 -0800 Ideally, when you design the status codes, you would make them numbers, in order of importance, with space between the codes (10, 20, 30) so you could insert new codes later. Then you could work in SQL with a sub-select using the max or min functions. Yeah, right - that'll happen. If the codes are in random order (U for unimportant, M for medium importance, V for very important) then you could use the SQL encode function (I think that's what it's called) to map the actual values into values you can sort. But the performance won't be as good as if they were already had sortable values. A way I would do it, completely in SQR, first initialize $status_list: let $status_list = ' unimportant medium veryimportant ' ! note spaces or other separators before, between, and after codes Second, initialize #max_pos for each new value of &cmt_id: let #max_pos = 0 Third, have this code for each value of &status: let #pos = instr(, ' ' || &status || ' ', 1) ! surround &status with space or your separator if #max_pos < #pos let #max_pos = #pos end-if Fourth, when I'm finished with all the values of &status: let #end_pos = instr($status_list, ' ', #max_pos + 1) ! search for the next space or your separator let $most_important_status = substr($status_list, #max_pos + 1, #end_pos - #max_pos - 1) -----Original Message----- From: Wagner, Jennifer A [mailto:WAGNERJ@cder.fda.gov] Sent: Friday, January 24, 2003 12:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Need Help with Evaluation Hi, I used to be on this group, but somehow stopped receiving mail... that was okay because I stopped using SQR....until now... Anway, I have a tricky SQR to write (at least, it seems tricky). I have a record, cmt_id, in Commitments (cmts) which has many statuses in the Statuses table. What I want to do is find the "highest" or "most important" status and insert that current status in the cmts table. So, I need to get all the statuses for the rec cmt_id and then compare them. It's not that easy, because even if they both have the status Pending, then we want to take the one with the most recent date. Same goes if it is Delayed or Ongoing, because they are on the same level of importance, so we'd want the latest one. I'm thinking of an evaluation statement, but I'm not even sure how to start it. I've selected all the statuses for the particular cmt_id like this: begin-procedure get_cmt select cmt_id &cmt_id do get_stat from pmc_commitments end-procedure begin-procedure get_stat select status &status from pmc_statuses where cmt_id = &cmt_id Okay, that returns the cmt_id and all it's statuses.... now how do I go about comparing the different statuses so that I can pull the "most important" one (based on the criteria I have). Thanks a ton in advance!!! jenny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 27 08:41:54 2003 From: "Wagner, Jennifer A" Subject: RE: [sqr-users] Need Help with Evaluation Date: Mon, 27 Jan 2003 08:38:33 -0500 Thanks, everyone. Unfortunately, the statuses aren't really assigned an important value. There is a sort of hierarchy, like this: 1 -- Pending 2 -- Ongoing 3 -- Terminated 4 -- Delayed 5 -- Submitted 6 -- Fulfilled 7 -- Released The problem is, it's sort of a sliding heirarchy. Certain ones can only go up, but others can slide back. For instance, pending can only go up. However Delayed can slide back to Ongoing. Terminated can go to delayed, submitted or released. So, it gets confusing because what I would need to do is find the "highest" statuses and then find the most recent date...but it can't be based on pure number in the hierarchy because of the way delayed can slide back to ongoing. And not necessarily is delayed always greater than terminated. Ah, it's really confusing. Maybe I should base it on date. The reason they don't want it based purely on date is because if they are entered out of order. Argh. This is to initially populate fields. I've already created a database trigger that will work to keep the fields populated with the most current status. I think I'm going to play around with the dates because I think that might be the way to go. Thanks, Jenny -----Original Message----- From: Alexander, Steve [mailto:Steve.Alexander@ci.sj.ca.us] Sent: Friday, January 24, 2003 5:20 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Need Help with Evaluation Ideally, when you design the status codes, you would make them numbers, in order of importance, with space between the codes (10, 20, 30) so you could insert new codes later. Then you could work in SQL with a sub-select using the max or min functions. Yeah, right - that'll happen. If the codes are in random order (U for unimportant, M for medium importance, V for very important) then you could use the SQL encode function (I think that's what it's called) to map the actual values into values you can sort. But the performance won't be as good as if they were already had sortable values. A way I would do it, completely in SQR, first initialize $status_list: let $status_list = ' unimportant medium veryimportant ' ! note spaces or other separators before, between, and after codes Second, initialize #max_pos for each new value of &cmt_id: let #max_pos = 0 Third, have this code for each value of &status: let #pos = instr(, ' ' || &status || ' ', 1) ! surround &status with space or your separator if #max_pos < #pos let #max_pos = #pos end-if Fourth, when I'm finished with all the values of &status: let #end_pos = instr($status_list, ' ', #max_pos + 1) ! search for the next space or your separator let $most_important_status = substr($status_list, #max_pos + 1, #end_pos - #max_pos - 1) -----Original Message----- From: Wagner, Jennifer A [mailto:WAGNERJ@cder.fda.gov] Sent: Friday, January 24, 2003 12:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Need Help with Evaluation Hi, I used to be on this group, but somehow stopped receiving mail... that was okay because I stopped using SQR....until now... Anway, I have a tricky SQR to write (at least, it seems tricky). I have a record, cmt_id, in Commitments (cmts) which has many statuses in the Statuses table. What I want to do is find the "highest" or "most important" status and insert that current status in the cmts table. So, I need to get all the statuses for the rec cmt_id and then compare them. It's not that easy, because even if they both have the status Pending, then we want to take the one with the most recent date. Same goes if it is Delayed or Ongoing, because they are on the same level of importance, so we'd want the latest one. I'm thinking of an evaluation statement, but I'm not even sure how to start it. I've selected all the statuses for the particular cmt_id like this: begin-procedure get_cmt select cmt_id &cmt_id do get_stat from pmc_commitments end-procedure begin-procedure get_stat select status &status from pmc_statuses where cmt_id = &cmt_id Okay, that returns the cmt_id and all it's statuses.... now how do I go about comparing the different statuses so that I can pull the "most important" one (based on the criteria I have). Thanks a ton in advance!!! jenny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 27 08:57:06 2003 From: "Wagner, Jennifer A" Subject: RE: [sqr-users] Need Help with Evaluation Date: Mon, 27 Jan 2003 08:53:58 -0500 Oh hey, I didn't realize there is another field I can base it on. So, I think I have it. There is an ID field in another table that can be used as the basis. Thanks!!! -----Original Message----- From: Wagner, Jennifer A [mailto:WAGNERJ@cder.fda.gov] Sent: Monday, January 27, 2003 8:39 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Need Help with Evaluation Thanks, everyone. Unfortunately, the statuses aren't really assigned an important value. There is a sort of hierarchy, like this: 1 -- Pending 2 -- Ongoing 3 -- Terminated 4 -- Delayed 5 -- Submitted 6 -- Fulfilled 7 -- Released The problem is, it's sort of a sliding heirarchy. Certain ones can only go up, but others can slide back. For instance, pending can only go up. However Delayed can slide back to Ongoing. Terminated can go to delayed, submitted or released. So, it gets confusing because what I would need to do is find the "highest" statuses and then find the most recent date...but it can't be based on pure number in the hierarchy because of the way delayed can slide back to ongoing. And not necessarily is delayed always greater than terminated. Ah, it's really confusing. Maybe I should base it on date. The reason they don't want it based purely on date is because if they are entered out of order. Argh. This is to initially populate fields. I've already created a database trigger that will work to keep the fields populated with the most current status. I think I'm going to play around with the dates because I think that might be the way to go. Thanks, Jenny -----Original Message----- From: Alexander, Steve [mailto:Steve.Alexander@ci.sj.ca.us] Sent: Friday, January 24, 2003 5:20 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Need Help with Evaluation Ideally, when you design the status codes, you would make them numbers, in order of importance, with space between the codes (10, 20, 30) so you could insert new codes later. Then you could work in SQL with a sub-select using the max or min functions. Yeah, right - that'll happen. If the codes are in random order (U for unimportant, M for medium importance, V for very important) then you could use the SQL encode function (I think that's what it's called) to map the actual values into values you can sort. But the performance won't be as good as if they were already had sortable values. A way I would do it, completely in SQR, first initialize $status_list: let $status_list = ' unimportant medium veryimportant ' ! note spaces or other separators before, between, and after codes Second, initialize #max_pos for each new value of &cmt_id: let #max_pos = 0 Third, have this code for each value of &status: let #pos = instr(, ' ' || &status || ' ', 1) ! surround &status with space or your separator if #max_pos < #pos let #max_pos = #pos end-if Fourth, when I'm finished with all the values of &status: let #end_pos = instr($status_list, ' ', #max_pos + 1) ! search for the next space or your separator let $most_important_status = substr($status_list, #max_pos + 1, #end_pos - #max_pos - 1) -----Original Message----- From: Wagner, Jennifer A [mailto:WAGNERJ@cder.fda.gov] Sent: Friday, January 24, 2003 12:56 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Need Help with Evaluation Hi, I used to be on this group, but somehow stopped receiving mail... that was okay because I stopped using SQR....until now... Anway, I have a tricky SQR to write (at least, it seems tricky). I have a record, cmt_id, in Commitments (cmts) which has many statuses in the Statuses table. What I want to do is find the "highest" or "most important" status and insert that current status in the cmts table. So, I need to get all the statuses for the rec cmt_id and then compare them. It's not that easy, because even if they both have the status Pending, then we want to take the one with the most recent date. Same goes if it is Delayed or Ongoing, because they are on the same level of importance, so we'd want the latest one. I'm thinking of an evaluation statement, but I'm not even sure how to start it. I've selected all the statuses for the particular cmt_id like this: begin-procedure get_cmt select cmt_id &cmt_id do get_stat from pmc_commitments end-procedure begin-procedure get_stat select status &status from pmc_statuses where cmt_id = &cmt_id Okay, that returns the cmt_id and all it's statuses.... now how do I go about comparing the different statuses so that I can pull the "most important" one (based on the criteria I have). Thanks a ton in advance!!! jenny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 27 17:34:35 2003 From: "Chu, Nicholas" Date: Mon, 27 Jan 2003 16:32:58 -0600 Subject: [sqr-users] ON-BREAK with group by? Hello, I am an oaccasional visitor at this site and I always find it useful whenever I need something regarding SQR. I have this situation and want you guys to help me out. I want to have something in this settings (group by KITID, KIT LOC and USER) KITID: XXXXXXX KIT LOCATION: XXXXXX USER: XXXX Unit ID ITEM QTY ---------------------------------------------------------- UNIT1 APPLE 100 UNIT2 ORANGE 200 UNIT3 PEAR 50 KITID: YYYYYYY KIT LOCATION: XXXXXX USER: XXXX Unit ID ITEM QTY ---------------------------------------------------------- UNIT1 APPLE 100 UNIT2 ORANGE 200 UNIT3 PEAR 50 . . KITID: YYYYYYY KIT LOCATION: NNNNNN USER: XXXX Unit ID ITEM QTY ---------------------------------------------------------- UNIT1 APPLE 100 UNIT2 ORANGE 200 UNIT3 PEAR 50 . . So far I have: print-column-header that prints KITID:...... KIT LOCATION:..... USER: And in my main query: I have: begin-select k.kitid &kitid () on-break level=1 print=never k.locatn &locatn () on-break level=1 print=never k.user &user () on-break level=1 print=never u.unitid &ulid (+1,1) on-break before=print-column-header u.item &item (,22) u.qty &qty (,40) from kit k, udtl u where k.kitid = u.kitid and u.item = $item and k.locatn = $locatn k.user = user order by k.kitid, k.locatn, k.user end-select What can I do to achieve that? Thanks in advance!!! Nicholas _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 27 17:47:09 2003 From: "Katragadda, Sridhar (CORP, Consultant)" Date: Mon, 27 Jan 2003 17:46:10 -0500 Subject: [sqr-users] Calling excel macro Hi 1st question) I have a excel macro that needs to be called from sqr. What is the Command to call the macro. I'm able to open the excel sheet but not able to call the macro. 2nd question) I 'm reading from an csv file and wrting to an excel sheet (this i'm able to do that).But what if want to write to a different worksheet to the same workbook. I would i call this perticular work sheet? Any Suggestions thanks > Sridhar k > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 27 22:22:43 2003 Subject: Re: [sqr-users] Calling excel macro From: mark.a.o.pabilona@accenture.com Date: Tue, 28 Jan 2003 11:04:56 +0800 Hello Sridhar, I've worked on the same problem, you can give me call if you'd like so we can discuss it in more detail. My phone is +632 841-0111 loc.4315 Mark A. O. Pabilona Alliance Utilization,CIO-SD Accenture 9th floor 6750 Bldg Ayala Ave., Makati City Philippines 1200 Phone: +632 841-0111 loc.4315 Octel: 632/4315 E-mail:mark.a.o.pabilona@accenture.com "Katragadda, Sridhar (CORP, Consultant)" To: "'sqr-users@sqrug.org'" Subject: [sqr-users] Calling excel macro Sent by: sqr-users-admin@sqrug.org 01/28/2003 06:46 AM Please respond to sqr-users Hi 1st question) I have a excel macro that needs to be called from sqr. What is the Command to call the macro. I'm able to open the excel sheet but not able to call the macro. 2nd question) I 'm reading from an csv file and wrting to an excel sheet (this i'm able to do that).But what if want to write to a different worksheet to the same workbook. I would i call this perticular work sheet? Any Suggestions thanks > Sridhar k > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 09:53:19 2003 Date: Tue, 28 Jan 2003 06:51:52 -0800 (PST) From: D Patel Subject: Re: [sqr-users] Calling excel macro - Question Hi Sridhar, Can you tell me how you can write directly to Excel file. Because I am not able to open and write to excel file. Thanks in advance. Regards, D Patel __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 08:05:20 2003 From: Ray Ontko Date: Tue, 28 Jan 2003 08:04:45 -0500 Subject: [sqr-users] SQR Prog Ref, 2nd Edition SQR users, Ray Ontko & Co has recently published a new, second edition of the SQR Programmer Reference. Edited by our own Don Mellen, this 96-page pocket reference now covers SQR versions 2.x-6.x (through SQR for PeopleSoft version 8.x). Suggested retail price: $12. Visit our website (http://www.ontko.com/products/sqrref/) or Amazon.com (search for SQR) for more details and ordering information. Our SQR Reference Card continues to be available online (http://www.ontko.com/sqr/sqrcard.html). You can view the HTML version online, but you'll almost certainly want the handy, pocket-sized reference. Order one today! Ray ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 13:25:27 2003 From: Smyth Lisa G Contr AEDC/ACS Date: Tue, 28 Jan 2003 18:24:14 -0000 Subject: [sqr-users] BLOB data Has anyone ever read BLOB data from a LONG RAW data type? Lisa Smyth PeopleSoft Financials 931.454.4861 Lisa.Smyth@arnold.af.mil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 13:35:05 2003 From: "Crystal Hammonds" Date: Tue, 28 Jan 2003 13:34:43 -0500 Subject: [sqr-users] SQR1305 error I tried to run a sqr (DDDAudit)through both SQRW and PeopleSoft. I get the following error message: CMPLSQL: SQR 1305 Unknown data type in database: -9 I think the error message somehow relates to the database version and datatype but I'm not sure what to ask our DBA to do. Any assistance on how to resolve this problem would be greatly appreciated. SQR version 4.2.3 SQL Server 7 PS 7.5/Ptools 7.51 Thanks! _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 13:59:06 2003 From: Peter Burton Subject: RE: [sqr-users] SQR1305 error Date: Tue, 28 Jan 2003 10:58:13 -0800 Crystal, That version of SQR does not support the SQL_WVARCHAR data type. Peter -----Original Message----- From: Crystal Hammonds [mailto:crystal_hammonds@hotmail.com] Sent: Tuesday, January 28, 2003 1:35 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR1305 error I tried to run a sqr (DDDAudit)through both SQRW and PeopleSoft. I get the following error message: CMPLSQL: SQR 1305 Unknown data type in database: -9 I think the error message somehow relates to the database version and datatype but I'm not sure what to ask our DBA to do. Any assistance on how to resolve this problem would be greatly appreciated. SQR version 4.2.3 SQL Server 7 PS 7.5/Ptools 7.51 Thanks! _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 14:32:13 2003 Date: Tue, 28 Jan 2003 14:31:03 -0500 From: "Larry Roux" Subject: Re: [sqr-users] SQR1305 error Not sure if this has anything to do with it, but there is an sqc with the DB type. The sqc is rdbms.sqc check this out. I think it is delivered with Oracle as a default. !Database Environment ! #define ORACLE ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> crystal_hammonds@hotmail.com 01/28/03 01:34PM >>> I tried to run a sqr (DDDAudit)through both SQRW and PeopleSoft. I get the following error message: CMPLSQL: SQR 1305 Unknown data type in database: -9 I think the error message somehow relates to the database version and datatype but I'm not sure what to ask our DBA to do. Any assistance on how to resolve this problem would be greatly appreciated. SQR version 4.2.3 SQL Server 7 PS 7.5/Ptools 7.51 Thanks! _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 28 18:02:03 2003 From: Ryan_Paul@aismail.wustl.edu Date: Tue, 28 Jan 2003 17:00:38 -0600 Subject: [sqr-users] Variable error in SQL Hi there! I have an sqr that I am trying to figure out, maybe someone has some useful information for me. Currently I have sql statement that has 'hard-coded' variables, in the process of changing tham into sqr variables is when I get the error. It is a date variable I use to get the max(effdt) row. Also, you should know that this sql is a part of "inner" select : select A.column_1, .... from (select column_name as t1.column_1,...... from table1 t1 join table2 t2 on t1.column_2 = t2.column_2 and t2.effdt = (select max(effdt) from table2 t2_ed where t2.column_2 = t2_ed.column_2 and t2_ed.effdt <= $Run_As_Of_Date) join table3 ........ join table4 ........) as A (hopefully that is all lined up for you to read) the error message returned is : ERROR in SQL (Perhaps missing &name after expression) This is about as generic as they come. I know that the problem is with the variable because when I put back in the hard-coded date it runs fine. I have the format for the date correct (just like how it is hard-coded) and still doesn't work. I am running on SQLServer 2000. Does anyone know why I am getting this error? Does it have anything to do with the "inner" select? Any suggestions would be much appreciated. Thanks, Ryan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 08:10:04 2003 Subject: Re: [sqr-users] Variable error in SQL From: Rick_Creel@aoncons.com Date: Wed, 29 Jan 2003 08:03:22 -0500 Did you explicitly declare your variable ($Run_As_Of_Date) to be a DATE variable? begin-setup declare-variable date $Run_As_Of_Date end-declare end-setup Ryan_Paul@aismail .wustl.edu To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Variable error in SQL qrug.org 01/28/2003 06:00 PM Please respond to sqr-users Hi there! I have an sqr that I am trying to figure out, maybe someone has some useful information for me. Currently I have sql statement that has 'hard-coded' variables, in the process of changing tham into sqr variables is when I get the error. It is a date variable I use to get the max(effdt) row. Also, you should know that this sql is a part of "inner" select : select A.column_1, .... from (select column_name as t1.column_1,...... from table1 t1 join table2 t2 on t1.column_2 = t2.column_2 and t2.effdt = (select max(effdt) from table2 t2_ed where t2.column_2 = t2_ed.column_2 and t2_ed.effdt <= $Run_As_Of_Date) join table3 ........ join table4 ........) as A (hopefully that is all lined up for you to read) the error message returned is : ERROR in SQL (Perhaps missing &name after expression) This is about as generic as they come. I know that the problem is with the variable because when I put back in the hard-coded date it runs fine. I have the format for the date correct (just like how it is hard-coded) and still doesn't work. I am running on SQLServer 2000. Does anyone know why I am getting this error? Does it have anything to do with the "inner" select? Any suggestions would be much appreciated. Thanks, Ryan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 08:50:11 2003 From: "Stephen Keen" Subject: RE: [sqr-users] Variable error in SQL Date: Wed, 29 Jan 2003 08:49:41 -0500 It has been a while since I worked with SQL server - but as I remember the sql from SQL server that is autogenerated by selecting on tables and SQR SQL was not compatible. I had to join my tables by where a.emplid = b.emplid and b.emplid = c.emplid rather than use the join table syntax that was used in sql server. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Rick_Creel@aoncons.com Sent: Wednesday, January 29, 2003 8:03 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Variable error in SQL Did you explicitly declare your variable ($Run_As_Of_Date) to be a DATE variable? begin-setup declare-variable date $Run_As_Of_Date end-declare end-setup Ryan_Paul@aismail .wustl.edu To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Variable error in SQL qrug.org 01/28/2003 06:00 PM Please respond to sqr-users Hi there! I have an sqr that I am trying to figure out, maybe someone has some useful information for me. Currently I have sql statement that has 'hard-coded' variables, in the process of changing tham into sqr variables is when I get the error. It is a date variable I use to get the max(effdt) row. Also, you should know that this sql is a part of "inner" select : select A.column_1, .... from (select column_name as t1.column_1,...... from table1 t1 join table2 t2 on t1.column_2 = t2.column_2 and t2.effdt = (select max(effdt) from table2 t2_ed where t2.column_2 = t2_ed.column_2 and t2_ed.effdt <= $Run_As_Of_Date) join table3 ........ join table4 ........) as A (hopefully that is all lined up for you to read) the error message returned is : ERROR in SQL (Perhaps missing &name after expression) This is about as generic as they come. I know that the problem is with the variable because when I put back in the hard-coded date it runs fine. I have the format for the date correct (just like how it is hard-coded) and still doesn't work. I am running on SQLServer 2000. Does anyone know why I am getting this error? Does it have anything to do with the "inner" select? Any suggestions would be much appreciated. Thanks, Ryan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 10:01:40 2003 Subject: RE: [sqr-users] Variable error in SQL From: Ryan_Paul@aismail.wustl.edu Date: Wed, 29 Jan 2003 09:00:35 -0600 In response to the declare variable question, the answer is no, but when I do declare the variable, it still does not work (same result when I declare it as text). In response to the join syntax, the query works in sqr with hard-coded variables, but not when I use sqr variables. I tried pulling the "ON" clause of that join out and converted it to a "WHERE" clause and still the same error. It seems as if the compiler is not finding a variable to use after the expression. When I use a variable on the "OUTER" select it works, but that does me no good, I need the sql to be able to use the variable on the "INNER" select. Are there any ways around this? "Stephen Keen" vices.com> cc: Sent by: Subject: RE: [sqr-users] Variable error in SQL sqr-users-admin@sqrug .org 01/29/2003 07:49 AM Please respond to sqr-users It has been a while since I worked with SQL server - but as I remember the sql from SQL server that is autogenerated by selecting on tables and SQR SQL was not compatible. I had to join my tables by where a.emplid = b.emplid and b.emplid = c.emplid rather than use the join table syntax that was used in sql server. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Rick_Creel@aoncons.com Sent: Wednesday, January 29, 2003 8:03 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Variable error in SQL Did you explicitly declare your variable ($Run_As_Of_Date) to be a DATE variable? begin-setup declare-variable date $Run_As_Of_Date end-declare end-setup Ryan_Paul@aismail .wustl.edu To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Variable error in SQL qrug.org 01/28/2003 06:00 PM Please respond to sqr-users Hi there! I have an sqr that I am trying to figure out, maybe someone has some useful information for me. Currently I have sql statement that has 'hard-coded' variables, in the process of changing tham into sqr variables is when I get the error. It is a date variable I use to get the max(effdt) row. Also, you should know that this sql is a part of "inner" select : select A.column_1, .... from (select column_name as t1.column_1,...... from table1 t1 join table2 t2 on t1.column_2 = t2.column_2 and t2.effdt = (select max(effdt) from table2 t2_ed where t2.column_2 = t2_ed.column_2 and t2_ed.effdt <= $Run_As_Of_Date) join table3 ........ join table4 ........) as A (hopefully that is all lined up for you to read) the error message returned is : ERROR in SQL (Perhaps missing &name after expression) This is about as generic as they come. I know that the problem is with the variable because when I put back in the hard-coded date it runs fine. I have the format for the date correct (just like how it is hard-coded) and still doesn't work. I am running on SQLServer 2000. Does anyone know why I am getting this error? Does it have anything to do with the "inner" select? Any suggestions would be much appreciated. Thanks, Ryan _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 10:18:14 2003 Date: Wed, 29 Jan 2003 10:17:04 -0500 From: "George Jansen" Subject: RE: [sqr-users] Variable error in SQL Is that variable visible in that scope? Is it possible you're using a "local" procedure and that this is a global variable? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 11:34:44 2003 Date: Wed, 29 Jan 2003 11:33:33 -0500 From: Tom Dommermuth Subject: [sqr-users] Version of SQR for PeopleSoft 8.0 I recently read an email from the group promoting a new SQR reference card for version 2.x - 6.x of SQR and says it includes PeopleSoft 8. I'm confused as to what version of SQR we are using with version 8.0 of PeopleSoft. PeopleSoft says we are on the version of SQR that is tied to the PeopleTools version we are on, which is 8.18, so that means we use version 8.18 of SQR. Accord to Ray's note, it seems like 6.x is the highest version but is that one PeopleSoft uses or do they have their own version of SQR? How does 6.x related to the version PeopleSoft now bundles with 8.0? Thanks, Tom Dommermuth Princeton University. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 11:47:33 2003 From: Ray Ontko Date: Wed, 29 Jan 2003 11:46:38 -0500 Subject: Re: [sqr-users] Version of SQR for PeopleSoft 8.0 Tom, It is my understanding that Brio SQR 6.2 contains all of the features used by SQR for Peoplesoft 8.0. Ray On Wed, Jan 29, 2003 at 11:33:33AM -0500, Tom Dommermuth wrote: > I recently read an email from the group promoting a new SQR reference card for version 2.x - 6.x of > SQR and says it includes PeopleSoft 8. I'm confused as to what version of SQR we are using with > version 8.0 of PeopleSoft. PeopleSoft says we are on the version of SQR that is tied to the > PeopleTools version we are on, which is 8.18, so that means we use version 8.18 of SQR. Accord to > Ray's note, it seems like 6.x is the highest version but is that one PeopleSoft uses or do they have > their own version of SQR? How does 6.x related to the version PeopleSoft now bundles with 8.0? > > Thanks, > Tom Dommermuth > Princeton University. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 16:33:41 2003 Subject: RE: [sqr-users] Version of SQR for PeopleSoft 8.0 Date: Wed, 29 Jan 2003 15:32:38 -0600 From: "Knapp, Richard" PeopleSoft and Brio (the owner of SQR) have parted company. PeopleSoft now provides a proprietary version of SQR so I suppose it can call it any version number it wants to. The SQR version that goes with PS v7.6 is 4.3.4. I doubt if there have been several quantum leaps in the interim between PS v7.6 and v8.1. I think it's just a naming thing. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Tom Dommermuth [mailto:tdommer@princeton.edu] Sent: Wednesday, January 29, 2003 10:34 AM To: sqr-users@sqrug.org Subject: [sqr-users] Version of SQR for PeopleSoft 8.0 I recently read an email from the group promoting a new SQR reference card for version 2.x - 6.x of SQR and says it includes PeopleSoft 8. I'm confused as to what version of SQR we are using with version 8.0 of PeopleSoft. PeopleSoft says we are on the version of SQR that is tied to the PeopleTools version we are on, which is 8.18, so that means we use version 8.18 of SQR. Accord to Ray's note, it seems like 6.x is the highest version but is that one PeopleSoft uses or do they have their own version of SQR? How does 6.x related to the version PeopleSoft now bundles with 8.0? Thanks, Tom Dommermuth Princeton University. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 18:49:38 2003 From: "Kirk Katzbet" Date: Wed, 29 Jan 2003 18:43:38 -0500 Subject: [sqr-users] -F command ???? Thanks in Advance I have an SQR that has multiple reports. I am running the SQR on the server(UNIX)through a panel in Peoplesoft. I want to try to use the -F command in the Process Definition options to rename the .SPF files. The only other SQR flag I am using is -nolis. I have tried: -FCombined.spf -FSummary.spf and this not work. I want to try rename them and change the directory that they are in as well. I want to move them from the server (UNIX) to the LAN. I have Application release 5.10 and Peopletools 5.12.42 and SQR v3.0.12.4. Thanks Kirk _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 30 09:45:35 2003 Subject: RE: [sqr-users] -F command ???? Date: Thu, 30 Jan 2003 08:44:46 -0600 From: "Knapp, Richard" If your files are created with the print and use-report commands, you will have to move them outside of the SQR environment since these files are not closed or converted until the SQR terminates. (with a shell script or a modification to pssqr, for example.) If you are using the write command, you can close the files and move them from the SQR environment using the call system command. I assume the LAN devices are NFS mounted. If you mount your LAN drive as the unix output destination drive, you won't have to move at all. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Kirk Katzbet [mailto:kk_413@hotmail.com] Sent: Wednesday, January 29, 2003 5:44 PM To: sqr-users@sqrug.org Subject: [sqr-users] -F command ???? Thanks in Advance I have an SQR that has multiple reports. I am running the SQR on the server(UNIX)through a panel in Peoplesoft. I want to try to use the -F command in the Process Definition options to rename the .SPF files. The only other SQR flag I am using is -nolis. I have tried: -FCombined.spf -FSummary.spf and this not work. I want to try rename them and change the directory that they are in as well. I want to move them from the server (UNIX) to the LAN. I have Application release 5.10 and Peopletools 5.12.42 and SQR v3.0.12.4. Thanks Kirk _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 31 01:26:12 2003 From: "Steve Cavill" Subject: RE: [sqr-users] -F command ???? Date: Fri, 31 Jan 2003 17:24:44 +1100 Try -FCombined -FSummary, (note NO file extension) this will rename all the associated files (including the SPF), even if you don't generate the LIS files. This definitely works in SQR 6, if you have problems in SQR3 try -FCombined.lis -FSummary.lis. This also works in SQR 6. It renames the SPF files even if you don't generate the .lis files. Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Kirk Katzbet Sent: Thursday, 30 January 2003 10:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] -F command ???? Thanks in Advance I have an SQR that has multiple reports. I am running the SQR on the server(UNIX)through a panel in Peoplesoft. I want to try to use the -F command in the Process Definition options to rename the .SPF files. The only other SQR flag I am using is -nolis. I have tried: -FCombined.spf -FSummary.spf and this not work. I want to try rename them and change the directory that they are in as well. I want to move them from the server (UNIX) to the LAN. I have Application release 5.10 and Peopletools 5.12.42 and SQR v3.0.12.4. Thanks Kirk _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 19:31:29 2003 Date: Wed, 29 Jan 2003 16:29:55 -0800 (PST) From: Ferdinand de Lesseps Subject: [sqr-users] Problem with SQR string concatenation ? Please help! I formed a string concatenating few of the command line arguments. I checked for the wellformedness of the resultant string, it was exactly what I wanted.. I went into a procedure, there I concatenated the string with parenthesis; it looked good. But, when I try using this string inside sql select statement (begin-select...end-select), it won't be recognized..don't know why.. Code fragments: >>>string<<< $agycodes = 'A6'||','||'A7'||','||'M4' => 'A6','A7','M4' >>>inside procedure<<< let $agycodes = '('||$agycodes||')' #debug show $agycodes.....would give me ('A6','A7','M4') which is what I want. >>>inside select statement<<< begin-select agy_wc &agywc agt_wc &agtwc agt_seq &agtseq ..... ..... from t_agents ..... where agy_wc = $agycodes and ..... ..... end-select Works when I hard-code ('A6','A7','M4') in place of $agycodes, but won't work otherwise. It won't give me any error or exception, however the sqr will terminate immediately, which makes it even more difficult to debug..Any idea what's happening ? Is it something to do with parens, commas ? Would really appreciate any help.. Thanks in advance.. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 20:37:38 2003 Date: Wed, 29 Jan 2003 17:36:23 -0800 From: Antonio Guiza Subject: Re: [sqr-users] Problem with SQR string concatenation ? Please help! Try something like this: select '('||''''||'A6'||''''||','||''''||'A7'||''''||')' from dual; Output: --------- 'A6','A7' At 04:29 PM 1/29/03 -0800, you wrote: >I formed a string concatenating few of the command >line arguments. I checked for the wellformedness of >the resultant string, it was exactly what I wanted.. > >I went into a procedure, there I concatenated the >string with parenthesis; it looked good. But, when I >try using this string inside sql select statement >(begin-select...end-select), it won't be >recognized..don't know why.. > >Code fragments: > >>>string<<< >$agycodes = 'A6'||','||'A7'||','||'M4' => >'A6','A7','M4' > >>>inside procedure<<< >let $agycodes = '('||$agycodes||')' >#debug show $agycodes.....would give me >('A6','A7','M4') which is what I want. > > >>>inside select statement<<< >begin-select >agy_wc &agywc >agt_wc &agtwc >agt_seq &agtseq >..... >..... >from t_agents ..... >where >agy_wc = $agycodes and ..... >..... >end-select > >Works when I hard-code ('A6','A7','M4') in place of >$agycodes, but won't work otherwise. It won't give me >any error or exception, however the sqr will terminate >immediately, which makes it even more difficult to >debug..Any idea what's happening ? Is it something to >do with parens, commas ? Would really appreciate any >help.. > >Thanks in advance.. > >__________________________________________________ >Do you Yahoo!? >Yahoo! Mail Plus - Powerful. Affordable. Sign up now. >http://mailplus.yahoo.com > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------------------------------------------------------------------------- Antonio G. Guiza mailto:aguiza@pcc.edu Programmer/Analyst (503) 977-4395 Portland Community College SY CC-224 fax (503) 977-4987 ITS Systems Development http://www.pcc.edu --------------------------------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 20:42:25 2003 Date: Wed, 29 Jan 2003 20:40:41 -0500 From: "Larry Roux" Subject: Re: [sqr-users] Problem with SQR string concatenation ? Please help! You don't want = you want "in" where agy_wc in $agycodes and .... ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> ezfred0131@yahoo.com 01/29/03 19:42 PM >>> I formed a string concatenating few of the command line arguments. I checked for the wellformedness of the resultant string, it was exactly what I wanted.. I went into a procedure, there I concatenated the string with parenthesis; it looked good. But, when I try using this string inside sql select statement (begin-select...end-select), it won't be recognized..don't know why.. Code fragments: >>>string<<< $agycodes = 'A6'||','||'A7'||','||'M4' => 'A6','A7','M4' >>>inside procedure<<< let $agycodes = '('||$agycodes||')' #debug show $agycodes.....would give me ('A6','A7','M4') which is what I want. >>>inside select statement<<< begin-select agy_wc &agywc agt_wc &agtwc agt_seq &agtseq ..... ..... from t_agents ..... where agy_wc = $agycodes and ..... ..... end-select Works when I hard-code ('A6','A7','M4') in place of $agycodes, but won't work otherwise. It won't give me any error or exception, however the sqr will terminate immediately, which makes it even more difficult to debug..Any idea what's happening ? Is it something to do with parens, commas ? Would really appreciate any help.. Thanks in advance.. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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-admin@sqrug.org Wed Jan 29 21:14:31 2003 Date: Wed, 29 Jan 2003 18:13:15 -0800 (PST) From: Ferdinand de Lesseps Subject: Re: [sqr-users] Problem with SQR string concatenation ? Please help! Hi,, I had "in" in my original code, I put "=" by mistake in this example.. Thanks for your response. -Ferd --- Larry Roux wrote: > You don't want = you want "in" > > where > agy_wc in $agycodes and .... > > > ****************************** > Larry Roux > Syracuse University > lroux@syr.edu > ******************************* > >>> ezfred0131@yahoo.com 01/29/03 19:42 PM >>> > I formed a string concatenating few of the command > line arguments. I checked for the wellformedness of > the resultant string, it was exactly what I wanted.. > > I went into a procedure, there I concatenated the > string with parenthesis; it looked good. But, when I > try using this string inside sql select statement > (begin-select...end-select), it won't be > recognized..don't know why.. > > Code fragments: > >>>string<<< > $agycodes = 'A6'||','||'A7'||','||'M4' => > 'A6','A7','M4' > >>>inside procedure<<< > let $agycodes = '('||$agycodes||')' > #debug show $agycodes.....would give me > ('A6','A7','M4') which is what I want. > > >>>inside select statement<<< > begin-select > agy_wc &agywc > agt_wc &agtwc > agt_seq &agtseq > ..... > ..... > from t_agents ..... > where > agy_wc = $agycodes and ..... > ..... > end-select > > Works when I hard-code ('A6','A7','M4') in place of > $agycodes, but won't work otherwise. It won't give > me > any error or exception, however the sqr will > terminate > immediately, which makes it even more difficult to > debug..Any idea what's happening ? Is it something > to > do with parens, commas ? Would really appreciate any > help.. > > Thanks in advance.. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.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 __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 29 23:54:41 2003 Date: Wed, 29 Jan 2003 20:52:53 -0800 (PST) From: Ferdinand de Lesseps Subject: Re: [sqr-users] Problem with SQR string concatenation ? Please help! Hi,The problem is that the concatenated string appears fine (I've checked it thru debug commands) outside the select (begin-select....end-select) statement. However, inside the select statement, it fails to be recognized. Any reasons ? Please help! Thanks! Ferd. --- Ferdinand de Lesseps wrote: > Hi,, > I had "in" in my original code, I put "=" by > mistake > in this example.. > > Thanks for your response. > > -Ferd > --- Larry Roux wrote: > > You don't want = you want "in" > > > > where > > agy_wc in $agycodes and .... > > > > > > ****************************** > > Larry Roux > > Syracuse University > > lroux@syr.edu > > ******************************* > > >>> ezfred0131@yahoo.com 01/29/03 19:42 PM >>> > > I formed a string concatenating few of the command > > line arguments. I checked for the wellformedness > of > > the resultant string, it was exactly what I > wanted.. > > > > I went into a procedure, there I concatenated the > > string with parenthesis; it looked good. But, when > I > > try using this string inside sql select statement > > (begin-select...end-select), it won't be > > recognized..don't know why.. > > > > Code fragments: > > >>>string<<< > > $agycodes = 'A6'||','||'A7'||','||'M4' => > > 'A6','A7','M4' > > >>>inside procedure<<< > > let $agycodes = '('||$agycodes||')' > > #debug show $agycodes.....would give me > > ('A6','A7','M4') which is what I want. > > > > >>>inside select statement<<< > > begin-select > > agy_wc &agywc > > agt_wc &agtwc > > agt_seq &agtseq > > ..... > > ..... > > from t_agents ..... > > where > > agy_wc = $agycodes and ..... > > ..... > > end-select > > > > Works when I hard-code ('A6','A7','M4') in place > of > > $agycodes, but won't work otherwise. It won't give > > me > > any error or exception, however the sqr will > > terminate > > immediately, which makes it even more difficult to > > debug..Any idea what's happening ? Is it something > > to > > do with parens, commas ? Would really appreciate > any > > help.. > > > > Thanks in advance.. > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > > now. > > http://mailplus.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 > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 30 07:53:26 2003 Date: Thu, 30 Jan 2003 07:52:16 -0500 From: "Prasanna Menta" Subject: Re: [sqr-users] Problem with SQR string concatenation ? Please help! Can you try trimming the spaces, say use rtrim(ltrim(,' '),' ') which might help you. Good Luck Prasanna Ferdinand de Lesseps wrote: > > Hi,The problem is that the concatenated string appears > fine (I've checked it thru debug commands) outside the > select (begin-select....end-select) statement. > However, inside the select statement, it fails to be > recognized. Any reasons ? Please help! > > Thanks! > Ferd. > > --- Ferdinand de Lesseps wrote: > > Hi,, > > I had "in" in my original code, I put "=" by > > mistake > > in this example.. > > > > Thanks for your response. > > > > -Ferd > > --- Larry Roux wrote: > > > You don't want = you want "in" > > > > > > where > > > agy_wc in $agycodes and .... > > > > > > > > > ****************************** > > > Larry Roux > > > Syracuse University > > > lroux@syr.edu > > > ******************************* > > > >>> ezfred0131@yahoo.com 01/29/03 19:42 PM >>> > > > I formed a string concatenating few of the command > > > line arguments. I checked for the wellformedness > > of > > > the resultant string, it was exactly what I > > wanted.. > > > > > > I went into a procedure, there I concatenated the > > > string with parenthesis; it looked good. But, when > > I > > > try using this string inside sql select statement > > > (begin-select...end-select), it won't be > > > recognized..don't know why.. > > > > > > Code fragments: > > > >>>string<<< > > > $agycodes = 'A6'||','||'A7'||','||'M4' => > > > 'A6','A7','M4' > > > >>>inside procedure<<< > > > let $agycodes = '('||$agycodes||')' > > > #debug show $agycodes.....would give me > > > ('A6','A7','M4') which is what I want. > > > > > > >>>inside select statement<<< > > > begin-select > > > agy_wc &agywc > > > agt_wc &agtwc > > > agt_seq &agtseq > > > ..... > > > ..... > > > from t_agents ..... > > > where > > > agy_wc = $agycodes and ..... > > > ..... > > > end-select > > > > > > Works when I hard-code ('A6','A7','M4') in place > > of > >