From owner-sqr-users@list.iex.net Sun Apr 1 00:05:23 2001 Date: Sun, 1 Apr 2001 00:00:01 -0500 From: Nathan Stratton Treadway Subject: Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathant@ontko.com) $Revision: 1.8 $ $Date: 2001-01-26 18:09:09-05 $ This document gathers in one location information about the sqr-users mail list. Directions for common list-server commands (including unsubscribing) are given, as are guidelines for list usage. ______________________________________________________________________ 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. Basic List Server Commands 3.1 Subscribing to the List 3.2 Unsubscribing from the List 3.3 Digests 3.4 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 2000/11/05: o Egroups has become Yahoo! Groups; changed the psusers and PeopleSoft Fans mailing lists links in the Related Mailing Lists section. 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 Technology (and to other products in the Brio.Report line). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. 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.com/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-2001 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 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. rm-users : ReportMart 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.com". 3. Basic List Server Commands Note: The list used to be hosted on usa.net , but the list-hosting service was moved to list.iex.net . The old addresses for the list, list server, and list owner no longer work. A few basic list server commands are listed below. Send these commands as the only line in the body (not the subject line) of an e- mail message sent to "listserv@list.iex.net". 3.1. Subscribing to the List To subscribe to the mailing list, the command is subscribe sqr-users Your Name Note that you do not need to provide your e-mail address as it is taken from your message's header. You will be e-mailed a confirmation number, which you must then send back to the list server software before the command goes into effect. 3.2. Unsubscribing from the List To unsubscribe, the command is simply unsubscribe sqr-users Once again, you will need to confirm your command before it goes into effect. 3.3. Digests Once you are subscribed, you can request to get your messages in digest form (one large message containing all of the posts made each day) by sending the command set sqr-users digests 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. Use "nodigests" instead of "digests" to restore normal distribution. 3.4. Problems If the above commands do not work, please contact the list manager at "sqr-users-request@list.iex.net". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a copy of the error message you received from the list server. 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.) 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. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@list.iex.net". 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 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. To find out your version 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 your own information. 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.) In particular, in order to prevent mail loops, the list server will not accept messages that contain From:, Sender:, etc. lines pointing back to the sqr-users list, even if these lines are quoted (i.e. with ">" characters). Be sure to delete these from your reply message before sending it. 5. Job Announcements SQR-related job announcements are currently allowed on the list, subject to the following restrictions: o The subject line must begin with the words "JOB ANNOUNCEMENT:". o The message should be very short (fewer than 20 lines), giving brief details of the job and a way for those interested to get more information directly (i.e. web page or phone number). o The message should specifically remind people interested in the job to respond directly to the message author (and not to use their mailer's "reply" function, since that would send the reply out on the list). o Post job announcements as infrequently as possible. From owner-sqr-users@list.iex.net Mon Apr 2 09:22:48 2001 Date: Mon, 2 Apr 2001 10:14:38 -0700 From: Chuck Harkness Subject: new sqr book? Hello SQR Gurus, I own a copy of the "SQR in PeopleSoft and Other Applications" book and I was wondering if there are any other SQR reference books available. I use SQR in combination with MAXIMO and not peoplesoft. I have used this book extensively, but would love to see another good SQR reference. Chuck From owner-sqr-users@list.iex.net Mon Apr 2 14:58:29 2001 Date: Mon, 2 Apr 2001 14:47:53 -0500 From: Yuri Hunter Subject: Printing to HP - Trouble changing point-size in courier font
Greetings to the group -
 
I've written an SQR report that uses Times-Roman font (different sizes with some bold and limited use of boxes).  There are some header and footer fields (e.g., Contact Person) that I pass as parameters to the program that I want to print in Courier to make it plain what fields have been entered by appearing they were "typed in."
 
The problem I'm having is that when I issue the alter-printer command to change the font to Courier 10-pt, the font changes from Times-Roman to Courier, but the size is super small (like 5-pt or less!).
 
I can't make the Courier point-size increase in size on the report output no matter what value I specify in the alter-printer point-size parameter.  A sample of my code follows:
 
#include 'setenv.sqc'          
begin-setup
   #include 'setup02b.sqc'      !Printer specifications for HPLASERJET
end-setup
begin-footing 
     alter-printer font=5 point-size=6
     print 'Contact Person:'                 (,90)    bold
     alter-printer font=3 point-size=10
     print $name                             (,107)   underline
end-footing
 
Platform information:
 
 $sqr-platform   : WINDOWS-NT
 $sqr-ver           : SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999
 
Thanks in advance for any assistance!


Get your FREE download of MSN Explorer at http://explorer.msn.com

From owner-sqr-users@list.iex.net Tue Apr 3 09:18:43 2001 Date: Tue, 3 Apr 2001 08:15:22 -0600 From: Jon Alsager Subject: Re: Printing to HP - Trouble changing point-size in courier font Try specifiying pitch instead of point-size for Courier. HTH Jon -----Original Message----- From: Yuri Hunter [mailto:lakef250@HOTMAIL.COM] Sent: Monday, April 02, 2001 1:48 PM To: SQR-USERS@list.iex.net Subject: Printing to HP - Trouble changing point-size in courier font Greetings to the group - I've written an SQR report that uses Times-Roman font (different sizes with some bold and limited use of boxes). There are some header and footer fields (e.g., Contact Person) that I pass as parameters to the program that I want to print in Courier to make it plain what fields have been entered by appearing they were "typed in." The problem I'm having is that when I issue the alter-printer command to change the font to Courier 10-pt, the font changes from Times-Roman to Courier, but the size is super small (like 5-pt or less!). I can't make the Courier point-size increase in size on the report output no matter what value I specify in the alter-printer point-size parameter. A sample of my code follows: #include 'setenv.sqc' begin-setup #include 'setup02b.sqc' !Printer specifications for HPLASERJET end-setup begin-footing alter-printer font=5 point-size=6 print 'Contact Person:' (,90) bold alter-printer font=3 point-size=10 print $name (,107) underline end-footing Platform information: $sqr-platform : WINDOWS-NT $sqr-ver : SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999 Thanks in advance for any assistance! _____ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Tue Apr 3 14:50:00 2001 Date: Tue, 3 Apr 2001 14:44:22 -0500 From: Yuri Hunter Subject: Re: Printing to HP - Trouble changing point-size in courier font

Thanks, Jon.  That did the trick.

However, instead of replacing point-size, I added pitch as follows:                          

    alter-printer font=3 point-size=8 pitch=15      

I found a calculation for pitch on the archive as follows:      120/pitch=point-size

Does this seem appropriate? 

FINAL QUESTION:  Adding the pitch to just the one alter-printer stmt above affected all other 26 alter-printer stmts that changed font to courier.  The pitch was not impacted for other alter-printer stmts where font was Times-Roman but the alter-printer stmts that changed font to Courier were changed as if the pitch parm were used.  Why would only adding pitch parm to the one alter-printer stmt affect all the other courier stmts?  Is this expected?

>From: Jon Alsager

>Reply-To: sqr-users@list.iex.net
>To: SQR-USERS@list.iex.net
>Subject: Re: Printing to HP - Trouble changing point-size in courier font
>Date: Tue, 3 Apr 2001 08:15:22 -0600
>
>Try specifiying pitch instead of point-size for Courier.
>
>HTH
>
>Jon
>-----Original Message-----
>From: Yuri Hunter [mailto:lakef250@HOTMAIL.COM]
>Sent: Monday, April 02, 2001 1:48 PM
>To: SQR-USERS@list.iex.net
>Subject: Printing to HP - Trouble changing point-size in courier font
>
>
>Greetings to the group -
>
>I've written an SQR report that uses Times-Roman font (different sizes with
>some bold and limited use of boxes). There are some header and footer
>fields (e.g., Contact Person) that I pass as parameters to the program that
>I want to print in Courier to make it plain what fields have been entered by
>appearing they were "typed in."
>
>The problem I'm having is that when I issue the alter-printer command to
>change the font to Courier 10-pt, the font changes from Times-Roman to
>Courier, but the size is super small (like 5-pt or less!).
>
>I can't make the Courier point-size increase in size on the report output no
>matter what value I specify in the alter-printer point-size parameter. A
>sample of my code follows:
>
>#include 'setenv.sqc'
>
>begin-setup
> #include 'setup02b.sqc' !Printer specifications for HPLASERJET
>end-setup
>
>begin-footing
> alter-printer font=5 point-size=6
> print 'Contact Person:' (,90) bold
> alter-printer font=3 point-size=10
> print $name (,107) underline
>end-footing
>
>
>Platform information:
>
> $sqr-platform : WINDOWS-NT
> $sqr-ver : SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999
>
>
>Thanks in advance for any assistance!
>
> _____
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>


Get your FREE download of MSN Explorer at http://explorer.msn.com

From owner-sqr-users@list.iex.net Tue Apr 3 15:12:27 2001 Date: Tue, 3 Apr 2001 14:09:27 -0600 From: Jon Alsager Subject: Re: Printing to HP - Trouble changing point-size in courier font Yuri -- Yes, the formula does seem appropriate While I'm still fairly new at SQR, my suspicion is that when pitch is defined, it holds that value until its changed. In nearly all of the programs that I have worked on where the alter-printer command is used, both the font and pitch/point-size are stated each time. So I have not necessarily seen what you are experiencing. But it does not suprise me. Jon -----Original Message----- From: Yuri Hunter [mailto:lakef250@HOTMAIL.COM] Sent: Tuesday, April 03, 2001 1:44 PM To: SQR-USERS@list.iex.net Subject: Re: Printing to HP - Trouble changing point-size in courier font Thanks, Jon. That did the trick. However, instead of replacing point-size, I added pitch as follows: alter-printer font=3 point-size=8 pitch=15 I found a calculation for pitch on the archive as follows: 120/pitch=point-size Does this seem appropriate? FINAL QUESTION: Adding the pitch to just the one alter-printer stmt above affected all other 26 alter-printer stmts that changed font to courier. The pitch was not impacted for other alter-printer stmts where font was Times-Roman but the alter-printer stmts that changed font to Courier were changed as if the pitch parm were used. Why would only adding pitch parm to the one alter-printer stmt affect all the other courier stmts? Is this expected? >From: Jon Alsager >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Printing to HP - Trouble changing point-size in courier font >Date: Tue, 3 Apr 2001 08:15:22 -0600 > >Try specifiying pitch instead of point-size for Courier. > >HTH > >Jon >-----Original Message----- >From: Yuri Hunter [mailto:lakef250@HOTMAIL.COM] >Sent: Monday, April 02, 2001 1:48 PM >To: SQR-USERS@list.iex.net >Subject: Printing to HP - Trouble changing point-size in courier font > > >Greetings to the group - > >I've written an SQR report that uses Times-Roman font (different sizes with >some bold and limited use of boxes). There are some header and footer >fields (e.g., Contact Person) that I pass as parameters to the program that >I want to print in Courier to make it plain what fields have been entered by >appearing they were "typed in." > >The problem I'm having is that when I issue the alter-printer command to >change the font to Courier 10-pt, the font changes from Times-Roman to >Courier, but the size is super small (like 5-pt or less!). > >I can't make the Courier point-size increase in size on the report output no >matter what value I specify in the alter-printer point-size parameter. A >sample of my code follows: > >#include 'setenv.sqc' > >begin-setup > #include 'setup02b.sqc' !Printer specifications for HPLASERJET >end-setup > >begin-footing > alter-printer font=5 point-size=6 > print 'Contact Person:' (,90) bold > alter-printer font=3 point-size=10 > print $name (,107) underline >end-footing > > >Platform information: > > $sqr-platform : WINDOWS-NT > $sqr-ver : SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999 > > >Thanks in advance for any assistance! > > _____ > >Get your FREE download of MSN Explorer at http://explorer.msn.com > _____ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Mon Apr 2 17:06:59 2001 Date: Mon, 2 Apr 2001 14:58:28 -0700 From: Chris Campbell Subject: SQR - Source Control - Endevor ? Hello everyone, Just wondering what everyone was using for source control / change management for their SQR programs. I'm particularly interested in the MVS environment. We currently have Endevor on our mainframe, and I was wondering if anyone else was using Endevor for their PeopleSoft SQR's (or COBOLs for that matter). Thanks, Chris _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Tue Apr 3 08:56:59 2001 Date: Tue, 3 Apr 2001 09:52:50 -0400 From: "Schelske, Steve K." Subject: Re: SQR - Source Control - Endevor ? Yes, we use Endevor for version management and change control on the mainframe platform. We have not experienced any significant *new* problems using Endevor for PeopleSoft elements. The biggest issue we face currently with Endevor is that it just takes a long time to migrate elements through for a large implementation. I just put through a new release of PeopleTools and it was taking between 10 and 12 hours to move 600 elements from one environment to another. Let me know if you have any specific things you'd like to discuss. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Chris Campbell Sent: Monday, April 02, 2001 5:58 PM To: SQR-USERS@list.iex.net Subject: SQR - Source Control - Endevor ? Hello everyone, Just wondering what everyone was using for source control / change management for their SQR programs. I'm particularly interested in the MVS environment. We currently have Endevor on our mainframe, and I was wondering if anyone else was using Endevor for their PeopleSoft SQR's (or COBOLs for that matter). Thanks, Chris _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Mon Apr 2 22:56:50 2001 Date: Mon, 2 Apr 2001 21:45:56 -0600 From: Ed Kelly Subject: image in report Don, and others: I have found a great utility call ImageConverter Plus from FCoderSoft. If converts 20 different formats including GIF to JPEG. http://www.fcodersoft.com/products/imgconv.htm Supported formats: • reads 20 graphic formats (BMP, DIB, RLE, TIFF, GIF, JPEG, PNG, PCX, DCX, TGA, DXF, EPSF, WMF, WPG, IMG, PCD, ICO, CUR, ANI and FMF); • converts into 12 formats (TIFF, GIF, BMP, PCX, DCX, EPS, TGA, JPEG, PNG, WMF, EMF, FMF). Hope this helps. Ed Kelly _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Tue Apr 3 08:49:32 2001 Date: Tue, 3 Apr 2001 09:33:44 -0400 From: "Nemes, Deanna" Subject: Job Announcement Company: Idea Integration (www.idea.com) Location: Philadelphia Status: Fulltime/Hourly/Contract (any will do) Timeframe: ASAP thru July 24, 2001 Title: SQR Reporting Architect Respond to deanna.nemes@idea.com SQR Reporting architect that can analyze Business requirements, create report specifications and required templates, understand relational databases, and data warehousing, and can code, test, and publish reports in SQR. ********For more information please respond DIRECTLY to deanna.nemes@idea.com********** Deanna M. Nemes Idea Integration E-mail: deanna.nemes@idea.com From owner-sqr-users@list.iex.net Tue Apr 3 09:34:21 2001 Date: Tue, 3 Apr 2001 10:31:23 -0400 From: "Nemes, Deanna" Subject: Re: Job Announcement Hi Nicholas, Thanks for the response - but this position is pretty visible and work needs to be done on site! Deanna M. Nemes Idea Integration E-mail: deanna.nemes@idea.com -----Original Message----- From: Nicolas Moscaritolo [mailto:Nicolas.Moscaritolo@brio.com] Sent: Tuesday, April 03, 2001 10:09 AM To: 'Nemes, Deanna ' Subject: RE: Job Announcement Deanna, If they are interested in part time off-site programming, I am available. I have been programming in SQR for 12 years. -----Original Message----- From: Nemes, Deanna To: SQR-USERS@list.iex.net Sent: 4/3/01 6:33 AM Subject: Job Announcement Company: Idea Integration (www.idea.com) Location: Philadelphia Status: Fulltime/Hourly/Contract (any will do) Timeframe: ASAP thru July 24, 2001 Title: SQR Reporting Architect Respond to deanna.nemes@idea.com SQR Reporting architect that can analyze Business requirements, create report specifications and required templates, understand relational databases, and data warehousing, and can code, test, and publish reports in SQR. ********For more information please respond DIRECTLY to deanna.nemes@idea.com********** Deanna M. Nemes Idea Integration E-mail: deanna.nemes@idea.com From owner-sqr-users@list.iex.net Tue Apr 3 10:03:33 2001 Date: Tue, 3 Apr 2001 10:51:18 -0400 From: "Hood Louise (app1lxh)" Subject: Re: Job Announcement Now EVERYBODY IN THIS LISTING KNOWS that Deanna is a headhunter AND DOES NOT EXERCISE DISCRETION in dealing with individuals. Better find a new line of work. . . . -----Original Message----- From: Nemes, Deanna [mailto:Deanna.Nemes@IDEA.COM] Sent: Tuesday, April 03, 2001 10:31 AM To: SQR-USERS@list.iex.net Subject: Re: Job Announcement Hi Nicholas, Thanks for the response - but this position is pretty visible and work needs to be done on site! Deanna M. Nemes Idea Integration E-mail: deanna.nemes@idea.com -----Original Message----- From: Nicolas Moscaritolo [mailto:Nicolas.Moscaritolo@brio.com] Sent: Tuesday, April 03, 2001 10:09 AM To: 'Nemes, Deanna ' Subject: RE: Job Announcement Deanna, If they are interested in part time off-site programming, I am available. I have been programming in SQR for 12 years. -----Original Message----- From: Nemes, Deanna To: SQR-USERS@list.iex.net Sent: 4/3/01 6:33 AM Subject: Job Announcement Company: Idea Integration (www.idea.com) Location: Philadelphia Status: Fulltime/Hourly/Contract (any will do) Timeframe: ASAP thru July 24, 2001 Title: SQR Reporting Architect Respond to deanna.nemes@idea.com SQR Reporting architect that can analyze Business requirements, create report specifications and required templates, understand relational databases, and data warehousing, and can code, test, and publish reports in SQR. ********For more information please respond DIRECTLY to deanna.nemes@idea.com********** Deanna M. Nemes Idea Integration E-mail: deanna.nemes@idea.com From owner-sqr-users@list.iex.net Fri Apr 13 16:26:38 2001 Date: Fri, 13 Apr 2001 17:22:22 -0400 From: Kenneth Lawrence Gartman Subject: Re: Job Announcement Hi, Deanna! Is this opening still active? Ken Gartman "Nemes, Deanna" wrote: > Company: Idea Integration (www.idea.com) > Location: Philadelphia > Status: Fulltime/Hourly/Contract (any will do) > Timeframe: ASAP thru July 24, 2001 > Title: SQR Reporting Architect > Respond to deanna.nemes@idea.com > > SQR Reporting architect that can analyze Business requirements, create > report specifications and required templates, understand relational > databases, and data warehousing, and can code, test, and publish reports in > SQR. > > ********For more information please respond DIRECTLY to > deanna.nemes@idea.com********** > > Deanna M. Nemes > Idea Integration > > E-mail: deanna.nemes@idea.com From owner-sqr-users@list.iex.net Tue Apr 3 11:11:29 2001 Date: Tue, 3 Apr 2001 15:57:40 -0000 From: Tejus Shah Subject: Multi server architecture in Brio Hi, I am trying to configure mulit server architecture for load balancing in Brio. I have a manager server and a node server. I am not able to syncronize both the servers. Also I am not too sure of the configuration paramateres which needs to be set up in both the servers. When ever I register a new document or a OCE file on the manager node it is not getting replicated on the node server. Can anyone tell me what configuration parameters needs to be set up . Also if there is any documentation available please send me across. Any help is highly appreciated Thanks and Regards Tejus Shah _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Tue Apr 3 16:02:31 2001 Date: Tue, 3 Apr 2001 16:44:52 -0400 From: Mike Wheeler Subject: SQR for PowerBuilder and iPlanet Hi, I am researching what it will take to use SQR in a PowerBuilder 5.04 application. The application will be running on a windows NT machine. Is it possible to trigger the SQR from the PowerBuilder app, and if so, how would I do this. I also am investigating how to use SQR with an iPlanet web-server. I am developing using Java 1.3. Does anyone know how I can incorporate SQR in my java code? Or at least point me in a direction where I can read how to do this. Thanks, Mike From owner-sqr-users@list.iex.net Wed Apr 4 08:26:41 2001 Date: Wed, 4 Apr 2001 09:25:44 -0400 From: Scott Eubank Subject: Re: SQR for PowerBuilder and iPlanet Mike , We successfully called an SQR from VB in the client server mode. You will have to have SQR availiable to the Client machine, you cant bundle it with VB or PB , I think. But we simply used the command line statements , putting each part into a variable then kicking of the API to run a shell commmand. I dont know how to do this in PB but I bet you can find out. TRY www.planetsourcecode.com for code on how to execute shell commands from PB. GOOD Luck .. Let us know your results $A = "P:\FDM753\sqrbinw\SQRW.EXE" $B = "C:\TEMP\USER\SQR\gls9002a.sqr" $C = "FSRPT/fsrpt/fsrpt" $D = "-ip:\FDM753\sqr\;" $E = "C:\SCOTTs_DOCs\SQR's\GL_SQRs\" $F = "-mp:\FDM753\sqr\allmaxes.max" $G = "-fC:\Temp\" $H = "-ZIFp:\FDM753\sqr\pssqr.ini" runsqr = $A + $B + $C + $D + $E + $F + $G + $H EXECUTE_SHELL_COMMAND (runsqr & sqrparameter) -----Original Message----- From: Mike Wheeler [mailto:Michael_Wheeler@PUTNAMINV.COM] Sent: Tuesday, April 03, 2001 4:45 PM To: SQR-USERS@list.iex.net Subject: SQR for PowerBuilder and iPlanet Hi, I am researching what it will take to use SQR in a PowerBuilder 5.04 application. The application will be running on a windows NT machine. Is it possible to trigger the SQR from the PowerBuilder app, and if so, how would I do this. I also am investigating how to use SQR with an iPlanet web-server. I am developing using Java 1.3. Does anyone know how I can incorporate SQR in my java code? Or at least point me in a direction where I can read how to do this. Thanks, Mike From owner-sqr-users@list.iex.net Wed Apr 4 08:24:42 2001 Date: Wed, 4 Apr 2001 09:20:33 -0400 From: "Schelske, Steve K." Subject: SQRW not a valid Windows NT application I'm trying to run SQRW from Windows Explorer and I get the following message in an error dialog: q:\fsdev\ifs\sqrbinw\sqrw.exe is not a valid Windows NT application. I can copy sqrw.exe to a different directory and it works fine. I can copy a working sqrw.exe into q:\fsdev\ifs\sqrbinw and it fails with the same error. I tried reinstalling SQR into the "bad" directory and I get the same error. I have full permissions on all of the directories on this box. Any ideas as to what might be the problem? tia From owner-sqr-users@list.iex.net Wed Apr 4 09:16:02 2001 Date: Wed, 4 Apr 2001 10:08:55 -0400 From: Joan Keith Subject: Can SQR be invoked from Powerbuilder? from IPlanet I have a powerbuilder application (version 5.04) that needs to create some reports. I was hoping to use SQR, but I'm not sure if I can. Do you know of anyone who I can talk to about this? If it can be done, I'm not sure how it can be triggered from within the application. I also have the same questions for an iPlanet application using Java 1.3. From owner-sqr-users@list.iex.net Wed Apr 4 09:42:25 2001 Date: Wed, 4 Apr 2001 10:38:47 -0400 From: Mario Mendoza Subject: Re: Can SQR be invoked from Powerbuilder? from IPlanet The (very) short answer is that yes, you can generate SQR reports from PB. Set up a table with Report_id, sqr_path, output_path, user_lookup, args .... The front end application should connect PB to the location of the SQR (in our case a Unix box) and the SQR will take in the args passed in from PB. > -----Original Message----- > From: Joan Keith [SMTP:Joan_Keith@PUTNAMINV.COM] > Sent: April 04, 2001 10:09 AM > To: SQR-USERS@list.iex.net > Subject: Can SQR be invoked from Powerbuilder? from IPlanet > > I have a powerbuilder application (version 5.04) that needs to create some > reports. I was hoping to use SQR, but I'm not sure if I can. Do you know > of anyone who I can talk to about this? If it can be done, I'm not sure > how it can be triggered from within the application. I also have the same > questions for an iPlanet application using Java 1.3. From owner-sqr-users@list.iex.net Wed Apr 4 18:12:38 2001 Date: Thu, 5 Apr 2001 01:07:45 +0200 From: Franck Masson Subject: Re: Can SQR be invoked from Powerbuilder? from IPlanet This is a multi-part message in MIME format. --------------B76B1500C7AD01F1135158B0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Joan, 1) Java >From java you can either call the executable sqr or you can call the C code of SQR Look to the documentation of SQR there is a chapter that explain this not for java but for a C code or a Perl code 2) Powerbuilder with SQR/Brio.report we provide an activex call Brio.Report Activator Brio.Report Activator is a set of ActiveX controls that allow you to run SQR programs launched from within your application, and to view and print the output within the same application. These ActiveX Controls are: SQR ActiveX Control For running SQR programs on the local PC or remote servers. Brio.Report Viewer ActiveX Control For viewing the report output. The report can also be printed, or sent to other people via e-mail. SQR Print ActiveX Control For printing the report output. Other software components include: · A Visual Basic Sample Application · Online help Look to your CD or call your BRIO sales REP Franck, Joan Keith wrote: > > I have a powerbuilder application (version 5.04) that needs to create some > reports. I was hoping to use SQR, but I'm not sure if I can. Do you know > of anyone who I can talk to about this? If it can be done, I'm not sure > how it can be triggered from within the application. I also have the same > questions for an iPlanet application using Java 1.3. --------------B76B1500C7AD01F1135158B0 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Franck Masson Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Franck Masson n: ;Franck Masson org: Brio Technology EMEA adr;dom: Le capitol;;55 av. des champs Pierreux;Nanterre;92000;; email;internet: franck.masson@brio.com title: Sales Manager Northern Europe tel;work: 33 1 55 69 36 00 tel;fax: 33 1 47 25 02 59 tel;home: Mobile : 33 6 84 80 17 05 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------B76B1500C7AD01F1135158B0-- From owner-sqr-users@list.iex.net Wed Apr 4 09:24:02 2001 Date: Wed, 4 Apr 2001 10:20:06 -0400 From: "Weinstein, Bruce" Subject: SQL statement issue Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com From owner-sqr-users@list.iex.net Wed Apr 4 09:31:28 2001 Date: Wed, 4 Apr 2001 10:28:01 -0400 From: Paul Hoyte Subject: Re: SQL statement issue Yes that will work just fine. It is used to actually trigger the execution of the sql statement but is only needed if you have more that one sql statement in a sql paragraph..... Regards, Paul Hoyte Sharidionne, Inc. (248) 559-6868 www.sharidionne.com phoyte@sharidionne.com -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Weinstein, Bruce Sent: Wednesday, April 04, 2001 10:20 AM To: SQR-USERS@list.iex.net Subject: SQL statement issue Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com From owner-sqr-users@list.iex.net Wed Apr 4 09:36:05 2001 Date: Wed, 4 Apr 2001 10:28:29 -0400 From: "Johnson, Dan" Subject: Re: SQL statement issue You may actually need to semi-colons (not sure). However, if all you are doing is a commit there is an SQR keyword that you can use anywhere outside of a SQL block. The keyword is commit. >>>>>>>>>Bruce sent Sent: Wednesday, April 04, 2001 10:20 AM To: SQR-USERS@list.iex.net Subject: SQL statement issue Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com From owner-sqr-users@list.iex.net Wed Apr 4 09:33:13 2001 Date: Wed, 4 Apr 2001 09:30:50 -0500 From: "Cook, Andy" Subject: Re: SQL statement issue I have used the semicolon without any error, but I took it out and it seemed to make no difference. I have only used it when inserting or selecting, not when doing a commit. I do not know if this makes a difference. Hope this helps. -----Original Message----- From: Weinstein, Bruce [mailto:bweinste@NRCAN.GC.CA] Sent: Wednesday, April 04, 2001 9:20 AM To: SQR-USERS@list.iex.net Subject: SQL statement issue Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com ************************************************************ Omaha World-Herald Company computer systems are for business use only. This e-mail was scanned by MailSweeper ************************************************************ From owner-sqr-users@list.iex.net Wed Apr 4 09:39:46 2001 Date: Wed, 4 Apr 2001 10:34:32 -0400 From: Mike Morgan Subject: Re: SQL statement issue You would use this if you are 'stacking' SQL statements, i.e.; putting 2 or more SQL statements in the same BEGIN-SQL procedure. -----Original Message----- From: Weinstein, Bruce [mailto:bweinste@NRCAN.GC.CA] Sent: Wednesday, April 04, 2001 10:20 AM To: SQR-USERS@list.iex.net Subject: SQL statement issue Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com ************************************************************** NOTICE: The information contained in this e-mail is confidential and may be privileged or otherwise protected from disclosure. This e-mail is intended solely for the use of the named addressee. Please be aware that any other use, printing, copying, disclosure or dissemination may be subject to legal restriction. If you are not the intended recipient, please notify us immediately by return e-mail to the sender. From owner-sqr-users@list.iex.net Wed Apr 4 09:45:22 2001 Date: Wed, 4 Apr 2001 11:39:27 -0300 From: Peter Clark Subject: Re: SQL statement issue Hi Bruce, >From the manual: "If a single paragraph contains more than one SQL statement, each statement *except the last* must be terminated by a semicolon." (emphasis mine) This would seem to imply that your single line paragraph does not need a semicolon. According the the last Cluster Departmental Technical Survey, you are an Oracle shop, so you could also get away with using a double semicolon ("For Oracle, PL/SQL is supported in a BEGIN-SQL paragraph. This requires an additional semicolon at the end of each PL/SQL statement.") e.g. BEGIN-SQL COMMIT; ; END-SQL HTH, Peter >>> "Weinstein, Bruce" 2001/04/04 11:20:06 am >>> Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com From owner-sqr-users@list.iex.net Wed Apr 4 10:16:19 2001 Date: Wed, 4 Apr 2001 11:12:58 -0400 From: "Jamadagni, Rajendra" Subject: Re: SQL statement issue Me thinks that (at-least for oracle) if you enclose something in begin-sql ... end-sql one has to use TWO semicolons. begin-sql commit;; end-sql HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Wed Apr 4 12:39:39 2001 Date: Wed, 4 Apr 2001 10:33:10 -0700 From: David Donnelly Subject: Re: SQL statement issue In some earlier versions of SQR (I don't remember how early, maybe v3), under Oracle, using the COMMIT command within BEGIN-SQL would blow up. You had to use the separate SQR COMMIT command outside BEGIN-SQL. If you are having a problem with commit within begin-sql, try SQR command instead. At 10:20 AM 4/4/2001 -0400, you wrote: >Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). > >We have following code... > >BEGIN-SQL > COMMIT; >END-SQL > >Is this OK to do in SQR? > >Thanks.. > > .Bruce > >Bruce Weinstein >E-Mail: bruceweinstein@canada.com Dave Donnelly ISIS BioComp phone (909) 677-2446 fax (781) 207-5533 From owner-sqr-users@list.iex.net Wed Apr 4 09:42:25 2001 Date: Wed, 4 Apr 2001 10:40:00 -0700 From: "Charles A. Harkness" Subject: Re: SQL statement issue Bruce, Yes, you should use the semicolon as you would normally do with sql. Chuck At 10:20 AM 4/4/01 -0400, you wrote: >Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). > >We have following code... > >BEGIN-SQL > COMMIT; >END-SQL > >Is this OK to do in SQR? > >Thanks.. > > .Bruce > >Bruce Weinstein >E-Mail: bruceweinstein@canada.com > > From owner-sqr-users@list.iex.net Wed Apr 4 10:01:53 2001 Date: Wed, 4 Apr 2001 16:51:00 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20SQL=20statement=20issue?= yes, it is. But you have also a commit command under SQR ! Cordialement, Philippe. >>> "Weinstein, Bruce" 04/04/01 16h20 >>> Can anyone tell me if it is OK to end a SQL statement with a ;(semi-colon). We have following code... BEGIN-SQL COMMIT; END-SQL Is this OK to do in SQR? Thanks.. .Bruce Bruce Weinstein E-Mail: bruceweinstein@canada.com From owner-sqr-users@list.iex.net Wed Apr 4 22:26:45 2001 Date: Thu, 5 Apr 2001 13:22:32 +1000 From: Daniel Archibald Subject: Selecting EMPLOYEE_PHOTO column of type LONG RAW using SQR Hi, I was just wondering if anyone has ever tried selecting a LONG RAW column from an Oracle database using SQR. The field EMPLOYEE_PHOTO is storing a BMP-File image, the image is displayed on a PeopleSoft panel. When executing the SQL against the database to select this column the following error is displayed: ORA-00932: inconsistent datatypes What I am trying to do is select the image from the database in the SQR and then print it on a report. Any assistance on overcoming this problem would be greatly appreciated. Thanks in advance. Regards, Dan Archibald. Environment: Oracle 8.0.5.0.0 SQR V4.3.4 PeopleSoft 7.6 From owner-sqr-users@list.iex.net Thu Apr 5 06:05:08 2001 Date: Thu, 5 Apr 2001 12:56:52 +0200 From: Arnon Oppenheimer Subject: From OpenIngres to Oracle Hi, I need to make a list of issues for a site that plan to move from = CA-OpenIngres to Oracle. Do you have some tips for us ? (about SQR of course ;-) Thanks in advance. Regards, Arnon Oppenheimer ------------------------------------------------------------------- SEMECH SOFTWARE MARKETING LTD. TEL : (972) - 3 - 5333144 FAX : (972) - 3 - 5333132 Email: arnono@semech.co.il ------------------------------------------------------------------- From owner-sqr-users@list.iex.net Thu Apr 5 13:46:28 2001 Date: Thu, 5 Apr 2001 09:58:57 -0700 From: David Donnelly Subject: Re: From OpenIngres to Oracle Hi Aaron, First of all, be happy you don't have to go from Oracle to Ingres! I have an extensive application that had to run both in Oracle and Ingres, but it evolved in the early 1990s. I generally found Ingres (version 2.28f) more restrictive than Oracle, and of course there are the semantic differences to be addressed, but in general there weren't any SQR issues. There were some things that did not work correctly with Ingres, notably determining the correct type when functions were used in selects, but since you are going FROM Ingres these issues should have already been ironed out. Here are some of my notes: Since Oracle converts datatypes more automatically than Ingres, you may find many type conversions you no longer need, but they are fine to keep. The date processing in Ingres is much cleaner than Oracle; basically if it looks like a date, Ingres will convert it from char to date type. One odd thing: dates stored with times of midnight in Ingres are converted to character as if there were no time; Oracle will return a time of 00:00:00. In Ingres, "where not exists" performs very poorly, but this is not true in Oracle. In Ingres, there can be zero-length character strings. These are different from NULL. In Oracle, these would appear to be NULL. I'm not sure if this is true any more. In Ingres, there is a maximum length of a line in a begin-select; I think it was 255, and SQR used to blow up if you exceeded it. I don't think this happens in Oracle. Semantics: char vs to_char date vs to_date date('now') or date('today') vs sysdate lower vs lowercase pad vs rpad locate vs instr + vs || date_trunc vs date INT4 (etc) vs floor "as" in column aliasing vs none (doesn't affect SQR) COPY from/to table not in Oracle system catalog differences updates with coordinated subqueries have vastly different syntax Hardly anyone seems to use Ingres anymore; please feel free to email me if you have any questions. Dave At 12:56 PM 4/5/2001 +0200, you wrote: >Hi, > >I need to make a list of issues for a site that plan to move from CA-OpenIngres to Oracle. >Do you have some tips for us ? (about SQR of course ;-) > >Thanks in advance. > >Regards, >Arnon Oppenheimer > ------------------------------------------------------------------- >SEMECH SOFTWARE MARKETING LTD. >TEL : (972) - 3 - 5333144 >FAX : (972) - 3 - 5333132 >Email: arnono@semech.co.il >------------------------------------------------------------------- Dave Donnelly ISIS BioComp phone (909) 677-2446 fax (781) 207-5533 From owner-sqr-users@list.iex.net Thu Apr 5 08:58:12 2001 Date: Thu, 5 Apr 2001 09:55:41 -0400 From: "Wagner, Jennifer A" Subject: SQL in SQR I'm trying to create temp tables in my SQR program. It will allow me to create one, but I can't seem to get it to create more than one. My ultimate goal would be to have a a multi-module program where I select different things from different tables and then insert them into the various temp tables. Do you know if you can create more than one temp table in a SQL paragraph in SQR? My temp table create statement looks like this: begin-setup page-size 56 132 BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql end-setup and the insert statement looks like this: begin-procedure INSERT_TEMP BEGIN-SQL INSERT INTO PMCGEN_TEMP (GENERIC_NAME) values (&GEN); END-SQL COMMIT end-procedure That works fine. But, I've tried to add another create table... and insert into... and I get the message: "table for view does not exist" for the second table. Thanks, Jenny From owner-sqr-users@list.iex.net Thu Apr 5 09:45:26 2001 Date: Thu, 5 Apr 2001 09:41:59 -0500 From: the dragon Subject: Re: SQL in SQR show us the code you're attempting to use to create multiple tables. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- I'm trying to create temp tables in my SQR program. It will allow me to create one, but I can't seem to get it to create more than one. My ultimate goal would be to have a a multi-module program where I select different things from different tables and then insert them into the various temp tables. Do you know if you can create more than one temp table in a SQL paragraph in SQR? My temp table create statement looks like this: begin-setup page-size 56 132 BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql end-setup and the insert statement looks like this: begin-procedure INSERT_TEMP BEGIN-SQL INSERT INTO PMCGEN_TEMP (GENERIC_NAME) values (&GEN); END-SQL COMMIT end-procedure That works fine. But, I've tried to add another create table... and insert into... and I get the message: "table for view does not exist" for the second table. Thanks, Jenny _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 5 09:47:47 2001 Date: Thu, 5 Apr 2001 10:47:34 -0400 From: "Wagner, Jennifer A" Subject: Re: SQL in SQR Well, I've tried various and assorted things... this is the most recent one I tried: BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)), create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql end-setup I also tried it without the comma separating the two create tables and I tried it with the semi-colon after the first table. Also I tried this: BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql Each time it seems to create the first but the second comes up with the error: table or view does not exist when it goes to do the insert. Thanks, Jenny > -----Original Message----- > From: the dragon [mailto:ceprn@hotmail.com] > Sent: Thursday, April 05, 2001 10:42 AM > To: sqr-users@list.iex.net > Cc: WAGNERJ@CDER.FDA.GOV > Subject: Re: SQL in SQR > > > show us the code you're attempting to use to create multiple tables. > > clark 'the dragon' willis > dragon enterprises, consulting services > > > ----Original Message Follows---- > > I'm trying to create temp tables in my SQR program. It will > allow me to > create one, but I can't seem to get it to create more than > one. My ultimate > goal would be to have a a multi-module program where I select > different > things from different tables and then insert them into the > various temp > tables. > > Do you know if you can create more than one temp table in a > SQL paragraph in > SQR? > > My temp table create statement looks like this: > > begin-setup > page-size 56 132 > > BEGIN-SQL ON-ERROR=SKIP > > CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) > TABLESPACE USER_ACCOUNTS > STORAGE > (INITIAL 5000K > NEXT 500K); > end-sql > end-setup > > and the insert statement looks like this: > > begin-procedure INSERT_TEMP > BEGIN-SQL > INSERT INTO PMCGEN_TEMP (GENERIC_NAME) > values (&GEN); > END-SQL > COMMIT > end-procedure > > > That works fine. But, I've tried to add another create > table... and insert > into... and I get the message: "table for view does not > exist" for the > second table. > > > Thanks, > > > Jenny > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > From owner-sqr-users@list.iex.net Thu Apr 5 09:54:10 2001 Date: Thu, 5 Apr 2001 10:50:34 -0400 From: "Jamadagni, Rajendra" Subject: Re: SQL in SQR Jennifer, remove on-error=skip and see if second (and next one) create table throws any error. I assume that you have sufficient space in the specified tablespace. HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Thu Apr 5 09:56:38 2001 Date: Thu, 5 Apr 2001 10:56:17 -0400 From: "Wagner, Jennifer A" Subject: Re: SQL in SQR Thanks, Raj... No, I don't have sufficient space in the tablespace, as that is the error I get! Hmmm... not sure how to do that. Thing is, I don't even have those create writes...I'm using someone else's account to run the program and was using her initial program (just tweaking it). I'll have to see about that. Thanks again Jenny > -----Original Message----- > From: Jamadagni, Rajendra [mailto:rajendra.jamadagni@espn.com] > Sent: Thursday, April 05, 2001 10:51 AM > To: 'sqr-users@list.iex.net'; 'WAGNERJ@CDER.FDA.GOV' > Subject: RE: SQL in SQR > > > Jennifer, > > remove on-error=skip and see if second (and next one) create > table throws > any error. I assume that you have sufficient space in the specified > tablespace. > > HTH > Raj > ______________________________________________________ > Rajendra Jamadagni MIS, ESPN Inc. > Rajendra dot Jamadagni at ESPN dot com > Any opinion expressed here is personal and doesn't reflect > that of ESPN Inc. > > QOTD: Any clod can have facts, but having an opinion is an art ! > > ********************************************************************* > > This e-mail message is confidential, intended only for the > named recipient(s) above and may contain information that is > privileged, attorney work product or exempt from disclosure > under applicable law. If you have received this message in > error, or are not the named recipient(s), please immediately > notify ESPN at (860) 766-2000 and delete this e-mail message > from your computer, Thank you. > > ********************************************************************* > > From owner-sqr-users@list.iex.net Thu Apr 5 10:02:35 2001 Date: Thu, 5 Apr 2001 11:01:19 -0400 From: "Wagner, Jennifer A" Subject: Re: SQL in SQR It's working now... I cut the space requirements in half... I just don't know if it will be enough space for all the temp tables I need to create... so I may have to ask for more space or something. Thanks!!! > -----Original Message----- > From: Jamadagni, Rajendra [mailto:rajendra.jamadagni@espn.com] > Sent: Thursday, April 05, 2001 10:51 AM > To: 'sqr-users@list.iex.net'; 'WAGNERJ@CDER.FDA.GOV' > Subject: RE: SQL in SQR > > > Jennifer, > > remove on-error=skip and see if second (and next one) create > table throws > any error. I assume that you have sufficient space in the specified > tablespace. > > HTH > Raj > ______________________________________________________ > Rajendra Jamadagni MIS, ESPN Inc. > Rajendra dot Jamadagni at ESPN dot com > Any opinion expressed here is personal and doesn't reflect > that of ESPN Inc. > > QOTD: Any clod can have facts, but having an opinion is an art ! > > ********************************************************************* > > This e-mail message is confidential, intended only for the > named recipient(s) above and may contain information that is > privileged, attorney work product or exempt from disclosure > under applicable law. If you have received this message in > error, or are not the named recipient(s), please immediately > notify ESPN at (860) 766-2000 and delete this e-mail message > from your computer, Thank you. > > ********************************************************************* > > From owner-sqr-users@list.iex.net Thu Apr 5 10:40:31 2001 Date: Thu, 5 Apr 2001 11:35:49 -0400 From: ANDERSD2 Subject: Re: SQL in SQR Are you sure you need to create TEMP tables? Would ARRAYS work with your scenario?? ARRAYS are generally quicker than tables, require no DBA/security clearance, and are temporary by nature. -----Original Message----- From: Wagner, Jennifer A [mailto:WAGNERJ@CDER.FDA.GOV] Sent: Thursday, April 05, 2001 11:01 AM To: SQR-USERS@list.iex.net Subject: Re: SQL in SQR It's working now... I cut the space requirements in half... I just don't know if it will be enough space for all the temp tables I need to create... so I may have to ask for more space or something. Thanks!!! > -----Original Message----- > From: Jamadagni, Rajendra [mailto:rajendra.jamadagni@espn.com] > Sent: Thursday, April 05, 2001 10:51 AM > To: 'sqr-users@list.iex.net'; 'WAGNERJ@CDER.FDA.GOV' > Subject: RE: SQL in SQR > > > Jennifer, > > remove on-error=skip and see if second (and next one) create > table throws > any error. I assume that you have sufficient space in the specified > tablespace. > > HTH > Raj > ______________________________________________________ > Rajendra Jamadagni MIS, ESPN Inc. > Rajendra dot Jamadagni at ESPN dot com > Any opinion expressed here is personal and doesn't reflect > that of ESPN Inc. > > QOTD: Any clod can have facts, but having an opinion is an art ! > > ********************************************************************* > > This e-mail message is confidential, intended only for the > named recipient(s) above and may contain information that is > privileged, attorney work product or exempt from disclosure > under applicable law. If you have received this message in > error, or are not the named recipient(s), please immediately > notify ESPN at (860) 766-2000 and delete this e-mail message > from your computer, Thank you. > > ********************************************************************* > > From owner-sqr-users@list.iex.net Thu Apr 5 10:49:30 2001 Date: Thu, 5 Apr 2001 11:42:01 -0400 From: "Jamadagni, Rajendra" Subject: Re: SQL in SQR IMHO The drawback of arrays is also that you hace to specify an upper bound limit and SQR will allocate that much of memory. So, arrays don't turn out to be dynamically extendable and also I loose the wonderful DMLs facility on arrays. I do believe arrays have their own place, but the flexibility offered by TEMP tables is much much more to overlook the required maintenance. Another drawback, arrays are linear ... Cheers Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! -----Original Message----- From: ANDERSD2 [mailto:ANDERSD2@OAKWOOD.ORG] Sent: Thursday, April 05, 2001 11:36 AM To: SQR-USERS@list.iex.net Subject: Re: SQL in SQR Are you sure you need to create TEMP tables? Would ARRAYS work with your scenario?? ARRAYS are generally quicker than tables, require no DBA/security clearance, and are temporary by nature. ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Thu Apr 5 09:14:24 2001 Date: Thu, 5 Apr 2001 16:08:48 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20SQL=20in=20SQR?= You can create several temp table by using several 'create table' orders in a paragraph begin-select with ;; order separator like 'commit;;'. Cordialement, Philippe. >>> "Wagner, Jennifer A" 05/04/01 15h55 >>> I'm trying to create temp tables in my SQR program. It will allow me to create one, but I can't seem to get it to create more than one. My ultimate goal would be to have a a multi-module program where I select different things from different tables and then insert them into the various temp tables. Do you know if you can create more than one temp table in a SQL paragraph in SQR? My temp table create statement looks like this: begin-setup page-size 56 132 BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql end-setup and the insert statement looks like this: begin-procedure INSERT_TEMP BEGIN-SQL INSERT INTO PMCGEN_TEMP (GENERIC_NAME) values (&GEN); END-SQL COMMIT end-procedure That works fine. But, I've tried to add another create table... and insert into... and I get the message: "table for view does not exist" for the second table. Thanks, Jenny From owner-sqr-users@list.iex.net Thu Apr 5 10:41:57 2001 Date: Thu, 5 Apr 2001 17:06:35 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20SQL=20in=20SQR?= try using this; BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K);; create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K);; commit;; end-sql Cordialement, Philippe. >>> "Wagner, Jennifer A" 05/04/01 16h47 >>> Well, I've tried various and assorted things... this is the most recent one I tried: BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)), create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql end-setup I also tried it without the comma separating the two create tables and I tried it with the semi-colon after the first table. Also I tried this: BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql Each time it seems to create the first but the second comes up with the error: table or view does not exist when it goes to do the insert. Thanks, Jenny > -----Original Message----- > From: the dragon [mailto:ceprn@hotmail.com] > Sent: Thursday, April 05, 2001 10:42 AM > To: sqr-users@list.iex.net > Cc: WAGNERJ@CDER.FDA.GOV > Subject: Re: SQL in SQR > > > show us the code you're attempting to use to create multiple tables. > > clark 'the dragon' willis > dragon enterprises, consulting services > > > ----Original Message Follows---- > > I'm trying to create temp tables in my SQR program. It will > allow me to > create one, but I can't seem to get it to create more than > one. My ultimate > goal would be to have a a multi-module program where I select > different > things from different tables and then insert them into the > various temp > tables. > > Do you know if you can create more than one temp table in a > SQL paragraph in > SQR? > > My temp table create statement looks like this: > > begin-setup > page-size 56 132 > > BEGIN-SQL ON-ERROR=SKIP > > CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) > TABLESPACE USER_ACCOUNTS > STORAGE > (INITIAL 5000K > NEXT 500K); > end-sql > end-setup > > and the insert statement looks like this: > > begin-procedure INSERT_TEMP > BEGIN-SQL > INSERT INTO PMCGEN_TEMP (GENERIC_NAME) > values (&GEN); > END-SQL > COMMIT > end-procedure > > > That works fine. But, I've tried to add another create > table... and insert > into... and I get the message: "table for view does not > exist" for the > second table. > > > Thanks, > > > Jenny > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > From owner-sqr-users@list.iex.net Thu Apr 5 10:56:19 2001 Date: Thu, 5 Apr 2001 11:44:29 -0400 From: "Jamadagni, Rajendra" Subject: =?iso-8859-1?Q?RE=3A_R=E9p=2E_=3A_Re=3A_SQL_in_SQR?= Philippe, CREATE TABLE is a DDL and I believe in most RDBMS, DDL perform an implicit COMMIT statement, so you don't actually need a commit for CREATE TABLE, and even if you have, it won't do any good. HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! -----Original Message----- From: LEBLANC Philippe FTC [mailto:p.leblanc@FRANCETELECOM.COM] Sent: Thursday, April 05, 2001 11:07 AM To: SQR-USERS@list.iex.net Subject: Rép. : Re: SQL in SQR try using this; BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K);; create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K);; commit;; end-sql ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Thu Apr 5 10:29:25 2001 Date: Thu, 5 Apr 2001 15:22:54 -0000 From: Tejus Shah Subject: Running Jobs in sequence in Broadcast server Hi, There are 5 jobs in broadcast server which I want to run in sequence one after the other. The second job should kick off as soon as the first job completion status has changed from "RUNNING" to something else. The Brio Repository is on SQL server and the jobs are connected to Oracle databases. Is there any way in Brio to achieve that?? The Data model option in Brio Query seems to be valid only if Repository and Job databases are same. Any help would be appreciated!! Thanks and Regards Tejus Shah _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Thu Apr 5 12:57:19 2001 Date: Thu, 5 Apr 2001 17:49:04 -0000 From: Tejus Shah Subject: Re: Running Jobs in sequence in Broadcast server Let me know how to unscribe from this list. Thanks Tejus Shah >From: David Lyons >Reply-To: sqr-users@list.iex.net >To: "'Tejus Shah '" >Subject: RE: Running Jobs in sequence in Broadcast server >Date: Thu, 5 Apr 2001 09:02:02 -0700 > > This list is an SQR/BrioReport user list. You may want to try joining >the >BrioQuery list on Yahoo clubs. > >-----Original Message----- >From: Tejus Shah >To: SQR-USERS@list.iex.net >Sent: 4/5/01 8:22 AM >Subject: Running Jobs in sequence in Broadcast server > >Hi, >There are 5 jobs in broadcast server which I want to run in sequence one >after the other. >The second job should kick off as soon as the first job completion >status >has changed from "RUNNING" to something else. >The Brio Repository is on SQL server and the jobs are connected to >Oracle >databases. >Is there any way in Brio to achieve that?? > >The Data model option in Brio Query seems to be valid only if Repository >and >Job databases are same. > >Any help would be appreciated!! > >Thanks and Regards >Tejus Shah > > > > > >________________________________________________________________________ >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Thu Apr 5 13:08:43 2001 Date: Thu, 5 Apr 2001 14:01:58 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Running Jobs in sequence in Broadcast server All you have to do is this: Send a message to listserv@list.iex.net with the following in the body of the message: unsubscribe sqr-users Tejus Shah on 04/05/2001 01:49:04 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Re: Running Jobs in sequence in Broadcast server Let me know how to unscribe from this list. Thanks Tejus Shah >From: David Lyons >Reply-To: sqr-users@list.iex.net >To: "'Tejus Shah '" >Subject: RE: Running Jobs in sequence in Broadcast server >Date: Thu, 5 Apr 2001 09:02:02 -0700 > > This list is an SQR/BrioReport user list. You may want to try joining >the >BrioQuery list on Yahoo clubs. > >-----Original Message----- >From: Tejus Shah >To: SQR-USERS@list.iex.net >Sent: 4/5/01 8:22 AM >Subject: Running Jobs in sequence in Broadcast server > >Hi, >There are 5 jobs in broadcast server which I want to run in sequence one >after the other. >The second job should kick off as soon as the first job completion >status >has changed from "RUNNING" to something else. >The Brio Repository is on SQL server and the jobs are connected to >Oracle >databases. >Is there any way in Brio to achieve that?? > >The Data model option in Brio Query seems to be valid only if Repository >and >Job databases are same. > >Any help would be appreciated!! > >Thanks and Regards >Tejus Shah > > > > > >________________________________________________________________________ >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Thu Apr 5 10:53:48 2001 Date: Thu, 5 Apr 2001 12:45:48 -0300 From: Peter Clark Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20SQL=20in=20SQR?= remembering, of course, that this (Phillipe's) syntax is only valid on Oracle. >>> LEBLANC Philippe FTC 2001/04/05 12:06:35 pm >>> try using this; BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K);; create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K);; commit;; end-sql Cordialement, Philippe. >>> "Wagner, Jennifer A" 05/04/01 16h47 >>> Well, I've tried various and assorted things... this is the most recent one I tried: BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)), create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql end-setup I also tried it without the comma separating the two create tables and I tried it with the semi-colon after the first table. Also I tried this: BEGIN-SQL ON-ERROR=SKIP CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); create table pmcapp_temp (appl_type varchar2(1), appl_no varchar2(6)) TABLESPACE USER_ACCOUNTS STORAGE (INITIAL 5000K NEXT 500K); end-sql Each time it seems to create the first but the second comes up with the error: table or view does not exist when it goes to do the insert. Thanks, Jenny > -----Original Message----- > From: the dragon [mailto:ceprn@hotmail.com] > Sent: Thursday, April 05, 2001 10:42 AM > To: sqr-users@list.iex.net > Cc: WAGNERJ@CDER.FDA.GOV > Subject: Re: SQL in SQR > > > show us the code you're attempting to use to create multiple tables. > > clark 'the dragon' willis > dragon enterprises, consulting services > > > ----Original Message Follows---- > > I'm trying to create temp tables in my SQR program. It will > allow me to > create one, but I can't seem to get it to create more than > one. My ultimate > goal would be to have a a multi-module program where I select > different > things from different tables and then insert them into the > various temp > tables. > > Do you know if you can create more than one temp table in a > SQL paragraph in > SQR? > > My temp table create statement looks like this: > > begin-setup > page-size 56 132 > > BEGIN-SQL ON-ERROR=SKIP > > CREATE TABLE PMCGEN_TEMP (GENERIC_NAME VARCHAR2(40)) > TABLESPACE USER_ACCOUNTS > STORAGE > (INITIAL 5000K > NEXT 500K); > end-sql > end-setup > > and the insert statement looks like this: > > begin-procedure INSERT_TEMP > BEGIN-SQL > INSERT INTO PMCGEN_TEMP (GENERIC_NAME) > values (&GEN); > END-SQL > COMMIT > end-procedure > > > That works fine. But, I've tried to add another create > table... and insert > into... and I get the message: "table for view does not > exist" for the > second table. > > > Thanks, > > > Jenny > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > From owner-sqr-users@list.iex.net Thu Apr 5 11:28:26 2001 Date: Thu, 5 Apr 2001 10:16:46 -0600 From: Richard McComb Subject: Re: SQRWP printing - version 4.0.1 to version 4.3 I have the reports all specifying the HP printer option. I had tried LinePrinter, but got even worse print results. It would only print portrait format. With HP specified it switches based on the report. THe reports also have alter-printer options in use. The headers are in 16pt, some text in the report is 10pt, most of the report is in 8pt. It properly changes the font size, but not the font spacing. Some of the data is numeric, that prints properly. The data that is alpha is what prints strangely. I have both on the same line, the numbers print as 8 pt and 16.6 CPI, but the characters (which are really the account number, etc) print at 8pt and 10CPI. What I need is for the whole thing to print at 16.6CPI. The other thing that is weird is that the columns start in the correct places. Here is the code I have for the printer begin-setup declare-printer hp_laser type=HP font=3 point-size=8 end-declare declare-layout hp_default paper-size=(11,8.5) formfeed=NO orientation=LANDSCAPE left-margin=0.75 right-margin=0.25 top-margin=0.25 bottom-margin=0.25 end-declare declare-report newmess layout=hp_default printer-type=hplaserjet end-declare end-setup Then the page is laid out for where the columns should be: begin-procedure initialize_vars move 1 to #col1 !00 Status move 4 to #col2 !00000 CSN move 09 to #col3 !9999 Auto# move 14 to #col4 !999999 SEQ# move 19 to #col5 !xx-xx-xxxx tran date move 27 to #col6 !xx:xx:xx tran time move 35 to #col7 ! Personal move 50 to #col8 ! Description move 69 to #col9 !99,999,990.00 Credit move 82 to #col10 !99,999,990.00 Debit move 59 to #col11 ! Finish move 'empty string' to $adj_reason move 'YES' to $firsttime end-procedure ! initialize_vars The alter-printers look like this alter-printer point-size=8 The first four columns are properly spaced, columns 9 and 10 are properly spaced. All the data in between is spaced much too widely. The spaces between columns are spaced too widely as well. (Example col1 and col2 have a single space between them. This space is printing much wider that a 16.6 CPI space). This is driving me crazy. From owner-sqr-users@list.iex.net Thu Apr 5 11:49:54 2001 Date: Thu, 5 Apr 2001 11:44:30 -0500 From: Bob Helm Subject: dateadd problem I have a problem that should be easy to fix, but I'm stuck. I simply want to add 2 months to a date. My code is as follows: let $run_day = edit(Datenow(),'DD') if $run_day != '05' let $chart_for_date = dateadd(datenow(),'month',1) print $chart_for_date (+1,1) edit 'Month YYYY' else let $chart_for_date = Datenow() print $chart_for_date (+1,1) edit 'Month YYYY' end-if let $chart_thru_date = dateadd($chart_for_date,'month',2) print $chart_thru_date (+1,1) When I try to run I get the following error message: Error on line 282: (SQR 4045) Function or operator 'dateadd' requires date argument. As you can see, if I use Datenow() for the date value, it works. Otherwise, I get the error and am having to write unnecessary lines of code. Thanks a ton, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Thu Apr 5 11:58:05 2001 Date: Thu, 5 Apr 2001 12:57:17 -0400 From: ANDERSD2 Subject: Re: dateadd problem I'm not sure, but I think this is what is happening. The variable $Chart_For_Date is set to Month YYYY. This is not a "valid" date format so the code doesn't see the variable as a date. -----Original Message----- From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] Sent: Thursday, April 05, 2001 12:45 PM To: SQR-USERS@list.iex.net Subject: dateadd problem I have a problem that should be easy to fix, but I'm stuck. I simply want to add 2 months to a date. My code is as follows: let $run_day = edit(Datenow(),'DD') if $run_day != '05' let $chart_for_date = dateadd(datenow(),'month',1) print $chart_for_date (+1,1) edit 'Month YYYY' else let $chart_for_date = Datenow() print $chart_for_date (+1,1) edit 'Month YYYY' end-if let $chart_thru_date = dateadd($chart_for_date,'month',2) print $chart_thru_date (+1,1) When I try to run I get the following error message: Error on line 282: (SQR 4045) Function or operator 'dateadd' requires date argument. As you can see, if I use Datenow() for the date value, it works. Otherwise, I get the error and am having to write unnecessary lines of code. Thanks a ton, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Thu Apr 5 12:02:29 2001 Date: Thu, 5 Apr 2001 12:59:37 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: dateadd problem You have to explicitly DECLARE your date variable as a date type item, otherwise SQR assumes your variable to be of type = character and you will get the "dateadd" error. Put this at the top of your program and I think it will resolve your problem. begin-setup declare-variable date $chart_for_date $chart_thru_date end-declare end-setup When you do this, you might need to convert the date to a string (DATETOSTR) before printing it. Bob Helm on 04/05/2001 12:44:30 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: dateadd problem I have a problem that should be easy to fix, but I'm stuck. I simply want to add 2 months to a date. My code is as follows: let $run_day = edit(Datenow(),'DD') if $run_day != '05' let $chart_for_date = dateadd(datenow(),'month',1) print $chart_for_date (+1,1) edit 'Month YYYY' else let $chart_for_date = Datenow() print $chart_for_date (+1,1) edit 'Month YYYY' end-if let $chart_thru_date = dateadd($chart_for_date,'month',2) print $chart_thru_date (+1,1) When I try to run I get the following error message: Error on line 282: (SQR 4045) Function or operator 'dateadd' requires date argument. As you can see, if I use Datenow() for the date value, it works. Otherwise, I get the error and am having to write unnecessary lines of code. Thanks a ton, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Thu Apr 5 12:08:58 2001 Date: Thu, 5 Apr 2001 11:01:57 -0600 From: Alan Lane Subject: Re: dateadd problem With release 4 they introduced a 'date' type. Define "$chart_for_date" as a date and I think the function will probably work OK. Good luck. Thanks, Alan Lane ajlane@carolina.rr.com (704) 543-7270 or (704) 516-4463 www.AJLaneInc.com FAX: (877) 877-4878 ext 3540 [follow verbal prompts] -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Bob Helm Sent: Thursday, April 05, 2001 10:45 AM To: SQR-USERS@list.iex.net Subject: dateadd problem I have a problem that should be easy to fix, but I'm stuck. I simply want to add 2 months to a date. My code is as follows: let $run_day = edit(Datenow(),'DD') if $run_day != '05' let $chart_for_date = dateadd(datenow(),'month',1) print $chart_for_date (+1,1) edit 'Month YYYY' else let $chart_for_date = Datenow() print $chart_for_date (+1,1) edit 'Month YYYY' end-if let $chart_thru_date = dateadd($chart_for_date,'month',2) print $chart_thru_date (+1,1) When I try to run I get the following error message: Error on line 282: (SQR 4045) Function or operator 'dateadd' requires date argument. As you can see, if I use Datenow() for the date value, it works. Otherwise, I get the error and am having to write unnecessary lines of code. Thanks a ton, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Thu Apr 5 12:37:33 2001 Date: Thu, 5 Apr 2001 12:27:12 -0500 From: Bob Helm Subject: Re: dateadd problem That was the problem...Thanks for all your help! B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com -----Original Message----- From: Joy Hoyte [mailto:JoyHoyte_sqr@hotmail.com] Sent: Thursday, April 05, 2001 12:09 PM To: Bob.Helm@MEDIWARE.COM Subject: Re: dateadd problem Just checking...you did declare $run_day, $chart_for_date, etc. all as date variables, yes? Joy Hoyte ----- Original Message ----- From: "Bob Helm" To: Sent: Thursday, April 05, 2001 12:44 PM Subject: dateadd problem > I have a problem that should be easy to fix, but I'm stuck. > > I simply want to add 2 months to a date. My code is as follows: > > let $run_day = edit(Datenow(),'DD') > if $run_day != '05' > let $chart_for_date = dateadd(datenow(),'month',1) > print $chart_for_date (+1,1) edit 'Month YYYY' > else > let $chart_for_date = Datenow() > print $chart_for_date (+1,1) edit 'Month YYYY' > end-if > > let $chart_thru_date = dateadd($chart_for_date,'month',2) > print $chart_thru_date (+1,1) > > When I try to run I get the following error message: > > Error on line 282: > (SQR 4045) Function or operator 'dateadd' requires date argument. > > As you can see, if I use Datenow() for the date value, it works. Otherwise, > I get the error > and am having to write unnecessary lines of code. > > > Thanks a ton, > > B > The Programmer formally known as Bob > Mediware Information Systems Inc. > (913) 307-1045 > Bob.Helm@Mediware.com > From owner-sqr-users@list.iex.net Thu Apr 5 14:35:56 2001 Date: Thu, 5 Apr 2001 15:28:25 -0400 From: Patty Bergin Subject: Signed Numeric Edit I am trying to work with a value from a file that I received from an outside source. It is defined as S9(5)v99. The value on the input file is 001158A. This should represent 115.81, however, I cannot figure out a way to edit the signed numeric field. Any advice? Thanks. Patty Patricia Bergin Information Systems Syracuse University (315) 443-9277 From owner-sqr-users@list.iex.net Thu Apr 5 15:34:14 2001 Date: Thu, 5 Apr 2001 16:24:26 -0400 From: Patty Bergin Subject: Re: Signed Numeric Edit Thanks...that did the trick! Patricia Bergin Information Systems Syracuse University (315) 443-9277 >>> tdelia@EROLS.COM 04/05/01 05:01PM >>> Hi Patty, I have a routine you can find on my site, www.sqrtools.com, that can accept signed numeric data. There's also many utilities, techniques and other functions as well. See the section under TDFUNC for the library of functions... let #W_in = '001158A' do MFI-Func(#W_in, 2, #W_out) show #W_out The function returns 115.81 Cheers, Tony DeLia Patty Bergin wrote: > > I am trying to work with a value from a file that I received from an outside source. It is defined as S9(5)v99. The value on the input file is 001158A. This should represent 115.81, however, I cannot figure out a way to edit the signed numeric field. Any advice? > > Thanks. > Patty > > Patricia Bergin > Information Systems > Syracuse University > (315) 443-9277 -- Tony DeLia AnswerThink Consulting Group PeopleSoft Solutions Practice - Delphi Partners tdelia@erols.com http://www.sqrtools.com From owner-sqr-users@list.iex.net Thu Apr 5 14:55:34 2001 Date: Thu, 5 Apr 2001 16:01:44 -0500 From: Tony DeLia Subject: Re: Signed Numeric Edit Hi Patty, I have a routine you can find on my site, www.sqrtools.com, that can accept signed numeric data. There's also many utilities, techniques and other functions as well. See the section under TDFUNC for the library of functions... let #W_in = '001158A' do MFI-Func(#W_in, 2, #W_out) show #W_out The function returns 115.81 Cheers, Tony DeLia Patty Bergin wrote: > > I am trying to work with a value from a file that I received from an outside source. It is defined as S9(5)v99. The value on the input file is 001158A. This should represent 115.81, however, I cannot figure out a way to edit the signed numeric field. Any advice? > > Thanks. > Patty > > Patricia Bergin > Information Systems > Syracuse University > (315) 443-9277 -- Tony DeLia AnswerThink Consulting Group PeopleSoft Solutions Practice - Delphi Partners tdelia@erols.com http://www.sqrtools.com From owner-sqr-users@list.iex.net Thu Apr 5 20:42:39 2001 Date: Thu, 5 Apr 2001 21:29:04 -0400 From: a_moosa Subject: eCRM Survey: Graduate Thesis Role of Data Integration in eCRM. I am a graduate student concentrating in Data Warehousing and data mining. I am currently working on my capstone project which is a research paper on the role of data integration in eCRM. If you are a CRM Professional or CIO/CEO/CFO involved in an eCRM initiative, please take 5 minutes to fill out this short survey. This is a learning opportunity for me and I sincerely appreciate your time in filling this out.If interested, I can send you a copy of the results. Survey can be accessed at the link below: http://isomnt.uncg.edu/a_moosa/survey/ecrm-survey.htm Thanks, Ashfaaq Moosa ashfaaq@yahoo.com From owner-sqr-users@list.iex.net Fri Apr 6 09:01:39 2001 Date: Fri, 6 Apr 2001 09:55:11 -0400 From: Scott Eubank Subject: absolute value : not working whats up with that code: *************************************************************** let #Sum-Debits = abs(#Sum-Debits) let #Sum-Credit = abs(#Sum-Credit) show 'Sum Debits :' #Sum-Debits edit 9999999999.99 show 'Sum Crdits :' #Sum-Credits edit 9999999999.99 show ' H Debits :' $Debits show ' H Credits :'$Credits ******************************************************************** end code yeilds results: ---------------------------------------------------------------------- Sum Debits : 379434039.78 Sum Crdits :-379434039.78 H Debits : 379434039.78 H Credits : 379434039.78 --------------------------------------------------------------------- So whats up with the abs function if it does not work correctly. What am I doing wrong here? From owner-sqr-users@list.iex.net Fri Apr 6 09:08:02 2001 Date: Fri, 6 Apr 2001 10:05:05 -0400 From: "Combs, Shawn (Contractor)" Subject: Re: absolute value : not working whats up with that I might be missing something but... Below you are letting #Sum-Credit(Singular) = abs(#Sum-Credit) But you are Showing #Sum-Credits(Plural) Check your code and make sure that you are using the same variable name through out your code. Thanks! Shawn Combs, ULIT Soft, Inc. Bus: 321-674-4683, Cell: 321-960-1008 Email: scombs@ulitsoft.com -----Original Message----- From: Scott Eubank [mailto:SEUBANK@advanceautoparts.com] Sent: Friday, April 06, 2001 9:55 AM To: SQR-USERS@list.iex.net Subject: absolute value : not working whats up with that code: *************************************************************** let #Sum-Debits = abs(#Sum-Debits) let #Sum-Credit = abs(#Sum-Credit) show 'Sum Debits :' #Sum-Debits edit 9999999999.99 show 'Sum Crdits :' #Sum-Credits edit 9999999999.99 show ' H Debits :' $Debits show ' H Credits :'$Credits ******************************************************************** end code yeilds results: ---------------------------------------------------------------------- Sum Debits : 379434039.78 Sum Crdits :-379434039.78 H Debits : 379434039.78 H Credits : 379434039.78 --------------------------------------------------------------------- So whats up with the abs function if it does not work correctly. What am I doing wrong here? From owner-sqr-users@list.iex.net Fri Apr 6 09:21:12 2001 Date: Fri, 6 Apr 2001 10:16:13 -0400 From: Scott Eubank Subject: Re: absolute value : not working whats up with that DOH!!!!! DAMN IT! I hate it that you dont have ot declare your varialbes GOOD GREIF! THANKS SHAWN.... You related to Puffy .. isnt his name Shawn Combs . :) Have a nice day floks -----Original Message----- From: Combs, Shawn (Contractor) [mailto:scombs@HARRIS.COM] Sent: Friday, April 06, 2001 10:05 AM To: SQR-USERS@list.iex.net Subject: Re: absolute value : not working whats up with that I might be missing something but... Below you are letting #Sum-Credit(Singular) = abs(#Sum-Credit) But you are Showing #Sum-Credits(Plural) Check your code and make sure that you are using the same variable name through out your code. Thanks! Shawn Combs, ULIT Soft, Inc. Bus: 321-674-4683, Cell: 321-960-1008 Email: scombs@ulitsoft.com -----Original Message----- From: Scott Eubank [mailto:SEUBANK@advanceautoparts.com] Sent: Friday, April 06, 2001 9:55 AM To: SQR-USERS@list.iex.net Subject: absolute value : not working whats up with that code: *************************************************************** let #Sum-Debits = abs(#Sum-Debits) let #Sum-Credit = abs(#Sum-Credit) show 'Sum Debits :' #Sum-Debits edit 9999999999.99 show 'Sum Crdits :' #Sum-Credits edit 9999999999.99 show ' H Debits :' $Debits show ' H Credits :'$Credits ******************************************************************** end code yeilds results: ---------------------------------------------------------------------- Sum Debits : 379434039.78 Sum Crdits :-379434039.78 H Debits : 379434039.78 H Credits : 379434039.78 --------------------------------------------------------------------- So whats up with the abs function if it does not work correctly. What am I doing wrong here? From owner-sqr-users@list.iex.net Fri Apr 6 09:26:30 2001 Date: Fri, 6 Apr 2001 07:01:03 -0700 From: Rachael Beatty Subject: Re: absolute value : not working whats up with that --0__=vRMNBpHFHSk8Dg08yBUnZrnwnu6eDFDD4Xra7MuCigqeHH6eHYH5jOln Content-type: text/plain; charset=us-ascii Content-Disposition: inline Your abs function refers to sum-credit (no ending s), your display statement refers to sum-credits (with s). Do you have the variable sum-credits set higher up? Rachael > -----Original Message----- > From: Scott Eubank @INTERNET > Sent: Friday, April 06, 2001 6:55 AM > To: SQR-USERS@list.iex.net > Subject: absolute value : not working whats up with that > > > code: > *************************************************************** > let #Sum-Debits = abs(#Sum-Debits) > let #Sum-Credit = abs(#Sum-Credit) > > > > show 'Sum Debits :' #Sum-Debits edit 9999999999.99 > show 'Sum Crdits :' #Sum-Credits edit 9999999999.99 > > show ' H Debits :' $Debits > show ' H Credits :'$Credits > ******************************************************************** > end code > > yeilds results: > ---------------------------------------------------------------------- > Sum Debits : 379434039.78 > Sum Crdits :-379434039.78 > H Debits : 379434039.78 > H Credits : 379434039.78 > --------------------------------------------------------------------- > > So whats up with the abs function if it does not work correctly. What am > I > doing wrong here? (See attached file: C.DTF) --0__=vRMNBpHFHSk8Dg08yBUnZrnwnu6eDFDD4Xra7MuCigqeHH6eHYH5jOln Content-type: application/octet-stream; name="C.DTF" Content-Disposition: attachment; filename="C.DTF" Content-transfer-encoding: base64 eJ8+Ih0OAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0QcEAAYABwABAAMABQDyAAEggAMADgAAANEHBAAG AAcAAwAbAAUADAEBCYABACEAAAA4N0U4M0UxNjE1MjlENTExODg2QjAwMDYyOTE3QkYxOQDqBgEE gAEANQAAAFJFOiBhYnNvbHV0ZSB2YWx1ZSA6ICBub3Qgd29ya2luZyB3aGF0cyB1cCB3aXRoIHRo YXQAkhIBDYAEAAIAAAACAAIAAQOQBgDACgAAMwAAAAMAAW4AAAAAAwAAgAggBgAAAAAAwAAAAAAA AEYAAAAAUoUAAH1uAQAeAAGACCAGAAAAAADAAAAAAAAARgAAAABUhQAAAQAAAAQAAAA5LjAACwAC gAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAADAAOACCAGAAAAAADAAAAAAAAARgAAAAABhQAA AAAAAAsABIAIIAYAAAAAAMAAAAAAAABGAAAAAAOFAAAAAAAACwAFgAggBgAAAAAAwAAAAAAAAEYA AAAADoUAAAAAAAADAAaACCAGAAAAAADAAAAAAAAARgAAAAAQhQAAAAAAAAMAB4AIIAYAAAAAAMAA AAAAAABGAAAAABGFAAAAAAAACwAPgAggBgAAAAAAwAAAAAAAAEYAAAAAFIUAAAAAAAADAAiACCAG AAAAAADAAAAAAAAARgAAAAAYhQAAAAAAAAsAEYAIIAYAAAAAAMAAAAAAAABGAAAAAIKFAAABAAAA AgEJEAEAAAC7AwAAtwMAABUHAABMWkZ1m7QUPQMACgByY3BnMTI1PjIA9AH3AqQD4wIAY2jBCsBz ZXQwIAcTAoNjAFAPpnBycQ5QEBhUPGFoA3ECgxIhA2RUbdEEIFJtbgKDMwRHCFXNAoB9CoAIyCA7 CW8OMF41Fv8KYAKACoF2CJB30msLgGQ0DGBjAFALA5ZjAEELYG4OEDAzFOHVC8QgHDBZCGEgAaAE IEBmdW5jdGkCICANGGBmBJAEIHRvIHNYdW0tBQAJgGkFQCg+bh4ACfAekBtQHhApLKwgeRxyHpBz C1F5HhB5AZB0ZQeAAjAdfQogICseZAQhYhCQKAPwdGi1H3EuHDBEHgAfwSAQMNR2ZR3gaCRQdgrA BzA/AmAkUB4oBCAQYSQQaWfjJIAFwHVwPwqiCoQKgHZSANAQMGUJUCb5CvRseGkzNgFAGvABQBHw b/cgwB0gC9I0HDAbJSpwETRQMTYgLSvSTwUQZw8LgAdABdAHkHNhZ2U/K9Mm5inkKbELEynmaS0Y MTQ0AUApMDE4MK8BQAzQL3MiIEYDYToDMBsMkiLRUwWgAkAgRXUCYgBwayA8U0VVAEJBTktAQURW ATLAQ0VBVVRPUABBUlRTLkNPTQA+QElOVEVSTnxFVCqRJvQiIAZgAjA6szEmMMBpZCBgH6BBEfAZ AxEwNh+gAdAwMSAsNjoYIBCgTTUHVG9BNddTUVItVTKAUixTQCkwIJAuCJB4Lu5uEHA1CDIQaioR NdccsV0G8HUgwCShCkEgMQAgux7gBUB3BbAaAR9gdxAw/yKRJrA9wCMiIzAgsCgcLf8zKhIpNHNs KnBB4m11ZmwuQRs+XG87kCCwdPBwaFwnDAETgiphJuXvGvASIRThK5A4IjAEcTXQ/SbzKkcfSC9J P0n5JuQcMBslEAVAIztwHkBEZWJVIoI9HKIoS8kpSw9D/x50TIlOtE2VUE9LUR4QEwCdB+AnS9Ej oEwkOidLu+sfAB6SOVRXLlRQUW9ScP9OsCJzUwZOtAQgVA9VFVUt7CBIUoZS8iRMFFlPVkH7ImRT ACRXRUa/Xs9f32DvT0qqHxFGUybqeWUDEGTvBCAYYB4gQqBzRqUr02WfH2avZ79orCbkUlogMzco OTQzL5AzVOA3OOtpuFZWLWrvClpJHDFuov9s323hXKdur2uGaK9zf3SP/3WfLWdp0x4APl4kUBy7 BpBzeZAFQGRvB5E9lkZRctMYYB0gbHkjgVc+YRyg/VJwSSbkegA+EwNgH1EmcRZlJtUWEQB+QAAe AHAAAQAAADEAAABhYnNvbHV0ZSB2YWx1ZSA6ICBub3Qgd29ya2luZyB3aGF0cyB1cCB3aXRoIHRo YXQAAAAAAgFxAAEAAAAbAAAAAcC+ooDPF5AgimxrQhG33I8Aa6WN5wAALiZwAAMALgAAAAAACwAC AAEAAAACATEAAQAAADkBAABQQ0RGRUIwOQABAAIAcwAAAAAAAAA4obsQBeUQGqG7CAArKlbCAABF TVNNREIuRExMAAAAAAAAAAAbVfogqmYRzZvIAKoAL8RaDAAAAExBU0lTTVhTMDEAL289SGlsdG9u L291PUxBU0lTL2NuPVJlY2lwaWVudHMvY249cmJlYXR0eQAuAAAAAAAAAL2giI/oQ9QRiF0ABikX vxkBAO8DZiv9P9QRiFcABKxMcKMAAAAARocAAAAAAAAuAAAAAAAAAL2giI/oQ9QRiF0ABikXvxkB AO8DZiv9P9QRiFcABKxMcKMAAAAARogAABAAAACH6D4WFSnVEYhrAAYpF78ZNQAAAFJFOiBhYnNv bHV0ZSB2YWx1ZSA6ICBub3Qgd29ya2luZyB3aGF0cyB1cCB3aXRoIHRoYXQAAAAAAwAJWQMAAAAe AEIQAQAAAEsAAAA8MTYzRUMzRTA2NEFFNDA0MTkyNDA1RDVGMDQ5RDZGNTMwMUZGOTVDNkBoaGNk Y214czAyLmhvdGVscy5hZC5oaWx0b24uY29tPgAAAwDeP69vAABAADkAcP6RBKK+wAEDAPE/CQQA AB4AMUABAAAACAAAAFJCRUFUVFkAAwAaQAAAAAAeADBAAQAAAAgAAABSQkVBVFRZAAMAGUAAAAAA AwAmAAAAAAADADYAAAAAAAMA/T/kBAAAAwCAEP////8CAUcAAQAAADIAAABjPVVTO2E9IDtwPUhp bHRvbjtsPUxBU0lTTVhTMDEtMDEwNDA2MTQwMTAzWi0xNzM5AAAAAgH5PwEAAABIAAAAAAAAANyn QMjAQhAatLkIACsv4YIBAAAAAAAAAC9PPUhJTFRPTi9PVT1MQVNJUy9DTj1SRUNJUElFTlRTL0NO PVJCRUFUVFkAHgD4PwEAAAAPAAAAUmFjaGFlbCBCZWF0dHkAAB4AOEABAAAACAAAAFJCRUFUVFkA AgH7PwEAAABIAAAAAAAAANynQMjAQhAatLkIACsv4YIBAAAAAAAAAC9PPUhJTFRPTi9PVT1MQVNJ Uy9DTj1SRUNJUElFTlRTL0NOPVJCRUFUVFkAHgD6PwEAAAAPAAAAUmFjaGFlbCBCZWF0dHkAAB4A OUABAAAACAAAAFJCRUFUVFkAQAAHMCZ8ptWhvsABQAAIMGDSbVqivsABHgA9AAEAAAAFAAAAUkU6 IAAAAAAeAB0OAQAAADEAAABhYnNvbHV0ZSB2YWx1ZSA6ICBub3Qgd29ya2luZyB3aGF0cyB1cCB3 aXRoIHRoYXQAAAAAHgA1EAEAAAA/AAAAPEVGMDM2NjJCRkQzRkQ0MTE4ODU3MDAwNEFDNEM3MEEz M0U0OTg2QGxhc2lzbXhzMDEuaGlsdG9uLmNvbT4AAAsAKQABAAAACwAjAAEAAAADAAYQR247WwMA BxC7AwAAAwAQEAAAAAADABEQAAAAAB4ACBABAAAAZQAAAFlPVVJBQlNGVU5DVElPTlJFRkVSU1RP U1VNLUNSRURJVChOT0VORElOR1MpLFlPVVJESVNQTEFZU1RBVEVNRU5UUkVGRVJTVE9TVU0tQ1JF RElUUyhXSVRIUylET1lPVUhBVkUAAAAAAgF/AAEAAAA/AAAAPEVGMDM2NjJCRkQzRkQ0MTE4ODU3 MDAwNEFDNEM3MEEzM0U0OTg2QGxhc2lzbXhzMDEuaGlsdG9uLmNvbT4AAFuXAgKQBgAOAAAAAgCN AQAA/////wAAAACMBAIQgAEAFAAAAFVudGl0bGVkIEF0dGFjaG1lbnQAcgcCEoADAA4AAADRBwQA BgAHAAEAAgAFAPEAAhOAAwAOAAAA0QcEAAYABwABAAIABQDxAAIFkAYAzA4AAA0AAAADACEOAAAA AAMACzeNAQAAAwAgDk4OAAADAPcPAAAAAAIBEGgBAAAADgAAAAAAAAAAAAAAAAAAAAAAAABAAAcw AMvvA6K+wAFAAAgwAMvvA6K+wAEDAAU3BgAAAAIBAjcBAAAAAAAAAB4AATABAAAAAQAAAAAAAAAC AQo3AQAAAAsAAAAqhkiG9xQDCgMCAQACAfkPAQAAABAAAAA387fTkSrVEbqjAASsTKV3DQABNwEA AAAQDgAACwAAAAAAAADAAAAAAAAARtDPEeChsRrhAAAAAAAAAAAAAAAAAAAAAD4AAwD+/wkABgAA AAAAAAAAAAAAAQAAAAEAAAAAAAAAABAAAAIAAAABAAAA/v///wAAAAAAAAAA//////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////f///wQAAAD+////BQAAAP7////+//////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////9SAG8AbwB0ACAARQBuAHQAcgB5AAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFgAFAP//////////AgAAABYDAAAAAAAAwAAAAAAA AEYAAAAAAAAAAAAAAAAAdLRno77AAQMAAABAAgAAAAAAAAEATwBsAGUAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAIB//////////////// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAQwBPAE4AVABF AE4AVABTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIA AgEBAAAAAwAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAXgEA AAAAAAADAE0AYQBpAGwAUwB0AHIAZQBhAG0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAGAACAf////8EAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAcAAAAMAAAAAAAAAP7///8CAAAAAwAAAAQAAAAFAAAABgAAAP7////+/////v////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ////////////////////////AQAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEJNXgEAAAAAAAAAAAAAKAAAADkCAAAEAAAAAQABAAAA AAAgAQAAxA4AAMQOAAAAAAAAAAAAAAAAAAD///8A//////////////////////////////////// //////////////////////////////////////////////////////////+AAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAGA//////////////////////////////////////////////////// //////////////////////////////////////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAEAAADPOgAAagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAABSAGkAYwBoAEUAZABpAHQARgBsAGEAZwBzAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAACAP///////////////wAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/ //////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAEAAEAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAJ7E= --0__=vRMNBpHFHSk8Dg08yBUnZrnwnu6eDFDD4Xra7MuCigqeHH6eHYH5jOln-- From owner-sqr-users@list.iex.net Fri Apr 6 09:27:42 2001 Date: Fri, 6 Apr 2001 14:25:14 -0000 From: Elvis Pressly Subject: Re: absolute value : not working whats up with that scott, You are showing two different kind of apples. One is numeric and the other is character type. Try using the mi mask in $Credits like.......... SHOW 'Credits ' $Credits 999999999.99mi If this wont work, then convert $credits into a numeric var. >From: Scott Eubank >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: absolute value : not working whats up with that >Date: Fri, 6 Apr 2001 09:55:11 -0400 > >code: >*************************************************************** > let #Sum-Debits = abs(#Sum-Debits) > let #Sum-Credit = abs(#Sum-Credit) > > > > show 'Sum Debits :' #Sum-Debits edit 9999999999.99 > show 'Sum Crdits :' #Sum-Credits edit 9999999999.99 > > show ' H Debits :' $Debits > show ' H Credits :'$Credits >******************************************************************** >end code > >yeilds results: >---------------------------------------------------------------------- >Sum Debits : 379434039.78 >Sum Crdits :-379434039.78 >H Debits : 379434039.78 >H Credits : 379434039.78 >--------------------------------------------------------------------- > >So whats up with the abs function if it does not work correctly. What am I >doing wrong here? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Sun Apr 8 20:37:37 2001 Date: Sun, 8 Apr 2001 18:34:18 -0700 From: Nicolas Moscaritolo Subject: MANY questions about SQR / Portal If you can point me in the right direction on ANY of these items, that would be great. 1. How can I hide the SPF file in the Portal. Currently, (by default), when an SQR job runs, it displays the HTML and the SPF. 2. PDF and fonts. I created an SQR program to produce a simple report. When I also had the SQR create a PDF, the fonts I had in the HTML did NOT show up in the PDF. Any ideas. 3. Using SQL Server and SQR 6.0, I could not get the LEFT JOIN to work. The client said that SQL Server takes ANSI SQL and therefore SQR is expected to. I am used to Oracle so the only join clause I've seen is Oracle style. 4. I tried to execute a SQL Server Stored Procedure using SQR 6.0. When I did (either through ReportBuilder or SQR Server), Dr. Watson paid a visit and it blew up. 5. Essbase and Oracle. What does the code look like. I assume that we would use DDO. A sample program would be great !!!!! 6. Creating an HTML doc from SQR 6.1.3, I coded links and anchor within SQR. When I click to link to an anchor and then click another link to go back to the top (and anchor), the VCR controls in the top HTML frame are gone. How do I get them back? 7. I would like HTML output. The layout has a number within a box. The number needs to be centered within the box and the box needs to be a standard width (not the width of the number). It seems that doing this with the HTML SQR tags is the only solution. Any other ideas? 8. CHARTS with color. I created a chart in SQR with a legend. Using the Create Pallete command, I created many colors to represent each bar within my graph. The legend came out fine with the proper colors but the bars in the graph all came out red. Any ideas? Enough question for now. Thanks for your attention to these issues. I will be working on these issues and would appreciate ANY feedback on ANY issues and/or SAMPLE CODE. I will re-publish the answers once I solve each for everyones benefit. Thanks Nick Moscaritolo Brio Technology Systems Consultant 15 Crestwood Drive Ashland, MA 01721 (617) 823-6783 From owner-sqr-users@list.iex.net Tue Apr 10 08:27:48 2001 Date: Tue, 10 Apr 2001 09:25:37 -0400 From: Paul Hoyte Subject: Re: MANY questions about SQR / Portal Lets give this a shot.... 1. I don't know of a way to hide or suppress the production of the SPF file in the portal. We tried to do this a a class recently and found that the Portal JF is defaulting to using the -keep parameter which will automatically produce the spf file. Would have to change portal internally to keep the spf from being produced. 2. If you do not have the PDF fonts defined in the SQR.ini file with the same font number as the HTML section, then you will get the default PDF font which if I remember correctly is Courier. 3. Just completed an assignment using SQL Server7 and Sqr 6 and it worked fine. Use the *= or =* to indicated the left or right outer joins. EG And PERSEXTRNL.RELATION_CD *= CODESET.ID. Can't use the same table however in a join to another. 4. Dr. Watson appearances require a little more research with a lot more information. One thing to look at is to make sure that you are authorized to execute the procedure. 5. The DDO interface is the way to connect to Essbase. Don't have a sample program handy but you might want to check with the developers at your home office for some pointers.... 7. Another idea is to make a gif file for the square and then use the precision printing to position the square and them print the number inside of the square. That's all for now..... Paul Hoyte Sharidionne, Inc. (248) 559-6868 www.sharidionne.com phoyte@sharidionne.com -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Nicolas Moscaritolo Sent: Sunday, April 08, 2001 9:34 PM To: SQR-USERS@list.iex.net Subject: MANY questions about SQR / Portal If you can point me in the right direction on ANY of these items, that would be great. 1. How can I hide the SPF file in the Portal. Currently, (by default), when an SQR job runs, it displays the HTML and the SPF. 2. PDF and fonts. I created an SQR program to produce a simple report. When I also had the SQR create a PDF, the fonts I had in the HTML did NOT show up in the PDF. Any ideas. 3. Using SQL Server and SQR 6.0, I could not get the LEFT JOIN to work. The client said that SQL Server takes ANSI SQL and therefore SQR is expected to. I am used to Oracle so the only join clause I've seen is Oracle style. 4. I tried to execute a SQL Server Stored Procedure using SQR 6.0. When I did (either through ReportBuilder or SQR Server), Dr. Watson paid a visit and it blew up. 5. Essbase and Oracle. What does the code look like. I assume that we would use DDO. A sample program would be great !!!!! 6. Creating an HTML doc from SQR 6.1.3, I coded links and anchor within SQR. When I click to link to an anchor and then click another link to go back to the top (and anchor), the VCR controls in the top HTML frame are gone. How do I get them back? 7. I would like HTML output. The layout has a number within a box. The number needs to be centered within the box and the box needs to be a standard width (not the width of the number). It seems that doing this with the HTML SQR tags is the only solution. Any other ideas? 8. CHARTS with color. I created a chart in SQR with a legend. Using the Create Pallete command, I created many colors to represent each bar within my graph. The legend came out fine with the proper colors but the bars in the graph all came out red. Any ideas? Enough question for now. Thanks for your attention to these issues. I will be working on these issues and would appreciate ANY feedback on ANY issues and/or SAMPLE CODE. I will re-publish the answers once I solve each for everyones benefit. Thanks Nick Moscaritolo Brio Technology Systems Consultant 15 Crestwood Drive Ashland, MA 01721 (617) 823-6783 From owner-sqr-users@list.iex.net Mon Apr 9 08:22:17 2001 Date: Mon, 9 Apr 2001 10:04:11 -0300 From: Peter Clark Subject: Re: strike through characters The answer depends on the character set you are using. You might find the answer at this site (I did note that there is a Ř in the MS Windows set which may work for you): http://www.jimprice.com/jim-asc.htm HTH, Peter >>> "Charles A. Harkness" 2001/04/09 12:48:13 pm >>> Hello, I've been searching the SQR database and my book "SQR in Peoplesoft" and I have not found a way to print strike through characters. I am mainly interested in having a slash through the number zero, to differentiate it from the letter O. Does anyone have any ideas on how to do this. Thank you, Chuck From owner-sqr-users@list.iex.net Mon Apr 9 09:06:51 2001 Date: Mon, 9 Apr 2001 09:35:45 -0400 From: Philippe Godin Subject: Error Management Good day, I was wondering if SQR got some sort of error management. I would like to catch all errors that are produce within the execution of a report. To give you an example, let's pretend I'm using an input to get a date from the user. Instead of validating if the date correspond to our edit-mask or if it is valid, I would like to catch the error it produce on execution and associate this with a procedure that would do some some of processing. Giving the wrong date format produces that error: (SQR 5528) ODBC SQL dbexec: SQLExecute error 317 in cursor 1: [INTERSOLV][ODBC SQLBase driver][SQLBase]00317 EXE DND Data is not a date Error on line 242: (SQR 3723) Problem executing cursor. SQRT: Program Aborting. Does anyone can help... (SQR/4.0.3/PC/WINDOWS NT 4.0/ODBC Level1/Jun 11 1997) Philippe Godin CiM Maintenance Inc. Philippe.Godin@videotron.ca From owner-sqr-users@list.iex.net Mon Apr 9 09:59:36 2001 Date: Mon, 9 Apr 2001 15:52:50 +0100 From: =?iso-8859-1?q?Hari=20Haran?= Subject: Appln Messg - PT 8.11 - FileLayout & Comp.Intfc Hi friends, I need some help. 1. Is it necessary for me to convert a generic xml into predefined xml format before subscribing from peoplesoft or can we use an xml file layout for our specifc xml. 2. Can we use Component Interface to do Inbound Data Validations or should it be done in PeopleCode. Thanking you in advance. Hari. ____________________________________________________________ Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com From owner-sqr-users@list.iex.net Mon Apr 9 10:17:31 2001 Date: Mon, 9 Apr 2001 12:12:17 -0300 From: Peter Clark Subject: Re: Appln Messg - PT 8.11 - FileLayout & Comp.Intfc Wrong mail list, Hari. Try PeopleSoft-Fans. >>> Hari Haran 2001/04/09 11:52:50 am >>> Hi friends, I need some help. 1. Is it necessary for me to convert a generic xml into predefined xml format before subscribing from peoplesoft or can we use an xml file layout for our specifc xml. 2. Can we use Component Interface to do Inbound Data Validations or should it be done in PeopleCode. Thanking you in advance. Hari. ____________________________________________________________ Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com From owner-sqr-users@list.iex.net Mon Apr 9 10:24:48 2001 Date: Mon, 9 Apr 2001 11:22:05 -0400 From: "Love, Kristin" Subject: Keeping lines together: wrap Is there an option for WRAP which tells the computer not to split the WRAP text between lines? Or do I have to do some sort of math with the maximum wrap depth? Kristin Love Management Science Associates Pittsburgh, PA From owner-sqr-users@list.iex.net Mon Apr 9 14:02:07 2001 Date: Mon, 9 Apr 2001 13:56:11 -0500 From: Don Mellen Subject: Re: Keeping lines together: wrap On Mon, 9 Apr 2001, Love, Kristin wrote: > Is there an option for WRAP which tells the computer not to split the WRAP > text between lines? > > Or do I have to do some sort of math with the maximum wrap depth? I'm assuming you meant to ask if their was a way to prevent Wrap from splitting between *pages*. For that, you do need to use WrapDepth() and either calc where you are on the page, or (much easier) use "next-listing" with the "need=nn" option. HTH, ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" From owner-sqr-users@list.iex.net Mon Apr 9 14:22:01 2001 Date: Mon, 9 Apr 2001 15:12:52 -0400 From: "Love, Kristin" Subject: Re: Keeping lines together: wrap Yes, sorry about the mistype. next-listing need=nn is what I was trying to remember. > -----Original Message----- > From: Don Mellen [SMTP:donm@ONTKO.COM] > Sent: Monday, April 09, 2001 2:56 PM > To: SQR-USERS@list.iex.net > Subject: Re: Keeping lines together: wrap > > On Mon, 9 Apr 2001, Love, Kristin wrote: > > > Is there an option for WRAP which tells the computer not to split the > WRAP > > text between lines? > > > > Or do I have to do some sort of math with the maximum wrap depth? > > I'm assuming you meant to ask if their was a way to prevent Wrap from > splitting between *pages*. For that, you do need to use WrapDepth() and > either calc where you are on the page, or (much easier) use "next-listing" > with the "need=nn" option. > > HTH, > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" From owner-sqr-users@list.iex.net Mon Apr 9 13:42:41 2001 Date: Mon, 9 Apr 2001 14:39:05 -0700 From: "Charles A. Harkness" Subject: Re: Keeping lines together: wrap Kristin, I think the point of the of WRAP, is to wrap a line to another line. The example in the book is: Print $Comments (1,1) Wrap 15,3 Which prints the value of $Comments in several lines, 15 character per line for a maximum of 3 lines. Chuck At 11:22 AM 4/9/01 -0400, you wrote: >Is there an option for WRAP which tells the computer not to split the WRAP >text between lines? > >Or do I have to do some sort of math with the maximum wrap depth? > >Kristin Love >Management Science Associates >Pittsburgh, PA > > From owner-sqr-users@list.iex.net Mon Apr 9 08:12:49 2001 Date: Mon, 9 Apr 2001 08:48:13 -0700 From: "Charles A. Harkness" Subject: strike through characters Hello, I've been searching the SQR database and my book "SQR in Peoplesoft" and I have not found a way to print strike through characters. I am mainly interested in having a slash through the number zero, to differentiate it from the letter O. Does anyone have any ideas on how to do this. Thank you, Chuck From owner-sqr-users@list.iex.net Mon Apr 9 10:19:10 2001 Date: Mon, 9 Apr 2001 11:13:21 -0700 From: "Charles A. Harkness" Subject: Re: strike through characters Peter, Thanks, I have tried playing with the sqr since you sent me this email. I was using the ascii function and I am only able to get results on the first character of the string. I'm still working on it. Chuck At 10:04 AM 4/9/01 -0300, you wrote: >The answer depends on the character set you are using. You might find the answer at this site (I did note that there is a Ř in the MS Windows set which may work for you): >http://www.jimprice.com/jim-asc.htm > >HTH, >Peter > >>>> "Charles A. Harkness" 2001/04/09 12:48:13 pm >>> >Hello, > I've been searching the SQR database and my book "SQR in Peoplesoft" and >I have not found a way to print strike through characters. I am mainly >interested in having a slash through the number zero, to differentiate it >from the letter O. Does anyone have any ideas on how to do this. > >Thank you, > Chuck > > From owner-sqr-users@list.iex.net Mon Apr 9 17:28:26 2001 Date: Mon, 9 Apr 2001 15:22:25 -0700 From: Carolyn Woods Subject: Call to a COBOL program from an SQR We are trying to figure out how to call a COBOL program from inside an SQR, has anyone done this? Thanks, Carolyn Woods MiraCosta College Oceanside, CA From owner-sqr-users@list.iex.net Thu Apr 12 12:50:14 2001 Date: Thu, 12 Apr 2001 13:47:20 -0400 From: "Schelske, Steve K." Subject: Re: Call to a COBOL program from an SQR If you know how to start the COBOL program from the command line, you can use the CALL SYSTEM USING function to execute the COBOL program. You can search the sqrug.com archives for lots of examples on how to properly use CALL SYSTEM. If you don't know how to start the program from the command line, try to run it that way and you may get prompted for the information that is required at run time. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Carolyn Woods Sent: Monday, April 09, 2001 6:22 PM To: SQR-USERS@list.iex.net Subject: Call to a COBOL program from an SQR We are trying to figure out how to call a COBOL program from inside an SQR, has anyone done this? Thanks, Carolyn Woods MiraCosta College Oceanside, CA From owner-sqr-users@list.iex.net Thu Apr 12 12:59:17 2001 Date: Thu, 12 Apr 2001 12:54:33 -0500 From: David Thompson-Hall Subject: Re: Call to a COBOL program from an SQR At 01:47 PM 4/12/01 -0400, you wrote: >If you know how to start the COBOL program from the command line, you can >use the CALL SYSTEM USING function to execute the COBOL program. > >You can search the sqrug.com archives for lots of examples on how to >properly use CALL SYSTEM. > >If you don't know how to start the program from the command line, try to run >it that way and you may get prompted for the information that is required at >run time. However, if you're trying to call a COBOL that does DB access, then the situation is more complex. You need to be able to pass the logon and password to the database. I don't think this has been done successfully in PeopleSoft, since in that case the DB SYSADM password is a closely guarded secret, and you have to modify the PS process for calling COBOLs to pass along the password. (This is described but not detailed fully in the "SQR in Peoplesoft and other applications" book by Landries and Landries. If you can get your DBAs or Sysadmins to agree to customizing this central piece of PS functionality, maybe it would work, but ours won't.) I say I don't think it's been done in PS because I asked about this a few months ago, and nobody had an answer then either... I think for non-PeopleSoft, the trick is just calling the COBOL program correctly, and then CALL SYSTEM USING should do the trick. DTH David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Tue Apr 10 04:17:43 2001 Date: Tue, 10 Apr 2001 09:52:15 +0100 From: John Roddy Subject: SQR/REPORT BUILDER Hi All, I am new to the above products an was hoping somone could advise me on the following please. I have installed the above products, and want to create a report that will pull back 2.65 million rows from an Oracle 8i DB. The server that I have tried to run this type of report on has a dual processor, 2.75 GB of hard disk space and .5 GB of RAM. The report crashes as the machine runs out of memory. Has anybody had experience building such a large report using report builder, and what time frames could I expect to complete such a report in, (at the moment the report runs for over 4 hours before crashing) and also what hardware architecture would you recommend (RAM AND Hard disk space). Thank you John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 04:27:58 2001 Date: Tue, 10 Apr 2001 10:24:21 +0100 From: Tim Wilkinson Subject: Re: SQR/REPORT BUILDER You could try using the -Tnn parameter when running the report to make sure that it is working at least. SQR has a nasty trick of ignoring any invalid Where clauses and instead of telling you that you have an error it happily creates a cartesian, which will take forever. Also the -S parameter will tell you how many rows the report will bring back and will show any cursors etc. Looking at this you can get an idea of how long it might take and how you can get things tuned. Finally, include a counter in you SQL and o/p this using SHOW. This will tell you how many rows you have pulled back before it dies. Hope this helps. Tim (Is there no way you can restrict the data further? 2.65 million rows of information are not going to be too usefull if you are outputting them I wouldnt have thought) -----Original Message----- From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] Sent: 10 April 2001 09:52 To: SQR-USERS@list.iex.net Subject: SQR/REPORT BUILDER Hi All, I am new to the above products an was hoping somone could advise me on the following please. I have installed the above products, and want to create a report that will pull back 2.65 million rows from an Oracle 8i DB. The server that I have tried to run this type of report on has a dual processor, 2.75 GB of hard disk space and .5 GB of RAM. The report crashes as the machine runs out of memory. Has anybody had experience building such a large report using report builder, and what time frames could I expect to complete such a report in, (at the moment the report runs for over 4 hours before crashing) and also what hardware architecture would you recommend (RAM AND Hard disk space). Thank you John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 08:12:50 2001 Date: Tue, 10 Apr 2001 09:10:16 -0400 From: Scott Eubank Subject: Re: SQR/REPORT BUILDER BETTER GET MORE MEMORY. We have 600gigs of HD and 6gb of memory on our boxes. heheheheheee. What exactly are you doing? There is no way your PRINTING 2.65 million rows to paper cause you post would have read "MY SQR IS RUNNING OUT OF PAPER", so are you spinning these off to a flat file to process some other way. Are you accumulating an ARRAY? How many variables do you have? SQR keeps all global variables and arrays resident in memory and local variables are static. SO you could easily eat up .5gb of memory in a heart beat with 2.5 million rows if your sqr is written incorrectly. Scott (who's still trying to figure out how to fill up 6gb of memeory :) -----Original Message----- From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] Sent: Tuesday, April 10, 2001 4:52 AM To: SQR-USERS@list.iex.net Subject: SQR/REPORT BUILDER Hi All, I am new to the above products an was hoping somone could advise me on the following please. I have installed the above products, and want to create a report that will pull back 2.65 million rows from an Oracle 8i DB. The server that I have tried to run this type of report on has a dual processor, 2.75 GB of hard disk space and .5 GB of RAM. The report crashes as the machine runs out of memory. Has anybody had experience building such a large report using report builder, and what time frames could I expect to complete such a report in, (at the moment the report runs for over 4 hours before crashing) and also what hardware architecture would you recommend (RAM AND Hard disk space). Thank you John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 08:22:05 2001 Date: Tue, 10 Apr 2001 14:12:24 +0100 From: John Roddy Subject: Re: SQR/REPORT BUILDER Scott, I am not printing this file, I am creating a HTML File, but report builder generates a spf file of over 1gig and the HTML file was 1.8 gig before it crashed. I have about 14 variables in the query from 4 d/b tables. I know that this type of query seems excessive but I may even need to build larger queries. Would more memory solve my problem. I estimated that I would need 1gig and 30 gb hard disk space would this be sufficient?? What we would do would be zip the htm file and send it up to the web server. John > -----Original Message----- > From: Scott Eubank [SMTP:SEUBANK@ADVANCEAUTOPARTS.COM] > Sent: Tuesday, April 10, 2001 2:10 PM > To: SQR-USERS@LIST.IEX.NET > Subject: Re: SQR/REPORT BUILDER > > BETTER GET MORE MEMORY. We have 600gigs of HD and 6gb of memory on our > boxes. heheheheheee. > > What exactly are you doing? There is no way your PRINTING 2.65 million > rows to paper cause you post would have read "MY SQR IS RUNNING OUT OF > PAPER", so are you spinning these off to a flat file to process some other > way. Are you accumulating an ARRAY? How many variables do you have? > > SQR keeps all global variables and arrays resident in memory and local > variables are static. SO you could easily eat up .5gb of memory in a heart > beat with 2.5 million rows if your sqr is written incorrectly. > > > Scott > > (who's still trying to figure out how to fill up 6gb of memeory :) > > > -----Original Message----- > From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] > Sent: Tuesday, April 10, 2001 4:52 AM > To: SQR-USERS@list.iex.net > Subject: SQR/REPORT BUILDER > > > Hi All, > > I am new to the above products an was hoping somone could advise me on the > following please. > > I have installed the above products, and want to create a report that will > pull back 2.65 million rows from an Oracle 8i DB. The server that I have > tried to run this type of report on has a dual processor, 2.75 GB of hard > disk space and .5 GB of RAM. The report crashes as the machine runs out of > memory. Has anybody had experience building such a large report using > report > builder, and what time frames could I expect to complete such a report in, > (at the moment the report runs for over 4 hours before crashing) and also > what hardware architecture would you recommend (RAM AND Hard disk space). > > Thank you > > John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 08:35:51 2001 Date: Tue, 10 Apr 2001 14:24:36 +0100 From: John Roddy Subject: Re: SQR/REPORT BUILDER Thanks 4 that Scott, I think the added h/w will be needed alright. Thanks again. John PS anyone else with any ideas? > -----Original Message----- > From: Scott Eubank [SMTP:SEUBANK@ADVANCEAUTOPARTS.COM] > Sent: Tuesday, April 10, 2001 2:31 PM > To: SQR-USERS@LIST.IEX.NET > Subject: Re: SQR/REPORT BUILDER > > JOHN, > > I dont have any experience with spf files and sqr , SO I wont be of any > help here. But I sure someone will be able to help you out. But I would > gander that the added hardware would definately help. > > -----Original Message----- > From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] > Sent: Tuesday, April 10, 2001 9:12 AM > To: SQR-USERS@list.iex.net > Subject: Re: SQR/REPORT BUILDER > > > Scott, > > I am not printing this file, I am creating a HTML File, but report builder > generates a spf file of over 1gig and the HTML file was 1.8 gig before it > crashed. I have about 14 variables in the query from 4 d/b tables. I know > that this type of query seems excessive but I may even need to build > larger > queries. Would more memory solve my problem. I estimated that I would need > 1gig and 30 gb hard disk space would this be sufficient?? > > What we would do would be zip the htm file and send it up to the web > server. > > John > > > -----Original Message----- > > From: Scott Eubank [SMTP:SEUBANK@ADVANCEAUTOPARTS.COM] > > Sent: Tuesday, April 10, 2001 2:10 PM > > To: SQR-USERS@LIST.IEX.NET > > Subject: Re: SQR/REPORT BUILDER > > > > BETTER GET MORE MEMORY. We have 600gigs of HD and 6gb of memory on our > > boxes. heheheheheee. > > > > What exactly are you doing? There is no way your PRINTING 2.65 > million > > rows to paper cause you post would have read "MY SQR IS RUNNING OUT OF > > PAPER", so are you spinning these off to a flat file to process some > other > > way. Are you accumulating an ARRAY? How many variables do you have? > > > > SQR keeps all global variables and arrays resident in memory and local > > variables are static. SO you could easily eat up .5gb of memory in a > heart > > beat with 2.5 million rows if your sqr is written incorrectly. > > > > > > Scott > > > > (who's still trying to figure out how to fill up 6gb of memeory :) > > > > > > -----Original Message----- > > From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] > > Sent: Tuesday, April 10, 2001 4:52 AM > > To: SQR-USERS@list.iex.net > > Subject: SQR/REPORT BUILDER > > > > > > Hi All, > > > > I am new to the above products an was hoping somone could advise me on > the > > following please. > > > > I have installed the above products, and want to create a report that > will > > pull back 2.65 million rows from an Oracle 8i DB. The server that I have > > tried to run this type of report on has a dual processor, 2.75 GB of > hard > > disk space and .5 GB of RAM. The report crashes as the machine runs out > of > > memory. Has anybody had experience building such a large report using > > report > > builder, and what time frames could I expect to complete such a report > in, > > (at the moment the report runs for over 4 hours before crashing) and > also > > what hardware architecture would you recommend (RAM AND Hard disk > space). > > > > Thank you > > > > John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 08:31:48 2001 Date: Tue, 10 Apr 2001 09:30:34 -0400 From: Scott Eubank Subject: Re: SQR/REPORT BUILDER JOHN, I dont have any experience with spf files and sqr , SO I wont be of any help here. But I sure someone will be able to help you out. But I would gander that the added hardware would definately help. -----Original Message----- From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] Sent: Tuesday, April 10, 2001 9:12 AM To: SQR-USERS@list.iex.net Subject: Re: SQR/REPORT BUILDER Scott, I am not printing this file, I am creating a HTML File, but report builder generates a spf file of over 1gig and the HTML file was 1.8 gig before it crashed. I have about 14 variables in the query from 4 d/b tables. I know that this type of query seems excessive but I may even need to build larger queries. Would more memory solve my problem. I estimated that I would need 1gig and 30 gb hard disk space would this be sufficient?? What we would do would be zip the htm file and send it up to the web server. John > -----Original Message----- > From: Scott Eubank [SMTP:SEUBANK@ADVANCEAUTOPARTS.COM] > Sent: Tuesday, April 10, 2001 2:10 PM > To: SQR-USERS@LIST.IEX.NET > Subject: Re: SQR/REPORT BUILDER > > BETTER GET MORE MEMORY. We have 600gigs of HD and 6gb of memory on our > boxes. heheheheheee. > > What exactly are you doing? There is no way your PRINTING 2.65 million > rows to paper cause you post would have read "MY SQR IS RUNNING OUT OF > PAPER", so are you spinning these off to a flat file to process some other > way. Are you accumulating an ARRAY? How many variables do you have? > > SQR keeps all global variables and arrays resident in memory and local > variables are static. SO you could easily eat up .5gb of memory in a heart > beat with 2.5 million rows if your sqr is written incorrectly. > > > Scott > > (who's still trying to figure out how to fill up 6gb of memeory :) > > > -----Original Message----- > From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] > Sent: Tuesday, April 10, 2001 4:52 AM > To: SQR-USERS@list.iex.net > Subject: SQR/REPORT BUILDER > > > Hi All, > > I am new to the above products an was hoping somone could advise me on the > following please. > > I have installed the above products, and want to create a report that will > pull back 2.65 million rows from an Oracle 8i DB. The server that I have > tried to run this type of report on has a dual processor, 2.75 GB of hard > disk space and .5 GB of RAM. The report crashes as the machine runs out of > memory. Has anybody had experience building such a large report using > report > builder, and what time frames could I expect to complete such a report in, > (at the moment the report runs for over 4 hours before crashing) and also > what hardware architecture would you recommend (RAM AND Hard disk space). > > Thank you > > John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 08:37:18 2001 Date: Tue, 10 Apr 2001 09:36:15 -0400 From: Scott Eubank Subject: Re: SQR/REPORT BUILDER I mean no experience with HTML FILES ... -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 10, 2001 9:31 AM To: SQR-USERS@list.iex.net Subject: Re: SQR/REPORT BUILDER JOHN, I dont have any experience with spf files and sqr , SO I wont be of any help here. But I sure someone will be able to help you out. But I would gander that the added hardware would definately help. -----Original Message----- From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] Sent: Tuesday, April 10, 2001 9:12 AM To: SQR-USERS@list.iex.net Subject: Re: SQR/REPORT BUILDER Scott, I am not printing this file, I am creating a HTML File, but report builder generates a spf file of over 1gig and the HTML file was 1.8 gig before it crashed. I have about 14 variables in the query from 4 d/b tables. I know that this type of query seems excessive but I may even need to build larger queries. Would more memory solve my problem. I estimated that I would need 1gig and 30 gb hard disk space would this be sufficient?? What we would do would be zip the htm file and send it up to the web server. John > -----Original Message----- > From: Scott Eubank [SMTP:SEUBANK@ADVANCEAUTOPARTS.COM] > Sent: Tuesday, April 10, 2001 2:10 PM > To: SQR-USERS@LIST.IEX.NET > Subject: Re: SQR/REPORT BUILDER > > BETTER GET MORE MEMORY. We have 600gigs of HD and 6gb of memory on our > boxes. heheheheheee. > > What exactly are you doing? There is no way your PRINTING 2.65 million > rows to paper cause you post would have read "MY SQR IS RUNNING OUT OF > PAPER", so are you spinning these off to a flat file to process some other > way. Are you accumulating an ARRAY? How many variables do you have? > > SQR keeps all global variables and arrays resident in memory and local > variables are static. SO you could easily eat up .5gb of memory in a heart > beat with 2.5 million rows if your sqr is written incorrectly. > > > Scott > > (who's still trying to figure out how to fill up 6gb of memeory :) > > > -----Original Message----- > From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] > Sent: Tuesday, April 10, 2001 4:52 AM > To: SQR-USERS@list.iex.net > Subject: SQR/REPORT BUILDER > > > Hi All, > > I am new to the above products an was hoping somone could advise me on the > following please. > > I have installed the above products, and want to create a report that will > pull back 2.65 million rows from an Oracle 8i DB. The server that I have > tried to run this type of report on has a dual processor, 2.75 GB of hard > disk space and .5 GB of RAM. The report crashes as the machine runs out of > memory. Has anybody had experience building such a large report using > report > builder, and what time frames could I expect to complete such a report in, > (at the moment the report runs for over 4 hours before crashing) and also > what hardware architecture would you recommend (RAM AND Hard disk space). > > Thank you > > John Roddy. From owner-sqr-users@list.iex.net Tue Apr 10 09:06:26 2001 Date: Tue, 10 Apr 2001 10:03:08 -0400 From: George Jansen Subject: Re: SQR/REPORT BUILDER If all you're generating is HTML, why incur the overhead of SQR? But why generate a 2.6M-row HTML file? HTML is a not a great format for so much data. Oracle, on the other hand, is an excellent place to keep the 2.6M rows, so that the fraction you need will be quickly retrieved. From owner-sqr-users@list.iex.net Tue Apr 10 09:25:56 2001 Date: Tue, 10 Apr 2001 15:23:15 +0100 From: Brian Smith Subject: Re: SQR/REPORT BUILDER Sorry John, but this seems a hugely a misguided exercise, and more hardware is unlikely to solve your problem. What on earth is the use of a 1.8GB HTML file - who could read it? The SQL language was invented to query large amounts of data without needing to ship them around the network. I suggest you leave your data in Oracle. Alternatively, investigate some Data Warehouse technologies - Microsoft SQL Server would be a good start. Brian Smith -----Original Message----- From: John Roddy [mailto:jroddy@BROMLEYGROUP.IE] Sent: Tuesday, 10 April 2001 14:12 To: SQR-USERS@list.iex.net Subject: Re: SQR/REPORT BUILDER Scott, I am not printing this file, I am creating a HTML File, but report builder generates a spf file of over 1gig and the HTML file was 1.8 gig before it crashed. I have about 14 variables in the query from 4 d/b tables. I know that this type of query seems excessive but I may even need to build larger queries. Would more memory solve my problem. I estimated that I would need 1gig and 30 gb hard disk space would this be sufficient?? What we would do would be zip the htm file and send it up to the web server. John ***IMPORTANT*** The information in this mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Tempo Ltd or any of its affiliates. From owner-sqr-users@list.iex.net Wed Apr 11 09:45:36 2001 Date: Wed, 11 Apr 2001 07:41:41 -0700 From: David Smith Subject: Re: SQR/REPORT BUILDER John, I think you should look at some of the Oracle tools since you have 8i, there are ways to set up dynamic paged HTML views of data that are much more efficient than using SQR to write a huge file. David L Smith IBM Global Services From owner-sqr-users@list.iex.net Tue Apr 10 09:23:34 2001 Date: Tue, 10 Apr 2001 10:10:52 -0400 From: "Wolverton, Jeff" Subject: Tell Me If I've Got It Right To all: Please review this short count routine below (I didn't write it) and tell me if my understanding of the routine is correct. If my understanding of the routine is incorrect, please open my understanding. For the record, I have 15 years of programming experience, but am new to SQR3. Respectfully, Jeff Wolverton American Red Cross Falls Church, Virginia BEGIN-PROCEDURE count_records begin-select COUNT(E.EQNUM) &eqcount from equipment e, eqstatus s ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE changedate in (SELECT MAX(s.CHANGEDATE) from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+)GROUP BY e.EQNUM) ! Mod4 AND code = $disposed) ! Mod8 AND [$regulated2] and code = $disposed) ! Mod4 end-select END-PROCEDURE Here's my dissect: COUNT(E.EQNUM) &eqcount from equipment e, eqstatus s --> count the e.eqnum records and call the count field eqcount ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE changedate in (SELECT MAX(s.CHANGEDATE) from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+)GROUP BY e.EQNUM) ! Mod4 AND code = $disposed) ! Mod8 AND [$regulated2] and code = $disposed) ! Mod4 --> First it would be nice to know the values in $where and $regulated2. $where will be an equipment number, and $regulated 2 will contain one of three values: 1) e.eq9=''Y', 2) e.eq9=''N', or 3) 1=1 ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM NOT IN --> the line has a comment, but it also has an end comment, so the logic in this line says to count the record if the equipment number in $where is found and equipment number from eqstatus = equipment number in equipment (the plus sign says I want all the eqstatus records regardless) and equipment number is not in the next query (SELECT EQNUM FROM EQSTATUS WHERE where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND E.EQNUM NOT IN --> the logic is the same as the last piece with the addition of also including the value of $regulated2 (SELECT EQNUM FROM EQSTATUS WHERE changedate in (SELECT MAX(s.CHANGEDATE) --> this logic selects equipment numbers from eqstatus if the field changedate (in eqstatus) is = the maximum changedate, e.g., if the highest changedate is 20010409, then that's the date with the maximum changedate from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+) GROUP BY e.EQNUM) --> the selection is from eqstatus, and equipment. When retrieving records from equipment the equipment number must match equipment number in eqstatus (again we want the records in eqstatus regardless). Group the records by equipment number in equipment. AND code = $disposed) --> this is the last piece because the other lines are comments. This line says if code = the value in $disposed. Let's simplify the "weeding out" logic. Let's says the value of $regulated2 = "e.eq9='Y'", and the maximum change date is April 9, 2001 (20010409). This would mean that records in eqstatus with a changedate of 20010409 and/or records in equipment with eq9='Y' would be bypassed because the logic said to exclude them (E.EQNUM NOT IN). From owner-sqr-users@list.iex.net Tue Apr 10 10:57:20 2001 Date: Tue, 10 Apr 2001 10:53:47 -0500 From: Ray Ontko Subject: Re: Tell Me If I've Got It Right Jeff, ! mod8 ! where ... does not contain an "end comment". The second ! is simply part of the comment which begins at the start of the line. Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > To all: > > Please review this short count routine below (I didn't write it) and tell me > if my understanding of the routine is correct. If my understanding of the > routine is incorrect, please open my understanding. > > For the record, I have 15 years of programming experience, but am new to > SQR3. > > Respectfully, > > Jeff Wolverton > American Red Cross > Falls Church, Virginia > > > BEGIN-PROCEDURE count_records > begin-select > COUNT(E.EQNUM) &eqcount > from equipment e, eqstatus s > ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM > NOT IN (SELECT EQNUM FROM EQSTATUS WHERE > where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND > E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE > changedate in (SELECT MAX(s.CHANGEDATE) > from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+)GROUP > BY e.EQNUM) > > ! Mod4 > AND code = $disposed) > ! Mod8 AND [$regulated2] and code = $disposed) > ! Mod4 > > end-select > END-PROCEDURE > > > > Here's my dissect: > > COUNT(E.EQNUM) &eqcount > from equipment e, eqstatus s > --> count the e.eqnum records and call the count field eqcount > > ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM > NOT IN (SELECT EQNUM FROM EQSTATUS WHERE > where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND > E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE > changedate in (SELECT MAX(s.CHANGEDATE) > from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+)GROUP > BY e.EQNUM) > > ! Mod4 > AND code = $disposed) > ! Mod8 AND [$regulated2] and code = $disposed) > ! Mod4 > --> First it would be nice to know the values in $where and > $regulated2. > $where will be an equipment number, and $regulated 2 will contain > one of three values: 1) e.eq9=''Y', 2) e.eq9=''N', or 3) 1=1 > > ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM > NOT IN > --> the line has a comment, but it also has an end comment, so the > logic in this line says to count the record if the equipment number in > $where is found and equipment number from eqstatus = equipment number in > equipment (the plus sign says I want all the eqstatus records regardless) > and equipment number is not in the next query > > (SELECT EQNUM FROM EQSTATUS WHERE > where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND > E.EQNUM NOT IN > --> the logic is the same as the last piece with the addition of > also including the value of $regulated2 > > (SELECT EQNUM FROM EQSTATUS WHERE > changedate in (SELECT MAX(s.CHANGEDATE) > --> this logic selects equipment numbers from eqstatus if the field > changedate (in eqstatus) is = the maximum changedate, e.g., if the highest > changedate is 20010409, then that's the date with the maximum changedate > > from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+) GROUP BY > e.EQNUM) > --> the selection is from eqstatus, and equipment. When retrieving > records from equipment the equipment number must match equipment number in > eqstatus (again we want the records in eqstatus regardless). Group the > records by equipment number in equipment. > > AND code = $disposed) > --> this is the last piece because the other lines are comments. > This line says if code = the value in $disposed. > > > Let's simplify the "weeding out" logic. Let's says the value of > $regulated2 = "e.eq9='Y'", and the maximum change date is April 9, 2001 > (20010409). This would mean that records in eqstatus with a changedate of > 20010409 and/or records in equipment with eq9='Y' would be bypassed because > the logic said to exclude them (E.EQNUM NOT IN). > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Tue Apr 10 11:08:35 2001 Date: Tue, 10 Apr 2001 12:04:23 -0400 From: George Jansen Subject: Re: Tell Me If I've Got It Right You have my sympathy. 1. The join in the first subquery is meaningless. No aliases E or S are defined in the subquery, so the condition checked is the same as in the main query. 2. On the other hand, it's also pointless. I don't see a thing you gain by including the check, since you're already checking implicitly in the NOT IN. 3. The second and third subqueries are either meaningless or improperly written. If there's anything at all with a non-null changedate in eqstatus, you will always get a row returned. My best guess for what you really want would be something like begin-select count(e.eqnum) &eqcount from equipment e, eqstatus s where [$where] and e.eqnum = s.eqnum(+) and not exists (select 1 from eqstatus s where [$where] and [$regulated] and s.eqnum = e.eqnum and changedate is not null) end-select >>> WolvertonJ@USA.REDCROSS.ORG 04/10/01 10:10AM >>> To all: Please review this short count routine below (I didn't write it) and tell me if my understanding of the routine is correct. If my understanding of the routine is incorrect, please open my understanding. For the record, I have 15 years of programming experience, but am new to SQR3. Respectfully, Jeff Wolverton American Red Cross Falls Church, Virginia BEGIN-PROCEDURE count_records begin-select COUNT(E.EQNUM) &eqcount from equipment e, eqstatus s ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE changedate in (SELECT MAX(s.CHANGEDATE) from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+)GROUP BY e.EQNUM) ! Mod4 AND code = $disposed) ! Mod8 AND [$regulated2] and code = $disposed) ! Mod4 end-select END-PROCEDURE Here's my dissect: COUNT(E.EQNUM) &eqcount from equipment e, eqstatus s --> count the e.eqnum records and call the count field eqcount ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND E.EQNUM NOT IN (SELECT EQNUM FROM EQSTATUS WHERE changedate in (SELECT MAX(s.CHANGEDATE) from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+)GROUP BY e.EQNUM) ! Mod4 AND code = $disposed) ! Mod8 AND [$regulated2] and code = $disposed) ! Mod4 --> First it would be nice to know the values in $where and $regulated2. $where will be an equipment number, and $regulated 2 will contain one of three values: 1) e.eq9=''Y', 2) e.eq9=''N', or 3) 1=1 ! Mod8 ! where [$where] and s.eqnum(+)=e.eqnum AND E.EQNUM NOT IN --> the line has a comment, but it also has an end comment, so the logic in this line says to count the record if the equipment number in $where is found and equipment number from eqstatus = equipment number in equipment (the plus sign says I want all the eqstatus records regardless) and equipment number is not in the next query (SELECT EQNUM FROM EQSTATUS WHERE where [$where] and s.eqnum(+)=e.eqnum AND [$regulated2] AND E.EQNUM NOT IN --> the logic is the same as the last piece with the addition of also including the value of $regulated2 (SELECT EQNUM FROM EQSTATUS WHERE changedate in (SELECT MAX(s.CHANGEDATE) --> this logic selects equipment numbers from eqstatus if the field changedate (in eqstatus) is = the maximum changedate, e.g., if the highest changedate is 20010409, then that's the date with the maximum changedate from eqstatus S, EQUIPMENT E WHERE e.EQNUM=s.EQNUM(+) GROUP BY e.EQNUM) --> the selection is from eqstatus, and equipment. When retrieving records from equipment the equipment number must match equipment number in eqstatus (again we want the records in eqstatus regardless). Group the records by equipment number in equipment. AND code = $disposed) --> this is the last piece because the other lines are comments. This line says if code = the value in $disposed. Let's simplify the "weeding out" logic. Let's says the value of $regulated2 = "e.eq9='Y'", and the maximum change date is April 9, 2001 (20010409). This would mean that records in eqstatus with a changedate of 20010409 and/or records in equipment with eq9='Y' would be bypassed because the logic said to exclude them (E.EQNUM NOT IN). From owner-sqr-users@list.iex.net Wed Apr 11 10:27:16 2001 Date: Wed, 11 Apr 2001 08:22:56 -0700 From: David Smith Subject: Re: Tell Me If I've Got It Right Jeff, It looks like a Maximo report, have you asked the users exactly what they are trying to count here? If they can come up with a semi-coherent explanation of what they want to count, I'm sure we can write a sql select to match it. David L Smith IBM Global Services From owner-sqr-users@list.iex.net Wed Apr 11 10:34:39 2001 Date: Wed, 11 Apr 2001 11:31:34 -0400 From: "Wolverton, Jeff" Subject: Re: Tell Me If I've Got It Right Thank you, -----Original Message----- From: David Smith [mailto:davesmit@US.IBM.COM] Sent: Wednesday, April 11, 2001 11:23 AM To: SQR-USERS@list.iex.net Subject: Re: Tell Me If I've Got It Right Jeff, It looks like a Maximo report, have you asked the users exactly what they are trying to count here? If they can come up with a semi-coherent explanation of what they want to count, I'm sure we can write a sql select to match it. David L Smith IBM Global Services From owner-sqr-users@list.iex.net Tue Apr 10 12:33:38 2001 Date: Tue, 10 Apr 2001 13:14:11 -0400 From: Steve Rogers Subject: use of curdate within MVS - should it work? We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to MVS. While testing an SQR containing the following code - FROM PS_JOBCODE_TBL JC WHERE JC.SETID = SETID ! AND JC.JOBCODE like 'K%' AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) FROM PS_JOBCODE_TBL JC1 WHERE JC1.JOBCODE = JC.JOBCODE AND JC1.EFFDT <= curdate() ) AND JC.EFF_STATUS = 'A' I received an error that indicated that MVS could not handle curdate. Here is the error (SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' INFORMATION Can anyone tell me why this is happening and how to resolve it? thanks, Steve From owner-sqr-users@list.iex.net Tue Apr 10 12:51:03 2001 Date: Tue, 10 Apr 2001 13:38:36 -0400 From: Cindy Chen Subject: Re: use of curdate within MVS - should it work? Hi, Try AND JC1.EFFDT<= CURRENT DATE) -Cindy At 01:14 PM 4/10/2001 -0400, you wrote: >We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to >MVS. While testing an SQR containing the following code - > > FROM PS_JOBCODE_TBL JC > WHERE JC.SETID = SETID ! > AND JC.JOBCODE like 'K%' > AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) > FROM PS_JOBCODE_TBL JC1 > WHERE JC1.JOBCODE = JC.JOBCODE > AND JC1.EFFDT <= curdate() ) > AND JC.EFF_STATUS = 'A' > > I received an error that indicated that MVS could not handle > curdate. Here >is the error > >(SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: > DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING >COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH > > DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE > DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR > DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION > DSNT416I SQLERRD = > X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' > INFORMATION > > Can anyone tell me why this is happening and how to resolve it? > > thanks, > Steve From owner-sqr-users@list.iex.net Tue Apr 10 12:52:43 2001 Date: Tue, 10 Apr 2001 13:45:50 -0400 From: Victor Loghin Subject: Re: use of curdate within MVS - should it work? Steve, I have never heard of the curdate function (only up to 4.3.4). Is it a custom function? Anyways, for DB2 use CURRENT DATE. HTH, Victor Loghin VGL Consulting Inc. vgl_ca@hotmail.com ----Original Message Follows---- From: Steve Rogers Subject: use of curdate within MVS - should it work? Date: Tue, 10 Apr 2001 13:14:11 -0400 We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to MVS. While testing an SQR containing the following code - FROM PS_JOBCODE_TBL JC WHERE JC.SETID = SETID ! AND JC.JOBCODE like 'K%' AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) FROM PS_JOBCODE_TBL JC1 WHERE JC1.JOBCODE = JC.JOBCODE AND JC1.EFFDT <= curdate() ) AND JC.EFF_STATUS = 'A' I received an error that indicated that MVS could not handle curdate. Here is the error (SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' INFORMATION Can anyone tell me why this is happening and how to resolve it? thanks, Steve _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Tue Apr 10 13:05:11 2001 Date: Tue, 10 Apr 2001 12:53:22 -0500 From: Ron Baker Subject: Re: use of curdate within MVS - should it work? I'm not sure from an AS-400 perspective, but on MVS OS/390, I do know that if you substitute "CURRENT DATE" in place of "curdate()" it should work fine for you. Ron IS&T Steve Rogers cc: Sent by: Subject: use of curdate within MVS - should "Discussion of it work? SQR, Brio Technology's database reporting language" 04/10/01 12:14 PM Please respond to sqr-users We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to MVS. While testing an SQR containing the following code - FROM PS_JOBCODE_TBL JC WHERE JC.SETID = SETID ! AND JC.JOBCODE like 'K%' AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) FROM PS_JOBCODE_TBL JC1 WHERE JC1.JOBCODE = JC.JOBCODE AND JC1.EFFDT <= curdate() ) AND JC.EFF_STATUS = 'A' I received an error that indicated that MVS could not handle curdate. Here is the error (SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' INFORMATION Can anyone tell me why this is happening and how to resolve it? thanks, Steve From owner-sqr-users@list.iex.net Tue Apr 10 13:00:45 2001 Date: Tue, 10 Apr 2001 13:59:38 -0400 From: csmyth Subject: Re: use of curdate within MVS - should it work? That piece of the code to retrieve the date from the database is database specific. What database engine were you using on the AS-400? Is it the same as on the MVS? Same version? In SQL Server in that cicumstance you would use Getdate() and in Oracle is is something different that I don't remember off hand. Find out what you would use in DB2 and that should be what you put in the SQR. Cameron Steve Rogers wrote: > We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to > MVS. While testing an SQR containing the following code - > > FROM PS_JOBCODE_TBL JC > WHERE JC.SETID = SETID ! > AND JC.JOBCODE like 'K%' > AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) > FROM PS_JOBCODE_TBL JC1 > WHERE JC1.JOBCODE = JC.JOBCODE > AND JC1.EFFDT <= curdate() ) > AND JC.EFF_STATUS = 'A' > > I received an error that indicated that MVS could not handle curdate. Here > is the error > > (SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: > DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING > COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH > > DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE > DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR > DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION > DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' > INFORMATION > > Can anyone tell me why this is happening and how to resolve it? > > thanks, > Steve From owner-sqr-users@list.iex.net Tue Apr 10 13:35:34 2001 Date: Tue, 10 Apr 2001 14:33:44 -0400 From: csmyth Subject: Re: use of curdate within MVS - should it work? I should add that PeopleSoft provides SQR routines to return the curent date for all suported platforms. Instead of including that database function in the SQL you should use the variable $asoftoday which is populated with the current date in the routine Get-Current-datetime. Make sure you have the file CURDTTIM.SQC included in the program. Cameron csmyth wrote: > That piece of the code to retrieve the date from the database is database specific. > > What database engine were you using on the AS-400? Is it the same as on the MVS? > Same version? > > In SQL Server in that cicumstance you would use Getdate() and in Oracle is is > something different that I don't remember off hand. Find out what you would use in > DB2 and that should be what you put in the SQR. > > Cameron > > Steve Rogers wrote: > > > We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to > > MVS. While testing an SQR containing the following code - > > > > FROM PS_JOBCODE_TBL JC > > WHERE JC.SETID = SETID ! > > AND JC.JOBCODE like 'K%' > > AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) > > FROM PS_JOBCODE_TBL JC1 > > WHERE JC1.JOBCODE = JC.JOBCODE > > AND JC1.EFFDT <= curdate() ) > > AND JC.EFF_STATUS = 'A' > > > > I received an error that indicated that MVS could not handle curdate. Here > > is the error > > > > (SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: > > DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING > > COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH > > > > DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE > > DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR > > DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION > > DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' > > INFORMATION > > > > Can anyone tell me why this is happening and how to resolve it? > > > > thanks, > > Steve From owner-sqr-users@list.iex.net Tue Apr 10 13:26:39 2001 Date: Tue, 10 Apr 2001 18:22:30 -0000 From: Venkat Goda Subject: Re: use of curdate within MVS - should it work?



Try using CURRENT DATE instead of the date function.
>From: Steve Rogers
>Reply-To: sqr-users@list.iex.net
>To: SQR-USERS@list.iex.net
>Subject: use of curdate within MVS - should it work?
>Date: Tue, 10 Apr 2001 13:14:11 -0400
>
>We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to
>MVS. While testing an SQR containing the following code -
>
> FROM PS_JOBCODE_TBL JC
> WHERE JC.SETID = SETID !
> AND JC.JOBCODE like 'K%'
> AND JC.EFFDT = (SELECT MAX(JC1.EFFDT)
> FROM PS_JOBCODE_TBL JC1
> WHERE JC1.JOBCODE = JC.JOBCODE
> AND JC1.EFFDT <= curdate() )
> AND JC.EFF_STATUS = 'A'
>
> I received an error that indicated that MVS could not handle curdate. Here
>is the error
>
>(SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5:
> DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING
>COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH
>
> DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE
> DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR
> DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
> DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X'
> INFORMATION
>
> Can anyone tell me why this is happening and how to resolve it?
>
> thanks,
> Steve


Get your FREE download of MSN Explorer at http://explorer.msn.com

From owner-sqr-users@list.iex.net Tue Apr 10 13:45:12 2001 Date: Tue, 10 Apr 2001 11:41:53 -0700 From: Lakshmana Prasad Subject: Re: use of curdate within MVS - should it work? In any case if U want to findout the current date then just write a select statement and get the currentdate select sysdate into today_date from dual; Or U can use the date functions defined in the SQR. lakshman. --- Venkat Goda wrote:



Try using CURRENT DATE instead of the date function.
>From: Steve Rogers
>Reply-To: sqr-users@list.iex.net
>To: SQR-USERS@list.iex.net
>Subject: use of curdate within MVS - should it work?
>Date: Tue, 10 Apr 2001 13:14:11 -0400
>
>We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to
>MVS. While testing an SQR containing the following code -
>
> FROM PS_JOBCODE_TBL JC
> WHERE JC.SETID = SETID !
> AND JC.JOBCODE like 'K%'
> AND JC.EFFDT = (SELECT MAX(JC1.EFFDT)
> FROM PS_JOBCODE_TBL JC1
> WHERE JC1.JOBCODE = JC.JOBCODE
> AND JC1.EFFDT <= curdate() )
> AND JC.EFF_STATUS = 'A'
>
> I received an error that indicated that MVS could not handle curdate. Here
>is the error
>
>(SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5:
> DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING
>COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH
>
> DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE
> DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR
> DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
> DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X'
> INFORMATION
>
> Can anyone tell me why this is happening and how to resolve it?
>
> thanks,
> Steve


Get your FREE download of MSN Explorer at http://explorer.msn.com

===== This Message from gantalp(Chinni). All The best. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From owner-sqr-users@list.iex.net Tue Apr 10 14:12:31 2001 Date: Tue, 10 Apr 2001 15:08:39 -0400 From: Rod Wright Subject: Re: use of curdate within MVS - should it work? DUAL is specific to Oracle. It doesn't exist in DB2. Lakshmana Prasad on 04/10/2001 02:41:53 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rodney Wright/Trcb/Rouse) Subject: Re: use of curdate within MVS - should it work? In any case if U want to findout the current date then just write a select statement and get the currentdate select sysdate into today_date from dual; Or U can use the date functions defined in the SQR. lakshman. --- Venkat Goda wrote:



Try using CURRENT DATE instead of the date function.
>From: Steve Rogers
>Reply-To: sqr-users@list.iex.net
>To: SQR-USERS@list.iex.net
>Subject: use of curdate within MVS - should it work?
>Date: Tue, 10 Apr 2001 13:14:11 -0400
>
>We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to
>MVS. While testing an SQR containing the following code -
>
> FROM PS_JOBCODE_TBL JC
> WHERE JC.SETID = SETID !
> AND JC.JOBCODE like 'K%'
> AND JC.EFFDT = (SELECT MAX(JC1.EFFDT)
> FROM PS_JOBCODE_TBL JC1
> WHERE JC1.JOBCODE = JC.JOBCODE
> AND JC1.EFFDT <= curdate() )
> AND JC.EFF_STATUS = 'A'
>
> I received an error that indicated that MVS could not handle curdate. Here
>is the error
>
>(SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5:
> DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING
>COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH
>
> DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE
> DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR
> DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
> DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X'
> INFORMATION
>
> Can anyone tell me why this is happening and how to resolve it?
>
> thanks,
> Steve


Get your FREE download of MSN Explorer at http://explorer.msn.com

===== This Message from gantalp(Chinni). All The best. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From owner-sqr-users@list.iex.net Tue Apr 10 14:20:25 2001 Date: Tue, 10 Apr 2001 12:15:42 -0700 From: mandava Subject: Re: use of curdate within MVS - should it work? Steve if it's DB2 database use CURRENT DATE instead curdate() ----- Original Message ----- From: "Steve Rogers" To: Sent: Tuesday, April 10, 2001 10:14 AM Subject: use of curdate within MVS - should it work? > We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to > MVS. While testing an SQR containing the following code - > > FROM PS_JOBCODE_TBL JC > WHERE JC.SETID = SETID ! > AND JC.JOBCODE like 'K%' > AND JC.EFFDT = (SELECT MAX(JC1.EFFDT) > FROM PS_JOBCODE_TBL JC1 > WHERE JC1.JOBCODE = JC.JOBCODE > AND JC1.EFFDT <= curdate() ) > AND JC.EFF_STATUS = 'A' > > I received an error that indicated that MVS could not handle curdate. Here > is the error > > (SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5: > DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING > COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH > > DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE > DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR > DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION > DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X' > INFORMATION > > Can anyone tell me why this is happening and how to resolve it? > > thanks, > Steve > From owner-sqr-users@list.iex.net Tue Apr 10 15:33:56 2001 Date: Tue, 10 Apr 2001 16:28:08 -0400 From: Jeff Berkhimer Subject: Re: use of curdate within MVS - should it work?

Steve,

Your date problem seems solved.  Just wanted to point out that the subselect was incorrect in that the setid was omitted.  If you are using multiple setid's, you are screwed.

Jeff Berkhimer, Ogden Corp.

----Original Message Follows----

From: Steve Rogers
Reply-To: sqr-users@list.iex.net
To: SQR-USERS@list.iex.net
Subject: use of curdate within MVS - should it work?
Date: Tue, 10 Apr 2001 13:14:11 -0400
We are in the process of converting AS-400 version 7.5 of PeopleSoft HRMS to
MVS. While testing an SQR containing the following code -
FROM PS_JOBCODE_TBL JC
WHERE JC.SETID = SETID !
AND JC.JOBCODE like 'K%'
AND JC.EFFDT = (SELECT MAX(JC1.EFFDT)
FROM PS_JOBCODE_TBL JC1
WHERE JC1.JOBCODE = JC.JOBCODE
AND JC1.EFFDT <= curdate() )
AND JC.EFF_STATUS = 'A'
I received an error that indicated that MVS could not handle curdate. Here
is the error
(SQR 5528) DB2 SQL PREPARE/DECLARE error -440 in cursor 5:
DSNT408I SQLCODE = -440, ERROR: NO FUNCTION BY THE NAME CURDATE HAVING
COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH
DSNT418I SQLSTATE = 42884 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXORFN SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = -100 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'FFFFFF9C' X'00000000' X'00000000' X'FFFFFFFF' X'
INFORMATION
Can anyone tell me why this is happening and how to resolve it?
thanks,
Steve


Get your FREE download of MSN Explorer at http://explorer.msn.com

From owner-sqr-users@list.iex.net Tue Apr 10 15:00:42 2001 Date: Tue, 10 Apr 2001 15:56:40 -0400 From: "Cadenas, Maria (MT)" Subject: Unstring by more than one delimiter my input data looks the following way: "Mark","Jones","100 Spruce",... so that the values are in quotes and separated by commas. Is there a way to Unstring this data into substrings with values without quotes or commas? From owner-sqr-users@list.iex.net Tue Apr 10 15:20:11 2001 Date: Tue, 10 Apr 2001 15:05:00 -0500 From: "Miller, Randell E" Subject: Re: Unstring by more than one delimiter There may be a cleaner way, but I did the following after the unstring let $PoID = ltrim(rtrim($PoID,'"'),'"') for each field. Randy > -----Original Message----- > From: Cadenas, Maria (MT) [SMTP:MCadenas@DOW.COM] > Sent: Tuesday, April 10, 2001 2:57 PM > To: SQR-USERS@list.iex.net > Subject: Unstring by more than one delimiter > > my input data looks the following way: > > "Mark","Jones","100 Spruce",... > > so that the values are in quotes and separated by commas. > > Is there a way to Unstring this data into substrings with values without > quotes or commas? From owner-sqr-users@list.iex.net Tue Apr 10 15:29:26 2001 Date: Tue, 10 Apr 2001 16:17:33 -0400 From: Glenn Coulter Subject: Re: Unstring by more than one delimiter If all the fields are delimited by both the " and the , why not use the translate function to strip all the " characters from your strings after you unstring using the , character. Two steps but it would work.. Glenn -----Original Message----- From: Cadenas, Maria (MT) [mailto:MCadenas@DOW.COM] Sent: Tuesday, April 10, 2001 3:57 PM To: SQR-USERS@list.iex.net Subject: Unstring by more than one delimiter my input data looks the following way: "Mark","Jones","100 Spruce",... so that the values are in quotes and separated by commas. Is there a way to Unstring this data into substrings with values without quotes or commas? From owner-sqr-users@list.iex.net Tue Apr 10 15:28:03 2001 Date: Tue, 10 Apr 2001 14:23:23 -0600 From: Roger Harris Subject: Re: Unstring by more than one delimiter Maria, Try this. Let $string = rtrim(ltrim($string,'"'),'"') !Removes first and last double quotes then Unstring $string By '","' into $var1 $var2 ... !The By value of Unstring is not restricted to a single charater Roger L. Harris "Cadenas, Maria (MT)" To: SQR-USERS@list.iex.net bcc: Sent by: Subject: Unstring by more than one delimiter "Discussion of SQR, Brio Technology's database reporting language" 04/10/2001 01:56 PM Please respond to sqr-users my input data looks the following way: "Mark","Jones","100 Spruce",... so that the values are in quotes and separated by commas. Is there a way to Unstring this data into substrings with values without quotes or commas? From owner-sqr-users@list.iex.net Wed Apr 11 05:24:24 2001 Date: Wed, 11 Apr 2001 09:19:59 +0100 From: Alan Heslop Subject: Re: Unstring by more than one delimiter The following code will do it for you. You can have as many output variables in the unstring command as you want. It can be more than number of substrings returned. let $doublequote = '"' let $space = '' let $input = '"Mark","Jones","100 Spruce"' let $stripped = translate($input,$doublequote,$space) !strip input of " unstring $stripped by ',' into $var1 $var2 $var3 $var4....... !seperate input by , Alan -----Original Message----- From: Cadenas, Maria (MT) [mailto:MCadenas@DOW.COM] Sent: 10 April 2001 20:57 To: SQR-USERS@list.iex.net Subject: Unstring by more than one delimiter my input data looks the following way: "Mark","Jones","100 Spruce",... so that the values are in quotes and separated by commas. Is there a way to Unstring this data into substrings with values without quotes or commas? From owner-sqr-users@list.iex.net Tue Apr 10 15:01:08 2001 Date: Tue, 10 Apr 2001 14:59:49 -0500 From: "Lu, Clint" Subject: how to call cobol program Hi all We are currently processing the leave accrual manual from process scheduler by selecting each benefit plan. Is there anyway to get this manual to automate processed? The way I think to solve this situation is to write a sqr program to call the cobol modules in side the sqr program. Have anyone done this type of the process before. I would like to share this information. Your suggestion is much appreciate. Clint Lu Sr. Programmer/Analyst Caremark Rx, Inc. Phone: (847) 559-4717 Fax : (847) 559-4840 From owner-sqr-users@list.iex.net Wed Apr 11 09:04:10 2001 Date: Wed, 11 Apr 2001 10:02:21 -0400 From: Scott Eubank Subject: Interfaces in PeopleSoft. I want to automate an interface. Background I have GL data (Journals) coming to me from an AS/400 and then loaded into our RS/6000 running AIX. I have an SQR the pre-process the AS/400 file to create a file that PS provided GLS9002.SQR can then load into peoplesoft. I have been asked to automate the process. Like this, the only thing that the User does is kick off the process on the AS/400, which then ftp's the finished file to the RS/6000 , which then runs the preprocess, renames the AS/400 file ,emails the user the hash totals report, then runs GLS9002, and then notifies the user that the entire process is complete. I was thinking about creating an SQR to run the preprocess, rename the files, email the user w/ the hash totals, and excute GLS9002. Will this work? Would it be worth the over head to get some kind of daemon set up on the RS/6000 that monitors the ftp directory and then kicks off the whole shebang. OR should I do all of this with a Unix Script. Had anyone done this? Do you have sample scripts or SQR's with any single part of this. I am willing to put all this back together and then post it here if you guys would like, I just need an idea of the best approach. Thanks Scott From owner-sqr-users@list.iex.net Wed Apr 11 09:33:40 2001 Date: Wed, 11 Apr 2001 09:27:51 -0500 From: the dragon Subject: Re: Interfaces in PeopleSoft. Scott, You could do that (write an sqr), but it seems like a lot more work that using the tools that are supplied to you with AIX on your RS6000. Use a Unix shell script (about 100 lines of code, including documentation comments) - you can write it, cron the job and be done with it forever. clark 'the dragon' willis dragon enterprises, consluting services. ----Original Message Follows---- I want to automate an interface. Background I have GL data (Journals) coming to me from an AS/400 and then loaded into our RS/6000 running AIX. I have an SQR the pre-process the AS/400 file to create a file that PS provided GLS9002.SQR can then load into peoplesoft. I have been asked to automate the process. Like this, the only thing that the User does is kick off the process on the AS/400, which then ftp's the finished file to the RS/6000 , which then runs the preprocess, renames the AS/400 file ,emails the user the hash totals report, then runs GLS9002, and then notifies the user that the entire process is complete. I was thinking about creating an SQR to run the preprocess, rename the files, email the user w/ the hash totals, and excute GLS9002. Will this work? Would it be worth the over head to get some kind of daemon set up on the RS/6000 that monitors the ftp directory and then kicks off the whole shebang. OR should I do all of this with a Unix Script. Had anyone done this? Do you have sample scripts or SQR's with any single part of this. I am willing to put all this back together and then post it here if you guys would like, I just need an idea of the best approach. Thanks Scott _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Wed Apr 11 14:57:53 2001 Date: Wed, 11 Apr 2001 12:44:22 -0700 From: Andrew Morgan Subject: SQR Contract Opportunity Hi All, One of our clients needs a mid-level+ SQR programmer IMMEDIATELY with Oracle for data upload and extract (and we're currently too busy). Position is in Metro Boston area and is 3 months to start with good chance for extension. Must be full-time and on-site. Please send me resumes if you're interested. Thanks! Andrew Morgan Chief Executive Officer KeyPulse.Com, Inc. 27 Alderwood Drive Stratham, NH 03885 (603) 512-5154 Cell (435) 404-7963 Fax mailto:amorgan@keypulse.com www.keypulse.com From owner-sqr-users@list.iex.net Wed Apr 11 18:08:29 2001 Date: Wed, 11 Apr 2001 15:56:32 -0700 From: Laura Lopez Subject: Set priorities hi everyone! I have to write a flat file with e-mail addresses, and I have to select the employee's work e-mail, if not available, select home e-mail, if not select other1, if not other2, and if not other3, and if not nothing. I only want one e-mail, and the priority is the one listed above. Some employees have different e-mail addresses, some only one, etc. I don't know how to do it. Everything I've tried has failed. I have tried evaluating the field, since it has different translate values, also nested if statements, writing a different procedure for each e-mail type... all sorts of things, and nothing works. It's like for some reason it can't get the variables. This is one of the things I tried - the different procedures: !************************************* Begin-Procedure Check-email-work !************************************* if $emailtype <> 'E-MW' do check-email-home else let $emailtype = 'E-MW' end-if end-procedure check-email-work !************************************* Begin-Procedure Check-email-home !************************************* if $emailtype <> 'E-MH' do check-email-O1 else let $emailtype = 'E-MH' end-if end-procedure check-email-home !************************************* Begin-Procedure Check-email-O1 !************************************* if $emailtype <> 'E-O1' do check-email-O2 else let $emailtype = 'E-O1' end-if end-procedure check-email-O1 !************************************* Begin-Procedure Check-email-O2 !************************************* if $emailtype <> 'E-O2' do check-email-O3 else let $emailtype = 'E-O2' end-if end-procedure check-email-O2 !************************************* Begin-Procedure Check-email-O3 !************************************* if $emailtype <> 'E-O3' let $email = ' ' end-if end-procedure check-email-O3 And this is the last thing I have tried: Begin-procedure check-email-type if &b.t2_e_addr_type = 'E-MW' let $work = &b.t2_e_addr_type print $work else if &b.t2_e_addr_type = 'E-MW' let $home = &b.t2_e_addr_type print $home else if &b.t2_e_addr_type = 'E-O1' let $other1 = &b.t2_e_addr_type print $other1 else if &b.t2_e_addr_type = 'E-O2' let $other2 = &b.t2_e_addr_type print $other2 else if &b.t2_e_addr_type let $other3 = &b.t2_e_addr_type print $other3 end-if end-if end-if end-if end-if Hope you can help me out! Thanks a bunch in advance! laura. From owner-sqr-users@list.iex.net Wed Apr 11 18:29:12 2001 Date: Wed, 11 Apr 2001 19:26:46 EDT From: NEDOLPH@AOL.COM Subject: Re: Set priorities try EVALUATE (equivalent to a SELECT CASE construction in VB) EVALUATE $emailtype WHEN = 'E-MH' .... (statements here) BREAK WHEN = 'E-01' .... BREAK WHEN-OTHER .... (error or default situation) END-EVALUATE the BREAK will leave the evaluate, and continue with the next line after END-EVALUATE. Otherwise, (I believe) if your $emailtype passed more than one WHEN criterion, it would execute all the code which passed. You want it to find the right type and then Break out. Hope this helps Norman Dolph From owner-sqr-users@list.iex.net Thu Apr 12 09:27:19 2001 Date: Thu, 12 Apr 2001 08:21:58 -0600 From: Russ Wulfson Subject: Re: Set priorities I don't see anything wrong with the first set of procedures, but in the nested ifs in the first two if statements your testing for E-MW shouldn't the second one be E-MH? What results are you getting? Is the value always ' '? or is it just wrong? From owner-sqr-users@list.iex.net Thu Apr 12 09:18:57 2001 Date: Thu, 12 Apr 2001 19:30:33 +0530 From: S meenakshi Subject: Report formatting problem Hi all, I need to accommodate a lot of fields in my report, (around 10 fields, mostly description fields). The length of almost 6 fields is 30 each. I would like to reduce the font size to the minimum possible to get all the columns in the same line. How do I go about doing it? What is the font, spacing etc. and where exactly do I specify it? I tried specifying declare layout parameters but what is happening is the letters are overlapping. Thanks in advance. Regards Meenakshi Sundar From owner-sqr-users@list.iex.net Thu Apr 12 10:29:16 2001 Date: Thu, 12 Apr 2001 09:58:56 -0500 From: "Hallmark, Robert J" Subject: Re: Report formatting problem 1. Specify character width in the declare-layout section of your report. See example: begin-setup Declare-Layout Default char-width=6 End-Declare end-setup 2. Use the alter-printer command throughout the body of your report to establish the size of the print as needed. For example: begin-heading 6 alter-printer font=5 point-size = 9 date-time (1,1) alter-printer font=5 point-size=14 print 'Equipment Location Report' (3,) center bold end-heading begin-procedure main alter-printer font=5 point-size=10 begin-select etc, etc end-select end-procedure Bob Hallmark -----Original Message----- From: S meenakshi Subject: Report formatting problem Hi all, I need to accommodate a lot of fields in my report, (around 10 fields, mostly description fields). The length of almost 6 fields is 30 each. I would like to reduce the font size to the minimum possible to get all the columns in the same line. How do I go about doing it? What is the font, spacing etc. and where exactly do I specify it? I tried specifying declare layout parameters but what is happening is the letters are overlapping. Thanks in advance. Regards Meenakshi Sundar From owner-sqr-users@list.iex.net Thu Apr 12 15:06:35 2001 Date: Thu, 12 Apr 2001 19:57:34 -0000 From: Elvis Pressly Subject: Re: Report formatting problem Meenakshi, You want to print a 6 x 30 characters plus maybe 5 more for spaces and thats a total of 185 char. Peoplesoft can only do up to 177 for landscape and 125 for portrait. You can copy ptpsl177 and play around with it by changing page_max_col including point sizes, fonts etc and see what happens. >From: S meenakshi >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Report formatting problem >Date: Thu, 12 Apr 2001 19:30:33 +0530 > >Hi all, > >I need to accommodate a lot of fields in my report, (around 10 fields, >mostly description fields). The length of almost 6 fields is 30 each. I >would like to reduce the font size to the minimum possible to get all the >columns in the same line. How do I go about doing it? What is the font, >spacing etc. and where exactly do I specify it? I tried specifying declare >layout parameters but what is happening is the letters are overlapping. > >Thanks in advance. > >Regards >Meenakshi Sundar _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 12 15:22:17 2001 Date: Thu, 12 Apr 2001 16:21:50 -0400 From: ANDERSD2 Subject: Re: Report formatting problem Try using one of the lesser-known SETUP include files like any of the following... setup02a - Landscape, 177 characters setup02b - Landscape, 215 characters setup02c - Landscape, 160 characters setup31 - Portrait, 125 characters setup32 - Landscape, 177 characters Here's the trick with them, you need to place the #INCLUDE in your BEGIN-SETUP procedure. I believe the above are accurate, but as always, experiment with them. Hope this was helpful. Dave From owner-sqr-users@list.iex.net Thu Apr 12 18:46:06 2001 Date: Thu, 12 Apr 2001 16:41:34 -0700 From: mandava Subject: Any body can help me in setting up Process scheduler server on NT machine. Hi All, I am trying to setup a peoplesoft process scheduler server on NT machine. An ASP is providing this service on UNIX for our oganization. Recently we decided to setup our own process scheduler server in house. We connect to that ASP through APP SERVER.The database is ORACLE. When I gave the database name in the PSADMIN/Create PROCESS SCHEDULER It tried to create a connection DataBase and coming out with an error saying Path incorrect. Any help on this is appreciated. Tanks, Srini (214) 392 6054 (m) From owner-sqr-users@list.iex.net Mon Apr 16 01:30:12 2001 Date: Mon, 16 Apr 2001 11:49:55 +0530 From: S meenakshi Subject: Re: Report formatting problem Hi all, Thanks to those who responded. I could accommodate more than 220 characters with the following specification font size = 2 Point size = 10 (both specified in Alter printer) and Character width = 3 (specified in declare layout) This was a combination of the replies sent to the query. Regards Meenakshi Sundar From owner-sqr-users@list.iex.net Thu Apr 12 09:19:01 2001 Date: Thu, 12 Apr 2001 19:34:10 +0530 From: S meenakshi Subject: update DB2/400 database I would like to update the DB2/400 database on the AS/400 with details from PeopleSoft (Oracle Backend). Can the update be directly done through SQR? How can I establish connectivity with AS/400 through SQR? Regards Meenakshi Sundar From owner-sqr-users@list.iex.net Thu Apr 12 15:10:02 2001 Date: Thu, 12 Apr 2001 20:06:31 -0000 From: Elvis Pressly Subject: Re: update DB2/400 database Meenakshi, Yes this is very much possible. I have done this to a client who have AS400 DB2 and Oracle(backend) as you may call it. You can do this via 2-tier only. 1. In your PC make sure you have client access installed with service pack SF59923 or below. 2. You must have client access ODBC driver. 3. Install Oracle client including the Oracle ODBC driver. 4. Configure your AS400 and Oracle database DSN using the ODBC administration utility. >From: S meenakshi >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: update DB2/400 database >Date: Thu, 12 Apr 2001 19:34:10 +0530 > >I would like to update the DB2/400 database on the AS/400 with details from >PeopleSoft (Oracle Backend). Can the update be directly done through SQR? >How can I establish connectivity with AS/400 through SQR? > >Regards >Meenakshi Sundar _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Fri Apr 13 11:38:36 2001 Date: Fri, 13 Apr 2001 09:33:00 -0700 From: David Smith Subject: Re: update DB2/400 database Meenakshi, You would need to get ODBC drivers for Oracle and AS/400 and use ODBC connectivity to move data. Merant sells the best ODBC products I have seen. http://www.merant.com I also used a product that allows for scheduling to builld an AS/400 to Oracle interface, it allows you to write simple SQL scripts to move data between ODBC sources. Look at the Datasplice product: http://www.optimiz.com David L Smith IBM Global Services From owner-sqr-users@list.iex.net Thu Apr 12 11:10:08 2001 Date: Thu, 12 Apr 2001 09:05:39 -0700 From: "McCown, Larry" Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 11:35:58 2001 Date: Thu, 12 Apr 2001 12:20:30 -0400 From: Troy Wiechman Subject: Re: Feeding a where statement try this move '(''ES-02'',''PS-08'',''SM-01'',''SM-02'')' TO $SITE "McCown, Larry" on 04/12/2001 12:05:39 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 11:42:19 2001 Date: Thu, 12 Apr 2001 12:35:14 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Feeding a where statement I had a similar situation and resolved it using something like this: begin-procedure let $squote = '''' <-------defines the variable $squote to have a single quote mark if $site = 1 (user input as to which site) move '(^ES-02^,^PS-08^,^SM-01^,^SM-02^)' TO $x let $site = translate($x,'^',$squote) end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure "McCown, Larry" on 04/12/2001 12:05:39 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 11:43:01 2001 Date: Thu, 12 Apr 2001 10:37:08 -0600 From: Robert Goshko Subject: Re: Feeding a where statement -- DON'T FEED THE WHERE STATMENTS -- (had to say that) Larry, the problem is with your quotes, you need to make your move statment look like this: move '( ''ES-02'', ''PS-08'', ''SM-01'', ''SM-02'' )' to $site You only need a single opening and closing quote, these are for the string itself, the rest are all double single quotes to tell SQR "hey, put a single quote in here". Home this helps. On 12 Apr 2001 09:05:39 -0700, McCown, Larry wrote: > Hello, > Not sure how to state this but here it goes. > I am attempting to build a where statement that is fed from an if statement > using the in command. > Sample: > begin-procedure > if $site = 1 (user input as to which site) > move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE > end-if > Begin-select > from workorder > where [$where] > and crewid in $site > end-select > end-procedure > > I am receiving error (SQR 4114) Expecting 'to', found move > ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE > > If you were able to follow this and have any suggestions I would appreciate > it. > Thank you > SQLServer 7 > VisualSQRIBE 5.0 > > Larry McCown > Northrop Grumman > Western Region Facilities > One Hornet Way WG00/W9 > El Segundo, Ca. 90245 > mccowla@mail.northgrum.com > Phone (310)628-3939 > Fax (310)331-7452 > -- ===================================================================== Robert Goshko Axis Computer Consulting Services, Inc. President Sherwood Park, Alberta, Canada robert.goshko@axis-dev.com http://www.axis-dev.com/ ===================================================================== From owner-sqr-users@list.iex.net Thu Apr 12 12:18:33 2001 Date: Thu, 12 Apr 2001 10:14:48 -0700 From: "McCown, Larry" Subject: Re: Feeding a where statement Thank you so very much to everyone's quick response. I have been trying this for a day and a half and got the answer from the experts in 10 minutes. I used a combination from the different suggestions. begin-procedure If $site = '1' let $where 2 = 'and crewid in(''ES-02'',''PS-08'',''SM-01'',''SM-02'')' end-if begin-select from workorder where [$where] [$where2] end-select end-program Thanks again Larry -----Original Message----- From: Rick_Creel@AONCONS.COM [mailto:Rick_Creel@AONCONS.COM] Sent: Thursday, April 12, 2001 9:35 AM To: SQR-USERS@list.iex.net Subject: Re: Feeding a where statement I had a similar situation and resolved it using something like this: begin-procedure let $squote = '''' <-------defines the variable $squote to have a single quote mark if $site = 1 (user input as to which site) move '(^ES-02^,^PS-08^,^SM-01^,^SM-02^)' TO $x let $site = translate($x,'^',$squote) end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure "McCown, Larry" on 04/12/2001 12:05:39 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 12:32:13 2001 Date: Thu, 12 Apr 2001 13:25:19 -0400 From: "Williams, Wes HS-SNS" Subject: Re: Feeding a where statement Hey Larry, here is an example of what I have used. It defaults to non PM workorder status (WAPPR). If it is a PM then uses WSCH in the where clause begin-program prompt: input $wotype 'Enter worktype' input #days_parameter 'Enter Number of Days' let $wotype = upper($wotype) let $dyna_INPRGClause = 'w.status = ''INPRG'' and wx.status = ''WAPPR'' ' let $dyna_CompClause = 'w.status = ''COMP'' and wx.status = ''WAPPR'' ' evaluate $wotype when = 'FS' break when = 'OML' break when = 'OMS' break when = 'SW' break when = 'PM' let $dyna_INPRGClause = 'w.status = ''INPRG'' and wx.status = ''WSCH'' ' let $dyna_CompClause = 'w.status = ''COMP'' and wx.status = ''WSCH'' ' break when-other !show (3,30) ' Invalid choice, re-enter value' beep goto prompt HTH Wes Williams Hamilton Sundstrand 815.226.6196 -----Original Message----- From: McCown, Larry [mailto:MCCOWLA@MAIL.NORTHGRUM.COM] Sent: Thursday, April 12, 2001 11:06 AM To: SQR-USERS@list.iex.net Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 12:48:11 2001 Date: Thu, 12 Apr 2001 13:43:35 -0400 From: "Turner, Ivan" Subject: Re: Feeding a where statement let $site = '('''||ES-02||''','''||SM-01||''','''||PS-08||''','''||SM-02||''')' -----Original Message----- From: McCown, Larry [mailto:MCCOWLA@MAIL.NORTHGRUM.COM] Sent: Thursday, April 12, 2001 12:06 PM To: SQR-USERS@list.iex.net Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 13:30:17 2001 Date: Thu, 12 Apr 2001 14:11:01 -0400 From: "Williams, Wes HS-SNS" Subject: Re: Feeding a where statement Opps, I didn't send the whole thing promptmgr: input $mgr 'Enter Manager''s last name, enter Terhorst for all' let $mgr = upper($mgr) evaluate $mgr When = 'BEYER' let $dyna_craft = 'leadcraft in ' ||'(' ||'''578-6'''||',' || '''579-6'''||',' ||'''580-6'''||')' break When = 'WALTON' let $dyna_craft = 'leadcraft in ' ||'('||'''578-1T'''||','|| '''583-6E'''||','|| '''580-6T'''||','||'''583-1E'''||','||'''578-6T'''||','||'''578-8T'''||','|| '''583-8E'''||')' break When = 'PIAZZA' let $dyna_craft = 'leadcraft in ' ||'('||'''578-1'''||','||'''580-1'''||','||'''579-1P'''||','||'''579-1'''||' ,'||'''580-1P'''||','||'''578-10'''||','||'''579-10'''||','||'''580-10'''||' ,'||'''579-1'''||')' break When = 'TERHORST' let $dyna_craft = '1=1' break When-other goto promptmgr end-evaluate Wes Williams Hamilton Sundstrand 815.226.6196 -----Original Message----- From: McCown, Larry [mailto:MCCOWLA@MAIL.NORTHGRUM.COM] Sent: Thursday, April 12, 2001 11:06 AM To: SQR-USERS@list.iex.net Subject: Feeding a where statement Hello, Not sure how to state this but here it goes. I am attempting to build a where statement that is fed from an if statement using the in command. Sample: begin-procedure if $site = 1 (user input as to which site) move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE end-if Begin-select from workorder where [$where] and crewid in $site end-select end-procedure I am receiving error (SQR 4114) Expecting 'to', found move ''('ES-02','PS-08','SM-01',SM-02') '' TO $SITE If you were able to follow this and have any suggestions I would appreciate it. Thank you SQLServer 7 VisualSQRIBE 5.0 Larry McCown Northrop Grumman Western Region Facilities One Hornet Way WG00/W9 El Segundo, Ca. 90245 mccowla@mail.northgrum.com Phone (310)628-3939 Fax (310)331-7452 From owner-sqr-users@list.iex.net Thu Apr 12 12:47:12 2001 Date: Thu, 12 Apr 2001 13:31:54 -0400 From: "Beller, Jay" Subject: Bug in Date Handling Has anyone found SQR mishandling comparing two DATE fields when one of them is the last day of a month and the other is the first day of the next month? We're finding that SQR thinks these dates are the same - quite a serious problem! Here's a short program to demonstrate. If your version of SQR has the bug, you should see every end-of-month date appear. Thanks ... Jay Beller =========================================== Begin-Setup Declare-Variable Date $CC_Curr_Date Date $CC_Prev_Date End-Declare End-Setup Begin-Program do CC-Main End-Program Begin-Procedure CC-Main SHOW 'Comparing Dates from 1/1/1999 forward...' show '=========================================================' let #i = 0 let $CC_Prev_Date = strtodate( '01/01/1999', 'MM/DD/YYYY' ) while #i < 3000 let $CC_Curr_Date = dateadd( $CC_Prev_Date, 'DAY', 1 ) do compare-dates-wrong add 1 to #i let $CC_Prev_Date = $CC_Curr_Date end-while End-Procedure CC-Main begin-procedure compare-dates-wrong if $CC_Prev_Date = $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' = ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' else if $CC_Prev_Date > $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' > ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' end-if end-if end-procedure From owner-sqr-users@list.iex.net Thu Apr 12 13:01:47 2001 Date: Thu, 12 Apr 2001 13:58:11 -0400 From: Glenn Coulter Subject: Re: Bug in Date Handling Hi Jay, There is a pretty detailed discussion of this topic in the SQRUG archive list. Check out this post and its thread: http://www.sqrug.com/sqr-users/sqrusers/msg00101.html I think it may help. Glenn -----Original Message----- From: Beller, Jay [mailto:JBeller@LBISOFTWARE.COM] Sent: Thursday, April 12, 2001 1:32 PM To: SQR-USERS@list.iex.net Subject: Bug in Date Handling Has anyone found SQR mishandling comparing two DATE fields when one of them is the last day of a month and the other is the first day of the next month? We're finding that SQR thinks these dates are the same - quite a serious problem! Here's a short program to demonstrate. If your version of SQR has the bug, you should see every end-of-month date appear. Thanks ... Jay Beller =========================================== Begin-Setup Declare-Variable Date $CC_Curr_Date Date $CC_Prev_Date End-Declare End-Setup Begin-Program do CC-Main End-Program Begin-Procedure CC-Main SHOW 'Comparing Dates from 1/1/1999 forward...' show '=========================================================' let #i = 0 let $CC_Prev_Date = strtodate( '01/01/1999', 'MM/DD/YYYY' ) while #i < 3000 let $CC_Curr_Date = dateadd( $CC_Prev_Date, 'DAY', 1 ) do compare-dates-wrong add 1 to #i let $CC_Prev_Date = $CC_Curr_Date end-while End-Procedure CC-Main begin-procedure compare-dates-wrong if $CC_Prev_Date = $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' = ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' else if $CC_Prev_Date > $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' > ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' end-if end-if end-procedure From owner-sqr-users@list.iex.net Thu Apr 12 13:02:44 2001 Date: Thu, 12 Apr 2001 13:59:14 -0400 From: Rod Wright Subject: Re: Bug in Date Handling Jay, This is a well-known bug at least in my version (4.3.4). I don't know if Brio has corrected it in later versions. The best suggestion I can offer is to always convert the dates to julian and then compare the julian dates. Rod "Beller, Jay" on 04/12/2001 01:31:54 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rodney Wright/Trcb/Rouse) Subject: Bug in Date Handling Has anyone found SQR mishandling comparing two DATE fields when one of them is the last day of a month and the other is the first day of the next month? We're finding that SQR thinks these dates are the same - quite a serious problem! Here's a short program to demonstrate. If your version of SQR has the bug, you should see every end-of-month date appear. Thanks ... Jay Beller =========================================== Begin-Setup Declare-Variable Date $CC_Curr_Date Date $CC_Prev_Date End-Declare End-Setup Begin-Program do CC-Main End-Program Begin-Procedure CC-Main SHOW 'Comparing Dates from 1/1/1999 forward...' show '=========================================================' let #i = 0 let $CC_Prev_Date = strtodate( '01/01/1999', 'MM/DD/YYYY' ) while #i < 3000 let $CC_Curr_Date = dateadd( $CC_Prev_Date, 'DAY', 1 ) do compare-dates-wrong add 1 to #i let $CC_Prev_Date = $CC_Curr_Date end-while End-Procedure CC-Main begin-procedure compare-dates-wrong if $CC_Prev_Date = $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' = ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' else if $CC_Prev_Date > $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' > ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' end-if end-if end-procedure From owner-sqr-users@list.iex.net Thu Apr 12 13:02:31 2001 Date: Thu, 12 Apr 2001 13:59:19 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Bug in Date Handling Yes, this is a known bug in SQR, depending on the version of SQR you are using. I use 4.3.4 and have this bug. Supposedly, it was fixed in a later release. What I did to work around this problem is to convert the dates being compared to a julian date format (YYYYDDD) and then compare those 2 values. "Beller, Jay" on 04/12/2001 01:31:54 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Bug in Date Handling Has anyone found SQR mishandling comparing two DATE fields when one of them is the last day of a month and the other is the first day of the next month? We're finding that SQR thinks these dates are the same - quite a serious problem! Here's a short program to demonstrate. If your version of SQR has the bug, you should see every end-of-month date appear. Thanks ... Jay Beller =========================================== Begin-Setup Declare-Variable Date $CC_Curr_Date Date $CC_Prev_Date End-Declare End-Setup Begin-Program do CC-Main End-Program Begin-Procedure CC-Main SHOW 'Comparing Dates from 1/1/1999 forward...' show '=========================================================' let #i = 0 let $CC_Prev_Date = strtodate( '01/01/1999', 'MM/DD/YYYY' ) while #i < 3000 let $CC_Curr_Date = dateadd( $CC_Prev_Date, 'DAY', 1 ) do compare-dates-wrong add 1 to #i let $CC_Prev_Date = $CC_Curr_Date end-while End-Procedure CC-Main begin-procedure compare-dates-wrong if $CC_Prev_Date = $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' = ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' else if $CC_Prev_Date > $CC_Curr_Date show $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' ' > ' $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' end-if end-if end-procedure From owner-sqr-users@list.iex.net Thu Apr 12 13:17:15 2001 Date: Thu, 12 Apr 2001 14:12:43 -0400 From: "Salem, Mark" Subject: Re: Bug in Date Handling I ran your sample code in 6.0 and no error was shown. Apparently it has been addressed by the folks at Brio. > -----Original Message----- > From: Rick_Creel@AONCONS.COM [SMTP:Rick_Creel@AONCONS.COM] > Sent: Thursday, April 12, 2001 1:59 PM > To: SQR-USERS@list.iex.net > Subject: Re: Bug in Date Handling > > Yes, this is a known bug in SQR, depending on the version of SQR you are > using. > I use 4.3.4 and have this bug. Supposedly, it was fixed in a later > release. > What I did to work around this problem is to convert the dates being > compared to > a julian date format (YYYYDDD) and then compare those 2 values. > > > > > > "Beller, Jay" on 04/12/2001 01:31:54 PM > > Please respond to sqr-users@list.iex.net > > To: SQR-USERS@list.iex.net > cc: (bcc: Rick Creel/IT/Aon Consulting) > > Subject: Bug in Date Handling > > > > Has anyone found SQR mishandling comparing two DATE fields when one of > them > is the last day of a month and the other is the first day of the next > month? > We're finding that SQR thinks these dates are the same - quite a serious > problem! > > Here's a short program to demonstrate. If your version of SQR has the bug, > you should see every end-of-month date appear. > > Thanks ... Jay Beller > =========================================== > > Begin-Setup > Declare-Variable > Date $CC_Curr_Date > Date $CC_Prev_Date > End-Declare > End-Setup > > Begin-Program > do CC-Main > End-Program > > Begin-Procedure CC-Main > SHOW 'Comparing Dates from 1/1/1999 forward...' > show '=========================================================' > > let #i = 0 > let $CC_Prev_Date = strtodate( '01/01/1999', 'MM/DD/YYYY' ) > > while #i < 3000 > let $CC_Curr_Date = dateadd( $CC_Prev_Date, 'DAY', 1 ) > do compare-dates-wrong > add 1 to #i > let $CC_Prev_Date = $CC_Curr_Date > end-while > End-Procedure CC-Main > > begin-procedure compare-dates-wrong > if $CC_Prev_Date = $CC_Curr_Date > show > $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' > ' = ' > $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' > else > if $CC_Prev_Date > $CC_Curr_Date > show > $CC_Prev_Date edit 'MM/DD/YYYY HH:MI:SS am' > ' > ' > $CC_Curr_Date edit 'MM/DD/YYYY HH:MI:SS am' > end-if > end-if > end-procedure From owner-sqr-users@list.iex.net Thu Apr 12 16:42:54 2001 Date: Thu, 12 Apr 2001 14:37:59 -0700 From: "Parks, Sam" Subject: #current-line I am trying to use the Graphic command to print a shaded box without sides on a print line. I have used it successfully in other sqr programs exactly as I am trying to use it here. The #current-line displays as 37, when I use it as a pointer, it becomes 73. 39 = 77, 41 = 81, and so on. below is the actual logic. I am using SQR Workbench, V4.1.1 The defaults are: #box_rule_width = 0, #box_shading = 1 --- logic here ---------------------------------- add 1 to #shade_count_main_ne let #P1 = #current-line ! this is a display setup for testing print ' ' (,1) ! I print a blank space to get the #current-line correct let #P2 = #current-line ! this is a display setup for testing if #shade_count_main_ne = 2 and #current-line < 51 let #shade_count_main_ne = 0 let #box_start_line = #current-line let #box_no_of_columns = 160 show '#P1 ' #P1 ! display for testing displays 37 show '#P2 ' #P2 ! display for testing displays 37 show #box_start_line ! display for testing displays 37 graphic (#box_start_line,#box_start_column,#box_no_of_columns) box #box_depth #box_rule_width #box_shading end-if Error on line 1115: (SQR 4602) GRAPHIC BOX out of bounds. Row: 73, Column: 1, Width: 160, Depth: 1 Row should be 37 ( #box_start_line) Thanks From owner-sqr-users@list.iex.net Thu Apr 12 17:35:14 2001 Date: Thu, 12 Apr 2001 15:33:31 -0700 From: Laura Lopez Subject: Set priorities thank you all for your help. I got it! THanks! Laura. From owner-sqr-users@list.iex.net Fri Apr 13 13:59:12 2001 Date: Fri, 13 Apr 2001 14:55:08 -0400 From: Steve Rogers Subject: use of #if/#endif on DB2/MVS We are converting DB2/AS400 to DB2/MVS. MVS does not like the following SQC - !LinePrinter is not supported for this SQC, if not POSTSCRIPT, then ! HPLASERJET will be used. #if {PRINTER_TYPE} <> 'POSTSCRIPT' #define PRINTER_TYPE HPLASERJET #endif #if {PRINTER_TYPE} = 'POSTSCRIPT' declare-printer PS-definition type={PRINTER_TYPE} point-size=5 font=3 ! Courier font ! ! add STARTUP-FILE=dir\filename to change the symbol set ! end-declare #endif #if {PRINTER_TYPE} = 'HPLASERJET' declare-printer HP-definition <-------- problem begins here type=HPLASERJET point-size=5 symbol-set=0U ! ASCII symbol set pitch=24 font=3 ! Courier font end-declare #endif Here are the error messages - Error in include file "DDN:SQRINC(ptpsl215)" on line 47: (SQR 4702) Line found outside paragraph. declare-printer HP-definition Error in include file "DDN:SQRINC(ptpsl215)" on line 48: (SQR 4702) Line found outside paragraph. type=HPLASERJET Error in include file "DDN:SQRINC(ptpsl215)" on line 49: (SQR 4702) Line found outside paragraph. point-size=5 Error in include file "DDN:SQRINC(ptpsl215)" on line 50: (SQR 4702) Line found outside paragraph. symbol-set=0U Can anyone tell me what MVS does not like? thanks, Stev From owner-sqr-users@list.iex.net Fri Apr 13 14:06:15 2001 Date: Fri, 13 Apr 2001 14:04:24 -0500 From: Ron Baker Subject: Re: use of #if/#endif on DB2/MVS Looks like you need to take the space out. However this shouldn't be specific to MVS, it should error on any platform if this is indeed the problem. #if {PRINTER_TYPE} = 'HPLASERJET' declare-printer HP-definition <-------- problem begins here <-------- take this space out **************** type=HPLASERJET point-size=5 symbol-set=0U ! ASCII symbol set pitch=24 font=3 ! Courier font end-declare #endif Ron IS&T Project Payday x6478 Steve Rogers cc: Sent by: Subject: use of #if/#endif on DB2/MVS "Discussion of SQR, Brio Technology's database reporting language" 04/13/01 01:55 PM Please respond to sqr-users We are converting DB2/AS400 to DB2/MVS. MVS does not like the following SQC - !LinePrinter is not supported for this SQC, if not POSTSCRIPT, then ! HPLASERJET will be used. #if {PRINTER_TYPE} <> 'POSTSCRIPT' #define PRINTER_TYPE HPLASERJET #endif #if {PRINTER_TYPE} = 'POSTSCRIPT' declare-printer PS-definition type={PRINTER_TYPE} point-size=5 font=3 ! Courier font ! ! add STARTUP-FILE=dir\filename to change the symbol set ! end-declare #endif #if {PRINTER_TYPE} = 'HPLASERJET' declare-printer HP-definition <-------- problem begins here type=HPLASERJET point-size=5 symbol-set=0U ! ASCII symbol set pitch=24 font=3 ! Courier font end-declare #endif Here are the error messages - Error in include file "DDN:SQRINC(ptpsl215)" on line 47: (SQR 4702) Line found outside paragraph. declare-printer HP-definition Error in include file "DDN:SQRINC(ptpsl215)" on line 48: (SQR 4702) Line found outside paragraph. type=HPLASERJET Error in include file "DDN:SQRINC(ptpsl215)" on line 49: (SQR 4702) Line found outside paragraph. point-size=5 Error in include file "DDN:SQRINC(ptpsl215)" on line 50: (SQR 4702) Line found outside paragraph. symbol-set=0U Can anyone tell me what MVS does not like? thanks, Stev From owner-sqr-users@list.iex.net Fri Apr 13 15:28:32 2001 Date: Fri, 13 Apr 2001 16:15:22 -0400 From: Joy Hoyte Subject: Re: use of #if/#endif on DB2/MVS Steve, Usually a 'line found outside of paragraph' error indicates that you're missing a BEGIN or END statement or that you have a typo in your BEGIN or END statement. You said this is an SQC. Is the #Include command that pulls the SQC in placed correctly in your SQR source code? Since the SQC contains a Declare-Printer command, the #Include would need to be placed inside the SETUP section (BEGIN-SETUP / END-SETUP). Joy Hoyte ----- Original Message ----- From: "Steve Rogers" To: Sent: Friday, April 13, 2001 2:55 PM Subject: use of #if/#endif on DB2/MVS > We are converting DB2/AS400 to DB2/MVS. MVS does not like the following > SQC - > > !LinePrinter is not supported for this SQC, if not POSTSCRIPT, then > ! HPLASERJET will be used. > #if {PRINTER_TYPE} <> 'POSTSCRIPT' > #define PRINTER_TYPE HPLASERJET > #endif > > > #if {PRINTER_TYPE} = 'POSTSCRIPT' > declare-printer PS-definition > type={PRINTER_TYPE} > point-size=5 > font=3 ! Courier font > > ! > ! add STARTUP-FILE=dir\filename to change the symbol set > ! > end-declare > #endif > > #if {PRINTER_TYPE} = 'HPLASERJET' > declare-printer HP-definition <-------- problem begins here > > type=HPLASERJET > point-size=5 > symbol-set=0U ! ASCII symbol set > pitch=24 > font=3 ! Courier font > end-declare > #endif > > > Here are the error messages - > > Error in include file "DDN:SQRINC(ptpsl215)" on line 47: > (SQR 4702) Line found outside paragraph. > declare-printer HP-definition > > Error in include file "DDN:SQRINC(ptpsl215)" on line 48: > (SQR 4702) Line found outside paragraph. > type=HPLASERJET > > Error in include file "DDN:SQRINC(ptpsl215)" on line 49: > (SQR 4702) Line found outside paragraph. > point-size=5 > > Error in include file "DDN:SQRINC(ptpsl215)" on line 50: > (SQR 4702) Line found outside paragraph. > symbol-set=0U > > > Can anyone tell me what MVS does not like? > > thanks, > Stev > From owner-sqr-users@list.iex.net Mon Apr 16 06:31:28 2001 Date: Mon, 16 Apr 2001 07:23:12 -0400 From: "Schelske, Steve K." Subject: Re: use of #if/#endif on DB2/MVS Edit the SQC on MVS and see if there are any "bad" hex characters. On the command line in ISPF type F '.' -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Steve Rogers Sent: Friday, April 13, 2001 2:55 PM To: SQR-USERS@list.iex.net Subject: use of #if/#endif on DB2/MVS We are converting DB2/AS400 to DB2/MVS. MVS does not like the following SQC - !LinePrinter is not supported for this SQC, if not POSTSCRIPT, then ! HPLASERJET will be used. #if {PRINTER_TYPE} <> 'POSTSCRIPT' #define PRINTER_TYPE HPLASERJET #endif #if {PRINTER_TYPE} = 'POSTSCRIPT' declare-printer PS-definition type={PRINTER_TYPE} point-size=5 font=3 ! Courier font ! ! add STARTUP-FILE=dir\filename to change the symbol set ! end-declare #endif #if {PRINTER_TYPE} = 'HPLASERJET' declare-printer HP-definition <-------- problem begins here type=HPLASERJET point-size=5 symbol-set=0U ! ASCII symbol set pitch=24 font=3 ! Courier font end-declare #endif Here are the error messages - Error in include file "DDN:SQRINC(ptpsl215)" on line 47: (SQR 4702) Line found outside paragraph. declare-printer HP-definition Error in include file "DDN:SQRINC(ptpsl215)" on line 48: (SQR 4702) Line found outside paragraph. type=HPLASERJET Error in include file "DDN:SQRINC(ptpsl215)" on line 49: (SQR 4702) Line found outside paragraph. point-size=5 Error in include file "DDN:SQRINC(ptpsl215)" on line 50: (SQR 4702) Line found outside paragraph. symbol-set=0U Can anyone tell me what MVS does not like? thanks, Stev From owner-sqr-users@list.iex.net Fri Apr 13 15:12:55 2001 Date: Fri, 13 Apr 2001 14:59:38 -0500 From: "Mente, Pat" Subject: Code for Distribution Hello All, Anyone out there have some code that creates a distribution? I have order inquiries that are pending, and I want to count them into buckets of days pending.(< 6, 6-10, 10-20, >20) I have roughly 21,000 inquiries so I did not think an array would be useful. Any ideas? Thanks. Pat A.L. Pat Mente > VERIZON Information Services - IT 972.453.6285 pat.mente@verizon.com From owner-sqr-users@list.iex.net Mon Apr 16 11:25:00 2001 Date: Mon, 16 Apr 2001 12:14:26 -0400 From: "Turner, Ivan" Subject: Rounding errors in SQR To get an practical test of a variable being less than zero do I need? If &TOTAL_WRITE_OFF < -0.001 Or If &TOTAL_WRITE_OFF < 0.001 Please explain Thank you From owner-sqr-users@list.iex.net Mon Apr 16 12:20:52 2001 Date: Mon, 16 Apr 2001 11:28:55 -0500 From: John Hopper Subject: Re: Rounding errors in SQR <.01 will work 'cause it's less than a penny. But try the rouding function instead It's in NUMBER.SQC: use precision=2 for 2 decimal places begin-procedure PS_SQR_Round (#in_decimal, #precision, :#out_decimal) . . . GBR From owner-sqr-users@list.iex.net Mon Apr 16 11:37:51 2001 Date: Mon, 16 Apr 2001 12:22:21 -0400 From: Ann Elizabeth Dunbar Subject: Intellistor I know this mailing list is for SQR, but does anyone know if there is a Listserv for Intellistor? (Brio has a 3rd party product for use with Sungard's Intellistor product). Thanks, Ann From owner-sqr-users@list.iex.net Mon Apr 16 12:42:09 2001 Date: Mon, 16 Apr 2001 13:20:05 -0400 From: Anthony Key Subject: Re: Intellistor How do I unsubscribe from this user list. Thanks Ann Elizabeth Dunbar To: SQR-USERS@list.iex.net Subject: Intellistor Sent by: "Discussion of SQR, Brio Technology's database reporting language" 04/16/2001 12:22 PM Please respond to sqr-users I know this mailing list is for SQR, but does anyone know if there is a Listserv for Intellistor? (Brio has a 3rd party product for use with Sungard's Intellistor product). Thanks, Ann From owner-sqr-users@list.iex.net Mon Apr 16 15:09:05 2001 Date: Mon, 16 Apr 2001 15:44:18 -0400 From: Financials Peoplesoft Subject: Report problem Hi All, I have a problem in getting the data for job family, campus and headcount fields grouping by campus and job family. Using Department Id as input parameter. Employees, Dept_tbl and Job_Family_tbl are used in the select statement. Basically I have a problem in comparing the data which is selected. Itf campus and job family is found then it has to add the employee count and FTE. Can anyone try to give the solution. Thanks for you halp in advance. Paul _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Tue Apr 17 12:34:00 2001 Date: Tue, 17 Apr 2001 10:36:06 -0700 From: David Thorburn Subject: Re: Report problem Dear Paul, >From your message is does not appear that you are an IT professional experienced in the PS database and SQR programming. I would recommend that you utilize the services of a good PS/SQR consultant instead of just 'trying' to come up with something. Best of Luck and Kind Regards, David _________________________________________________________ thorburn@conl.net www.geocities.com\david_thorburn _________________________________________________________ ----- Original Message ----- From: Financials Peoplesoft To: Sent: Monday, April 16, 2001 12:44 PM Subject: Report problem > Hi All, > I have a problem in getting the data for job family, campus and headcount > fields grouping by campus and job family. Using Department Id as input > parameter. Employees, Dept_tbl and Job_Family_tbl are used in the select > statement. > Basically I have a problem in comparing the data which is selected. Itf > campus and job family is found then it has to add the employee count and > FTE. > > Can anyone try to give the solution. > > Thanks for you halp in advance. > > Paul > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > From owner-sqr-users@list.iex.net Tue Apr 17 09:46:27 2001 Date: Tue, 17 Apr 2001 15:44:41 +0100 From: Tim Wilkinson Subject: Brio Report Builder Hi all, I've just installed this product so that our company can evaluate it. My questions are: - a) Has anyone else used it and if so what do you think to it? b) When creating reports, I can see and select the tables and columns and write reports, but it doesnt pull back any data. I'm connecting to a remote Unix server using Oracle 7 ODBC (although its an Oracle 8 DB, but the SQR Oracle 8 ODBC errored (System 126?)). Any ideas? c) It seems that you cannot alter the layout of existing SQR's (ie ones created using Notepad etc). Is this correct? If so, its a bit of a pain. Anyone figured a way around this yet? d) Is this the correct place to ask? I'm going to give Brio a call soon ref the Oracle 8 issue. Thanks, Tim From owner-sqr-users@list.iex.net Tue Apr 17 09:51:24 2001 Date: Tue, 17 Apr 2001 10:49:57 -0400 From: Scott Eubank Subject: Re: Brio Report Builder c) It seems that you cannot alter the layout of existing SQR's (ie ones created using Notepad etc). Is this correct? If so, its a bit of a pain. Anyone figured a way around this yet? Check your file permissions, you should easily beable to alter the file permissions and then the file itself, resulting in a new sqr.. WOOOHOOOO. :) Good Luck -----Original Message----- From: Tim Wilkinson [mailto:Tim.Wilkinson@HANCORP.CO.UK] Sent: Tuesday, April 17, 2001 10:45 AM To: SQR-USERS@list.iex.net Subject: Brio Report Builder Hi all, I've just installed this product so that our company can evaluate it. My questions are: - a) Has anyone else used it and if so what do you think to it? b) When creating reports, I can see and select the tables and columns and write reports, but it doesnt pull back any data. I'm connecting to a remote Unix server using Oracle 7 ODBC (although its an Oracle 8 DB, but the SQR Oracle 8 ODBC errored (System 126?)). Any ideas? c) It seems that you cannot alter the layout of existing SQR's (ie ones created using Notepad etc). Is this correct? If so, its a bit of a pain. Anyone figured a way around this yet? d) Is this the correct place to ask? I'm going to give Brio a call soon ref the Oracle 8 issue. Thanks, Tim From owner-sqr-users@list.iex.net Tue Apr 17 10:20:52 2001 Date: Tue, 17 Apr 2001 09:15:10 -0600 From: Juan Alvarado Subject: Re: Brio Report Builder I use the Brio report builder. I think that is a good tool for GENERATE SQR CODE. For reverse the layout of the SQR isnt posible. I think that this feature is essential for BRB. I use for generate looking good reports that have features like expections, or advance HTML with analysis with the applet or with Brio Insight. If the tools cant do something i code in the SQR. For example the Bar codes. I hope this help you -----Original Message----- From: Tim Wilkinson [mailto:Tim.Wilkinson@HANCORP.CO.UK] Sent: Tuesday, April 17, 2001 8:45 AM To: SQR-USERS@list.iex.net Subject: Brio Report Builder Hi all, I've just installed this product so that our company can evaluate it. My questions are: - a) Has anyone else used it and if so what do you think to it? b) When creating reports, I can see and select the tables and columns and write reports, but it doesnt pull back any data. I'm connecting to a remote Unix server using Oracle 7 ODBC (although its an Oracle 8 DB, but the SQR Oracle 8 ODBC errored (System 126?)). Any ideas? c) It seems that you cannot alter the layout of existing SQR's (ie ones created using Notepad etc). Is this correct? If so, its a bit of a pain. Anyone figured a way around this yet? d) Is this the correct place to ask? I'm going to give Brio a call soon ref the Oracle 8 issue. Thanks, Tim From owner-sqr-users@list.iex.net Tue Apr 17 11:49:10 2001 Date: Tue, 17 Apr 2001 08:45:03 -0700 From: Ben Le Subject: Re: Brio Report Builder Tim, What version of SQR are you running? Brio admitted that SQR6.0, SQR6.1.3 are not working right with ORACLE. They recommended go with SQR6.1.4. At 03:44 PM 4/17/01 +0100, you wrote: >Hi all, > I've just installed this product so that our company can evaluate it. >My questions are: - > >a) Has anyone else used it and if so what do you think to it? >b) When creating reports, I can see and select the tables and columns and >write reports, but it doesnt pull back any data. I'm connecting to a remote >Unix server using Oracle 7 ODBC (although its an Oracle 8 DB, but the SQR >Oracle 8 ODBC errored (System 126?)). Any ideas? >c) It seems that you cannot alter the layout of existing SQR's (ie ones >created using Notepad etc). Is this correct? If so, its a bit of a pain. >Anyone figured a way around this yet? >d) Is this the correct place to ask? I'm going to give Brio a call soon ref >the Oracle 8 issue. > >Thanks, > > Tim Benjamin Le ITS, System Development Portland Community College 12000 SW 49th Ave. Portland, Oregon 97219 Voice: (503)-977-4970 Fax: (503)-977-4987 Mailto:ble@pcc.edu http://www.pcc.edu From owner-sqr-users@list.iex.net Tue Apr 17 11:24:17 2001 Date: Tue, 17 Apr 2001 09:16:26 -0700 From: Chris Campbell Subject: SQR OS390 Tracing Hello all, I would like to turn on the -S (SQL cursor status) flag when running my SQRs on the mainframe (MVS / DB2). I have tried updating the SQRPARMS member of the HLQ.PARMLIB dataset, but keep getting numerous errors when I try to run my SQR's. Is this where you turn on the different SQR flags, and if so, does anyone have an example of the SQRPARM file that works? Thanks, Chris _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Tue Apr 17 14:42:56 2001 Date: Tue, 17 Apr 2001 15:40:19 -0400 From: Cindy Chen Subject: Re: SQR OS390 Tracing Chris, I think you need -S in your SQRPARMS. Here is part of the SQRPARMS for your example. The parenthesis looks unbalanced but it is correct. PARMS('DDN:SQRIN DSN/PSFSPRD -FERPT -FCRPT -GPRINT=YES -P -IDDN:SQRINC( -S -TBZ -MDDN:MAXIN') HTH -Cindy At 09:16 AM 4/17/2001 -0700, you wrote: >Hello all, > >I would like to turn on the -S (SQL cursor status) flag when running my SQRs >on the mainframe (MVS / DB2). I have tried updating the SQRPARMS member of >the HLQ.PARMLIB dataset, but keep getting numerous errors when I try to run >my SQR's. Is this where you turn on the different SQR flags, and if so, >does anyone have an example of the SQRPARM file that works? > >Thanks, Chris > > > > > >_______________________________________________________ >Send a cool gift with your E-Card >http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Tue Apr 17 13:24:00 2001 Date: Tue, 17 Apr 2001 11:17:15 -0700 From: Laura Lopez Subject: Mailing Labels I have to write an sqr that will print mailing labels (#5160 Avery Labels) - don't ask me why not just do a Crystal Report... I have no idea what will be the best way to do this. Defining columns .... Does anybody have a good example of this or any excellent ideas...? Thanks in advance! Laura. From owner-sqr-users@list.iex.net Tue Apr 17 13:57:23 2001 Date: Tue, 17 Apr 2001 13:54:44 -0500 From: "Cullina, Adam" Subject: Re: Mailing Labels Does anyone have significant experience with the SQR contract pay program (CNTPAY01) in PeopleSoft Education and Government Version 7.6? I'm having a hard time converting in data mid-contract for employees with earned not payed balances. Please drop me a line. Adam J Cullina Computer Programmer/Analyst University of Missouri - ASP From owner-sqr-users@list.iex.net Tue Apr 17 14:01:58 2001 Date: Tue, 17 Apr 2001 14:57:11 -0400 From: "Williams, Wes HS-SNS" Subject: Re: Mailing Labels Chapter 9 of the sqr users guide (version 4) shows you how. HTH Wes Williams Hamilton Sundstrand 815.226.6196 -----Original Message----- From: Laura Lopez [mailto:laura.lopez@TRINET.COM] Sent: Tuesday, April 17, 2001 1:17 PM To: SQR-USERS@list.iex.net Subject: Mailing Labels I have to write an sqr that will print mailing labels (#5160 Avery Labels) - don't ask me why not just do a Crystal Report... I have no idea what will be the best way to do this. Defining columns .... Does anybody have a good example of this or any excellent ideas...? Thanks in advance! Laura. From owner-sqr-users@list.iex.net Tue Apr 17 14:03:42 2001 Date: Tue, 17 Apr 2001 15:00:53 -0400 From: Paul Hoyte Subject: Re: Mailing Labels This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C0C74F.331FA6B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Laura: Attached is the sample program that is provided in the Brio sample directory. This will product labels - you might have to customize it for your needs but it will be a good start. Regards, Paul Hoyte Sharidionne, Inc. (248) 559-6868 www.sharidionne.com phoyte@sharidionne.com -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez Sent: Tuesday, April 17, 2001 2:17 PM To: SQR-USERS@list.iex.net Subject: Mailing Labels I have to write an sqr that will print mailing labels (#5160 Avery Labels) - don't ask me why not just do a Crystal Report... I have no idea what will be the best way to do this. Defining columns .... Does anybody have a good example of this or any excellent ideas...? Thanks in advance! Laura. ------=_NextPart_000_000E_01C0C74F.331FA6B0 Content-Type: application/octet-stream; name="custlbls.sqr" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="custlbls.sqr" ! Custlbls.sqr 3/24/86 Mailing labels for customer list ! ! Written by Israel Stern ! ! This example demonstrates how mailing labels may be generated quite ! easily using SQR. ! ! Copyright (C) 1994-2000 Brio Technology All Worldwide Rights Reserved ! ! Disclaimer: ! ! This program is provided as an example and, while it is thought to be ! free from defect, Brio Technology makes no representations or war- ! ranties, either expressed or implied, with respect to the adequacy of ! the program in regard to merchantability or fitness for any particular ! result. The program is provided "as is" and the entire risk as to ! quality and performance is with the buyer. In no event shall Brio ! Technology be liable for special, direct, indirect or consequential ! damages resulting from any defect in this program. Some states do not ! allow the exclusion or limitations of implied warranties or liability ! for incidental or consequential damages, in which case the above=20 ! limitations and exclusions may not apply to you. ! !************************************************************************= *** ! ! Modification History: ! ! Date Eng Description ! -------- --- = ------------------------------------------------------------ ! 11-11-92 GLD (0169) ! o Correct Headers ! (_V2.5.4_) ! 03-23-95 PAB (DEV-1000) ! o Changed 'Sybase, Inc.' to 'MITI' in disclaimer ! (_V2.5.6_) ! 05-13-94 GLD (DEV-1009) ! o Added 'Worldwide' Rights ! (_V3.5.4_) ! 04-03-96 PAB (DEV-4088) ! o Cleaned up the modification history. ! (_V4.1_) ! 07-28-97 BDC (OH-B006) ! o Header modification ! (_V6.0_) ! 01-05-00 PAB (OH-9795) ! o Change ending copyright year to 2000. ! (_EOH_) !************************************************************************= *** begin-setup page-size 6 80 ! Use page-length equal to depth of one label no-formfeed ! Most mailing label paper runs continuously. end-setup begin-report do mail_labels end-report ! We will print 3 labels across the page ("3 up"). ! begin-procedure mail_labels move 0 to #total columns 1 27 53 ! Define the columns; each column is the width of one = label. begin-select name (1,1,24) addr1 (2,1,24) addr2 (3,1,24) city (4,1,15) state (0,+1,2) zip (0,+1,5) position (+2,1,0) ! Leave two blank lines between labels. next-column at-end=3Dnewpage ! This command causes a tab to the next = column ! after each label is printed. After the last ! column the page is written and a new page=20 ! begun. add 1 to #total from customers order by zip, name end-select ! Put out summary of run: ! use-column 0 ! Disable column printing print 'Labels Printed on ' (+3,10,0) date-time () print 'Total Labels Printed =3D ' (+1,10,0) print #total () edit 999,999,999 end-procedure ------=_NextPart_000_000E_01C0C74F.331FA6B0-- From owner-sqr-users@list.iex.net Tue Apr 17 16:10:56 2001 Date: Tue, 17 Apr 2001 14:05:01 -0700 From: Laura Lopez Subject: Re: Mailing Labels Thank you Paul, but unfortunately when I try to run that sqr (with real fields and record) it does nothing - I also added a couple of include files: 'setenvc.sqc' and 'setup01.sqc' but still nothing happens.... what else to I need to add to make it work? Thanks! > -----Original Message----- > From: Paul Hoyte [SMTP:phoyte@SHARIDIONNE.COM] > Sent: Tuesday, April 17, 2001 12:01 PM > To: SQR-USERS@list.iex.net > Subject: Re: Mailing Labels > > Laura: > > Attached is the sample program that is provided in the Brio sample > directory. This will product labels - you might have to customize it for > your needs but it will be a good start. Regards, > > > Paul Hoyte > Sharidionne, Inc. > (248) 559-6868 > www.sharidionne.com > phoyte@sharidionne.com > > -----Original Message----- > From: Discussion of SQR, Brio Technology's database reporting language > [mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez > Sent: Tuesday, April 17, 2001 2:17 PM > To: SQR-USERS@list.iex.net > Subject: Mailing Labels > > > I have to write an sqr that will print mailing labels (#5160 Avery Labels) > - > don't ask me why not just do a Crystal Report... I have no idea what will > be > the best way to do this. Defining columns .... Does anybody have a good > example of this or any excellent ideas...? > Thanks in advance! > Laura. << File: custlbls.sqr >> From owner-sqr-users@list.iex.net Tue Apr 17 18:49:25 2001 Date: Tue, 17 Apr 2001 16:44:12 -0700 From: Laura Lopez Subject: Re: Mailing Labels Paul, It works now, thank you! and thanks to you all for your help! have a good one! Laura. > -----Original Message----- > From: Laura Lopez [SMTP:laura.lopez@TRINET.COM] > Sent: Tuesday, April 17, 2001 2:05 PM > To: SQR-USERS@list.iex.net > Subject: Re: Mailing Labels > > Thank you Paul, > but unfortunately when I try to run that sqr (with real fields and > record) > it does nothing - I also added a couple of include files: 'setenvc.sqc' > and > 'setup01.sqc' but still nothing happens.... what else to I need to add to > make it work? > Thanks! > > > -----Original Message----- > > From: Paul Hoyte [SMTP:phoyte@SHARIDIONNE.COM] > > Sent: Tuesday, April 17, 2001 12:01 PM > > To: SQR-USERS@list.iex.net > > Subject: Re: Mailing Labels > > > > Laura: > > > > Attached is the sample program that is provided in the Brio sample > > directory. This will product labels - you might have to customize it > for > > your needs but it will be a good start. Regards, > > > > > > Paul Hoyte > > Sharidionne, Inc. > > (248) 559-6868 > > www.sharidionne.com > > phoyte@sharidionne.com > > > > -----Original Message----- > > From: Discussion of SQR, Brio Technology's database reporting language > > [mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez > > Sent: Tuesday, April 17, 2001 2:17 PM > > To: SQR-USERS@list.iex.net > > Subject: Mailing Labels > > > > > > I have to write an sqr that will print mailing labels (#5160 Avery > Labels) > > - > > don't ask me why not just do a Crystal Report... I have no idea what > will > > be > > the best way to do this. Defining columns .... Does anybody have a good > > example of this or any excellent ideas...? > > Thanks in advance! > > Laura. << File: custlbls.sqr >> From owner-sqr-users@list.iex.net Tue Apr 17 20:19:32 2001 Date: Wed, 18 Apr 2001 11:13:39 +1000 From: Daniel Archibald Subject: SQR and center Hi all, Just wondering if anyone has had a problem with the 'center' SQR function. The problem I have is when I increase the point size using the alter-printer command the center function does not seem to work properly. Point size of 10 appears to works fine, but when the font size increases to like to 14, 16, 18 and 36 its all wacky!? Is there something I need to put in the 'Setup' section of the SQR to make it work properly. If anyone has come across this, knows why this is so or has a solution to this problem it would be appreciated if you could assist me. Thanks in advance. Daniel Archibald Environment: Oracle 8.0.5.0.0 SQR 4.3.4 ERP PeopleSoft 7.6 From owner-sqr-users@list.iex.net Wed Apr 18 07:07:01 2001 Date: Wed, 18 Apr 2001 08:57:15 -0300 From: Peter Clark Subject: Re: SQR and center The centering is based on your declared layout & printer definitions, presumably 10 point. When you alter the point size, you are increasing the font size but not the defined layout of the page. You'll have to define a layout/printer to accomodate the larger font size. The centering will then center based on the larger size. Peter >>> Daniel Archibald 2001/04/17 10:13:39 pm >>> Hi all, Just wondering if anyone has had a problem with the 'center' SQR function. The problem I have is when I increase the point size using the alter-printer command the center function does not seem to work properly. Point size of 10 appears to works fine, but when the font size increases to like to 14, 16, 18 and 36 its all wacky!? Is there something I need to put in the 'Setup' section of the SQR to make it work properly. If anyone has come across this, knows why this is so or has a solution to this problem it would be appreciated if you could assist me. Thanks in advance. Daniel Archibald Environment: Oracle 8.0.5.0.0 SQR 4.3.4 ERP PeopleSoft 7.6 From owner-sqr-users@list.iex.net Tue Apr 17 21:12:07 2001 Date: Wed, 18 Apr 2001 10:03:29 +0800 From: Dipu Sudhakaran Subject: How to extend the width of report Hi All I am trying to extend the width of the report in Brio Report = Builder.But if we cross the line the coloumn is coming down.How to = extend the width of the report.I have even decreased the font size and = character width.there are many fields to accomodated in the report.And = I want them to come a single line.please let me know if some one has a = solution thank u all dipu sudhakaran From owner-sqr-users@list.iex.net Wed Apr 18 08:22:01 2001 Date: Wed, 18 Apr 2001 08:17:23 -0500 From: Bob Helm Subject: Re: How to extend the width of report You may have already tried this, but you might try increasing 'max-columns' to a greater number. -----Original Message----- From: Dipu Sudhakaran [mailto:dipu@FOCUS5.NET] Sent: Tuesday, April 17, 2001 9:03 PM To: SQR-USERS@list.iex.net Subject: How to extend the width of report Hi All I am trying to extend the width of the report in Brio Report Builder.But if we cross the line the coloumn is coming down.How to extend the width of the report.I have even decreased the font size and character width.there are many fields to accomodated in the report.And I want them to come a single line.please let me know if some one has a solution thank u all dipu sudhakaran From owner-sqr-users@list.iex.net Wed Apr 18 09:18:13 2001 Date: Wed, 18 Apr 2001 08:13:21 -0600 From: "Turner, Ivan" Subject: Re: How to extend the width of report Look also at the page-size declaration. -----Original Message----- From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] Sent: Wednesday, April 18, 2001 9:17 AM To: SQR-USERS@list.iex.net Subject: Re: How to extend the width of report You may have already tried this, but you might try increasing 'max-columns' to a greater number. -----Original Message----- From: Dipu Sudhakaran [mailto:dipu@FOCUS5.NET] Sent: Tuesday, April 17, 2001 9:03 PM To: SQR-USERS@list.iex.net Subject: How to extend the width of report Hi All I am trying to extend the width of the report in Brio Report Builder.But if we cross the line the coloumn is coming down.How to extend the width of the report.I have even decreased the font size and character width.there are many fields to accomodated in the report.And I want them to come a single line.please let me know if some one has a solution thank u all dipu sudhakaran From owner-sqr-users@list.iex.net Wed Apr 18 10:34:53 2001 Date: Wed, 18 Apr 2001 14:34:00 +0200 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Brio=20Report=20Builder?= a) I use Brio report builder to create new layout reports and support reports created this way (+/- 200 reports). Advantage is that with the datas selected, you can: 1)- test the datas 2)- arrange output as you like with 1) and output to printer or in postscript mode if you want to print rotated texts and graphic logos 3)- output your datas to printer/flat file/table... via the procedure statement do 'something' (see also 2) & 1) begin-select datas to retrieve evaluate datas when 'A' do 'reporting_master' do 'reporting_detail' break when 'B' do 'design_graph' break when 'C' do 'exporting_to_html' do 'exporting_to_excel' do 'exporting_to_text' break when 'D' do 'inserting_new_tables' break end-evaluate from tables where conditions end-select 4)- graphic features allowed for fonts 5)- any other ideas ? b) I'm using SQR ODBC Driver for Oracle7 (32 bit) to connect to Oracle8 (Driver32=C:\WINNT\System32\wbor713.dll) c) I use Brio Report Builder Layout only for design, then all modifications are made in the code using tabular variables for printing positions d) Yeap! and ask Brio for Brio Enterprise product (intranet business management) Cordialement, Philippe. From owner-sqr-users@list.iex.net Wed Apr 18 07:49:23 2001 Date: Wed, 18 Apr 2001 08:45:22 -0400 From: Pamela Lantzy Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Wed Apr 18 08:32:49 2001 Date: Wed, 18 Apr 2001 08:16:48 -0500 From: Victor M Sotomayor III Subject: Re: rename function problems on NT You can use an #ifdef in your code to make 2 different renames for each platform. I assume your using the call system commdn to do this. Try and do your actual command that you are using on Unix on NT using Command Prompt and look at it that way to find the problem. #ifdef UNIX ! rename for Unix mv file1.dat file2.dat #else #ifdef NT ! rename for Unix copy file1.dat file2.dat #end-if #end-if -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Pamela Lantzy Sent: Wednesday, April 18, 2001 7:45 AM To: SQR-USERS@list.iex.net Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Wed Apr 18 08:38:35 2001 Date: Wed, 18 Apr 2001 09:36:12 -0400 From: Paul Hoyte Subject: Re: rename function problems on NT Hello Pam: Here is a code sample for doing a DOS file rename from with SQR. Hope it works for you: RENAME is not a primary DOS command. It is not a ".com", ".exe",".bat", etc. It is part of COMMAND.COM. If you want to execute a RENAME, COPY, DIR, etc., try concatenating a reference to COMMAND.COM before your RENAME command... Let $command_str = 'C:\WINDOWS\COMMAND.COM /c ' || 'RENAME C:\TEMP\payroll.dk C:\SavBond\'||$filename Regards, Paul Hoyte Sharidionne, Inc. (248) 559-6868 www.sharidionne.com phoyte@sharidionne.com -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Pamela Lantzy Sent: Wednesday, April 18, 2001 8:45 AM To: SQR-USERS@list.iex.net Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Thu Apr 19 09:57:51 2001 Date: Thu, 19 Apr 2001 09:45:43 -0500 From: Nathan Stratton Treadway Subject: Re: rename function problems on NT -- COMSPEC environment variable On Wed, Apr 18, 2001 at 09:36:12AM -0400, Paul Hoyte wrote: > RENAME is not a primary DOS command. It is not a ".com", > ".exe",".bat", etc. It is part of COMMAND.COM. If you want to execute a > RENAME, COPY, DIR, etc., try concatenating a reference to COMMAND.COM > before your > RENAME command... > > Let $command_str = > 'C:\WINDOWS\COMMAND.COM /c ' || > 'RENAME C:\TEMP\payroll.dk C:\SavBond\'||$filename Paul explains here an important issue to keep in mind if you want to use CALL SYSTEM USING under Windows to call on of the "internal" "DOS" commands. I wanted to add the warning that the path to the COMMAND.COM file varies from machine to machine, depending on where Windows was installed and which version of Windows you are using. If you need your program to run on multiple machines transparently, you should use the value of the COMSPEC environment variable instead of hard-coding the path in your program. For an example of this approach, see http://www.sqrug.com/sqr-users/sqrusers_00q2/msg00692.html (or you can go to http://www.sqrug.com/sqr-users/ and search the list archives for "comspec" to see lots of messages on this topic...) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Thu Apr 19 10:20:40 2001 Date: Thu, 19 Apr 2001 11:13:19 -0400 From: Mark Risman Subject: Re: rename function problems on NT Can you post a copy of the offending code? The issue could be in how you're building the filenames. -----Original Message----- From: Pamela Lantzy [mailto:PLantzy@UAMAIL.ALBANY.EDU] Sent: Wednesday, April 18, 2001 8:45 AM To: SQR-USERS@list.iex.net Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Thu Apr 19 13:06:21 2001 Date: Thu, 19 Apr 2001 13:56:37 -0400 From: Pamela Lantzy Subject: Re: rename function problems on NT I am only using the delivered SQR rename function. This works in unix but not on NT. Note: $Filename is defined in a table which includes the path and filename .. For example below, I'm hardcoding the value. So when running on NT it will have the proper directory path versus unix. Before the rename I had the file open for reading and I close it before the rename. let $Filename = '\\hebatch\devl$\uainput\uga_sat.dat' let $NewFileName = $FileName || '_' || $timestamp let #status = rename($FileName,$NewFileName) if #status <> 0 let $message = 'Error renaming file: ' || $filename || ' to ' || $newfilename do show($message) else let $message = 'Successful renaming file: ' || $filename || ' to ' || $newfilename do show($message) end-if -----Original Message----- From: Mark Risman [mailto:mrisman@UBSPAINEWEBBER.COM] Sent: Thursday, April 19, 2001 11:13 AM To: SQR-USERS@LIST.IEX.NET Subject: Re: rename function problems on NT Can you post a copy of the offending code? The issue could be in how you're building the filenames. -----Original Message----- From: Pamela Lantzy [mailto:PLantzy@UAMAIL.ALBANY.EDU] Sent: Wednesday, April 18, 2001 8:45 AM To: SQR-USERS@list.iex.net Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Thu Apr 19 13:34:51 2001 Date: Thu, 19 Apr 2001 14:22:39 -0400 From: "Schelske, Steve K." Subject: Re: rename function problems on NT Is that a space in the file name? If so, you need quotes around the portion with the space, such as '\\hebatch\devl$\uainput\"uga_sat".dat' -----Original Message----- let $Filename = '\\hebatch\devl$\uainput\uga_sat.dat' let $NewFileName = $FileName || '_' || $timestamp -----Original Message----- From: Mark Risman [mailto:mrisman@UBSPAINEWEBBER.COM] Sent: Thursday, April 19, 2001 11:13 AM To: SQR-USERS@LIST.IEX.NET Subject: Re: rename function problems on NT Can you post a copy of the offending code? The issue could be in how you're building the filenames. -----Original Message----- From: Pamela Lantzy [mailto:PLantzy@UAMAIL.ALBANY.EDU] Sent: Wednesday, April 18, 2001 8:45 AM To: SQR-USERS@list.iex.net Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Thu Apr 19 13:39:07 2001 Date: Thu, 19 Apr 2001 14:35:39 -0400 From: Pamela Lantzy Subject: Re: rename function problems on NT No its an underscore -----Original Message----- From: Schelske, Steve K. [mailto:SKSchelske@AAAMICHIGAN.COM] Sent: Thursday, April 19, 2001 2:23 PM To: SQR-USERS@LIST.IEX.NET Subject: Re: rename function problems on NT Is that a space in the file name? If so, you need quotes around the portion with the space, such as '\\hebatch\devl$\uainput\"uga_sat".dat' -----Original Message----- let $Filename = '\\hebatch\devl$\uainput\uga_sat.dat' let $NewFileName = $FileName || '_' || $timestamp -----Original Message----- From: Mark Risman [mailto:mrisman@UBSPAINEWEBBER.COM] Sent: Thursday, April 19, 2001 11:13 AM To: SQR-USERS@LIST.IEX.NET Subject: Re: rename function problems on NT Can you post a copy of the offending code? The issue could be in how you're building the filenames. -----Original Message----- From: Pamela Lantzy [mailto:PLantzy@UAMAIL.ALBANY.EDU] Sent: Wednesday, April 18, 2001 8:45 AM To: SQR-USERS@list.iex.net Subject: rename function problems on NT Hi, I have a SQR which I rename a file after I am done processing it. When I run the SQR in unix the rename function works great, but when I run the same SQR on the NT machine, it does not work. If I go to the machine that the SQR is running on and open windows explorer and rename the file I do not have problems. What else can I try or is there a problem using the rename function on NT? Thanks, Pam From owner-sqr-users@list.iex.net Wed Apr 18 10:16:34 2001 Date: Wed, 18 Apr 2001 16:01:30 +0100 From: =?iso-8859-1?q?Gurdip=20Bassi?= Subject: Differences Between SQR 4.3 and 6.0 Hi all, I have not used SQR since summer of '99, and will be using SQR again this June. However, l want to get up to date regarding changes since v4.2 came out. Looking at the Brio web site, l can only spot three differences: 1. Direct Data Objects (DDO) 2. XML input and output 3. Brio Query Data XML is not a problem since l have been involved in that field for the past year. However, what are DDOs and what is Brio Query Data? Moreover, what functionality does SQR 6.0 provide in terms of XML, i.e. parsing, validating, traversing the DOM, and XML generation? Many thanks. Gurdip. ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From owner-sqr-users@list.iex.net Wed Apr 18 10:57:59 2001 Date: Wed, 18 Apr 2001 08:56:20 -0700 From: Nicolas Moscaritolo Subject: Re: Differences Between SQR 4.3 and 6.0 DDO is Brio method of getting at non-relational data sources. With the Software Developers Kit (SDK), you can virtually attached to any data source. Brio plans on developing DDO further in the future. Brio Query Data (BQD) allows SQR to create an additional output file and this file is used as input to Brio Enterprise. You can use all of SQR's complexity to create a RESULT set in Enterprise. -----Original Message----- From: Gurdip Bassi [mailto:gurdip_bassi@YAHOO.CO.UK] Sent: Wednesday, April 18, 2001 11:02 AM To: SQR-USERS@list.iex.net Subject: Differences Between SQR 4.3 and 6.0 Hi all, I have not used SQR since summer of '99, and will be using SQR again this June. However, l want to get up to date regarding changes since v4.2 came out. Looking at the Brio web site, l can only spot three differences: 1. Direct Data Objects (DDO) 2. XML input and output 3. Brio Query Data XML is not a problem since l have been involved in that field for the past year. However, what are DDOs and what is Brio Query Data? Moreover, what functionality does SQR 6.0 provide in terms of XML, i.e. parsing, validating, traversing the DOM, and XML generation? Many thanks. Gurdip. ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From owner-sqr-users@list.iex.net Wed Apr 18 10:57:37 2001 Date: Wed, 18 Apr 2001 11:52:36 -0400 From: Tajinder Chahal Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder From owner-sqr-users@list.iex.net Wed Apr 18 11:09:32 2001 Date: Wed, 18 Apr 2001 17:08:31 +0100 From: Andy Brook Subject: Re: Leap Year Just do a mod (year,4) If the returned value is 0 then the year is leaping. I dont know if there is a mod function in SQR but write your own or use your rdbms's mod function. Andy -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@ROUSHIND.COM] Sent: 18 April 2001 16:53 To: SQR-USERS@list.iex.net Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder From owner-sqr-users@list.iex.net Wed Apr 18 11:37:24 2001 Date: Wed, 18 Apr 2001 10:31:55 -0600 From: Robert Goshko Subject: Re: Leap Year -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is not entirely correct. First you check it with a mod 4, if it is 0 then it might be a leap year. Then check with a mod 100, if this is not 0 then it is a leap year. If the mod 100 is a 0 them check it with a mod 400, if this is zero then it is a leap year. Century years that are not divisible by 400 are not leap years (e.g. 2000 was a leap year, but 2100 is not a leap year). Avoid the Y2.1K problem :) some SQR code: let $Leap_Year = 'N' if ( ( #Year % 4 ) = 0 ) if ( ( #Year % 100 ) = 0 ) if ( ( #Year % 400 ) = 0 ) move 'Y' to $Leap_Year end-if else move 'Y' to $Leap_Year end-if end-if .....Rob ===================================================================== Robert Goshko Axis Computer Consulting Services, Inc. President Sherwood Park, Alberta, Canada robert.goshko@axis-dev.com http://www.axis-dev.com/ ===================================================================== - -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Andy Brook Sent: April 18, 2001 10:09 AM To: SQR-USERS@list.iex.net Subject: Re: Leap Year Just do a mod (year,4) If the returned value is 0 then the year is leaping. I dont know if there is a mod function in SQR but write your own or use your rdbms's mod function. Andy - -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@ROUSHIND.COM] Sent: 18 April 2001 16:53 To: SQR-USERS@list.iex.net Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.3 Comment: got root? iQA/AwUBOt3Bejj0Cv9NDz5BEQIz8wCePAYyW2ukIGPF4vG7T/k8Xbw+ZZAAoLkU KoMnEpydYyz8xg3sFGIO6P1v =M1L/ -----END PGP SIGNATURE----- From owner-sqr-users@list.iex.net Wed Apr 18 11:11:50 2001 Date: Wed, 18 Apr 2001 12:09:00 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Leap Year The way I have always determined leap year is use MOD arithmetic. If you divide the 4 digit year by the number 4, and the remainder = 0, then it's a leap year. let #year = to_number(datetostr($date_variable,'YYYY')) let #leap_year = MOD(#year,4) if #leap_year = 0 blah blah end-if Tajinder Chahal on 04/18/2001 11:52:36 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder From owner-sqr-users@list.iex.net Wed Apr 18 11:12:31 2001 Date: Wed, 18 Apr 2001 12:11:15 -0400 From: "Beller, Jay" Subject: Re: Leap Year Don't forget years that ... mod(year, 100) = 0 is NOT a leap year and mod(year, 400) = 0 IS a leap year -----Original Message----- From: Andy Brook [mailto:Andrew.Brook@HANCORP.CO.UK] Sent: Wednesday, April 18, 2001 12:09 PM To: SQR-USERS@list.iex.net Subject: Re: Leap Year Just do a mod (year,4) If the returned value is 0 then the year is leaping. I dont know if there is a mod function in SQR but write your own or use your rdbms's mod function. Andy -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@ROUSHIND.COM] Sent: 18 April 2001 16:53 To: SQR-USERS@list.iex.net Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder From owner-sqr-users@list.iex.net Wed Apr 18 11:17:04 2001 Date: Wed, 18 Apr 2001 12:13:26 -0400 From: "Jamadagni, Rajendra" Subject: Re: Leap Year Rick is partially right ..... A year is a leap year if ... if (year_is_completely_divisible_by_400 ) OR (year_is_not_divisible_by_100 and year_is_completely_divisible_by_4) then current_year = leap year; end-if; HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Wed Apr 18 11:38:37 2001 Date: Wed, 18 Apr 2001 12:23:04 -0400 From: Mark Risman Subject: Re: Leap Year How about something like: let $Feb28-string = '02/28/' || to_char(#year) let $Feb28 = strtodate ($Feb28-string, 'MM/DD/YYYY') let $Mar1-string = '03/01/' || to_char(#year) let $Mar1 = strtodate ($Mar1-string, 'MM/DD/YYYY') if datediff ($Mar1, $Feb28, 'day') = 2 <#year is a leap year> else <#year is not a leap year> end-if where $Feb28 and $Mar1 are dates and $Feb28-string and $Mar1-string are text variables. This will tell you whether your OS thinks the year is a leap year, rather than thinking about whether a year is the 100th, 400th year, etc. (if you're worried about what happens every 100 or 400 years to begin with) - Mark -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@ROUSHIND.COM] Sent: Wednesday, April 18, 2001 11:53 AM To: SQR-USERS@list.iex.net Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder From owner-sqr-users@list.iex.net Thu Apr 19 11:08:38 2001 Date: Wed, 18 Apr 2001 12:41:52 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Leap Year Mark- Your solution will work fine, assuming you are on the SQR version that doesn't have the DATEDIFF bug :-) Mark Risman on 04/18/2001 12:23:04 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Re: Leap Year How about something like: let $Feb28-string = '02/28/' || to_char(#year) let $Feb28 = strtodate ($Feb28-string, 'MM/DD/YYYY') let $Mar1-string = '03/01/' || to_char(#year) let $Mar1 = strtodate ($Mar1-string, 'MM/DD/YYYY') if datediff ($Mar1, $Feb28, 'day') = 2 <#year is a leap year> else <#year is not a leap year> end-if where $Feb28 and $Mar1 are dates and $Feb28-string and $Mar1-string are text variables. This will tell you whether your OS thinks the year is a leap year, rather than thinking about whether a year is the 100th, 400th year, etc. (if you're worried about what happens every 100 or 400 years to begin with) - Mark -----Original Message----- From: Tajinder Chahal [mailto:Tchaha@ROUSHIND.COM] Sent: Wednesday, April 18, 2001 11:53 AM To: SQR-USERS@list.iex.net Subject: Leap Year Does anyone know if there is a function in SQR which can determine if the year is a leap year or not? Thanks in Advance Tajinder From owner-sqr-users@list.iex.net Wed Apr 18 12:10:43 2001 Date: Wed, 18 Apr 2001 12:06:02 -0500 From: the dragon Subject: Re: Leap Year I agree with this, but let's be serious; since we are past the 2000 fiasco, all you have to worry about is the evenly divisible by 4 part - after all, none of our code will survive another 99 years to worry about the divisible by 100 or 400 issue. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- Rick is partially right ..... A year is a leap year if ... if (year_is_completely_divisible_by_400 ) OR (year_is_not_divisible_by_100 and year_is_completely_divisible_by_4) then current_year = leap year; end-if; HTH Raj _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Wed Apr 18 12:10:06 2001 Date: Wed, 18 Apr 2001 14:06:15 -0300 From: Peter Clark Subject: Re: Leap Year >>> Mark Risman 2001/04/18 1:23:04 >This will tell you whether your OS thinks the year is a leap year, rather >than thinking about whether a year is the 100th, 400th year, etc. (if >you're worried about what happens every 100 or 400 years to begin with) >- Mark Fer cryin' out loud, it happened last year, Rick. Many systems still contain data from that year and many systems are still looking at that data. Far too many programmers in the past took that same "if you're worried about something that happens x number of years down the road" attitude and look what happened (Y2k) and the damage it caused to the reputation of our profession. Let's not propogate that attitude of sloppiness in our profession. Peter From owner-sqr-users@list.iex.net Wed Apr 18 12:24:01 2001 Date: Wed, 18 Apr 2001 13:20:33 -0400 From: Mark Risman Subject: Re: Leap Year Not sure what Rick has to do with this, but the reason I made that comment was because one or two leap days over a span of a long enough time may or may not be significant for whatever it is you are calculating. Processing time and extra calculations, on the other hand, are very often significant to us developers as we are writing our code. - Mark -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, April 18, 2001 1:06 PM To: SQR-USERS@list.iex.net Subject: Re: Leap Year >>> Mark Risman 2001/04/18 1:23:04 >This will tell you whether your OS thinks the year is a leap year, rather >than thinking about whether a year is the 100th, 400th year, etc. (if >you're worried about what happens every 100 or 400 years to begin with) >- Mark Fer cryin' out loud, it happened last year, Rick. Many systems still contain data from that year and many systems are still looking at that data. Far too many programmers in the past took that same "if you're worried about something that happens x number of years down the road" attitude and look what happened (Y2k) and the damage it caused to the reputation of our profession. Let's not propogate that attitude of sloppiness in our profession. Peter From owner-sqr-users@list.iex.net Wed Apr 18 12:14:10 2001 Date: Wed, 18 Apr 2001 13:10:05 -0400 From: "Jamadagni, Rajendra" Subject: Re: Leap Year Clark, With due respect ... In devising an algorithm, one has to consider all possible cases ... this exact thing was overlooked and we had Y2K problem. If systems were using 4 digit years, Y2K couldn't have been more than just-another-new-year. Cheers Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Wed Apr 18 12:27:27 2001 Date: Wed, 18 Apr 2001 14:23:35 -0300 From: Peter Clark Subject: Re: Leap Year Let's be serious?? Are you serious?? Did we learn nothing from Y2k?? In the seventies and eighties I coded in 2 digit years because my predecessors had coded in 2 digit years. Similarly, you run the risk of passing off your sloppiness to those who learn from your code and they will pass it on to those who follow them. There are times when I fear for this profession. >>> the dragon 2001/04/18 2:06:02 pm >>> I agree with this, but let's be serious; since we are past the 2000 fiasco, all you have to worry about is the evenly divisible by 4 part - after all, none of our code will survive another 99 years to worry about the divisible by 100 or 400 issue. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- Rick is partially right ..... A year is a leap year if ... if (year_is_completely_divisible_by_400 ) OR (year_is_not_divisible_by_100 and year_is_completely_divisible_by_4) then current_year = leap year; end-if; HTH Raj _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 19 11:08:38 2001 Date: Wed, 18 Apr 2001 13:38:59 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Leap Year The code should be able to handle ANY year situation. My company handles all types of client data, some of it is salary history. For us ole' farts, our salary history easily goes back prior to Y2K. For the young whipper-snappers, their salary history will go waaaaay into the future. Also, you should consider any sort of future year projections like the insurance industry does, or actuarial sciences. The code should be able to handle all this. Enuf said... lets not beat a dead horse over this. From owner-sqr-users@list.iex.net Wed Apr 18 12:47:43 2001 Date: Wed, 18 Apr 2001 14:41:54 -0300 From: Peter Clark Subject: Re: Leap Year I'm still trying to digest this one. Let me see if I have this correct. A few nanoseconds and the inconvenience of writing a little extra code are "very often more significant" than the accuracy of the information we are processing. hooookay ... gotcha. Dang it all, and when I think of all the wasted time and effort I've put into putting a little integrity into my work!! *dope slap* >>> Mark Risman 2001/04/18 2:20:33 pm >>> Not sure what Rick has to do with this, but the reason I made that comment was because one or two leap days over a span of a long enough time may or may not be significant for whatever it is you are calculating. Processing time and extra calculations, on the other hand, are very often significant to us developers as we are writing our code. - Mark -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, April 18, 2001 1:06 PM To: SQR-USERS@list.iex.net Subject: Re: Leap Year >>> Mark Risman 2001/04/18 1:23:04 >This will tell you whether your OS thinks the year is a leap year, rather >than thinking about whether a year is the 100th, 400th year, etc. (if >you're worried about what happens every 100 or 400 years to begin with) >- Mark Fer cryin' out loud, it happened last year, Rick. Many systems still contain data from that year and many systems are still looking at that data. Far too many programmers in the past took that same "if you're worried about something that happens x number of years down the road" attitude and look what happened (Y2k) and the damage it caused to the reputation of our profession. Let's not propogate that attitude of sloppiness in our profession. Peter From owner-sqr-users@list.iex.net Wed Apr 18 12:48:39 2001 Date: Wed, 18 Apr 2001 14:45:23 -0300 From: Peter Clark Subject: Re: Leap Year Apologies to anyone on the list that might take offence at my comments about the quality of work our profession is involved with. I am afraid that my exasperation may have come out in some of my responses and I apologize for that, however I do stand by the intent of my comments. Peter From owner-sqr-users@list.iex.net Wed Apr 18 13:00:20 2001 Date: Wed, 18 Apr 2001 12:54:09 -0500 From: the dragon Subject: Re: Leap Year Peter, and others. I am completely serious. Yes, we learned something from the Y2K issue - mostly that is was overhyped nonsense. But, the difference between a 2 digit year and a 4 digit year is different from an issue that is 99 years away. The code that I write in sqr will not be around 10 years from now, let alone a 100. If it is, I pity our civilization! I expect artificial intelligence to be developed by then, and noone will be using sqr. Good grief, if anyone even remembers what sqr stands for 100 years from now it'll be because they are studying ancient languages. clark 'the dragon' willis ----Original Message Follows---- Let's be serious?? Are you serious?? Did we learn nothing from Y2k?? In the seventies and eighties I coded in 2 digit years because my predecessors had coded in 2 digit years. Similarly, you run the risk of passing off your sloppiness to those who learn from your code and they will pass it on to those who follow them. There are times when I fear for this profession. >>> the dragon 2001/04/18 2:06:02 pm >>> I agree with this, but let's be serious; since we are past the 2000 fiasco, all you have to worry about is the evenly divisible by 4 part - after all, none of our code will survive another 99 years to worry about the divisible by 100 or 400 issue. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- Rick is partially right ..... A year is a leap year if ... if (year_is_completely_divisible_by_400 ) OR (year_is_not_divisible_by_100 and year_is_completely_divisible_by_4) then current_year = leap year; end-if; HTH Raj NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Wed Apr 18 13:47:41 2001 Date: Wed, 18 Apr 2001 12:40:08 -0600 From: Robert Goshko Subject: Re: Leap Year -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Clark, With respect to the Y2K "crisis", nobody will ever know if major problems would have occurred without spending the money. From the media side, it was way over-hyped. But this issue has nothing to do with "code being around" for 100 years, it has to do with doing a job right, and besides, the original post never said anything about why the need to check for a leap year, possibly it is to validate dates. I worked on a system that had an active widow collecting benefits and her birth date was in 1897! The current system I'm working on replacing went online in 1968, I doubt anyone who built it figured that it would run until 2001. Truth is stranger than fiction. As for AI, we might get there, but without all the rules, it will never work right. "A mind is like a parachute... It only works when it's open" .....Rob ===================================================================== Robert Goshko Axis Computer Consulting Services, Inc. President Sherwood Park, Alberta, Canada robert.goshko@axis-dev.com http://www.axis-dev.com/ ===================================================================== - -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of the dragon Sent: April 18, 2001 11:54 AM To: SQR-USERS@list.iex.net Subject: Re: Leap Year Peter, and others. I am completely serious. Yes, we learned something from the Y2K issue - mostly that is was overhyped nonsense. But, the difference between a 2 digit year and a 4 digit year is different from an issue that is 99 years away. The code that I write in sqr will not be around 10 years from now, let alone a 100. If it is, I pity our civilization! I expect artificial intelligence to be developed by then, and noone will be using sqr. Good grief, if anyone even remembers what sqr stands for 100 years from now it'll be because they are studying ancient languages. clark 'the dragon' willis - ----Original Message Follows---- Let's be serious?? Are you serious?? Did we learn nothing from Y2k?? In the seventies and eighties I coded in 2 digit years because my predecessors had coded in 2 digit years. Similarly, you run the risk of passing off your sloppiness to those who learn from your code and they will pass it on to those who follow them. There are times when I fear for this profession. >>> the dragon 2001/04/18 2:06:02 pm >>> I agree with this, but let's be serious; since we are past the 2000 fiasco, all you have to worry about is the evenly divisible by 4 part - after all, none of our code will survive another 99 years to worry about the divisible by 100 or 400 issue. clark 'the dragon' willis dragon enterprises, consulting services - ----Original Message Follows---- Rick is partially right ..... A year is a leap year if ... if (year_is_completely_divisible_by_400 ) OR (year_is_not_divisible_by_100 and year_is_completely_divisible_by_4) then current_year = leap year; end-if; HTH Raj NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.3 Comment: got root? iQA/AwUBOt3fhDj0Cv9NDz5BEQK1vQCgmHe+KsqRKv68RgcMkOPDIVbRx78Anis9 pi+jjwbns2VTF6ZpAu3wjffy =07hC -----END PGP SIGNATURE----- From owner-sqr-users@list.iex.net Wed Apr 18 13:07:08 2001 Date: Wed, 18 Apr 2001 13:04:24 -0500 From: Rick Hansen Subject: Re: Leap Year No need to apologize. I respect the fact that there are still some of us who appreciate doing the job right - the first time. Rick Hansen Sr. Application Systems Analyst sqr-users@list.iex.net 04/18/2001 02:45 PM To: SQR-USERS@list.iex.net cc: (bcc: Rick Hansen/Davenport/MP/RSMi) Subject: Re: Leap Year Apologies to anyone on the list that might take offence at my comments about the quality of work our profession is involved with. I am afraid that my exasperation may have come out in some of my responses and I apologize for that, however I do stand by the intent of my comments. Peter From owner-sqr-users@list.iex.net Wed Apr 18 13:48:01 2001 Date: Wed, 18 Apr 2001 14:46:59 -0400 From: Scott Eubank Subject: Re: Leap Year YAWN!!!!!! Wake me up when you guys Chill ;) scott (a mind is a beautiful thing to waste) From owner-sqr-users@list.iex.net Wed Apr 18 13:51:25 2001 Date: Wed, 18 Apr 2001 14:49:37 -0400 From: "Beller, Jay" Subject: Re: Leap Year Enough already with Y2K. If you want to discuss something of importance, why not figure out why SQR version 4.3 thinks that two date fields, one with a value of '03/31/2001' and one with a value of '04/01/2001', are equal? From owner-sqr-users@list.iex.net Wed Apr 18 13:53:40 2001 Date: Wed, 18 Apr 2001 14:52:10 -0400 From: Scott Eubank Subject: Re: Leap Year Jay , are you leting you server smoke crack again? (humor can cure the ill's of the world) -----Original Message----- From: Beller, Jay [mailto:JBeller@LBISOFTWARE.COM] Sent: Wednesday, April 18, 2001 2:50 PM To: SQR-USERS@list.iex.net Subject: Re: Leap Year Enough already with Y2K. If you want to discuss something of importance, why not figure out why SQR version 4.3 thinks that two date fields, one with a value of '03/31/2001' and one with a value of '04/01/2001', are equal? From owner-sqr-users@list.iex.net Wed Apr 18 14:16:10 2001 Date: Wed, 18 Apr 2001 15:04:36 -0400 From: jteschendorf@AGCONSULT.COM Subject: Re: Leap Year I have seen this happen if you are comparing variables with date values. What you need to do is convert them to DTU format and you will be fine. Jeff "Beller, Jay" cc: Sent by: Subject: Re: Leap Year "Discussion of SQR, Brio Technology's database reporting language" 04/18/2001 02:49 PM Please respond to sqr-users Enough already with Y2K. If you want to discuss something of importance, why not figure out why SQR version 4.3 thinks that two date fields, one with a value of '03/31/2001' and one with a value of '04/01/2001', are equal? From owner-sqr-users@list.iex.net Wed Apr 18 14:12:25 2001 Date: Wed, 18 Apr 2001 15:09:09 -0400 From: Glenn Coulter Subject: Re: Leap Year I would beg to differ... I worked for 9 months on a Y2K conversion of our time and attendance system. Not only would no employee have been paid come January 2000 without these changes, but the online system would not have allowed time entry to begin with as it would have crashed with the first data entry. I along with many other programmers spent those months fixing code so that it would NOT break on Y2K. If everyone would have ignored it the disaster would have been real. That said.... Let's drop this subject --> I like to get the last word :) -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Wednesday, April 18, 2001 1:54 PM To: SQR-USERS@list.iex.net Subject: Re: Leap Year Peter, and others. I am completely serious. Yes, we learned something from the Y2K issue - mostly that is was overhyped nonsense. But, the difference between a 2 digit year and a 4 digit year is different from an issue that is 99 years away. The code that I write in sqr will not be around 10 years from now, let alone a 100. If it is, I pity our civilization! I expect artificial intelligence to be developed by then, and noone will be using sqr. Good grief, if anyone even remembers what sqr stands for 100 years from now it'll be because they are studying ancient languages. clark 'the dragon' willis ----Original Message Follows---- Let's be serious?? Are you serious?? Did we learn nothing from Y2k?? In the seventies and eighties I coded in 2 digit years because my predecessors had coded in 2 digit years. Similarly, you run the risk of passing off your sloppiness to those who learn from your code and they will pass it on to those who follow them. There are times when I fear for this profession. >>> the dragon 2001/04/18 2:06:02 pm >>> I agree with this, but let's be serious; since we are past the 2000 fiasco, all you have to worry about is the evenly divisible by 4 part - after all, none of our code will survive another 99 years to worry about the divisible by 100 or 400 issue. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- Rick is partially right ..... A year is a leap year if ... if (year_is_completely_divisible_by_400 ) OR (year_is_not_divisible_by_100 and year_is_completely_divisible_by_4) then current_year = leap year; end-if; HTH Raj NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Wed Apr 18 14:23:01 2001 Date: Wed, 18 Apr 2001 14:20:23 -0500 From: the dragon Subject: Re: Leap Year sounds like you're using a Wintel system..... clark ----Original Message Follows---- Enough already with Y2K. If you want to discuss something of importance, why not figure out why SQR version 4.3 thinks that two date fields, one with a value of '03/31/2001' and one with a value of '04/01/2001', are equal? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 19 08:56:01 2001 Date: Thu, 19 Apr 2001 21:51:18 +0800 From: Karver Subject: Re: Leap Year Why not just hard code the test for the years you know will be leap years, like '2004','2008','2012' etc? WAIT!! Don't hit that Reply button! I was just kidding. :-) Seriously though, let me tell you a little story. I once bought some software that consisted of a bunch of library functions for use in programming. One of the functions was a Factorial function, and I read with interest in the manual that although the authors could code a mathematical recursive function fairly easily, performance became abysmal the higher the root number. They decided in the end to simply hard code all the answers up to something like 10000. Of course it was lightning fast, completely accurate, with the only drawback being it couldn't calculate a factorial on anything greater than 10000 (but let's face it, 10000 factorial would be a pretty damn big number). My point to this little diversionary tale is that as programmers we sometimes need to take a step back from the logical and consider the lateral. Having done that in this case though, I'd have to say that using mod 4 would be sufficient, with tests for 100 and 400 included for the purists. Wayne Ivory -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of the dragon Sent: Thursday, 19 April 2001 3:20 AM To: SQR-USERS@list.iex.net Subject: Re: Leap Year sounds like you're using a Wintel system..... clark ----Original Message Follows---- Enough already with Y2K. If you want to discuss something of importance, why not figure out why SQR version 4.3 thinks that two date fields, one with a value of '03/31/2001' and one with a value of '04/01/2001', are equal? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Wed Apr 18 17:13:11 2001 Date: Wed, 18 Apr 2001 18:08:01 -0400 From: a_moosa Subject: eCRM Survey:Graduate thesis Hi! For those of you involved in an eCRM initiative, please fill out this short survey. I am a graduate student doing this as part of my capstone project. Your time in completing this survey is highly appreciated. If possible, I would appreciate it if you could forward it to your colleagues/friends who might be involved in a similar project elsewhere.This is a learning experience for me and I would be really grateful if you do so. The survey can be accessed at http://isomnt.uncg.edu/a_moosa/survey/ecrm-survey.htm Once again, thanks for your time. Sincerely, Ashfaaq Moosa a_moosa@uncg.edu From owner-sqr-users@list.iex.net Thu Apr 19 04:46:00 2001 Date: Thu, 19 Apr 2001 11:33:11 +0100 From: Jamin Philippe Subject: RowStamp Hello List, What Use The Field "RowStamp" in Maximo Tables ? A quoi sert le champ "RowStamp" dans les tables Maximo ? Merci, --- Philippe Jamin SLTC - Société Lyonnaise de Transports en Commun Direction des Services Techniques - GMAO 41, rue de la Poudrette - 69120 Vaulx-en-Velin * 04 78 71 83 16 - Fax : 04 78 71 83 56 pjamin@sltc-fr.com From owner-sqr-users@list.iex.net Thu Apr 19 06:22:32 2001 Date: Thu, 19 Apr 2001 07:20:35 -0700 From: "Charles A. Harkness" Subject: Re: RowStamp Phillippe, The RowStamp is a unique id or similar to the RowId in Oracle. Triggers fire in MAXIMO when you enter a new record and the trigger assigns a unique id, or RowStamp to this record to identify the record. If you are doing straight sql updates, deletions, etc you can use the RowStamp to identify what record to modify. Chuck At 11:33 AM 4/19/01 +0100, you wrote: >Hello List, > >What Use The Field "RowStamp" in Maximo Tables ? > >A quoi sert le champ "RowStamp" dans les tables Maximo ? > >Merci, >--- >Philippe Jamin >SLTC - Société Lyonnaise de Transports en Commun >Direction des Services Techniques - GMAO >41, rue de la Poudrette - 69120 Vaulx-en-Velin >* 04 78 71 83 16 - Fax : 04 78 71 83 56 >pjamin@sltc-fr.com > > From owner-sqr-users@list.iex.net Fri Apr 20 10:49:27 2001 Date: Thu, 19 Apr 2001 08:34:50 -0400 From: "Fromen, Paul V" Subject: Acrobat Forms on top of an SQR Report Hi All, This may be a bit off topic, but has anyone seen Acrobat PDF forms programmatically built on top of an SQR report output? I'd like to include signature field placement at the time the report is written so that when I distill the report output it becomes a smart PDF form. The Acrobat Distiller supports a pdfMark operator for marking up a document. If I could figure out how to include these when the report is written I'd be home free. The only way I can see to do this is to have the report write a PS file and imbed all the PS & pdfMark commands around the report output at report time. What I'd like to do is somehow hide or escape the pdfMark commands so that they are paid attention to by the distiller. Thanks in advance, Paul From owner-sqr-users@list.iex.net Thu Apr 19 10:01:04 2001 Date: Thu, 19 Apr 2001 10:44:40 -0400 From: "Cadenas, Maria (MT)" Subject: Date Formatting Our input file is sending a string to be read as MMDDYY. How do you make your SQR read the value of that string as a date? I tried the strtodate() function, but we get an SQR Warning in our log file stating that we are translating a two digit year. I could substring and add the first two numbers, but how do I insure the correct first two digits are used? (20 vs 19) Any ideas? From owner-sqr-users@list.iex.net Thu Apr 19 10:43:38 2001 Date: Thu, 19 Apr 2001 11:31:59 -0400 From: Mark Risman Subject: Re: Date Formatting What is your date edit mask? If the mask is MMDDYY, you will get the current century (e.g. 98 at the end of the string becomes year 2098 in the date variable). If the mask is MMDDRR, you will get a century which depends on the two digits of the year; SQR "pivots" on year 50 (e.g. 49, 48 or 47 would become year 2049, 2048, 2047, while 50, 51, and 52 would translate to 1950, 1951 and 1952). You could also use a database function, if available. For example, if you use SYBASE's convert function, it will behave as above. In either case above, you are at the mercy of whoever wrote the function to decide what the first two digits would be. If you want to ensure the "correct" first two digits for the application, and the above solutions don't give you the "correct" answer, you would have to write the logic yourself. If, as you suggest, you add the first two digits for the year, those will be the first two digits for the year. - Mark -----Original Message----- From: Cadenas, Maria (MT) [mailto:MCadenas@DOW.COM] Sent: Thursday, April 19, 2001 10:45 AM To: SQR-USERS@list.iex.net Subject: Date Formatting Our input file is sending a string to be read as MMDDYY. How do you make your SQR read the value of that string as a date? I tried the strtodate() function, but we get an SQR Warning in our log file stating that we are translating a two digit year. I could substring and add the first two numbers, but how do I insure the correct first two digits are used? (20 vs 19) Any ideas? From owner-sqr-users@list.iex.net Thu Apr 19 10:32:35 2001 Date: Thu, 19 Apr 2001 10:50:47 -0400 From: Mike Wheeler Subject: Can Brio send out emails??? Does anyone know if BrioReports can email the report once generated? Thanks, Mike W. From owner-sqr-users@list.iex.net Thu Apr 19 13:06:43 2001 Date: Thu, 19 Apr 2001 13:58:15 -0400 From: Pamela Lantzy Subject: Re: Can Brio send out emails??? You can subscribe to the category or the report itself within Brio and when a new report is published it will send a message. -----Original Message----- From: Mike Wheeler [mailto:Michael_Wheeler@PUTNAMINV.COM] Sent: Thursday, April 19, 2001 10:51 AM To: SQR-USERS@LIST.IEX.NET Subject: Can Brio send out emails??? Does anyone know if BrioReports can email the report once generated? Thanks, Mike W. From owner-sqr-users@list.iex.net Fri Apr 20 09:21:18 2001 Date: Fri, 20 Apr 2001 07:14:22 -0700 From: David Lyons Subject: Re: Can Brio send out emails??? BrioReports as a standalone application just generates the output report in whatever file format you have chosen. However if you integrate with the BrioPortal product the Portal would then take care of your distribution, scheduling, etc. -----Original Message----- From: Mike Wheeler [mailto:Michael_Wheeler@PUTNAMINV.COM] Sent: Thursday, April 19, 2001 10:51 AM To: SQR-USERS@list.iex.net Subject: Can Brio send out emails??? Does anyone know if BrioReports can email the report once generated? Thanks, Mike W. From owner-sqr-users@list.iex.net Thu Apr 19 10:49:35 2001 Date: Thu, 19 Apr 2001 11:39:32 -0400 From: Steve Rogers Subject: SQR page breaking on MVS We are in the process of converting PeopleSoft HRMS from an AS/400 platform to an MVS platform. We are finding that MVS does not seem to be recognizing the page break control character in SQR reports. We see the '1' page break character actually printing out on reports in the first column, but no page breaking. Can anyone tell us what the problem is? thanks, steve From owner-sqr-users@list.iex.net Thu Apr 19 11:53:05 2001 Date: Thu, 19 Apr 2001 16:43:55 -0000 From: Venkat Goda Subject: Re: SQR page breaking on MVS

Steve,

         If you trying to FTP the report file to a windows machine and print it then i think it is problem with the FTP process. We had this knid of problem but i was not involved in solving the problem because iam a PC person. People who were experinced on the Mainframe solved it. If i get any info i will let you know. Let me know if this is urgent.

HTH

Venkat.

>From: Steve Rogers
>Reply-To: sqr-users@list.iex.net
>To: SQR-USERS@list.iex.net
>Subject: SQR page breaking on MVS
>Date: Thu, 19 Apr 2001 11:39:32 -0400
>
> We are in the process of converting PeopleSoft HRMS from an AS/400 platform
>to an MVS platform. We are finding that MVS does not seem to be recognizing the
>page break control character in SQR reports. We see the '1' page break
>character actually printing out on reports in the first column, but no page
>breaking. Can anyone tell us what the problem is?
>
> thanks,
> steve


Get your FREE download of MSN Explorer at http://explorer.msn.com

From owner-sqr-users@list.iex.net Thu Apr 19 12:12:56 2001 Date: Thu, 19 Apr 2001 13:00:39 -0400 From: "Schelske, Steve K." Subject: Re: SQR page breaking on MVS Here's what I have in my notes....You might try it and see if it works. Your output dataset probably needs to be FBA as well. For SQR to create ASCII carriage control characters successfully on mainframe, replace the -GPRINT=? SQRPARM with -P. EX. Was PARMS('DDN:SQRIN DSN/DBADB2TI -FDDN:SQROUT -GPRINT=NO - -IDDN:SQRINC( -TBZ -MDDN:MAXIN' -S) Change to PARMS('DDN:SQRIN DSN/DBADB2TI -FDDN:SQROUT -P - -IDDN:SQRINC( -TBZ -MDDN:MAXIN' -S) -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Steve Rogers Sent: Thursday, April 19, 2001 11:40 AM To: SQR-USERS@list.iex.net Subject: SQR page breaking on MVS We are in the process of converting PeopleSoft HRMS from an AS/400 platform to an MVS platform. We are finding that MVS does not seem to be recognizing the page break control character in SQR reports. We see the '1' page break character actually printing out on reports in the first column, but no page breaking. Can anyone tell us what the problem is? thanks, steve From owner-sqr-users@list.iex.net Thu Apr 19 11:25:32 2001 Date: Thu, 19 Apr 2001 11:16:56 -0500 From: Bob Helm Subject: wrap question I am wrapping lines starting at a certain column say, column X. After the first line prints, the following lines that wrap start printing at the first column, column 1. I want them to wrap starting at column X, like the first line. Is there some way I can do this? Below is (hopefully) an illustration of what I'm trying to say: It is doing this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. I want it to do this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Thank you for any help, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Fri Apr 20 07:31:31 2001 Date: Fri, 20 Apr 2001 07:22:09 -0500 From: Gary Stelzig Subject: Re: wrap question Bob Regarding your wrap problem. If you are using the WRAP to print data that includes the last column position on the line, this will cause an implicit line feed. If this is true increase line width by one or move your wrap to the left by one or reduce the number of wrap positions printed by one. If this does not work try using the Wrap Strip=<13><10> to get rid of line feed or carriage returns or check your source data for some special characters. ------------------------------------------------------------------------------------------------ Gary Stelzig Data Warehouse Specialist Dairyland Power Cooperative 3200 East Ave. South La Crosse, WI 54601 Tel: 608-787-1282 Fax: 608-787-1321 Email: GES@Dairynet.com Bob Helm cc: Sent by: Subject: wrap question "Discussion of SQR, Brio Technology's database reporting language" 04/19/01 11:16 AM Please respond to sqr-users I am wrapping lines starting at a certain column say, column X. After the first line prints, the following lines that wrap start printing at the first column, column 1. I want them to wrap starting at column X, like the first line. Is there some way I can do this? Below is (hopefully) an illustration of what I'm trying to say: It is doing this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. I want it to do this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Thank you for any help, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Fri Apr 20 09:15:14 2001 Date: Fri, 20 Apr 2001 09:03:21 -0500 From: Bob Helm Subject: Re: wrap question Thanks for the help, Gary. The problem was I was writing "print &text_data ()" to print on the same line after the previously printed data. So, while tinkering with your advice, I wrote "print &text_data (,{MAX_COLUMNS})" and that did the trick. All that was interesting info to store for later. Thanks again. Bob -----Original Message----- From: Gary Stelzig [mailto:ges@DAIRYNET.COM] Sent: Friday, April 20, 2001 7:22 AM To: SQR-USERS@list.iex.net Subject: Re: wrap question Bob Regarding your wrap problem. If you are using the WRAP to print data that includes the last column position on the line, this will cause an implicit line feed. If this is true increase line width by one or move your wrap to the left by one or reduce the number of wrap positions printed by one. If this does not work try using the Wrap Strip=<13><10> to get rid of line feed or carriage returns or check your source data for some special characters. ---------------------------------------------------------------------------- -------------------- Gary Stelzig Data Warehouse Specialist Dairyland Power Cooperative 3200 East Ave. South La Crosse, WI 54601 Tel: 608-787-1282 Fax: 608-787-1321 Email: GES@Dairynet.com Bob Helm cc: Sent by: Subject: wrap question "Discussion of SQR, Brio Technology's database reporting language" 04/19/01 11:16 AM Please respond to sqr-users I am wrapping lines starting at a certain column say, column X. After the first line prints, the following lines that wrap start printing at the first column, column 1. I want them to wrap starting at column X, like the first line. Is there some way I can do this? Below is (hopefully) an illustration of what I'm trying to say: It is doing this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. I want it to do this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Thank you for any help, B The Programmer formally known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Thu Apr 19 20:50:21 2001 Date: Fri, 20 Apr 2001 08:59:00 +0800 From: BoonchanaB Subject: Problem on List Top Level Location by SQR Product SQR/4.3.4/PC/Windows NT 4.0/ODBC Level 2/ Jun 03 1999 I tried to list the top-level equipment from table lochierarchy in order to identify only the main equipment by using the SQR code below The code use on Client machine under (MAXIMO 4.0.3) VisualSQRIBE 5.0, Local Database = ODBC and Remote Database = Oracle. I received the error message below Anyone can help to get this work. Please..... Best Regards, Boonchana B. Carigali-Triton Operating Company ______________________________________________________________________ SQR 5528) ODBC SQL dbexec: SQLExecute error 904 in cursor 2: [Oracle][ODBC][Ora]ORA-00904: invalid column name (SQR 5528) ODBC SQL dbexec: SQLExecute error 0 in cursor 2: [Oracle][ODBC]Option value changed. (SQR 5528) ODBC SQL dbexec: SQLExecute error 1043 in cursor 2: [Oracle][ODBC][Ora]ORA-01043: user side memory corruption [], [], [], [] Error on line 62: (SQR 3723) Problem executing cursor. SQR: Program Aborting. Code !--------------------------------------------------------------------- - ! Generated on Thu Apr 19 15:09:30 2001 by VisualSQRIBE 5.0.0.29 ! ! Filename: C:\SQRIBE\VisualSQRIBE\PROGRAM\reports\Top Level Location.sqr ! Format : Tabular ! Username: MAXIMO !--------------------------------------------------------------------- - Begin-Setup Declare-Layout Default Orientation = Portrait Paper-Size = (A4) Top-Margin = 0.50 Bottom-Margin = 0.50 Left-Margin = 0.50 Right-Margin = 0.50 Line-Height = 1 Char-Width = 1 End-Declare End-Setup Begin-Program Do tag_list End-Program !--------------------------------------------------------------------- - Begin-Procedure tag_list Position (1,1) Print-Direct printer=html '%%ResetColor' Print-Direct printer=html '%%ResetBorder' Begin-Select Alter-Printer Font=5 Point-Size=10 ! [SQR.INI] 5=Times New Roman,proportional eqnum (+10,1) description (,50,25) location &location do get_top_loc print $top_loc (,200) !SYSTEMID (10,353,8) !PARENT (10,177,20) !move &parent to $parent Print-Direct printer=html '%%ResetColor' Next-Listing SkipLines=2 Need=12 >From equipment where location like 'CKA-%' End-Select Next-Listing Print-Direct printer=html '%%ResetColor' Print-Direct printer=html '%%ResetBorder' End-Procedure !--------------------------------------------------------------------- - begin-procedure get_top_loc move &location to $act_loc move 'dummy' to $parent while $parent != '' do get_parent move $parent to $act_loc end-while move &l.location to $top_loc end-procedure !--------------------------------------------------------------------- - begin-procedure get_parent move '' to $parent begin-select l.location l.parent &l.parent move &l.parent to $parent from lochierarchy l where l.location = $act_loc end-select end-procedure !--------------------------------------------------------------------- From owner-sqr-users@list.iex.net Fri Apr 20 03:03:50 2001 Date: Fri, 20 Apr 2001 00:46:06 -0700 From: David Smith Subject: Re: Problem on List Top Level Location by SQR Boonchana, Two problems I found with your code was a wrapped line and a next-listing outside of the select construct. Begin-Select Alter-Printer Font=5 Point-Size=10 ! [SQR.INI] 5=Times New Roman,proportional <---- this cannot be on position 1 or they are considered column names. Print-Direct printer=html '%%ResetColor' Next-Listing SkipLines=2 Need=12 >From equipment where location like 'CKA-%' End-Select Next-Listing ! <---need to comment or remove this line Print-Direct printer=html '%%ResetColor' Print-Direct printer=html '%%ResetBorder' End-Procedure Once I fixed those problems the report ran for me using VisualScribe/SQLBase demo database. I think you may have to change your report writer setup to ODBC / ODBC, I've seen weird problems when remote and local database do not match. I also have 2 suggestions for you: Limit your report names to 8 characters, that is the limit for registering reports in Maximo, although they will work fine in VScribe with long file names. Base your reports on delivered MRO Maximo code, its much easier to register prompts, passed parameters, etc. if you follow MRO style and include files. I usually take an existing report and copy the .SQR and .ENG files to a new name and go to town. I've written hundreds of custom reports for Maximo this way, its worth the effort to study how MRO designs their reports (and it makes it easier to alter the delivered reports). I never use the Vscribe report designer to start a report. David L Smith IBM Global Services From owner-sqr-users@list.iex.net Sat Apr 21 15:42:17 2001 Date: Sat, 21 Apr 2001 21:05:00 +0100 From: Christopher Abraham Subject: Re: Problem on List Top Level Location by SQR I'm a DBA for Maximo 4.03. Local Database = Oracle and Remote Database = Oracle, I made the sane mistake. Chris Abraham ----- Original Message ----- From: BoonchanaB To: Sent: Friday, April 20, 2001 1:59 AM Subject: Problem on List Top Level Location by SQR > Product SQR/4.3.4/PC/Windows NT 4.0/ODBC Level 2/ Jun 03 1999 > > I tried to list the top-level equipment from table lochierarchy in > order to identify only the main equipment by using the SQR code below > > The code use on Client machine under (MAXIMO 4.0.3) VisualSQRIBE 5.0, > Local Database = ODBC and Remote Database = Oracle. I received the > error message below > > Anyone can help to get this work. Please..... > > Best Regards, > > Boonchana B. > Carigali-Triton Operating Company > ______________________________________________________________________ > SQR 5528) ODBC SQL dbexec: SQLExecute error 904 in cursor 2: > [Oracle][ODBC][Ora]ORA-00904: invalid column name > > (SQR 5528) ODBC SQL dbexec: SQLExecute error 0 in cursor 2: > [Oracle][ODBC]Option value changed. > (SQR 5528) ODBC SQL dbexec: SQLExecute error 1043 in cursor 2: > [Oracle][ODBC][Ora]ORA-01043: user side memory corruption [], [], > [], [] > > > Error on line 62: > (SQR 3723) Problem executing cursor. > > SQR: Program Aborting. > Code > !--------------------------------------------------------------------- > - > ! Generated on Thu Apr 19 15:09:30 2001 by VisualSQRIBE 5.0.0.29 > ! > ! Filename: C:\SQRIBE\VisualSQRIBE\PROGRAM\reports\Top Level > Location.sqr > ! Format : Tabular > ! Username: MAXIMO > !--------------------------------------------------------------------- > - > > Begin-Setup > Declare-Layout Default > Orientation = Portrait > Paper-Size = (A4) > Top-Margin = 0.50 > Bottom-Margin = 0.50 > Left-Margin = 0.50 > Right-Margin = 0.50 > Line-Height = 1 > Char-Width = 1 > End-Declare > > End-Setup > > Begin-Program > Do tag_list > End-Program > !--------------------------------------------------------------------- > - > Begin-Procedure tag_list > Position (1,1) > Print-Direct printer=html '%%ResetColor' > Print-Direct printer=html '%%ResetBorder' > Begin-Select > Alter-Printer Font=5 Point-Size=10 ! [SQR.INI] 5=Times New > Roman,proportional > eqnum (+10,1) > description (,50,25) > location &location > do get_top_loc > print $top_loc (,200) > !SYSTEMID (10,353,8) > !PARENT (10,177,20) > !move &parent to $parent > Print-Direct printer=html '%%ResetColor' > Next-Listing SkipLines=2 Need=12 > From equipment where location like 'CKA-%' > End-Select > Next-Listing > Print-Direct printer=html '%%ResetColor' > Print-Direct printer=html '%%ResetBorder' > End-Procedure > !--------------------------------------------------------------------- > - > begin-procedure get_top_loc > move &location to $act_loc > move 'dummy' to $parent > while $parent != '' > do get_parent > move $parent to $act_loc > end-while > move &l.location to $top_loc > end-procedure > !--------------------------------------------------------------------- > - > begin-procedure get_parent > move '' to $parent > begin-select > l.location > l.parent &l.parent > move &l.parent to $parent > from lochierarchy l where l.location = $act_loc > end-select > end-procedure > !--------------------------------------------------------------------- From owner-sqr-users@list.iex.net Fri Apr 20 10:20:00 2001 Date: Fri, 20 Apr 2001 11:04:09 -0400 From: Derrick Fisher Subject: Peoplecode Can anyone recommend any good books on PeopleCode ? Derrick Fisher Peoplesoft Programmer/Analyst New Castle County Government (302) 395-5221 From owner-sqr-users@list.iex.net Fri Apr 20 10:31:16 2001 Date: Fri, 20 Apr 2001 11:26:31 -0400 From: Mike Morgan Subject: Re: Peoplecode Derrick, Try PeopleBooks...always works for me. -----Original Message----- From: Derrick Fisher [mailto:DFisher@CO.NEW-CASTLE.DE.US] Sent: Friday, April 20, 2001 11:04 AM To: SQR-USERS@list.iex.net Subject: Peoplecode Can anyone recommend any good books on PeopleCode ? Derrick Fisher Peoplesoft Programmer/Analyst New Castle County Government (302) 395-5221 ************************************************************** NOTICE: The information contained in this e-mail is confidential and may be privileged or otherwise protected from disclosure. This e-mail is intended solely for the use of the named addressee. Please be aware that any other use, printing, copying, disclosure or dissemination may be subject to legal restriction. If you are not the intended recipient, please notify us immediately by return e-mail to the sender. From owner-sqr-users@list.iex.net Fri Apr 20 10:35:17 2001 Date: Fri, 20 Apr 2001 11:30:42 -0400 From: Glenn Coulter Subject: Re: Peoplecode Hey Derrick, I have not had a chance to fully review that section in a book I just purchased, "Essential Guide to Peoplesoft Developement and Customization" by Tony Delia (and others). But a brief review looked good with eight chapters and almost 200 pages devoted to Peoplecode topic. I have found the book to be very informative in the topics I have reviewed and would give it a thumbs up. Hope this helps...Glenn Coulter -----Original Message----- From: Derrick Fisher [mailto:DFisher@CO.NEW-CASTLE.DE.US] Sent: Friday, April 20, 2001 11:04 AM To: SQR-USERS@list.iex.net Subject: Peoplecode Can anyone recommend any good books on PeopleCode ? Derrick Fisher Peoplesoft Programmer/Analyst New Castle County Government (302) 395-5221 From owner-sqr-users@list.iex.net Fri Apr 20 11:23:35 2001 Date: Fri, 20 Apr 2001 10:57:40 -0500 From: Mr Lee Marrette Subject: Re: Peoplecode The Essential Guide to PeopleSoft Development and Customizaton has several chapters on PeopleCode - Very helpful. Thanks, Lee >>> Derrick Fisher 04/20/01 10:04AM >>> Can anyone recommend any good books on PeopleCode ? Derrick Fisher Peoplesoft Programmer/Analyst New Castle County Government (302) 395-5221 Lee Marrette Principal Software Engineer Voice (504)697-4371 From owner-sqr-users@list.iex.net Fri Apr 20 13:14:31 2001 Date: Fri, 20 Apr 2001 14:09:02 -0300 From: Peter Clark Subject: Re: Peoplecode In addition to the recommendation of two folks here on the SQR maillist (not all SQR users are PeopleSoft users), you may get even more recommendations on the PeopleSoft-Fans maillist at http://groups.yahoo.com/group/peoplesoft-fans >>> Derrick Fisher 2001/04/20 12:04:09 pm >>> Can anyone recommend any good books on PeopleCode ? Derrick Fisher Peoplesoft Programmer/Analyst New Castle County Government (302) 395-5221 From owner-sqr-users@list.iex.net Fri Apr 20 18:48:19 2001 Date: Fri, 20 Apr 2001 19:24:02 -0400 From: Jeff Shupe Subject: SQLXDP error on dynamic select on a field of a type date-when this is the last field in the select list using SQLBase I get the following error(s): (SQR 5528) SQLBase SQLXDP error 10509 in cursor 0: Digit of the number is too large Error on line 59: (SQR 1914) Bad input data () for edit mask: 'SYYYYMMDDHH24MISSNNNNNN'.=20 on a dynamic select using PeopleSoft 7.5 FS single user version against the EPDMO database using SQLBase 6.1.2. I know the problem value = for the row being selected is: {00:00:00}. This field has an application = designer type of 5 (TIME-DBFIELDs).=20 Does anyone know how to TRAP this kind of error so it can be handled instead of killing the SQRW.=20 Thanks...=20 SQR EXTRACT CODE - stripped down to just produce the error...=20 Begin-Setup Declare-Variable date $RTN001 End-Declare End-Setup=20 !******************************************************************** Begin-Program !******************************************************************** !Initialize Variables=20 Let $SYSTEM_QUOTE =3D '''' Do 0999-Test-Specific-Points=20 End-Program=20 !******************************************************************** Begin-Procedure 0999-Test-Specific-Points !********************************************************************=20 Let $FLD001 =3D 'SCHED_TIME' Do 3000-Execute-Select=20 End-Procedure !0999-Test-Specific-Points=20 !******************************************************************** Begin-Procedure 3000-Execute-Select !******************************************************************** ! Perform dynamic select from database=20 Show '' Show '3001- Show Select Criteria:' Show '' Show '3002- $FLD001 - ' $FLD001 Let $ERROR_TABLE =3D 'SHIP_INF_INV'=20 Begin-Select On-Error=3D8000-Check-For-Table-Error [$FLD001] &RTN001=3Ddate Show '3003- &RTN001 - ' &RTN001 Do 4000-Return-Results from PS_SHIP_INF_INV where INV_ITEM_ID =3D '10001' End-Select=20 End-Procedure !3000-Execute-Select=20 !******************************************************************** Begin-Procedure 4000-Return-Results !********************************************************************=20 Show '4001- ' &RTN001 If IsBlank(&RTN001) Show '4002- Field: &RTN001 - is BLANK' End-If If IsNull(&RTN001) Show '4003- Field: &RTN001 - is NULL' End-If Show '4004- &RTN001: ' &RTN001 Let $OUT001 =3D datetostr(&RTN001,'HH:MI:SS') Show '4005- $OUT001: ' $OUT001=20 End-Procedure !4000-Return-Results=20 !******************************************************************** Begin-Procedure 8000-Check-For-Table-Error !******************************************************************** ! Check validity of selected table (physically exists, empty, etc.)=20 Show '8001- Error Handling Routine' Do Select-Error-Normal Stop End-Procedure !8000-Check-For-Table-Error=20 !******************************************************************** Begin-Procedure Select-Error-Normal !******************************************************************** ! Error status 'boiler plate' for FATAL errors=20 !Let $SQR_PROCEDURE =3D 'Begin-Program' Show 'SQL ERROR: in Select on: ' $Error_Table ' ' Show ' SQL-Status: ' #sql-status Show ' Current Procedure: ' $SQR_PROCEDURE Show ' ' End-Procedure=20 = !*********************************************************************** = !----------------------------------------------------------------------! ! Called SQC Procedures ! = !----------------------------------------------------------------------! = SQR.LOG.....=20 3001- Show Select Criteria:=20 3002- $FLD001 - SCHED_TIME 3003- &RTN001 - 11.11.25 4001- 11.11.25 4004- &RTN001: 11.11.25 4005- $OUT001: 11:11:25 3003- &RTN001 - 11.18.01 4001- 11.18.01 4004- &RTN001: 11.18.01 4005- $OUT001: 11:18:01 3003- &RTN001 - 12.22.54 4001- 12.22.54 4004- &RTN001: 12.22.54 4005- $OUT001: 12:22:54 3003- &RTN001 - 12.31.44 4001- 12.31.44 4004- &RTN001: 12.31.44 4005- $OUT001: 12:31:44 3003- &RTN001 - 11.24.10 4001- 11.24.10 4004- &RTN001: 11.24.10 4005- $OUT001: 11:24:10 3003- &RTN001 - 10.02.45 4001- 10.02.45 4004- &RTN001: 10.02.45 4005- $OUT001: 10:02:45 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 3003- &RTN001 -=20 4001-=20 4002- Field: &RTN001 - is BLANK 4003- Field: &RTN001 - is NULL 4004- &RTN001:=20 4005- $OUT001:=20 (SQR 5528) SQLBase SQLXDP error 10509 in cursor 0: Digit of the number is too large 3003- &RTN001 -=20 4001-=20 4004- &RTN001:=20 Error on line 59: (SQR 1914) Bad input data () for edit mask: 'SYYYYMMDDHH24MISSNNNNNN'. = SQR: Program Aborting.=20 =20 =20 From owner-sqr-users@list.iex.net Mon Apr 23 07:51:12 2001 Date: Mon, 23 Apr 2001 08:44:26 -0400 From: Steve Rogers Subject: MVS System EC6 abend Some SQR's are returning an MVS System EC6 error when running in our test environment. Can anyone tell me what causes this abend? I suspect that it may have to do with a space issue and/or run class being too small. thanks, Steve From owner-sqr-users@list.iex.net Mon Apr 23 08:00:34 2001 Date: Mon, 23 Apr 2001 08:58:04 -0400 From: "Schelske, Steve K." Subject: Re: MVS System EC6 abend I don't know what causes the abend, but setting REGION=0M and running in a longer class (when I get this error, I switch to a class with unlimited run time) should allow the SQR to finish. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Steve Rogers Sent: Monday, April 23, 2001 8:44 AM To: SQR-USERS@list.iex.net Subject: MVS System EC6 abend Some SQR's are returning an MVS System EC6 error when running in our test environment. Can anyone tell me what causes this abend? I suspect that it may have to do with a space issue and/or run class being too small. thanks, Steve From owner-sqr-users@list.iex.net Mon Apr 23 11:01:44 2001 Date: Mon, 23 Apr 2001 11:54:13 -0400 From: Victor Loghin Subject: Re: MVS System EC6 abend Steve, You program is abending on time. Since SQR is using UNIX services when executing an SQR, it traps the abend and returns the EC6 code instead for a 322 abend. HTH, Victor Loghin VGL Consulting Inc. vgl_ca@hotmail.com ----Original Message Follows---- From: Steve Rogers Subject: MVS System EC6 abend Date: Mon, 23 Apr 2001 08:44:26 -0400 Some SQR's are returning an MVS System EC6 error when running in our test environment. Can anyone tell me what causes this abend? I suspect that it may have to do with a space issue and/or run class being too small. thanks, Steve _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From owner-sqr-users@list.iex.net Mon Apr 23 10:47:06 2001 Date: Mon, 23 Apr 2001 10:42:42 -0500 From: "Benzenhafer, Dave" Subject: Portrait or Landscape from an IF statement After looking at the SQR archives, I gather that SQR will not support a change in printing format based on an IF statement. I am trying to confirm this won't work before I spend three days on it. Example If $p_mfg_rpt = 'Y' Use-report land Else Use-report port End-if Dave Benzenhafer From owner-sqr-users@list.iex.net Mon Apr 23 13:34:26 2001 Date: Mon, 23 Apr 2001 12:19:08 -0600 From: Scott Hitchcock Subject: Re: Portrait or Landscape from an IF statement Dave, You could use a #if and an ask. >From: "Benzenhafer, Dave" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Portrait or Landscape from an IF statement >Date: Mon, 23 Apr 2001 10:42:42 -0500 > >After looking at the SQR archives, I gather that SQR will not support a >change in printing format based on an IF statement. >I am trying to confirm this won't work before I spend three days on it. >Example > > If $p_mfg_rpt = 'Y' > Use-report land > Else > Use-report port > End-if > >Dave Benzenhafer _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Mon Apr 23 13:50:49 2001 Date: Mon, 23 Apr 2001 13:40:23 -0500 From: "Benzenhafer, Dave" Subject: Re: Portrait or Landscape from an IF statement Thanks Scott. I'll give that a try. Dave Benzenhafer -----Original Message----- From: Scott Hitchcock [mailto:sbhitchc@HOTMAIL.COM] Sent: Monday, April 23, 2001 1:19 PM To: SQR-USERS@list.iex.net Subject: Re: Portrait or Landscape from an IF statement Dave, You could use a #if and an ask. >From: "Benzenhafer, Dave" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Portrait or Landscape from an IF statement >Date: Mon, 23 Apr 2001 10:42:42 -0500 > >After looking at the SQR archives, I gather that SQR will not support a >change in printing format based on an IF statement. >I am trying to confirm this won't work before I spend three days on it. >Example > > If $p_mfg_rpt = 'Y' > Use-report land > Else > Use-report port > End-if > >Dave Benzenhafer _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Wed Apr 25 10:18:57 2001 Date: Wed, 25 Apr 2001 10:14:48 -0500 From: Nathan Stratton Treadway Subject: Re: Portrait or Landscape from an IF statement On Mon, Apr 23, 2001 at 10:42:42AM -0500, Benzenhafer, Dave wrote: > After looking at the SQR archives, I gather that SQR will not support a > change in printing format based on an IF statement. > I am trying to confirm this won't work before I spend three days on it. > Example > > If $p_mfg_rpt = 'Y' > Use-report land > Else > Use-report port > End-if I'm not sure what the context was for the messages you found, but I think the code above should allow you to do what you want, with the following notes: a) you can't switch orientation in the middle of a report (i.e. remember that when you use USE-REPORT, you are moving the output to a separate report file) b) you will need to have separate DECLARE-REPORTs for the two kinds of report, each configuring the proper page layout c) you will need to be careful about the filenames that the output files will receive. Because you will have separate DECLARE-REPORTs for "land" and "port", they will be given separate file names. If you just choose one or the other of the reports and all the output goes to the same place, only one file will be created -- but if the report you are using is the second one defined, it the file will be called "reportname_01.spf" instead of "reportname.spf". If you do know at report compile time which orientation you want to use (i.e. you can pass the info in on the command line), then you can use the ASK command and an #IF within the DECLARE-REPORT paragraph to avoid issues b) and c) (as Scott Hitchock mentioned). If you need to choose the orientation at run time, you can work around c) with something like this: move $sqr-report to $initial_report_filespec If $p_mfg_rpt = 'Y' Use-report land Else Use-report port End-if new-report $initial_report_filespec Hope that helps. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Wed Apr 25 12:01:15 2001 Date: Wed, 25 Apr 2001 11:58:31 -0500 From: "Benzenhafer, Dave" Subject: Re: Portrait or Landscape from an IF statement Nathan The report is compiled to an SQT. We have a Program interface that calls the report with the different User selection options. As the report starts to run it pulls in the selection parameters that the report will use to select data. After that it goes to the Main section. Below is an example of the Setup and Header/Footer Sections. The problem was that the report would always run in the Portrait orientation even though the Selection parameter was yes and I couldn't seem to be able to force it to landscape. I appreciate you taking the time to look at it. BEGIN-SETUP DECLARE-LAYOUT port1 PAPER-SIZE = (8.27,11) ORIENTATION = PORTRAIT TOP-MARGIN = .5 BOTTOM-MARGIN = .5 LEFT-MARGIN = .5 RIGHT-MARGIN = .5 CHAR-WIDTH = 4.8 END-DECLARE DECLARE-LAYOUT land1 PAPER-SIZE = (11,8.27) ORIENTATION = LANDSCAPE TOP-MARGIN = 0.75 BOTTOM-MARGIN = 0.25 LEFT-MARGIN = 0.50 RIGHT-MARGIN = 0.50 CHAR-WIDTH = 4.8 END-DECLARE DECLARE-PRINTER default-hp POINT-SIZE = 8 PITCH = 15 FONT = 5 ! [SQR.INI] 5=Times New Roman,proportional END-DECLARE DECLARE-REPORT port LAYOUT = port1 PRINTER-TYPE = hp END-DECLARE DECLARE-REPORT land LAYOUT = land1 PRINTER-TYPE = hp END-DECLARE END-SETUP #Include 'comprocs.sqc' !---------------------------------------------------------------Program Begin-Program Do Get_Submission_ID ($submission_id) Do Get-Report-Parameters Do Main End-Program !---------------------------------------------Portrait_Heading Begin-Heading 6 FOR-REPORTS = (port) Alter-Printer Font=500 Point-Size=12 Do RigName Print &rig (1,1) Print 'Inventory Without Mfg No.' (1) Center Alter-Printer Font=5 Point-Size=8 Page-Number (4,96) 'Page ' Last-Page () 'of ' End-Heading !---------------------------------------------Portrait_Footing Begin-Footing 2 FOR-REPORTS = (port) Alter-Printer Font=5 Point-Size=8 Print 'Printed' (2,90) Print $current-date () edit 'Month DD, YYYY' End-Footing !------------------------------------------Landscape_Heading Begin-Heading 6 FOR-REPORTS = (land) Alter-Printer Font=500 Point-Size=12 Do RigName Print &rig (1,1) Print 'Inventory With Mfg No.' (1) Center Alter-Printer Font=5 Point-Size=8 Page-Number (4,134) 'Page ' Last-Page () 'of ' End-Heading !------------------------------------------Landscape_Footing Begin-Footing 2 FOR-REPORTS = (land) Alter-Printer Font=5 Point-Size=8 Print 'Printed' (2,128) Print $current-date () edit 'Month DD, YYYY' End-Footing !-------------------------------------------Main Begin-Procedure Main Begin-Select Alter-Printer Font=5 Point-Size=8 eslq.ROW_BIN &row_bin () On-Break Level=1 Print=Never Before=ROW_BIN_Before eslq.PRIMARY_FLAG &primary eslq.NEW_QTY &new_qty eslq.REB_QTY &reb_qty eslq.CAP_QTY &cap_qty es.ISSUE_UOM_ID &uom_id eslq.STK_NO &stk_no es.DESCRIPTION &desc Do Print_Detail >From EIM_STOCK_LOCATION_QUANTITIES eslq, EIM_STOCK es Where eslq.LOC_CODE = $p_rig_id AND eslq.SLQ_TYPE <> '10087' AND es.STK_NO = eslq.STK_NO End-Select End-Procedure !--------------------------------------------------------ROW_BIN_Before Begin-Procedure ROW_BIN_Before Next-Listing Graphic (1,1,22) Box 1 10 5 Alter-Printer Font=500 Point-Size=8 Print ' Row Bin' (1,1) Print &row_bin (1,10,17) Next-Listing Alter-Printer Font=5 Point-Size=8 End-Procedure ROW_BIN_Before !------------------------------------Print_Detail Begin-Procedure Print_Detail If $p_mfg_rpt = 'Y' Use-report land Print &primary (1,13) Print #tot_qty (1,16) Edit 99,999na Print &reb_qty (,+2) Edit 999,9na Do UnitOfMeasure Print &uom (1,+1,8) Print &stk_no (1,37,15) Do MFG ! Not in Example Print &mfg_ref_no (,55) Print &co_name (,90,40) Print 'Desc:' (2,30) Print &desc (2,37,98) Wrap 98 10 strip=<10><13> on=<10><13> Else Use-report port Alter-Printer Font=5 Point-Size=8 Graphic (1,1,8) Horz-Line 10 Print &primary (1,13) Print #tot_qty (1,16) Edit 99,999na Print &reb_qty (,+2) Edit 999,9na Do UnitOfMeasure Print &uom (1,+1,8) Alter-Printer Font=500 Point-Size=8 Print &stk_no (1,37,15) Alter-Printer Font=5 Point-Size=8 Print &desc (,55,50) Wrap 50 10 strip=<10><13> on=<10><13> End-if End-Procedure Dave Benzenhafer -----Original Message----- From: Nathan Stratton Treadway [mailto:nathant@ONTKO.COM] Sent: Wednesday, April 25, 2001 10:15 AM To: SQR-USERS@list.iex.net Subject: Re: Portrait or Landscape from an IF statement On Mon, Apr 23, 2001 at 10:42:42AM -0500, Benzenhafer, Dave wrote: > After looking at the SQR archives, I gather that SQR will not support a > change in printing format based on an IF statement. > I am trying to confirm this won't work before I spend three days on it. > Example > > If $p_mfg_rpt = 'Y' > Use-report land > Else > Use-report port > End-if I'm not sure what the context was for the messages you found, but I think the code above should allow you to do what you want, with the following notes: a) you can't switch orientation in the middle of a report (i.e. remember that when you use USE-REPORT, you are moving the output to a separate report file) b) you will need to have separate DECLARE-REPORTs for the two kinds of report, each configuring the proper page layout c) you will need to be careful about the filenames that the output files will receive. Because you will have separate DECLARE-REPORTs for "land" and "port", they will be given separate file names. If you just choose one or the other of the reports and all the output goes to the same place, only one file will be created -- but if the report you are using is the second one defined, it the file will be called "reportname_01.spf" instead of "reportname.spf". If you do know at report compile time which orientation you want to use (i.e. you can pass the info in on the command line), then you can use the ASK command and an #IF within the DECLARE-REPORT paragraph to avoid issues b) and c) (as Scott Hitchock mentioned). If you need to choose the orientation at run time, you can work around c) with something like this: move $sqr-report to $initial_report_filespec If $p_mfg_rpt = 'Y' Use-report land Else Use-report port End-if new-report $initial_report_filespec Hope that helps. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Thu Apr 26 12:02:06 2001 Date: Thu, 26 Apr 2001 11:59:29 -0500 From: Nathan Stratton Treadway Subject: Re: Portrait or Landscape from an IF statement On Wed, Apr 25, 2001 at 11:58:31AM -0500, Benzenhafer, Dave wrote: > Setup and Header/Footer Sections. The problem was that the report would > always run in the Portrait orientation even though the Selection parameter > was yes and I couldn't seem to be able to force it to landscape. The code you quoted (as well as the get-report-parameters procedure you sent me separately) look okay. Try putting a "show $p_mfg_rpt" at the very top of Print_Detail so that you can be sure the variable is actually getting set to 'Y'; if no rows are selected in get-report-parameters then $p_mfg_rpt will be blank and Print_Detail will chose Portrait mode. Also keep in mind that (unless something else is going on outside of the code sections you quoted) when the report chooses Landscape mode the output file will be called "reportname_01.ext" instead of "reportname.ext". If you are only looking at "reportname.ext", you'll only see the output of Portrait-mode runs. (If that turns out to be the problem, you might want to add the "new-report" lines I sent in my earlier message to the bottom of get-report-parameters [replacing the "use-report" lines that are currently in print_detail, since you really only need to execute them once at the beginning of the program].) Let me know how it goes. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Thu Apr 26 14:11:01 2001 Date: Thu, 26 Apr 2001 14:03:45 -0500 From: "Benzenhafer, Dave" Subject: Re: Portrait or Landscape from an IF statement Nathan The "new-report" lines you sent me earlier did the trick. It was renaming one of the reports and the program couldn't find it. I learned a new trick thanks to you. I try to read most of the SQR User Group emails as I tend to pick up code writing suggestions and ideas from them. I Thank You for you taking the time to assist me with this problem. I have being trying to figure it out off and on for a couple of months. Dave Benzenhafer -----Original Message----- From: Nathan Stratton Treadway [mailto:nathant@ONTKO.COM] Sent: Thursday, April 26, 2001 11:59 AM To: SQR-USERS@list.iex.net Subject: Re: Portrait or Landscape from an IF statement On Wed, Apr 25, 2001 at 11:58:31AM -0500, Benzenhafer, Dave wrote: > Setup and Header/Footer Sections. The problem was that the report would > always run in the Portrait orientation even though the Selection parameter > was yes and I couldn't seem to be able to force it to landscape. The code you quoted (as well as the get-report-parameters procedure you sent me separately) look okay. Try putting a "show $p_mfg_rpt" at the very top of Print_Detail so that you can be sure the variable is actually getting set to 'Y'; if no rows are selected in get-report-parameters then $p_mfg_rpt will be blank and Print_Detail will chose Portrait mode. Also keep in mind that (unless something else is going on outside of the code sections you quoted) when the report chooses Landscape mode the output file will be called "reportname_01.ext" instead of "reportname.ext". If you are only looking at "reportname.ext", you'll only see the output of Portrait-mode runs. (If that turns out to be the problem, you might want to add the "new-report" lines I sent in my earlier message to the bottom of get-report-parameters [replacing the "use-report" lines that are currently in print_detail, since you really only need to execute them once at the beginning of the program].) Let me know how it goes. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Mon Apr 23 11:30:39 2001 Date: Mon, 23 Apr 2001 11:17:06 -0500 From: Tim Muller Subject: SQR-Oracle PL/SQL error I'm using Brio report builder 6.13(Build 90) Here is the code: Begin-Procedure CallProcFind1000 begin-sql declare v_word varchar2(3);; begin v_word :=3D 'hel';; end;; end-sql end-procedure Here is the error: =20 [INTERSOLV][ODBC Oracle driver][Oracle]ORA-06550: line 1, column 21: PLS-00103: Encountered the symbol ";" when expecting one of the = following: begin declare end exception exit for goto if loop mod null pragma raise return select update while Subject: Re: SQR-Oracle PL/SQL error --0__=TIMs7l7Kd6u2U9k8YwLzGVNWt6wLZU1Nr8gn2a9pgDv10eoWCkwE5VQU Content-type: text/plain; charset=us-ascii Content-Disposition: inline I believe you want to use declare-variable and end-declare. Rachael > -----Original Message----- > From: Tim Muller @INTERNET > Sent: Monday, April 23, 2001 9:17 AM > To: SQR-USERS@list.iex.net > Subject: SQR-Oracle PL/SQL error > > > I'm using Brio report builder 6.13(Build 90) > > Here is the code: > > Begin-Procedure CallProcFind1000 > begin-sql > declare > v_word varchar2(3);; > begin > v_word := 'hel';; > end;; > end-sql > end-procedure > > Here is the error: > > [INTERSOLV][ODBC Oracle driver][Oracle]ORA-06550: line 1, column 21: > PLS-00103: Encountered the symbol ";" when expecting one of the following: > > begin declare end exception exit for goto if loop mod null > pragma raise return select update while > > Error on line 58: > (SQR 3735) Could not execute SQL. > > SQR: Program Aborting. > > Does anyone have an idea about what might be wrong? I hope it is obvious > that I simplified the code to try to solve the problem. It didn't seem to > help. I found that anytime I call PL/SQL from begin-sql I seem to get > this error. Should I be using a different driver? I tried this code > against Oracle 7.34 and Oracle 8i with no luck. > > Thanks, > Tim (See attached file: C.DTF) --0__=TIMs7l7Kd6u2U9k8YwLzGVNWt6wLZU1Nr8gn2a9pgDv10eoWCkwE5VQU Content-type: application/octet-stream; name="C.DTF" Content-Disposition: attachment; filename="C.DTF" Content-transfer-encoding: base64 eJ8+IhERAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0QcEABcACgAhAB0AAQA8AQEggAMADgAAANEHBAAX AAoAGwAPAAEAKAEBCYABACEAAABDQTExRjQ2NzkwMzZENTExODg2QzAwMDYyOTE3QkYxOQDuBgEE gAEAHAAAAFJFOiBTUVItT3JhY2xlIFBML1NRTCBlcnJvcgCPCAENgAQAAgAAAAIAAgABA5AGAMQL AAAzAAAAAwABbgAAAAADAACACCAGAAAAAADAAAAAAAAARgAAAABShQAAfW4BAB4AAYAIIAYAAAAA AMAAAAAAAABGAAAAAFSFAAABAAAABAAAADkuMAALAAKACCAGAAAAAADAAAAAAAAARgAAAAAGhQAA AAAAAAMAA4AIIAYAAAAAAMAAAAAAAABGAAAAAAGFAAAAAAAACwAEgAggBgAAAAAAwAAAAAAAAEYA AAAAA4UAAAAAAAALAAWACCAGAAAAAADAAAAAAAAARgAAAAAOhQAAAAAAAAMABoAIIAYAAAAAAMAA AAAAAABGAAAAABCFAAAAAAAAAwAHgAggBgAAAAAAwAAAAAAAAEYAAAAAEYUAAAAAAAALAA+ACCAG AAAAAADAAAAAAAAARgAAAAAUhQAAAAAAAAMACIAIIAYAAAAAAMAAAAAAAABGAAAAABiFAAAAAAAA CwARgAggBgAAAAAAwAAAAAAAAEYAAAAAgoUAAAEAAAACAQkQAQAAABMFAAAPBQAAXAcAAExaRnUW xBhAAwAKAHJjcGcxMjU+MgD0AfcCpAPjAgBjaMEKwHNldDAgBxMCg2MAUA+mcHJxDlAQGFQ8YWgD cQKDEiEDZFRt0QQgUm1uAoMzBEcIVc0CgH0KgAjIIDsJbw4wXjUW/wpgAoAKgXYIkHfSawuAZDQM YGMAUAsDlmMAQQtgbg4QMDMU4YELxCBJIGJlbAiQkHZlIHkIYCB3AHChBUB0byB1EGAgBYHzC2AY YC12CsAHMAJgHMBJAHBkIAnwZC0d5S73CqIKhAqAUgDQEDAccB/68wr0HIAzNgFAGvABQBHwlG90 BZB0C9I0IAMwhxs0I4ARNDE2IC0k4npPBRBnC4AHQAXQB5Bz/GFnHkAk4h/2IvQiwQsTwSL2aS0x NDQBQByAODE4MAFADNAog2Ig2kYDYToDMAySYhLBB3AZBdB1bB7ABcA8dG0BG3A3QFNUTC5SCFVS QSvwVVNEQQAuR09WPkBJTsBURVJORVQjoSAEVymwBmACMDoqNk0CIGQ4YXksEKAR8AMRMjMDL3AB 0DAxIDk6MUo3EKBNLbdUby6HU5hRUi0scC1AU0AcgIhzdC4IkHgubhBw8S24dWJqIyExqyUwANBR HsFQTC8yMEwfIHI9A2ByISwnDyMiIkRzbDsjgDkCbSsAJ1EbPlxvhTRAYQJAcGhcJwwBfxOCI3Ef 9RrwEiEU4SSgOB0cMCcq0B2gC4BnIEK3BRAdgBhgcAkRHFB1AxABBIEgNi4xMyhC0z7yMHAwKR/6 SASQHMD7BAAdYGgcwAWgAQAugCAJpEJlJWEtUANgYwmAqwhwHMBDB0BsQzJGGhGfG3ApESADHGBC 8nNxIRXjHdZFxXZfdwWwHxAeYcEQIjIoMyk7GEBF1ENFM0asOj0gJ0GQbP4nSDcfMUg2HzJFlx8y IuGfQ2RAT0FVNkNCCyBbLRMAU09MVl1bT0RoQkMgNWVkBRAcsHITUKE1c11PLDAtMDadGCAwKhAc gDNgIDEvcG0I4XUUcC/gMUIFNdBTT1KgMFAbgCoQRW4FoHUvAjBBER8QQYJzBsMgIrw7Ih0QQZAD oDMwcCMh5z3iAiAcwG9mQXMCECsQ/m8D8BtQTywjoEUzHdYfIt9XQUNgBTA+QFcyaQVAAhA9BcBn IwAdgAaQUxBvb+RwIARhIG4rAVmnEfC/JgAAwD5gC3AdsRhgdAhw3wOgEGAewCMwHZBwL0AjENdW 8QMQHMA8A5FpAQACMPsGkAiRPlmnYOAd0AhgHrF4LXF1IwEfEAEAHIBtO1wQTUtFNlJX4VMUNTgL QgVaASgyMSAzNzPsNSkVcj/hbiMAV0EFkP51YFE2AR/rMjEqEEMxCcB6YSrQQQbgACA94R/rRP5v B5EAcBzgU0EQMByxYPT/XrABoAhgBUBXADtAXUAlUN5oPsFgYQNgG1A/I6AcQP8TAFdwQUAFQEFR OxAZwAhg70FibVEcQACQbQtQYXJV9KNBwh1idHJ5HWJzBvDPHLFBgiLhHrFtLm5xBUDyZGEgbicF QBBgcyAdYv1KMXBzQliRVZBV8m1Ra5H3V6AHgBwxY0PhNcYDUki0/0WCcCJ0JSYQHVFgkAQgNkP9 c0FTEwBnIhxCPbVicQaQ/mZBER1BUYRuY3HAcMRBUR9xQyYAC3Ey8FEGNy4zZyOQHvI1ZThpHRBc EGhXZ1FTEBpgax/rVBAwbnhrcyyAtQdwH/QWEQABgrAAHgBwAAEAAAAYAAAAU1FSLU9yYWNsZSBQ TC9TUUwgZXJyb3IAAgFxAAEAAAAbAAAAAcDMFW/RMeARem6tQNWCjImf1LALEwABnPIgAAMALgAA AAAACwACAAEAAAACATEAAQAAACABAABQQ0RGRUIwOQABAAIAcwAAAAAAAAA4obsQBeUQGqG7CAAr KlbCAABFTVNNREIuRExMAAAAAAAAAAAbVfogqmYRzZvIAKoAL8RaDAAAAExBU0lTTVhTMDEAL289 SGlsdG9uL291PUxBU0lTL2NuPVJlY2lwaWVudHMvY249cmJlYXR0eQAuAAAAAAAAAL2giI/oQ9QR iF0ABikXvxkBAO8DZiv9P9QRiFcABKxMcKMAAAAARocAAAAAAAAuAAAAAAAAAL2giI/oQ9QRiF0A BikXvxkBAO8DZiv9P9QRiFcABKxMcKMAAAAARogAABAAAADKEfRnkDbVEYhsAAYpF78ZHAAAAFJF OiBTUVItT3JhY2xlIFBML1NRTCBlcnJvcgADAAlZAwAAAB4AQhABAAAASwAAADwxNjNFQzNFMDY0 QUU0MDQxOTI0MDVENUYwNDlENkY1MzAyRjA3QzY4QGhoY2RjbXhzMDIuaG90ZWxzLmFkLmhpbHRv bi5jb20+AAADAN4/r28AAEAAOQAwzeSCG8zAAQMA8T8JBAAAHgAxQAEAAAAIAAAAUkJFQVRUWQAD ABpAAAAAAB4AMEABAAAACAAAAFJCRUFUVFkAAwAZQAAAAAADACYAAAAAAAMANgAAAAAAAwD9P+QE AAADAIAQ/////wIBRwABAAAAMgAAAGM9VVM7YT0gO3A9SGlsdG9uO2w9TEFTSVNNWFMwMS0wMTA0 MjMxNzMzMjlaLTcwNDIAAAACAfk/AQAAAEgAAAAAAAAA3KdAyMBCEBq0uQgAKy/hggEAAAAAAAAA L089SElMVE9OL09VPUxBU0lTL0NOPVJFQ0lQSUVOVFMvQ049UkJFQVRUWQAeAPg/AQAAAA8AAABS YWNoYWVsIEJlYXR0eQAAHgA4QAEAAAAIAAAAUkJFQVRUWQACAfs/AQAAAEgAAAAAAAAA3KdAyMBC EBq0uQgAKy/hggEAAAAAAAAAL089SElMVE9OL09VPUxBU0lTL0NOPVJFQ0lQSUVOVFMvQ049UkJF QVRUWQAeAPo/AQAAAA8AAABSYWNoYWVsIEJlYXR0eQAAHgA5QAEAAAAIAAAAUkJFQVRUWQBAAAcw Fu+UZhvMwAFAAAgwMF/7oxrMwAEeAD0AAQAAAAUAAABSRTogAAAAAB4AHQ4BAAAAGAAAAFNRUi1P cmFjbGUgUEwvU1FMIGVycm9yAB4ANRABAAAAPwAAADxFRjAzNjYyQkZEM0ZENDExODg1NzAwMDRB QzRDNzBBMzNFNDlFQkBsYXNpc214czAxLmhpbHRvbi5jb20+AAALACkAAQAAAAsAIwABAAAAAwAG EA+OJigDAAcQtgMAAAMAEBAAAAAAAwAREAAAAAAeAAgQAQAAAGUAAABJQkVMSUVWRVlPVVdBTlRU T1VTRURFQ0xBUkUtVkFSSUFCTEVBTkRFTkQtREVDTEFSRVJBQ0hBRUwtLS0tLU9SSUdJTkFMTUVT U0FHRS0tLS0tRlJPTTpUSU1NVUxMRVI8VE0xAAAAAAIBfwABAAAAPwAAADxFRjAzNjYyQkZEM0ZE NDExODg1NzAwMDRBQzRDNzBBMzNFNDlFQkBsYXNpc214czAxLmhpbHRvbi5jb20+AABr3QICkAYA DgAAAAIABgEAAP////8AAAAABQQCEIABABQAAABVbnRpdGxlZCBBdHRhY2htZW50AHIHAhKAAwAO AAAA0QcEABcACgAhABwAAQA7AQITgAMADgAAANEHBAAXAAoAIQAcAAEAOwECBZAGAMwOAAANAAAA AwAhDgAAAAADAAs3BgEAAAMAIA5ODgAAAwD3DwAAAAACARBoAQAAAA4AAAAAAAAAAAAAAAAAAAAA AAAAQAAHMOCUO4IbzMABQAAIMOCUO4IbzMABAwAFNwYAAAACAQI3AQAAAAAAAAAeAAEwAQAAAAEA AAAAAAAAAgEKNwEAAAALAAAAKoZIhvcUAwoDAgEAAgH5DwEAAAAQAAAAXh+PJw041RG6owAErEyl dw0AATcBAAAAEA4AAAsAAAAAAAAAwAAAAAAAAEbQzxHgobEa4QAAAAAAAAAAAAAAAAAAAAA+AAMA /v8JAAYAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAQAAACAAAAAQAAAP7///8AAAAAAAAAAP////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////3///8EAAAA/v///wUAAAD+/////v////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ////////////////////////////////////UgBvAG8AdAAgAEUAbgB0AHIAeQAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYABQD//////////wIAAAAWAwAAAAAA AMAAAAAAAABGAAAAAAAAAAAAAAAAYFA8/xvMwAEDAAAAQAIAAAAAAAABAE8AbABlAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgACAf////// /////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAEMA TwBOAFQARQBOAFQAUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAASAAIBAQAAAAMAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AQAAAF4BAAAAAAAAAwBNAGEAaQBsAFMAdAByAGUAYQBtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAABgAAgH/////BAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAHAAAADAAAAAAAAAD+////AgAAAAMAAAAEAAAABQAAAAYAAAD+/////v// //7///////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////wEAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCTV4BAAAAAAAAAAAAACgAAAA5AgAABAAA AAEAAQAAAAAAIAEAAMQOAADEDgAAAAAAAAAAAAAAAAAA////AP////////////////////////// ////////////////////////////////////////////////////////////////////gAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgP////////////////////////////////////////// ////////////////////////////////////////////////////gAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAABAAAAzzoAAGoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUgBpAGMAaABFAGQAaQB0AEYAbABhAGcAcwAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAgD///////////////8AAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////// /////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAABAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAIGu --0__=TIMs7l7Kd6u2U9k8YwLzGVNWt6wLZU1Nr8gn2a9pgDv10eoWCkwE5VQU-- From owner-sqr-users@list.iex.net Mon Apr 23 12:52:46 2001 Date: Mon, 23 Apr 2001 13:48:54 -0400 From: Troy Wiechman Subject: Re: SQR-Oracle PL/SQL error --0__=Lp3lFx1M2M7MxKm6BI8YaSPSysGWfg1hCeTkOzWVuCQDMhUQyvQbdwFH Content-type: text/plain; charset=us-ascii Content-Disposition: inline I ran your begin-sql statement with no issues using my connection to Oracle. However, I am connecting using SQR's ODBC drivers. You are using something from Intersolv. Troy Rachael Beatty on 04/23/2001 01:33:29 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Re: SQR-Oracle PL/SQL error I believe you want to use declare-variable and end-declare. Rachael > -----Original Message----- > From: Tim Muller @INTERNET > Sent: Monday, April 23, 2001 9:17 AM > To: SQR-USERS@list.iex.net > Subject: SQR-Oracle PL/SQL error > > > I'm using Brio report builder 6.13(Build 90) > > Here is the code: > > Begin-Procedure CallProcFind1000 > begin-sql > declare > v_word varchar2(3);; > begin > v_word := 'hel';; > end;; > end-sql > end-procedure > > Here is the error: > > [INTERSOLV][ODBC Oracle driver][Oracle]ORA-06550: line 1, column 21: > PLS-00103: Encountered the symbol ";" when expecting one of the following: > > begin declare end exception exit for goto if loop mod null > pragma raise return select update while > > Error on line 58: > (SQR 3735) Could not execute SQL. > > SQR: Program Aborting. > > Does anyone have an idea about what might be wrong? I hope it is obvious > that I simplified the code to try to solve the problem. It didn't seem to > help. I found that anytime I call PL/SQL from begin-sql I seem to get > this error. Should I be using a different driver? I tried this code > against Oracle 7.34 and Oracle 8i with no luck. > > Thanks, > Tim (See attached file: C.DTF) --0__=Lp3lFx1M2M7MxKm6BI8YaSPSysGWfg1hCeTkOzWVuCQDMhUQyvQbdwFH Content-type: application/octet-stream; name="C.DTF" Content-Disposition: attachment; filename="C.DTF" Content-transfer-encoding: base64 eJ8+IhERAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0QcEABcACgAhAB0AAQA8AQEggAMADgAAANEHBAAX AAoAGwAPAAEAKAEBCYABACEAAABDQTExRjQ2NzkwMzZENTExODg2QzAwMDYyOTE3QkYxOQDuBgEE gAEAHAAAAFJFOiBTUVItT3JhY2xlIFBML1NRTCBlcnJvcgCPCAENgAQAAgAAAAIAAgABA5AGAMQL AAAzAAAAAwABbgAAAAADAACACCAGAAAAAADAAAAAAAAARgAAAABShQAAfW4BAB4AAYAIIAYAAAAA AMAAAAAAAABGAAAAAFSFAAABAAAABAAAADkuMAALAAKACCAGAAAAAADAAAAAAAAARgAAAAAGhQAA AAAAAAMAA4AIIAYAAAAAAMAAAAAAAABGAAAAAAGFAAAAAAAACwAEgAggBgAAAAAAwAAAAAAAAEYA AAAAA4UAAAAAAAALAAWACCAGAAAAAADAAAAAAAAARgAAAAAOhQAAAAAAAAMABoAIIAYAAAAAAMAA AAAAAABGAAAAABCFAAAAAAAAAwAHgAggBgAAAAAAwAAAAAAAAEYAAAAAEYUAAAAAAAALAA+ACCAG AAAAAADAAAAAAAAARgAAAAAUhQAAAAAAAAMACIAIIAYAAAAAAMAAAAAAAABGAAAAABiFAAAAAAAA CwARgAggBgAAAAAAwAAAAAAAAEYAAAAAgoUAAAEAAAACAQkQAQAAABMFAAAPBQAAXAcAAExaRnUW xBhAAwAKAHJjcGcxMjU+MgD0AfcCpAPjAgBjaMEKwHNldDAgBxMCg2MAUA+mcHJxDlAQGFQ8YWgD cQKDEiEDZFRt0QQgUm1uAoMzBEcIVc0CgH0KgAjIIDsJbw4wXjUW/wpgAoAKgXYIkHfSawuAZDQM YGMAUAsDlmMAQQtgbg4QMDMU4YELxCBJIGJlbAiQkHZlIHkIYCB3AHChBUB0byB1EGAgBYHzC2AY YC12CsAHMAJgHMBJAHBkIAnwZC0d5S73CqIKhAqAUgDQEDAccB/68wr0HIAzNgFAGvABQBHwlG90 BZB0C9I0IAMwhxs0I4ARNDE2IC0k4npPBRBnC4AHQAXQB5Bz/GFnHkAk4h/2IvQiwQsTwSL2aS0x NDQBQByAODE4MAFADNAog2Ig2kYDYToDMAySYhLBB3AZBdB1bB7ABcA8dG0BG3A3QFNUTC5SCFVS QSvwVVNEQQAuR09WPkBJTsBURVJORVQjoSAEVymwBmACMDoqNk0CIGQ4YXksEKAR8AMRMjMDL3AB 0DAxIDk6MUo3EKBNLbdUby6HU5hRUi0scC1AU0AcgIhzdC4IkHgubhBw8S24dWJqIyExqyUwANBR HsFQTC8yMEwfIHI9A2ByISwnDyMiIkRzbDsjgDkCbSsAJ1EbPlxvhTRAYQJAcGhcJwwBfxOCI3Ef 9RrwEiEU4SSgOB0cMCcq0B2gC4BnIEK3BRAdgBhgcAkRHFB1AxABBIEgNi4xMyhC0z7yMHAwKR/6 SASQHMD7BAAdYGgcwAWgAQAugCAJpEJlJWEtUANgYwmAqwhwHMBDB0BsQzJGGhGfG3ApESADHGBC 8nNxIRXjHdZFxXZfdwWwHxAeYcEQIjIoMyk7GEBF1ENFM0asOj0gJ0GQbP4nSDcfMUg2HzJFlx8y IuGfQ2RAT0FVNkNCCyBbLRMAU09MVl1bT0RoQkMgNWVkBRAcsHITUKE1c11PLDAtMDadGCAwKhAc gDNgIDEvcG0I4XUUcC/gMUIFNdBTT1KgMFAbgCoQRW4FoHUvAjBBER8QQYJzBsMgIrw7Ih0QQZAD oDMwcCMh5z3iAiAcwG9mQXMCECsQ/m8D8BtQTywjoEUzHdYfIt9XQUNgBTA+QFcyaQVAAhA9BcBn IwAdgAaQUxBvb+RwIARhIG4rAVmnEfC/JgAAwD5gC3AdsRhgdAhw3wOgEGAewCMwHZBwL0AjENdW 8QMQHMA8A5FpAQACMPsGkAiRPlmnYOAd0AhgHrF4LXF1IwEfEAEAHIBtO1wQTUtFNlJX4VMUNTgL QgVaASgyMSAzNzPsNSkVcj/hbiMAV0EFkP51YFE2AR/rMjEqEEMxCcB6YSrQQQbgACA94R/rRP5v B5EAcBzgU0EQMByxYPT/XrABoAhgBUBXADtAXUAlUN5oPsFgYQNgG1A/I6AcQP8TAFdwQUAFQEFR OxAZwAhg70FibVEcQACQbQtQYXJV9KNBwh1idHJ5HWJzBvDPHLFBgiLhHrFtLm5xBUDyZGEgbicF QBBgcyAdYv1KMXBzQliRVZBV8m1Ra5H3V6AHgBwxY0PhNcYDUki0/0WCcCJ0JSYQHVFgkAQgNkP9 c0FTEwBnIhxCPbVicQaQ/mZBER1BUYRuY3HAcMRBUR9xQyYAC3Ey8FEGNy4zZyOQHvI1ZThpHRBc EGhXZ1FTEBpgax/rVBAwbnhrcyyAtQdwH/QWEQABgrAAHgBwAAEAAAAYAAAAU1FSLU9yYWNsZSBQ TC9TUUwgZXJyb3IAAgFxAAEAAAAbAAAAAcDMFW/RMeARem6tQNWCjImf1LALEwABnPIgAAMALgAA AAAACwACAAEAAAACATEAAQAAACABAABQQ0RGRUIwOQABAAIAcwAAAAAAAAA4obsQBeUQGqG7CAAr KlbCAABFTVNNREIuRExMAAAAAAAAAAAbVfogqmYRzZvIAKoAL8RaDAAAAExBU0lTTVhTMDEAL289 SGlsdG9uL291PUxBU0lTL2NuPVJlY2lwaWVudHMvY249cmJlYXR0eQAuAAAAAAAAAL2giI/oQ9QR iF0ABikXvxkBAO8DZiv9P9QRiFcABKxMcKMAAAAARocAAAAAAAAuAAAAAAAAAL2giI/oQ9QRiF0A BikXvxkBAO8DZiv9P9QRiFcABKxMcKMAAAAARogAABAAAADKEfRnkDbVEYhsAAYpF78ZHAAAAFJF OiBTUVItT3JhY2xlIFBML1NRTCBlcnJvcgADAAlZAwAAAB4AQhABAAAASwAAADwxNjNFQzNFMDY0 QUU0MDQxOTI0MDVENUYwNDlENkY1MzAyRjA3QzY4QGhoY2RjbXhzMDIuaG90ZWxzLmFkLmhpbHRv bi5jb20+AAADAN4/r28AAEAAOQAwzeSCG8zAAQMA8T8JBAAAHgAxQAEAAAAIAAAAUkJFQVRUWQAD ABpAAAAAAB4AMEABAAAACAAAAFJCRUFUVFkAAwAZQAAAAAADACYAAAAAAAMANgAAAAAAAwD9P+QE AAADAIAQ/////wIBRwABAAAAMgAAAGM9VVM7YT0gO3A9SGlsdG9uO2w9TEFTSVNNWFMwMS0wMTA0 MjMxNzMzMjlaLTcwNDIAAAACAfk/AQAAAEgAAAAAAAAA3KdAyMBCEBq0uQgAKy/hggEAAAAAAAAA L089SElMVE9OL09VPUxBU0lTL0NOPVJFQ0lQSUVOVFMvQ049UkJFQVRUWQAeAPg/AQAAAA8AAABS YWNoYWVsIEJlYXR0eQAAHgA4QAEAAAAIAAAAUkJFQVRUWQACAfs/AQAAAEgAAAAAAAAA3KdAyMBC EBq0uQgAKy/hggEAAAAAAAAAL089SElMVE9OL09VPUxBU0lTL0NOPVJFQ0lQSUVOVFMvQ049UkJF QVRUWQAeAPo/AQAAAA8AAABSYWNoYWVsIEJlYXR0eQAAHgA5QAEAAAAIAAAAUkJFQVRUWQBAAAcw Fu+UZhvMwAFAAAgwMF/7oxrMwAEeAD0AAQAAAAUAAABSRTogAAAAAB4AHQ4BAAAAGAAAAFNRUi1P cmFjbGUgUEwvU1FMIGVycm9yAB4ANRABAAAAPwAAADxFRjAzNjYyQkZEM0ZENDExODg1NzAwMDRB QzRDNzBBMzNFNDlFQkBsYXNpc214czAxLmhpbHRvbi5jb20+AAALACkAAQAAAAsAIwABAAAAAwAG EA+OJigDAAcQtgMAAAMAEBAAAAAAAwAREAAAAAAeAAgQAQAAAGUAAABJQkVMSUVWRVlPVVdBTlRU T1VTRURFQ0xBUkUtVkFSSUFCTEVBTkRFTkQtREVDTEFSRVJBQ0hBRUwtLS0tLU9SSUdJTkFMTUVT U0FHRS0tLS0tRlJPTTpUSU1NVUxMRVI8VE0xAAAAAAIBfwABAAAAPwAAADxFRjAzNjYyQkZEM0ZE NDExODg1NzAwMDRBQzRDNzBBMzNFNDlFQkBsYXNpc214czAxLmhpbHRvbi5jb20+AABr3QICkAYA DgAAAAIABgEAAP////8AAAAABQQCEIABABQAAABVbnRpdGxlZCBBdHRhY2htZW50AHIHAhKAAwAO AAAA0QcEABcACgAhABwAAQA7AQITgAMADgAAANEHBAAXAAoAIQAcAAEAOwECBZAGAMwOAAANAAAA AwAhDgAAAAADAAs3BgEAAAMAIA5ODgAAAwD3DwAAAAACARBoAQAAAA4AAAAAAAAAAAAAAAAAAAAA AAAAQAAHMOCUO4IbzMABQAAIMOCUO4IbzMABAwAFNwYAAAACAQI3AQAAAAAAAAAeAAEwAQAAAAEA AAAAAAAAAgEKNwEAAAALAAAAKoZIhvcUAwoDAgEAAgH5DwEAAAAQAAAAXh+PJw041RG6owAErEyl dw0AATcBAAAAEA4AAAsAAAAAAAAAwAAAAAAAAEbQzxHgobEa4QAAAAAAAAAAAAAAAAAAAAA+AAMA /v8JAAYAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAQAAACAAAAAQAAAP7///8AAAAAAAAAAP////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////3///8EAAAA/v///wUAAAD+/////v////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ////////////////////////////////////UgBvAG8AdAAgAEUAbgB0AHIAeQAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYABQD//////////wIAAAAWAwAAAAAA AMAAAAAAAABGAAAAAAAAAAAAAAAAYFA8/xvMwAEDAAAAQAIAAAAAAAABAE8AbABlAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgACAf////// /////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAEMA TwBOAFQARQBOAFQAUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAASAAIBAQAAAAMAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AQAAAF4BAAAAAAAAAwBNAGEAaQBsAFMAdAByAGUAYQBtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAABgAAgH/////BAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAHAAAADAAAAAAAAAD+////AgAAAAMAAAAEAAAABQAAAAYAAAD+/////v// //7///////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////wEAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCTV4BAAAAAAAAAAAAACgAAAA5AgAABAAA AAEAAQAAAAAAIAEAAMQOAADEDgAAAAAAAAAAAAAAAAAA////AP////////////////////////// ////////////////////////////////////////////////////////////////////gAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgP////////////////////////////////////////// ////////////////////////////////////////////////////gAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAABAAAAzzoAAGoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUgBpAGMAaABFAGQAaQB0AEYAbABhAGcAcwAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAgD///////////////8AAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////// /////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAABAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAIGu --0__=Lp3lFx1M2M7MxKm6BI8YaSPSysGWfg1hCeTkOzWVuCQDMhUQyvQbdwFH-- From owner-sqr-users@list.iex.net Mon Apr 23 13:44:29 2001 Date: Mon, 23 Apr 2001 13:35:51 -0500 From: Tim Muller Subject: Re: SQR-Oracle PL/SQL error Hmm.. Those are the drivers that shipped with Brio. Maybe its the database user I'm using for the connection. ----- Original Message ----- From: "Troy Wiechman" To: Sent: Monday, April 23, 2001 12:48 PM Subject: Re: SQR-Oracle PL/SQL error > > > I ran your begin-sql statement with no issues using my connection to Oracle. > However, I am connecting using SQR's ODBC drivers. You are using something from > Intersolv. > > Troy > > > > > Rachael Beatty on 04/23/2001 01:33:29 PM > > Please respond to sqr-users@list.iex.net > > To: SQR-USERS@list.iex.net > cc: (bcc: Troy Wiechman/HQ/USA/Kelly) > Subject: Re: SQR-Oracle PL/SQL error > > > > > > > I believe you want to use declare-variable and end-declare. > > Rachael > > > -----Original Message----- > > From: Tim Muller @INTERNET > > Sent: Monday, April 23, 2001 9:17 AM > > To: SQR-USERS@list.iex.net > > Subject: SQR-Oracle PL/SQL error > > > > > > I'm using Brio report builder 6.13(Build 90) > > > > Here is the code: > > > > Begin-Procedure CallProcFind1000 > > begin-sql > > declare > > v_word varchar2(3);; > > begin > > v_word := 'hel';; > > end;; > > end-sql > > end-procedure > > > > Here is the error: > > > > [INTERSOLV][ODBC Oracle driver][Oracle]ORA-06550: line 1, column 21: > > PLS-00103: Encountered the symbol ";" when expecting one of the following: > > > > begin declare end exception exit for goto if loop mod null > > pragma raise return select update while > > > > > Error on line 58: > > (SQR 3735) Could not execute SQL. > > > > SQR: Program Aborting. > > > > Does anyone have an idea about what might be wrong? I hope it is obvious > > that I simplified the code to try to solve the problem. It didn't seem to > > help. I found that anytime I call PL/SQL from begin-sql I seem to get > > this error. Should I be using a different driver? I tried this code > > against Oracle 7.34 and Oracle 8i with no luck. > > > > Thanks, > > Tim > > (See attached file: C.DTF) > > From owner-sqr-users@list.iex.net Mon Apr 23 13:55:24 2001 Date: Mon, 23 Apr 2001 14:52:09 -0400 From: Troy Wiechman Subject: Re: SQR-Oracle PL/SQL error Sorry...In looking at my ODBC drivers, mine are also manufactured by Intersolve. I don't know what the difference is. But I am abel to run you Begin-sql statement as is. Troy Tim Muller on 04/23/2001 02:35:51 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Re: SQR-Oracle PL/SQL error Hmm.. Those are the drivers that shipped with Brio. Maybe its the database user I'm using for the connection. ----- Original Message ----- From: "Troy Wiechman" To: Sent: Monday, April 23, 2001 12:48 PM Subject: Re: SQR-Oracle PL/SQL error > > > I ran your begin-sql statement with no issues using my connection to Oracle. > However, I am connecting using SQR's ODBC drivers. You are using something from > Intersolv. > > Troy > > > > > Rachael Beatty on 04/23/2001 01:33:29 PM > > Please respond to sqr-users@list.iex.net > > To: SQR-USERS@list.iex.net > cc: (bcc: Troy Wiechman/HQ/USA/Kelly) > Subject: Re: SQR-Oracle PL/SQL error > > > > > > > I believe you want to use declare-variable and end-declare. > > Rachael > > > -----Original Message----- > > From: Tim Muller @INTERNET > > Sent: Monday, April 23, 2001 9:17 AM > > To: SQR-USERS@list.iex.net > > Subject: SQR-Oracle PL/SQL error > > > > > > I'm using Brio report builder 6.13(Build 90) > > > > Here is the code: > > > > Begin-Procedure CallProcFind1000 > > begin-sql > > declare > > v_word varchar2(3);; > > begin > > v_word := 'hel';; > > end;; > > end-sql > > end-procedure > > > > Here is the error: > > > > [INTERSOLV][ODBC Oracle driver][Oracle]ORA-06550: line 1, column 21: > > PLS-00103: Encountered the symbol ";" when expecting one of the following: > > > > begin declare end exception exit for goto if loop mod null > > pragma raise return select update while > > > > > Error on line 58: > > (SQR 3735) Could not execute SQL. > > > > SQR: Program Aborting. > > > > Does anyone have an idea about what might be wrong? I hope it is obvious > > that I simplified the code to try to solve the problem. It didn't seem to > > help. I found that anytime I call PL/SQL from begin-sql I seem to get > > this error. Should I be using a different driver? I tried this code > > against Oracle 7.34 and Oracle 8i with no luck. > > > > Thanks, > > Tim > > (See attached file: C.DTF) > > From owner-sqr-users@list.iex.net Tue Apr 24 02:22:52 2001 Date: Tue, 24 Apr 2001 00:04:07 -0700 From: David Smith Subject: Re: SQR-Oracle PL/SQL error Tim, Note the BEGIN-SQL syntax in the command reference: This paragraph is used for all SQL statements except SELECT, which has its own BEGIN-SELECT paragraph. If a single paragraph contains more than one SQL statement, each statement except the last must be terminated by a semicolon (;) Since you are using Oracle (which wants its own semicolon), you should have two semicolons (;) on every line but the last, regardless of which driver you are using. If the driver were the problem I suspect the SQR would not run far enough to make the initial connection. begin-sql declare v_word varchar2(3);; begin v_word := 'hel';; end; !<-------single here end-sql David L Smith IBM Global Services From owner-sqr-users@list.iex.net Mon Apr 23 14:09:28 2001 Date: Mon, 23 Apr 2001 14:52:05 -0400 From: Jeff Shupe Subject: Trapping an error using dynamic table and column names I was wondering if anyone knows hows to trap an error condition under = the following conditions: a.. SQR issues a BEGIN-SELECT with dynamic table and column (typed) = names (i.e. [$Column1] &Return1=3D{char,number,date}) b.. A datum is loaded into &Return1 (In my case: DATE) c.. During cursor processing - a function is executed (In my case: = DATETOSTR) d.. The datum value is invalid as a parameter for the function (In my = case: a SQLXDP error occurs) e.. The SQR issues the error and ends. All functions I try to execute = on the datum either won't identify the pending error condition or I get = the error. Years ago I used to program in Clipper. That language and even products = like Excel have an ISERR function that allows the trapping of a = condition like this. I was wondering if anyone has created a user function in Ucall.c or = Ufunc.c that may have this type of functionallity. I've run into this = type of problem in the past (an incompatibility between SQR and the RDBMS vendor is one = example) and I'm trying to code a safety net for the future. I've = documented as close to a 'BASE' system level as I can using PeopleSoft 7.5 FS Single User = version. I sent this example on Friday, Apr-23-2001. The message title = is: SQLXDP error on dynamic select on a field of a type date-when this is = the last field in the select list using SQLBase Thanks, Jeff From owner-sqr-users@list.iex.net Mon Apr 23 15:04:01 2001 Date: Mon, 23 Apr 2001 15:44:44 -0400 From: Denise Wagner Subject: WRAP with ON-BREAK and its qualifiers thrown in Hi all, I am trying to print a report in which 2 of the columns need to wrap. = On the first page, I am able to print the 2 wrapping columns (DEPT, = MAJOR) without disturbing the other non-wrapping columns (e.g. no blank = lines between the non-wrapped fields between records). The problem = comes about when the level=3D2 break (MAJOR) changes. It creates a blank = between the record with the MAJOR change (e.g. Susie Que) and the = following record (e.g. Mike Brown), and the level=3D1 break (DEPT) = doesn't print at the top of the page at the same time as the MAJOR = change. How do I get the second page to look like the first, where the = DEPT and MAJOR start on the first line, are completely independent of = the IDs, and won't cause any blank spaces between records? I resolved = this issue on page 1 by not using the NEXT-LISTING command, but the = benefits didn't carry to subsequent pages. Page 1 DEPT ID NAME = MAJOR Department1 111111111 Doe, John = Major1 will =20 will wrap here 222222222 Smith, = Jane wrap here 333333333 = Jones, Mary =20 444444444 = Hart, Alice -------------------------------------------------------------------------= -------------------------------------------------------------------------= --- Page 2 DEPT ID NAME = MAJOR 555555555 Que, = Susie Major2 will = wrap here Department1 666666666 Brown, Mike will wrap here 777777777 Lewis, = Steve 888888888 = Stewart, Jim -------------------------------------------------------------------------= -------------------------------------------------------------------------= --- Pertinent code: Begin-Procedure Main begin-select stvdept_desc (+1,1) wrap 18 5 KEEP-TOP STRIP=3D<10> ON=3D<13> ON-BREAK = PRINT=3DCHANGE/TOP-PAGE LEVEL=3D1 PROCEDURE=3DPRINT_TOT a.stvmajr_desc (0,67) wrap 20 5 KEEP-TOP STRIP=3D<10> ON=3D<13> ON-BREAK = PRINT=3DCHANGE/TOP-PAGE LEVEL=3D2 AFTER=3DPRINT_MJR sabadap_id (0,22) sabadap_last_name||', '||sabadap_first_name||' '||sabadap_mi (0,33) =20 from sabadap, rprawrd, stvdept, stvmajr a, stvmajr b where sabadap_wrsn_code is NULL and (sabadap_apdc_code in ('01','02','16') or sabadap_apdc_code like = '4%') and rprawrd_pidm(+) =3D sabadap_pidm and rprawrd_fund_code(+)=3D$_fund and rprawrd_aidy_code(+) =3D &_aidy and stvdept_code =3D sabadap_dept_code and a.stvmajr_code(+) =3D sabadap_majr_code and b.stvmajr_code(+) =3D sabadap_majr_code_conc_1_2 [$_term] [$_college] [$_level] order by 1,2,4 !stvdept_desc, a.stvmajr_desc, sabadap_id End-Select DO PRINT_TOT end-procedure begin-procedure PRINT_TOT ... end-procedure begin-procedure PRINT_MJR ... end-procedure -------------------------------------------------------- System info: SQR/4.2.1/DEC ALPHA/OpenVMS 6.2/Oracle 7.1.3.2/Mar 20 1998 Any suggestions would be greatly appreciated! Since I receive these = postings in digest form, a cc: to my email address would be welcome.=20 Thanks in advance, Denise Wagner University of Hartford - ITS dwagner@mail.hartford.edu From owner-sqr-users@list.iex.net Mon Apr 23 19:46:32 2001 Date: Mon, 23 Apr 2001 17:37:08 -0700 From: Chris Campbell Subject: Underline command on MVS Hello everyone, We are having a little problem with the SQR underline command on MVS. Instead of just using underlined letters, our reports are being formatted with underscore (----------------) characters on the line after the characters that should be underlined. Needless to say, this is throwing off the format of the rest of the report. Is there any way around this? Any help is greatly appreciated. Thanks, Chris _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Tue Apr 24 09:15:13 2001 Date: Tue, 24 Apr 2001 08:11:40 -0600 From: Jon Alsager Subject: Re: Underline command on MVS Chris -- Since we're not on MVS, not sure if this will help you -- but when we've seen what you're describing, its because we've used the underline command on a report where the printer is being declared as LP. Our solution is to either change the printer to HP or PS, or comment out the underline command and use a series of '-' in the next line as an underline. Like: print 'Today' (1,10) print '-----' (2,10) HTH Jon -----Original Message----- From: Chris Campbell [mailto:campbell.chris@EXCITE.COM] Sent: Monday, April 23, 2001 6:37 PM To: SQR-USERS@list.iex.net Subject: Underline command on MVS Hello everyone, We are having a little problem with the SQR underline command on MVS. Instead of just using underlined letters, our reports are being formatted with underscore (----------------) characters on the line after the characters that should be underlined. Needless to say, this is throwing off the format of the rest of the report. Is there any way around this? Any help is greatly appreciated. Thanks, Chris _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Tue Apr 24 12:26:50 2001 Date: Tue, 24 Apr 2001 13:08:44 -0400 From: "Hood Louise (app1lxh)" Subject: Re: Underline command on MVS Chris & Jon, If you can't get the PRINT. . . .UNDERLINE statement to work, why not try the underscore (i.e., '_____') instead of the hyphen ('----'): let $sqrugtest1 = 'sqrug-test' let $sqrugtest2 = '__________' print $sqrugtest1 (20,145) print $sqrugtest2 (20,145) HTH, Louise -----Original Message----- From: Jon Alsager [mailto:JAlsager@ISIF.STATE.ID.US] Sent: Tuesday, April 24, 2001 10:12 AM To: SQR-USERS@list.iex.net Subject: Re: Underline command on MVS Chris -- Since we're not on MVS, not sure if this will help you -- but when we've seen what you're describing, its because we've used the underline command on a report where the printer is being declared as LP. Our solution is to either change the printer to HP or PS, or comment out the underline command and use a series of '-' in the next line as an underline. Like: print 'Today' (1,10) print '-----' (2,10) HTH Jon -----Original Message----- From: Chris Campbell [mailto:campbell.chris@EXCITE.COM] Sent: Monday, April 23, 2001 6:37 PM To: SQR-USERS@list.iex.net Subject: Underline command on MVS Hello everyone, We are having a little problem with the SQR underline command on MVS. Instead of just using underlined letters, our reports are being formatted with underscore (----------------) characters on the line after the characters that should be underlined. Needless to say, this is throwing off the format of the rest of the report. Is there any way around this? Any help is greatly appreciated. Thanks, Chris _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ From owner-sqr-users@list.iex.net Tue Apr 24 03:03:18 2001 Date: Tue, 24 Apr 2001 09:48:31 +0200 From: Gabor Szabo Subject: SQR 4717 on AS/400 Could anyone help me with SQR for AS/400? The SPF and display output works fine, but I have a problem with LIS output. I use AS/400 - V4R4 SQR Server - v5.1 I run the following comand: STRSQR PGM(TEST3) SRCFIL(GAMESZ/SQRSRC) I get the following message: (SQR 4717) CANNOT OPEN THE REPORT OUTPUT FILE: 'GAMESZ/LIS(TEST3)' (3015): THE TYPE VARIABLE SPECIFIED ON THE OPEN FUNCTION IS NOT CORRECT. My test program looks like as follows: begin-program print 'Testing SQR for AS/400' (1,1) end-program dspjoblog: 2 > STRSQR PGM(TEST3) SRCFIL(GAMESZ/SQRSRC) File LIS created in library GAMESZ. Member TEST3 added to file LIS in GAMESZ. DSPPFM FILE(GAMESZ/LIS) MBR(TEST3) FROMRCD(*ALLDATA): Display Physical File Member File . . . . . . : LIS Library . . . . : GAMESZ Member . . . . . : TEST3 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7.... +....8....+....9....+....0....+....1....+....2....+....3 (Selected member contains no records) Thanks: ------------- Gabor Szabo e-mail: gabor_szabo@rrsoftware.hu http://www.rrsoftware.hu From owner-sqr-users@list.iex.net Tue Apr 24 07:59:49 2001 Date: Tue, 24 Apr 2001 08:50:08 -0400 From: Denise Wagner Subject: WRAP with ON-BREAK and all its qualifiers thrown in - (resubmit) My apologies! Here's the question again in Plain text format... Hi all, I am trying to print a report in which 2 of the columns need to wrap. On the first page, I am able to print the 2 wrapping columns (DEPT, MAJOR) without disturbing the other non-wrapping columns (e.g. no blank lines between the non-wrapped fields between records). The problem comes about when the level=2 break (MAJOR) changes. It creates a blank between the record with the MAJOR change (e.g. Susie Que) and the following record (e.g. Mike Brown), and the level=1 break (DEPT) doesn't print at the top of the page at the same time as the MAJOR change. How do I get the second page to look like the first, where the DEPT and MAJOR start on the first line, are completely independent of the IDs, and won't cause any blank spaces between records? I resolved this issue on page 1 by not using the NEXT-LISTING command, but the benefits didn't carry to subsequent pages. Page 1 DEPT ID NAME MAJOR Department1 111111111 Doe, John Major1 will will wrap here 222222222 Smith, Jane wrap here 333333333 Jones, Mary 444444444 Hart, Alice ---------------------------------------------------------------------------- ------------------------------------------------------------------------- Page 2 DEPT ID NAME MAJOR 555555555 Que, Susie Major2 will wrap here Department1 666666666 Brown, Mike will wrap here 777777777 Lewis, Steve 888888888 Stewart, Jim ---------------------------------------------------------------------------- ------------------------------------------------------------------------- Pertinent code: Begin-Procedure Main begin-select stvdept_desc (+1,1) wrap 18 5 KEEP-TOP STRIP=<10> ON=<13> ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=1 PROCEDURE=PRINT_TOT a.stvmajr_desc (0,67) wrap 20 5 KEEP-TOP STRIP=<10> ON=<13> ON-BREAK PRINT=CHANGE/TOP-PAGE LEVEL=2 AFTER=PRINT_MJR sabadap_id (0,22) sabadap_last_name||', '||sabadap_first_name||' '||sabadap_mi (0,33) from sabadap, rprawrd, stvdept, stvmajr a, stvmajr b where sabadap_wrsn_code is NULL and (sabadap_apdc_code in ('01','02','16') or sabadap_apdc_code like '4%') and rprawrd_pidm(+) = sabadap_pidm and rprawrd_fund_code(+)=$_fund and rprawrd_aidy_code(+) = &_aidy and stvdept_code = sabadap_dept_code and a.stvmajr_code(+) = sabadap_majr_code and b.stvmajr_code(+) = sabadap_majr_code_conc_1_2 [$_term] [$_college] [$_level] order by 1,2,4 !stvdept_desc, a.stvmajr_desc, sabadap_id End-Select DO PRINT_TOT end-procedure begin-procedure PRINT_TOT ... end-procedure begin-procedure PRINT_MJR ... end-procedure -------------------------------------------------------- System info: SQR/4.2.1/DEC ALPHA/OpenVMS 6.2/Oracle 7.1.3.2/Mar 20 1998 Any suggestions would be greatly appreciated! Since I receive these postings in digest form, a cc: to my email address would be welcome. Thanks in advance, Denise Wagner University of Hartford - ITS dwagner@mail.hartford.edu From owner-sqr-users@list.iex.net Tue Apr 24 10:30:05 2001 Date: Tue, 24 Apr 2001 10:23:04 -0500 From: David Ward Subject: Error List for Rename and Others Hello everyone. We at UW-Whitewater have the following configuration: SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999 We are running HPUX 11.0, version 7.59 of PS Tools, and Student Admin 7.60. Ok...., we are trying to rename a print file(.lis) at the end of a sqr and are receiving an error code = 13. Does anyone have a list(or point me in the direction) of sqr error codes and corresponding reasons for sqr commands such as 'rename'? Thank you in advance... David. David Ward Technology & Information Resources UW-Whitewater 800 W. Main St. Whitewater, WI 53190 E-mail: wardd@uwwvax.uww.edu Voice: 262-472-1039 Fax: 262-472-5733 From owner-sqr-users@list.iex.net Tue Apr 24 10:53:55 2001 Date: Tue, 24 Apr 2001 11:41:49 -0400 From: Frederic Leroulley Subject: Re: Error List for Rename and Others Hi, Are you obliged to rename it at the end of the program ? Can't you name it correctly at the beginning with the new-report statement ? (new-report 'myfile.list') Frédéric LeRoulley CGI Consultant www.leroulley.com www.envolia.com > -----Original Message----- > From: Discussion of SQR, Brio Technology's database reporting language > [mailto:SQR-USERS@list.iex.net]On Behalf Of David Ward > Sent: April 24, 2001 11:23 > To: SQR-USERS@list.iex.net > Subject: Error List for Rename and Others > > > Hello everyone. > > We at UW-Whitewater have the following configuration: > > SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999 > We are running HPUX 11.0, version 7.59 of PS Tools, and Student > Admin 7.60. > > Ok...., we are trying to rename a print file(.lis) at the end of a sqr and > are receiving an error code = 13. Does anyone have a list(or point me in > the direction) of sqr error codes and corresponding reasons for sqr > commands such as 'rename'? > > Thank you in advance... > David. > > > David Ward > Technology & Information Resources > UW-Whitewater > 800 W. Main St. > Whitewater, WI 53190 > E-mail: wardd@uwwvax.uww.edu > Voice: 262-472-1039 > Fax: 262-472-5733 > From owner-sqr-users@list.iex.net Tue Apr 24 11:02:37 2001 Date: Tue, 24 Apr 2001 12:03:59 -0400 From: csmyth Subject: Re: Error List for Rename and Others I am not sure about the error code but it could be a sharing violation. To make the LIS file is no longer locked by SQR you could do a new-report prior to trying the rename. Cameron David Ward wrote: > Hello everyone. > > We at UW-Whitewater have the following configuration: > > SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999 > We are running HPUX 11.0, version 7.59 of PS Tools, and Student Admin 7.60. > > Ok...., we are trying to rename a print file(.lis) at the end of a sqr and > are receiving an error code = 13. Does anyone have a list(or point me in > the direction) of sqr error codes and corresponding reasons for sqr > commands such as 'rename'? > > Thank you in advance... > David. > > David Ward > Technology & Information Resources > UW-Whitewater > 800 W. Main St. > Whitewater, WI 53190 > E-mail: wardd@uwwvax.uww.edu > Voice: 262-472-1039 > Fax: 262-472-5733 From owner-sqr-users@list.iex.net Fri Apr 27 06:51:05 2001 Date: Fri, 27 Apr 2001 13:57:34 +0200 From: Franck Masson Subject: Re: Error List for Rename and Others David, SQR execute your report in 3 steps - compile your SQR code and provide a byte code - execute the byte code and provide spf files - convert spf file to lis file if you use -printer:lp or ps or hp so you see that in your sqr code you can not have access to the lis file as it will be produce in the third step. if you want only to change the name of the output use the -F option in the SQR command line. Franck -----Original Message----- From: David Ward [mailto:wardd@MAIL.UWW.EDU] Sent: mardi 24 avril 2001 17:23 To: SQR-USERS@list.iex.net Subject: Error List for Rename and Others Hello everyone. We at UW-Whitewater have the following configuration: SQR/4.3.4/PC/Windows NT 4.0/Oracle 7.3.4/Jun 03 1999 We are running HPUX 11.0, version 7.59 of PS Tools, and Student Admin 7.60. Ok...., we are trying to rename a print file(.lis) at the end of a sqr and are receiving an error code = 13. Does anyone have a list(or point me in the direction) of sqr error codes and corresponding reasons for sqr commands such as 'rename'? Thank you in advance... David. David Ward Technology & Information Resources UW-Whitewater 800 W. Main St. Whitewater, WI 53190 E-mail: wardd@uwwvax.uww.edu Voice: 262-472-1039 Fax: 262-472-5733 From owner-sqr-users@list.iex.net Tue Apr 24 11:15:32 2001 Date: Tue, 24 Apr 2001 10:56:20 -0500 From: Michele F Ernst Subject: Question about defining temp dynamic views In my program, I need to create a temporary view based on a date the user has entered. I have found that I need to create the view in the setup procedure or else, the program will not compile because the view does not exist. But I can only create a skeleton view, because the setup procedure will not allow a let statement. So I have created the view in setup, then again in a 'regular' procedure using the date entered by the user. My question is: Is there a better way? I have three views that need to be created in this SQR, one whose definition is almost a page long, and it just seems as though it should be easier than having to maintain two sets of DDL. I have considered having the 'creates 'in the setup to just define the columns without using a where clause, but don't know if that's a good practice. Below is a copy of my test program that works. I appreciate any advice. :) #include 'setenv.sqc' !Set environment3 begin-setup declare-variable DATE $fiscal_dt end-declare BEGIN-SQL create or replace view slu_hr_fj2_incumbent as ( select j.emplid, j.empl_rcd#, j.effdt, j.effseq, j.jobcode, j.comprate, j.std_hours, j.fte, p.position_nbr, e.business_title, per.name from ps_job j, ps_position_data p, ps_employment e, ps_personal_data per where j.empl_status in ('A', 'P', 'L', 'S') and j.position_nbr <> ' ' and p.position_nbr = j.position_nbr and p.eff_status = 'A' and e.emplid = j.emplid and e.empl_rcd# = j.empl_rcd# and ( e.appoint_end_dt is null or e.appoint_end_dt > [$fiscal_dt]) and per.emplid = j.emplid and j.effdt = (select max(j1.effdt) from ps_job j1 where j1.emplid = j.emplid and j1.empl_rcd# = j.empl_rcd# and j1.effdt <= [$fiscal_dt] and j1.empl_rcd# <> 500) and j.effseq = (select max(j2.effseq) from ps_job j2 where j2.emplid = j.emplid and j2.empl_rcd# = j.empl_rcd# and j2.effdt = j.effdt and j2.empl_rcd# <> 500) and p.effdt = (Select Max(pd1.effdt) from ps_position_data pd1 where pd1.position_nbr = p.position_nbr and pd1.effdt <= [$fiscal_dt]) ); END-SQL #include 'setupdb.sqc' !Database specific setup end-setup !************************************************************* ! Begin-Report !************************************************************* begin-report do setup-sql do Process-Main do drop-views end-report !*************************************************************************** ***** ! Setup-sql ! This procedure sets the optimizer goal to rule and sets up the views needed !*************************************************************************** ***** begin-procedure setup-sql let $fiscal_dt = '30-jun-2001' BEGIN-SQL create or replace view slu_hr_fj2_incumbent as ( select j.emplid, j.empl_rcd#, j.effdt, j.effseq, j.jobcode, j.comprate, j.std_hours, j.fte, p.position_nbr, e.business_title, per.name from ps_job j, ps_position_data p, ps_employment e, ps_personal_data per where j.empl_status in ('A', 'P', 'L', 'S') and j.position_nbr <> ' ' and p.position_nbr = j.position_nbr and p.eff_status = 'A' and e.emplid = j.emplid and e.empl_rcd# = j.empl_rcd# and ( e.appoint_end_dt is null or e.appoint_end_dt > [$fiscal_dt]) and per.emplid = j.emplid and j.effdt = (select max(j1.effdt) from ps_job j1 where j1.emplid = j.emplid and j1.empl_rcd# = j.empl_rcd# and j1.effdt <= [$fiscal_dt] and j1.empl_rcd# <> 500) and j.effseq = (select max(j2.effseq) from ps_job j2 where j2.emplid = j.emplid and j2.empl_rcd# = j.empl_rcd# and j2.effdt = j.effdt and j2.empl_rcd# <> 500) and p.effdt = (Select Max(pd1.effdt) from ps_position_data pd1 where pd1.position_nbr = p.position_nbr and pd1.effdt <= [$fiscal_dt]) ); END-SQL end-procedure !*************************************************************************** ***** ! Drop-views ! This procedure drops the views created specifically for this report !*************************************************************************** ***** begin-procedure drop-views BEGIN-SQL drop view SLU_HR_FJ2_INCUMBENT; END-SQL end-procedure !*************************************************************************** ***** ! Process-Main * ! This procedure calls the main processes. * !*************************************************************************** ***** begin-procedure Process-Main let #count = 0 begin-select i.emplid ! show &i.emplid add 1 to #count from slu_hr_fj2_incumbent i end-select show 'count = ' #count end-procedure --------------------------------------------------- Michele F. Ernst mernst@selu.edu Computing Services Southeastern Louisiana University HomePage: http://vmsweb.selu.edu/~tmis1899 ** What you are is God's gift to you; what you become is your gift to God. ** From owner-sqr-users@list.iex.net Tue Apr 24 15:28:52 2001 Date: Tue, 24 Apr 2001 16:25:04 -0400 From: Scott Eubank Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Tue Apr 24 16:12:04 2001 Date: Tue, 24 Apr 2001 17:03:08 -0400 From: Scott Eubank Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? The below post was made in haste here is what is happening. I log in to UNIX. as ME . When I kick off the sqr if blows up, because it trys to but seubank in front of each table name as the database name. I need to RESET the current sqlid to the database owners name. Not only that but I am gonna have to use this in a script that Automates an interface, Have any of you automated interfaces ... like this watch for an ftp filed from your legacy system when it arrives you kick off an sqr to load the Data into the DB. Thanks in Advance -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 24, 2001 4:25 PM To: SQR-USERS@list.iex.net Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Tue Apr 24 16:55:51 2001 Date: Tue, 24 Apr 2001 17:48:54 -0400 From: Doug Nichols Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? can you just run this as sysadm? Or if running in Peoplesoft, submit it through the process scheduler, you should still be able to submit it thru a script that way as well. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Tuesday, April 24, 2001 5:03 PM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? The below post was made in haste here is what is happening. I log in to UNIX. as ME . When I kick off the sqr if blows up, because it trys to but seubank in front of each table name as the database name. I need to RESET the current sqlid to the database owners name. Not only that but I am gonna have to use this in a script that Automates an interface, Have any of you automated interfaces ... like this watch for an ftp filed from your legacy system when it arrives you kick off an sqr to load the Data into the DB. Thanks in Advance -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 24, 2001 4:25 PM To: SQR-USERS@list.iex.net Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Tue Apr 24 17:03:14 2001 Date: Tue, 24 Apr 2001 17:50:33 -0400 From: Jeff Shupe Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? Scott, In my company we load interface files from our legacy systems into an interface directory. Then the script below is ran to change to owner in UNIX to sysprdfs, after that the SQRs can process the files normally. #!/sbin/sh -p interfacedir=/HARLAND/psoft/prod/fs/interfaces srcfiles=`find . -name "me??????.???" -size +0 -print` tput clear echo "These files exist for moving include:" echo $srcfiles echo "\nDo you want to move them? (y/n) \c" read ans if [ "$ans" = "n" ] then exit fi for file in $srcfiles do mv $file $interfacedir echo "Moving $file . . ." chown sysprdfs:psoft /$interfacedir/$file echo "Changing $file . . ." done Thanks, Jeff ----- Original Message ----- From: "Scott Eubank" To: Sent: Tuesday, April 24, 2001 5:03 PM Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? > The below post was made in haste here is what is happening. I log in to > UNIX. as ME . When I kick off the sqr if blows up, because it trys to but > seubank in front of each table name as the database name. I need to RESET > the current sqlid to the database owners name. > > Not only that but I am gonna have to use this in a script that Automates an > interface, Have any of you automated interfaces ... like this watch for an > ftp filed from your legacy system when it arrives you kick off an sqr to > load the Data into the DB. > > Thanks in Advance > > > -----Original Message----- > From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] > Sent: Tuesday, April 24, 2001 4:25 PM > To: SQR-USERS@list.iex.net > Subject: I NEED TO RUN AN SQR not as the DB OWNER how? > > > How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID > so that it is set be fore the prepares are made by the sqr compile process? > > Below is an SQC that I included but it is not working correctly . > > -------------------------------------------------------------------------- -- > ------------------------------------ > #ifdef DB2ALL > ! This command set the owner of the DB to the correct owner. > show ' > Begin-Select > OWNERID &ASCOWNERID > FROM PS.PSDBOWNER > End-Select > > Begin-SQL > SET CURRENT SQLID=&ASCOWNERID > End-SQL > > #endif > -------------------------------------------------------------------------- -- > ------------------------------------ > > PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD > > tHANKS SCOTT From owner-sqr-users@list.iex.net Wed Apr 25 06:29:18 2001 Date: Wed, 25 Apr 2001 07:21:10 -0400 From: "Schelske, Steve K." Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? How are you're delivered SQR programs handling this situation? Try running XRFWIN from SQRW and see if it gets Owner correct. That may lead you to an answer. We're a DB2 shop and it looks like you are as well. Here's how it works for us. We use the options in SETUPDB.SQC starting around line 56 (Tools 7.60). We use the #define DB2_SEC_AUTH statement to force programs to 'ask' for the Database Owner Id. When running through Process Scheduler, the Owner Id is included in the Process Type parameters. If running outside of Process Scheduler, you get prompted for the Owner Id, or it could be included in the command line parameters for SQRW. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Tuesday, April 24, 2001 5:03 PM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? The below post was made in haste here is what is happening. I log in to UNIX. as ME . When I kick off the sqr if blows up, because it trys to but seubank in front of each table name as the database name. I need to RESET the current sqlid to the database owners name. Not only that but I am gonna have to use this in a script that Automates an interface, Have any of you automated interfaces ... like this watch for an ftp filed from your legacy system when it arrives you kick off an sqr to load the Data into the DB. Thanks in Advance -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 24, 2001 4:25 PM To: SQR-USERS@list.iex.net Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Wed Apr 25 07:57:43 2001 Date: Wed, 25 Apr 2001 08:54:43 -0400 From: Scott Eubank Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? Steve, We're DB2 on RS6000 , we looked at that but it looked like that was for MVS. To ALL OTHERS, I appreciate the replies. SQRW has the same problem that I am having on the server, the ownerid is incorrect. The Goal is to be able to login in VIA Telenet , then execute the sqr. I WILL NOT be able to login with a "SYS" id or any type of ROOT or DATABASE privelges other than to excute this SQR. WE have very strict policies about who can run what and how. NO EXCEPTIONS. Oh Well! so I need to be able to change the SQLID and I need to be able to do it on an RS6000 outside of peoplesoft. thanks you guys and gals are invaluable scott -----Original Message----- From: Schelske, Steve K. [mailto:SKSchelske@AAAMICHIGAN.COM] Sent: Wednesday, April 25, 2001 7:21 AM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? How are you're delivered SQR programs handling this situation? Try running XRFWIN from SQRW and see if it gets Owner correct. That may lead you to an answer. We're a DB2 shop and it looks like you are as well. Here's how it works for us. We use the options in SETUPDB.SQC starting around line 56 (Tools 7.60). We use the #define DB2_SEC_AUTH statement to force programs to 'ask' for the Database Owner Id. When running through Process Scheduler, the Owner Id is included in the Process Type parameters. If running outside of Process Scheduler, you get prompted for the Owner Id, or it could be included in the command line parameters for SQRW. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Tuesday, April 24, 2001 5:03 PM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? The below post was made in haste here is what is happening. I log in to UNIX. as ME . When I kick off the sqr if blows up, because it trys to but seubank in front of each table name as the database name. I need to RESET the current sqlid to the database owners name. Not only that but I am gonna have to use this in a script that Automates an interface, Have any of you automated interfaces ... like this watch for an ftp filed from your legacy system when it arrives you kick off an sqr to load the Data into the DB. Thanks in Advance -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 24, 2001 4:25 PM To: SQR-USERS@list.iex.net Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Wed Apr 25 09:12:51 2001 Date: Wed, 25 Apr 2001 09:42:59 -0400 From: "Schelske, Steve K." Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? It is for OSes other than MVS. #ifdef DB2 #if *n* def MVS -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Wednesday, April 25, 2001 8:55 AM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? Steve, We're DB2 on RS6000 , we looked at that but it looked like that was for MVS. To ALL OTHERS, I appreciate the replies. SQRW has the same problem that I am having on the server, the ownerid is incorrect. The Goal is to be able to login in VIA Telenet , then execute the sqr. I WILL NOT be able to login with a "SYS" id or any type of ROOT or DATABASE privelges other than to excute this SQR. WE have very strict policies about who can run what and how. NO EXCEPTIONS. Oh Well! so I need to be able to change the SQLID and I need to be able to do it on an RS6000 outside of peoplesoft. thanks you guys and gals are invaluable scott -----Original Message----- From: Schelske, Steve K. [mailto:SKSchelske@AAAMICHIGAN.COM] Sent: Wednesday, April 25, 2001 7:21 AM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? How are you're delivered SQR programs handling this situation? Try running XRFWIN from SQRW and see if it gets Owner correct. That may lead you to an answer. We're a DB2 shop and it looks like you are as well. Here's how it works for us. We use the options in SETUPDB.SQC starting around line 56 (Tools 7.60). We use the #define DB2_SEC_AUTH statement to force programs to 'ask' for the Database Owner Id. When running through Process Scheduler, the Owner Id is included in the Process Type parameters. If running outside of Process Scheduler, you get prompted for the Owner Id, or it could be included in the command line parameters for SQRW. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Tuesday, April 24, 2001 5:03 PM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? The below post was made in haste here is what is happening. I log in to UNIX. as ME . When I kick off the sqr if blows up, because it trys to but seubank in front of each table name as the database name. I need to RESET the current sqlid to the database owners name. Not only that but I am gonna have to use this in a script that Automates an interface, Have any of you automated interfaces ... like this watch for an ftp filed from your legacy system when it arrives you kick off an sqr to load the Data into the DB. Thanks in Advance -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 24, 2001 4:25 PM To: SQR-USERS@list.iex.net Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Wed Apr 25 09:12:57 2001 Date: Wed, 25 Apr 2001 09:47:34 -0400 From: "Schelske, Steve K." Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? I just looked at the comments in the SQC a little closer and see that they say that the code is for DB2/MVS programs running on the client, but the compiler directive #ifndef MVS indicates otherwise. We are an MVS shop, so I know it works for that platform. Maybe the SQRs are delivered differently for RS6000. It might be worth a try, though. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Schelske, Steve K. Sent: Wednesday, April 25, 2001 9:43 AM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? It is for OSes other than MVS. #ifdef DB2 #if *n* def MVS -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Wednesday, April 25, 2001 8:55 AM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? Steve, We're DB2 on RS6000 , we looked at that but it looked like that was for MVS. To ALL OTHERS, I appreciate the replies. SQRW has the same problem that I am having on the server, the ownerid is incorrect. The Goal is to be able to login in VIA Telenet , then execute the sqr. I WILL NOT be able to login with a "SYS" id or any type of ROOT or DATABASE privelges other than to excute this SQR. WE have very strict policies about who can run what and how. NO EXCEPTIONS. Oh Well! so I need to be able to change the SQLID and I need to be able to do it on an RS6000 outside of peoplesoft. thanks you guys and gals are invaluable scott -----Original Message----- From: Schelske, Steve K. [mailto:SKSchelske@AAAMICHIGAN.COM] Sent: Wednesday, April 25, 2001 7:21 AM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? How are you're delivered SQR programs handling this situation? Try running XRFWIN from SQRW and see if it gets Owner correct. That may lead you to an answer. We're a DB2 shop and it looks like you are as well. Here's how it works for us. We use the options in SETUPDB.SQC starting around line 56 (Tools 7.60). We use the #define DB2_SEC_AUTH statement to force programs to 'ask' for the Database Owner Id. When running through Process Scheduler, the Owner Id is included in the Process Type parameters. If running outside of Process Scheduler, you get prompted for the Owner Id, or it could be included in the command line parameters for SQRW. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Scott Eubank Sent: Tuesday, April 24, 2001 5:03 PM To: SQR-USERS@list.iex.net Subject: Re: I NEED TO RUN AN SQR not as the DB OWNER how? The below post was made in haste here is what is happening. I log in to UNIX. as ME . When I kick off the sqr if blows up, because it trys to but seubank in front of each table name as the database name. I need to RESET the current sqlid to the database owners name. Not only that but I am gonna have to use this in a script that Automates an interface, Have any of you automated interfaces ... like this watch for an ftp filed from your legacy system when it arrives you kick off an sqr to load the Data into the DB. Thanks in Advance -----Original Message----- From: Scott Eubank [mailto:SEUBANK@ADVANCEAUTOPARTS.COM] Sent: Tuesday, April 24, 2001 4:25 PM To: SQR-USERS@list.iex.net Subject: I NEED TO RUN AN SQR not as the DB OWNER how? How do I set the OWNER ie:SET CURRENT SQLID=&ASCOWNERID so that it is set be fore the prepares are made by the sqr compile process? Below is an SQC that I included but it is not working correctly . ---------------------------------------------------------------------------- ------------------------------------ #ifdef DB2ALL ! This command set the owner of the DB to the correct owner. show ' Begin-Select OWNERID &ASCOWNERID FROM PS.PSDBOWNER End-Select Begin-SQL SET CURRENT SQLID=&ASCOWNERID End-SQL #endif ---------------------------------------------------------------------------- ------------------------------------ PLEASE HLEP THE SHARKS ARE CIRCLIING AND CAN SMELL BLOOD tHANKS SCOTT From owner-sqr-users@list.iex.net Wed Apr 25 04:52:25 2001 Date: Wed, 25 Apr 2001 05:46:05 -0400 From: Sam Spritzer Subject: ODBC drivers (may not be appropriate here) Dear fellow SQRs, Its been a long time...almost a year since I have been SQRing but I hope my next assignment puts me back in touch with reality(SQR!). If this post is inappropriate here, please accept my humble apology but I have a problem that I can't seem to get help for. So as a last resort, I am turning to the smart ones for help. I am currently developing reports using MS Access connected to an Informix. I am using the ODBC driver supplied and developed by Merant (Intersolv). All of my reports include links to the actual data as opposed to importing the data since the users require real-time information. Is there a way to program an ODBC driver so that its link to the database is read-only? Again, I apologize but thanks in advance if you can help me with this.. Sam From owner-sqr-users@list.iex.net Wed Apr 25 05:15:36 2001 Date: Wed, 25 Apr 2001 05:59:16 -0400 From: Jeffrey Bedell Subject: Re: ODBC drivers (may not be appropriate here) We use MS Access quite extensively here and link to A Sybase database (not that it matters) but as far as I know your access is determined by your logon ID to the database. If you want to have read-only access to the linked tables through your ODBC driver you need to sign on with an ID that provides read-only access. Jeffrey K. Bedell Senior Systems Analyst HR/Payroll Syracuse University (315) 443-9273 >>> sspritzer@GW.CTG.COM 04/25/01 05:46AM >>> Dear fellow SQRs, Its been a long time...almost a year since I have been SQRing but I hope my next assignment puts me back in touch with reality(SQR!). If this post is inappropriate here, please accept my humble apology but I have a problem that I can't seem to get help for. So as a last resort, I am turning to the smart ones for help. I am currently developing reports using MS Access connected to an Informix. I am using the ODBC driver supplied and developed by Merant (Intersolv). All of my reports include links to the actual data as opposed to importing the data since the users require real-time information. Is there a way to program an ODBC driver so that its link to the database is read-only? Again, I apologize but thanks in advance if you can help me with this.. Sam From owner-sqr-users@list.iex.net Wed Apr 25 09:58:43 2001 Date: Wed, 25 Apr 2001 10:43:15 -0400 From: Joan Keith Subject: Color Palettes of New-Graphics working in PDF but not in SPF Hi, I am trying to define the colors to be used in my bar charts by specifying New-Graphics=True in my sqr.ini file, defining and using color_palettes with my charts. This appears to be working for the output files done in PDF but seems to have no impact on the .spf file. That is, the charts in the .spf file are using some default colors that must be built into the product -- the same defaults that I was seeing before I changed the New-Graphics parameter to True. Can anyone tell me how I can get these colors in the spf output as well? We are close to a production run so I'm eager to resolve this quickly! Thanks! From owner-sqr-users@list.iex.net Wed Apr 25 10:28:10 2001 Date: Wed, 25 Apr 2001 09:15:18 -0600 From: "O'Dorisio, Steve" Subject: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" I am getting the following error: "(SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting." My questions: 1) What is the -Mfile? 2) How do I change the SQLSIZE? 3) Do I need to include it as a Report Argument when I execute my SQR? Or do I need to include a command within the SQL section? Or do I need to create a separate file (SQC, SQR, ???) that my program calls? Sample code and/or a brief summary would probably be sufficient. Research thus far: -SQR error 1302 = 'The SQL statement exceeds the size of the internal SQL buffer. Use the -Mfile flag on the command line to specify a file containing an entry that increases the currently defined value.' *What command line? -According to SQRUG FAQ the default SQLSIZE is 4000, max is 65535. *I just don't know where to set this? -Doesn't seem to work as a Report Argument when(unless I am doing it wrong). Background: -Using SQR for batch process (load of database table). -Using a SQL Select Statement as the main loop (loading each row, one at a time). -Using Oracle 8i database. -Using both PeopleSoft and Brio, but no gurus/resources on site to help out. -Have "SQR Language Reference Guide" and "SQR in PeopleSoft and Other Application" Thank you, Steve O'Dorisio steven.o'dorisio@mms.gov From owner-sqr-users@list.iex.net Wed Apr 25 10:42:57 2001 Date: Wed, 25 Apr 2001 11:39:35 -0400 From: Troy Wiechman Subject: Re: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" Your sql statement is too large for the default size of a sql statement. There is a variable in the sqr.ini that could be increased. SQLSIZE=4000 Or create a file and put one line in it -> SQLSIZE=10000 Then on the command line, use the -M Flag to point at the file you created. sqr program.sqt logon_info -RT -Mprogram.sqm Troy "O'Dorisio, Steve" on 04/25/2001 11:15:18 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" I am getting the following error: "(SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting." My questions: 1) What is the -Mfile? 2) How do I change the SQLSIZE? 3) Do I need to include it as a Report Argument when I execute my SQR? Or do I need to include a command within the SQL section? Or do I need to create a separate file (SQC, SQR, ???) that my program calls? Sample code and/or a brief summary would probably be sufficient. Research thus far: -SQR error 1302 = 'The SQL statement exceeds the size of the internal SQL buffer. Use the -Mfile flag on the command line to specify a file containing an entry that increases the currently defined value.' *What command line? -According to SQRUG FAQ the default SQLSIZE is 4000, max is 65535. *I just don't know where to set this? -Doesn't seem to work as a Report Argument when(unless I am doing it wrong). Background: -Using SQR for batch process (load of database table). -Using a SQL Select Statement as the main loop (loading each row, one at a time). -Using Oracle 8i database. -Using both PeopleSoft and Brio, but no gurus/resources on site to help out. -Have "SQR Language Reference Guide" and "SQR in PeopleSoft and Other Application" Thank you, Steve O'Dorisio steven.o'dorisio@mms.gov From owner-sqr-users@list.iex.net Wed Apr 25 12:06:47 2001 Date: Wed, 25 Apr 2001 13:04:37 -0400 From: Chantelle Wall Subject: Re: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE" Before you go through the trouble of changing your SQLSIZE, I would make sure that you have all of your "END" statements. If you are missing one, you will get this error because it is trying to read everything in between your begin and the next end. "O'Dorisio, Steve" wrote: > I am getting the following error: > > "(SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. > > SQR: Program Aborting." > > My questions: > 1) What is the -Mfile? > 2) How do I change the SQLSIZE? > 3) Do I need to include it as a Report Argument when I execute my SQR? Or > do I need to include a command within the SQL section? Or do I need to > create a separate file (SQC, SQR, ???) that my program calls? Sample code > and/or a brief summary would probably be sufficient. > > Research thus far: > -SQR error 1302 = 'The SQL statement exceeds the size of the internal SQL > buffer. Use the -Mfile flag on the command line to specify a file > containing an entry that increases the currently defined value.' *What > command line? > -According to SQRUG FAQ the default SQLSIZE is 4000, max is 65535. *I just > don't know where to set this? > -Doesn't seem to work as a Report Argument when(unless I am doing it wrong). > > Background: > -Using SQR for batch process (load of database table). > -Using a SQL Select Statement as the main loop (loading each row, one at a > time). > -Using Oracle 8i database. > -Using both PeopleSoft and Brio, but no gurus/resources on site to help out. > -Have "SQR Language Reference Guide" and "SQR in PeopleSoft and Other > Application" > > Thank you, > Steve O'Dorisio > steven.o'dorisio@mms.gov From owner-sqr-users@list.iex.net Wed Apr 25 10:54:04 2001 Date: Wed, 25 Apr 2001 10:41:51 -0500 From: "Bauer, Michael D" Subject: Re: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" The -Mfile is a flag. Where -M is the flag followed by a file name. So for example to run at command line you enter "sqr mikessqr.sqr -Mdefaultfile.dat" In the file default file you need to set some defaults. So in your file you need something like SQLSIZE=12000 Hope that helps -----Original Message----- From: O'Dorisio, Steve [mailto:Steven.O'Dorisio@MMS.GOV] Sent: Wednesday, April 25, 2001 10:15 AM To: SQR-USERS@list.iex.net Subject: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" I am getting the following error: "(SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting." My questions: 1) What is the -Mfile? 2) How do I change the SQLSIZE? 3) Do I need to include it as a Report Argument when I execute my SQR? Or do I need to include a command within the SQL section? Or do I need to create a separate file (SQC, SQR, ???) that my program calls? Sample code and/or a brief summary would probably be sufficient. Research thus far: -SQR error 1302 = 'The SQL statement exceeds the size of the internal SQL buffer. Use the -Mfile flag on the command line to specify a file containing an entry that increases the currently defined value.' *What command line? -According to SQRUG FAQ the default SQLSIZE is 4000, max is 65535. *I just don't know where to set this? -Doesn't seem to work as a Report Argument when(unless I am doing it wrong). Background: -Using SQR for batch process (load of database table). -Using a SQL Select Statement as the main loop (loading each row, one at a time). -Using Oracle 8i database. -Using both PeopleSoft and Brio, but no gurus/resources on site to help out. -Have "SQR Language Reference Guide" and "SQR in PeopleSoft and Other Application" Thank you, Steve O'Dorisio steven.o'dorisio@mms.gov From owner-sqr-users@list.iex.net Wed Apr 25 11:14:26 2001 Date: Wed, 25 Apr 2001 10:10:51 -0600 From: "O'Dorisio, Steve" Subject: Re: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile t o in crease SQLSIZE" Thanks for the responses, I think we have what we need. I am running the program now, and it seems to be doing OK. Thanks again, STeve -----Original Message----- From: Troy Wiechman [mailto:WIECHTJ@KELLYSERVICES.COM] Sent: Wednesday, April 25, 2001 9:40 AM To: SQR-USERS@list.iex.net Subject: Re: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" Your sql statement is too large for the default size of a sql statement. There is a variable in the sqr.ini that could be increased. SQLSIZE=4000 Or create a file and put one line in it -> SQLSIZE=10000 Then on the command line, use the -M Flag to point at the file you created. sqr program.sqt logon_info -RT -Mprogram.sqm Troy "O'Dorisio, Steve" on 04/25/2001 11:15:18 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: -M file error: "(SQR 1302) SQL buffer too small; use -Mfile to in crease SQLSIZE" I am getting the following error: "(SQR 1302) SQL buffer too small; use -Mfile to increase SQLSIZE. SQR: Program Aborting." My questions: 1) What is the -Mfile? 2) How do I change the SQLSIZE? 3) Do I need to include it as a Report Argument when I execute my SQR? Or do I need to include a command within the SQL section? Or do I need to create a separate file (SQC, SQR, ???) that my program calls? Sample code and/or a brief summary would probably be sufficient. Research thus far: -SQR error 1302 = 'The SQL statement exceeds the size of the internal SQL buffer. Use the -Mfile flag on the command line to specify a file containing an entry that increases the currently defined value.' *What command line? -According to SQRUG FAQ the default SQLSIZE is 4000, max is 65535. *I just don't know where to set this? -Doesn't seem to work as a Report Argument when(unless I am doing it wrong). Background: -Using SQR for batch process (load of database table). -Using a SQL Select Statement as the main loop (loading each row, one at a time). -Using Oracle 8i database. -Using both PeopleSoft and Brio, but no gurus/resources on site to help out. -Have "SQR Language Reference Guide" and "SQR in PeopleSoft and Other Application" Thank you, Steve O'Dorisio steven.o'dorisio@mms.gov From owner-sqr-users@list.iex.net Wed Apr 25 17:00:47 2001 Date: Wed, 25 Apr 2001 14:45:19 -0700 From: Kristine Brewer Subject: Version Control Tool Looking for suggestions for a good version control/change management tool for SQR programs. _________________________ Kristine Brewer CMS Programmer Analyst Phone: (562) 951-4336 Fax: (562) 951-4944 Email: kbrewer@calstate.edu From owner-sqr-users@list.iex.net Wed Apr 25 17:19:13 2001 Date: Wed, 25 Apr 2001 17:05:31 -0500 From: Rick Hansen Subject: Re: Version Control Tool I have had good luck with PVCS. (Have also used SourceSafe.) I give the nod to PVCS however, as they have better integration to other products. Rick Hansen Sr. Application Systems Analyst McGladrey, Inc. Fax: (319) 324-0211; Phone: (319) 324-0447, # 2321 All contents of this email are intended for the designated recipient(s) only and may contain privileged or confidential information. If you have received this in error, please reply to the sender immediately and delete the email. Any other use of this email or the information contained in it, is prohibited. sqr-users@list.iex.net 04/25/2001 02:45 PM To: SQR-USERS@list.iex.net cc: (bcc: Rick Hansen/Davenport/MP/RSMi) Subject: Version Control Tool Looking for suggestions for a good version control/change management tool for SQR programs. _________________________ Kristine Brewer CMS Programmer Analyst Phone: (562) 951-4336 Fax: (562) 951-4944 Email: kbrewer@calstate.edu From owner-sqr-users@list.iex.net Wed Apr 25 18:19:44 2001 Date: Wed, 25 Apr 2001 15:58:32 -0700 From: Jennifer Tran Subject: Re: Version Control Tool Rick, Can you please post more details about this vendor? Thanks... Rick Hansen wrote: > I have had good luck with PVCS. (Have also used SourceSafe.) I give the nod > to PVCS however, as they have better integration to other products. > > Rick Hansen > Sr. Application Systems Analyst > > McGladrey, Inc. > Fax: (319) 324-0211; Phone: (319) 324-0447, # 2321 > > All contents of this email are intended for the designated recipient(s) only > and may contain privileged or confidential information. > If you have received this in error, please reply to the sender immediately and > > delete the email. > Any other use of this email or the information contained in it, is prohibited. > > sqr-users@list.iex.net > 04/25/2001 02:45 PM > > To: SQR-USERS@list.iex.net > cc: (bcc: Rick Hansen/Davenport/MP/RSMi) > Subject: Version Control Tool > > Looking for suggestions for a good version control/change management tool > for SQR programs. > > _________________________ > Kristine Brewer > CMS Programmer Analyst > Phone: (562) 951-4336 > Fax: (562) 951-4944 > Email: kbrewer@calstate.edu From owner-sqr-users@list.iex.net Thu Apr 26 05:13:16 2001 Date: Thu, 26 Apr 2001 07:04:09 -0300 From: Peter Clark Subject: Re: Version Control Tool I agree, Rick. We use PVCS because of that integration ability. As a PeopleSoft shop, I would prefer to use STAT which is the best tool available for PeopleSoft objects version control, but it does not support things like Oracle Stored Procedures whereas PVCS can (via an integrated product). Peter >>> Rick Hansen 2001/04/25 7:05:31 pm >>> I have had good luck with PVCS. (Have also used SourceSafe.) I give the nod to PVCS however, as they have better integration to other products. Rick Hansen Sr. Application Systems Analyst McGladrey, Inc. Fax: (319) 324-0211; Phone: (319) 324-0447, # 2321 All contents of this email are intended for the designated recipient(s) only and may contain privileged or confidential information. If you have received this in error, please reply to the sender immediately and delete the email. Any other use of this email or the information contained in it, is prohibited. sqr-users@list.iex.net 04/25/2001 02:45 PM To: SQR-USERS@list.iex.net cc: (bcc: Rick Hansen/Davenport/MP/RSMi) Subject: Version Control Tool Looking for suggestions for a good version control/change management tool for SQR programs. _________________________ Kristine Brewer CMS Programmer Analyst Phone: (562) 951-4336 Fax: (562) 951-4944 Email: kbrewer@calstate.edu From owner-sqr-users@list.iex.net Thu Apr 26 05:13:20 2001 Date: Thu, 26 Apr 2001 07:05:21 -0300 From: Peter Clark Subject: Re: Version Control Tool Jennifer, it is marketed by Intersolv/Merant. You can check them - and the product - out at www.intersolv.com Peter >>> Jennifer Tran 2001/04/25 7:58:32 pm >>> Rick, Can you please post more details about this vendor? Thanks... Rick Hansen wrote: > I have had good luck with PVCS. (Have also used SourceSafe.) I give the nod > to PVCS however, as they have better integration to other products. > > Rick Hansen > Sr. Application Systems Analyst > > McGladrey, Inc. > Fax: (319) 324-0211; Phone: (319) 324-0447, # 2321 > > All contents of this email are intended for the designated recipient(s) only > and may contain privileged or confidential information. > If you have received this in error, please reply to the sender immediately and > > delete the email. > Any other use of this email or the information contained in it, is prohibited. > > sqr-users@list.iex.net > 04/25/2001 02:45 PM > > To: SQR-USERS@list.iex.net > cc: (bcc: Rick Hansen/Davenport/MP/RSMi) > Subject: Version Control Tool > > Looking for suggestions for a good version control/change management tool > for SQR programs. > > _________________________ > Kristine Brewer > CMS Programmer Analyst > Phone: (562) 951-4336 > Fax: (562) 951-4944 > Email: kbrewer@calstate.edu From owner-sqr-users@list.iex.net Thu Apr 26 10:58:04 2001 Date: Thu, 26 Apr 2001 08:36:56 -0700 From: Jennifer Tran Subject: Re: Version Control Tool Many thanks, Peter... Peter Clark wrote: > Jennifer, it is marketed by Intersolv/Merant. You can check them - and the product - out at www.intersolv.com > > Peter > > >>> Jennifer Tran 2001/04/25 7:58:32 pm >>> > Rick, > Can you please post more details about this vendor? Thanks... > > Rick Hansen wrote: > > > I have had good luck with PVCS. (Have also used SourceSafe.) I give the nod > > to PVCS however, as they have better integration to other products. > > > > Rick Hansen > > Sr. Application Systems Analyst > > > > McGladrey, Inc. > > Fax: (319) 324-0211; Phone: (319) 324-0447, # 2321 > > > > All contents of this email are intended for the designated recipient(s) only > > and may contain privileged or confidential information. > > If you have received this in error, please reply to the sender immediately and > > > > delete the email. > > Any other use of this email or the information contained in it, is prohibited. > > > > sqr-users@list.iex.net > > 04/25/2001 02:45 PM > > > > To: SQR-USERS@list.iex.net > > cc: (bcc: Rick Hansen/Davenport/MP/RSMi) > > Subject: Version Control Tool > > > > Looking for suggestions for a good version control/change management tool > > for SQR programs. > > > > _________________________ > > Kristine Brewer > > CMS Programmer Analyst > > Phone: (562) 951-4336 > > Fax: (562) 951-4944 > > Email: kbrewer@calstate.edu -- ********************************* California State University ----------- Jennifer Tran Email: jtran@bms.calstate.edu Phone: (562)951-4395 Making everyday a better day ********************************* From owner-sqr-users@list.iex.net Thu Apr 26 09:38:17 2001 Date: Thu, 26 Apr 2001 10:37:28 -0400 From: Scott Eubank Subject: Re: Version Control Tool CVS is an OPEN source and there fore FREE TOOL that works well also for source code control. It is used through out the world and is an excellent tool with free graphical front ends also. But you may have to complie it for your server. If you know how to do a make file then I expect you are on your way. -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Thursday, April 26, 2001 6:05 AM To: SQR-USERS@list.iex.net Subject: Re: Version Control Tool Jennifer, it is marketed by Intersolv/Merant. You can check them - and the product - out at www.intersolv.com Peter >>> Jennifer Tran 2001/04/25 7:58:32 pm >>> Rick, Can you please post more details about this vendor? Thanks... Rick Hansen wrote: > I have had good luck with PVCS. (Have also used SourceSafe.) I give the nod > to PVCS however, as they have better integration to other products. > > Rick Hansen > Sr. Application Systems Analyst > > McGladrey, Inc. > Fax: (319) 324-0211; Phone: (319) 324-0447, # 2321 > > All contents of this email are intended for the designated recipient(s) only > and may contain privileged or confidential information. > If you have received this in error, please reply to the sender immediately and > > delete the email. > Any other use of this email or the information contained in it, is prohibited. > > sqr-users@list.iex.net > 04/25/2001 02:45 PM > > To: SQR-USERS@list.iex.net > cc: (bcc: Rick Hansen/Davenport/MP/RSMi) > Subject: Version Control Tool > > Looking for suggestions for a good version control/change management tool > for SQR programs. > > _________________________ > Kristine Brewer > CMS Programmer Analyst > Phone: (562) 951-4336 > Fax: (562) 951-4944 > Email: kbrewer@calstate.edu From owner-sqr-users@list.iex.net Thu Apr 26 09:56:15 2001 Date: Thu, 26 Apr 2001 07:53:06 -0700 From: David Smith Subject: Re: Version Control Tool Jennifer, We are using PVCS on a Java/Websphere project in Sacramento for FTB. I can probably arrange a visit if you are located here. David L Smith CA Government Industry IBM Global Services From owner-sqr-users@list.iex.net Wed Apr 25 18:30:12 2001 Date: Wed, 25 Apr 2001 18:28:06 -0500 From: "Cadenas, Maria (MT)" Subject: Update/Insert in same program We're doing a program that delete and inserts the same row from three tables. The program is set to run in three modes: Insert Delete Re-Run If the program is in Delete Mode it only Deletes from the three tables If the program is in Insert Mode it only Inserts from the three tables BUT if the program is in Re-Run Mode we need it to DELETE any existing data for the employee in ALL three tables and INSERT the new data for the employee in all three tables. We have no problem with the Insert or Delete Modes. HOWEVER, When in RE-RUN we get an ORA "duplicate key" error when we hit the largest table. Originally the program WAS NOT committing after the delete, (mainly because we want to ROLLBACK later if necessary). AFTER we updated to include the COMMIT-TRANSACTION call, we still received the duplicate key error. We changed the code to only hit the other two tables WITH and WITHOUT COMMIT-TRANSACTION and the program ran successfully. We tested the program when the only table being DELETED/UPDATED was ADDL_PAY_DATA (The largest table) WITH AND WITHOUT COMMIT-TRANSACTION. We Still had the duplicate key error. We are using TEST DATA. So the only employees in the table are inserted ONLY ONCE and the DELETE Call should DELETE this record (which it does - we inserted a select statement AFTER the delete to verify no data for the employees was found). ANY IDEAS on why we're getting this error or how to fix it?? From owner-sqr-users@list.iex.net Thu Apr 26 08:05:35 2001 Date: Thu, 26 Apr 2001 09:00:13 -0400 From: "Johnson, Dan" Subject: Re: Update/Insert in same program Maria, Instead of the re-run procedure could you just do an update procedure and instead of deleting and inserting just do an update of the row that has changed. Dan > > Maria sent Sent: Wednesday, April 25, 2001 7:28 PM To: SQR-USERS@list.iex.net Subject: Update/Insert in same program We're doing a program that delete and inserts the same row from three tables. The program is set to run in three modes: Insert Delete Re-Run If the program is in Delete Mode it only Deletes from the three tables If the program is in Insert Mode it only Inserts from the three tables BUT if the program is in Re-Run Mode we need it to DELETE any existing data for the employee in ALL three tables and INSERT the new data for the employee in all three tables. We have no problem with the Insert or Delete Modes. HOWEVER, When in RE-RUN we get an ORA "duplicate key" error when we hit the largest table. Originally the program WAS NOT committing after the delete, (mainly because we want to ROLLBACK later if necessary). AFTER we updated to include the COMMIT-TRANSACTION call, we still received the duplicate key error. We changed the code to only hit the other two tables WITH and WITHOUT COMMIT-TRANSACTION and the program ran successfully. We tested the program when the only table being DELETED/UPDATED was ADDL_PAY_DATA (The largest table) WITH AND WITHOUT COMMIT-TRANSACTION. We Still had the duplicate key error. We are using TEST DATA. So the only employees in the table are inserted ONLY ONCE and the DELETE Call should DELETE this record (which it does - we inserted a select statement AFTER the delete to verify no data for the employees was found). ANY IDEAS on why we're getting this error or how to fix it?? From owner-sqr-users@list.iex.net Thu Apr 26 08:15:05 2001 Date: Thu, 26 Apr 2001 09:14:21 -0400 From: Frederic Leroulley Subject: Re: Update/Insert in same program Hi Maria, Weird problem you have there. No idea of what's happening but you could drop all indexes of the record in wich you insert rows then run the program and see if yes or not you have multiple rows in it. Or send us the program so we could take a look. Good luck, Frédéric LeRoulley www.leroulley.com www.envolia.com CGI Consultant Tel SL : (514) 925-7448 Tel CGI : (514) 841-3250 # 4935 > -----Original Message----- > From: Discussion of SQR, Brio Technology's database reporting language > [mailto:SQR-USERS@list.iex.net]On Behalf Of Cadenas, Maria (MT) > Sent: April 25, 2001 19:28 > To: SQR-USERS@list.iex.net > Subject: Update/Insert in same program > > > We're doing a program that delete and inserts the same row from three > tables. The program is set to run in three modes: > > Insert > Delete > Re-Run > > If the program is in Delete Mode it only Deletes from the three tables > If the program is in Insert Mode it only Inserts from the three tables > BUT if the program is in Re-Run Mode we need it to DELETE any > existing data > for the employee in ALL three tables and INSERT the new data for the > employee in all three tables. > > We have no problem with the Insert or Delete Modes. HOWEVER, > When in RE-RUN > we get an ORA "duplicate key" error when we hit the largest table. > Originally the program WAS NOT committing after the delete, > (mainly because > we want to ROLLBACK later if necessary). AFTER we updated to include the > COMMIT-TRANSACTION call, we still received the duplicate key error. > > We changed the code to only hit the other two tables WITH and WITHOUT > COMMIT-TRANSACTION and the program ran successfully. > > We tested the program when the only table being DELETED/UPDATED was > ADDL_PAY_DATA (The largest table) WITH AND WITHOUT COMMIT-TRANSACTION. We > Still had the duplicate key error. > > We are using TEST DATA. So the only employees in the table are > inserted ONLY > ONCE and the DELETE Call should DELETE this record (which it does - we > inserted a select statement AFTER the delete to verify no data for the > employees was found). > > ANY IDEAS on why we're getting this error or how to fix it?? > From owner-sqr-users@list.iex.net Thu Apr 26 08:54:19 2001 Date: Thu, 26 Apr 2001 08:42:31 -0500 From: Karen Gunderson Subject: Re: Update/Insert in same program Maria, Any chance that you have an Oracle database trigger firing upon insert, that inserts a row into a different table? If you hadn't deleted from that table, you'd get a 'duplicate key' message. Karen Gunderson Project Manager Division of Information Technology (DOIT) University of Wisconsin-Madison 608/265-9370 -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Cadenas, Maria (MT) Sent: Wednesday, April 25, 2001 6:28 PM To: SQR-USERS@list.iex.net Subject: Update/Insert in same program We're doing a program that delete and inserts the same row from three tables. The program is set to run in three modes: Insert Delete Re-Run If the program is in Delete Mode it only Deletes from the three tables If the program is in Insert Mode it only Inserts from the three tables BUT if the program is in Re-Run Mode we need it to DELETE any existing data for the employee in ALL three tables and INSERT the new data for the employee in all three tables. We have no problem with the Insert or Delete Modes. HOWEVER, When in RE-RUN we get an ORA "duplicate key" error when we hit the largest table. Originally the program WAS NOT committing after the delete, (mainly because we want to ROLLBACK later if necessary). AFTER we updated to include the COMMIT-TRANSACTION call, we still received the duplicate key error. We changed the code to only hit the other two tables WITH and WITHOUT COMMIT-TRANSACTION and the program ran successfully. We tested the program when the only table being DELETED/UPDATED was ADDL_PAY_DATA (The largest table) WITH AND WITHOUT COMMIT-TRANSACTION. We Still had the duplicate key error. We are using TEST DATA. So the only employees in the table are inserted ONLY ONCE and the DELETE Call should DELETE this record (which it does - we inserted a select statement AFTER the delete to verify no data for the employees was found). ANY IDEAS on why we're getting this error or how to fix it?? From owner-sqr-users@list.iex.net Thu Apr 26 09:34:55 2001 Date: Thu, 26 Apr 2001 09:29:34 -0500 From: the dragon Subject: your thoughts on this code. guys, gals and uncertains, I found some logic code in an sqr program that I am working on. It seems to work, so that isn't an issue, but I have never seen the if statement used this way before.... if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company if not #SQL-Status do Upd-Tax_Data end-if end-if Psft HRMS 7.01x Oracle 7.34 SQR 4.3.4 Only look at the outside if statement. My understanding of the if statement is such that it evaluates the truth of the logical condition following it. Such as : $W4FdChgFlag = 'Y' - if the variable = Y then true, otherwise false. However, what about the first three variables in the if statement above? Else where in the program they are initialized to 0, and then changed to 1 if a condition is met. Since they are initialized, even to 0, doesn't the if statement always return a true? I am not familiar with a way to initialize variables as logical binary variables only holding a 0 or 1 as false or true. Am I missing something here? There is certainly nothing about this concept in the sqr language reference table. It would be nifty if it works, but I don't see how that would happen. clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 26 09:48:18 2001 Date: Thu, 26 Apr 2001 10:44:05 -0400 From: Rod Wright Subject: Re: your thoughts on this code. Hey Clark, This is a fairly standard practice in most languages. It goes back to the beginnings of computers. It is not exclusive to SQR. When a comparison is made, the expression evaluates to zero if the condition is false, and to non-zero (usually -1) if the condition is true. Computers look at the expression and determine that it evaluates to zero, and therefore is false. If the expression evaluates to anything other than zero, it's considered true. It's a programming trick that can make code much easier to read, depending upon the naming of variables. HTH, Rod the dragon on 04/26/2001 10:29:34 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rodney Wright/Trcb/Rouse) Subject: your thoughts on this code. guys, gals and uncertains, I found some logic code in an sqr program that I am working on. It seems to work, so that isn't an issue, but I have never seen the if statement used this way before.... if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company if not #SQL-Status do Upd-Tax_Data end-if end-if Psft HRMS 7.01x Oracle 7.34 SQR 4.3.4 Only look at the outside if statement. My understanding of the if statement is such that it evaluates the truth of the logical condition following it. Such as : $W4FdChgFlag = 'Y' - if the variable = Y then true, otherwise false. However, what about the first three variables in the if statement above? Else where in the program they are initialized to 0, and then changed to 1 if a condition is met. Since they are initialized, even to 0, doesn't the if statement always return a true? I am not familiar with a way to initialize variables as logical binary variables only holding a 0 or 1 as false or true. Am I missing something here? There is certainly nothing about this concept in the sqr language reference table. It would be nifty if it works, but I don't see how that would happen. clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 26 09:57:52 2001 Date: Thu, 26 Apr 2001 09:55:22 -0500 From: David Thompson-Hall Subject: Re: your thoughts on this code. At 10:44 AM 4/26/01 -0400, Rod Wright wrote: >Hey Clark, > >This is a fairly standard practice in most languages. It goes back to the >beginnings of computers. It is not exclusive to SQR. When a comparison is made, >the expression evaluates to zero if the condition is false, and to non-zero >(usually -1) if the condition is true. Computers look at the expression and >determine that it evaluates to zero, and therefore is false. If the expression >evaluates to anything other than zero, it's considered true. It's a programming >trick that can make code much easier to read, depending upon the naming of >variables. At the same time, I think it's important to realize that not all compilers evaluate 0 as False and 1 (or not-zero) as True. If your compiler or language docs do not specifically say this is a safe thing to do, it may be a very BAD thing to assume. (Of course, you can test the language to see if this works, but what if they change the compiler in a later version?) Since a lot of us do PeopleSoft, we might take a hint from some of their SQR code: they make two compiler #DEFINEs: #DEFINE TRUE 1 #DEFINE FALSE 0 and then when they want to check to see if "flag" variables are true or false, their code looks like Let #my_flag = {TRUE} ... If #my_flag = {FALSE} .... I think this makes for *very* readable code, and avoids any possible problems with evaluations of expressions. Sure, it may not appear necessary in SQR, but I try not to make assumptions about how the language works or will work in the future, since my code will last much longer than I will. I'm willing to do the "extra work", especially since once you start doing this Of course, even PeopleSoft doesn't always use this, but I'm not going to start in on the quality of PS SQR code, except to say that it's clear their code has been worked on by many, many people who are not following the same style or standards... As always, Your Mileage May Vary - if you don't care about the risk of missing flags or disagree there is a risk, or don't want to do the work, then write your code as you want to. Just remember that assuming if #variable will evaluate correctly in all cases is NOT always safe... DTH David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Thu Apr 26 09:41:50 2001 Date: Thu, 26 Apr 2001 10:44:56 -0400 From: Kiryl Lamakin Subject: Re: your thoughts on this code. It is a wired 'if'. I think it works as the following one: if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company) and (not #SQL-Status) do Upd-Tax_Data end-if the dragon @list.iex.net> on 04/26/2001 10:29:34 AM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Technology's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: your thoughts on this code. guys, gals and uncertains, I found some logic code in an sqr program that I am working on. It seems to work, so that isn't an issue, but I have never seen the if statement used this way before.... if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company if not #SQL-Status do Upd-Tax_Data end-if end-if Psft HRMS 7.01x Oracle 7.34 SQR 4.3.4 Only look at the outside if statement. My understanding of the if statement is such that it evaluates the truth of the logical condition following it. Such as : $W4FdChgFlag = 'Y' - if the variable = Y then true, otherwise false. However, what about the first three variables in the if statement above? Else where in the program they are initialized to 0, and then changed to 1 if a condition is met. Since they are initialized, even to 0, doesn't the if statement always return a true? I am not familiar with a way to initialize variables as logical binary variables only holding a 0 or 1 as false or true. Am I missing something here? There is certainly nothing about this concept in the sqr language reference table. It would be nifty if it works, but I don't see how that would happen. clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com --------------------------------------------------------------------------- This E-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this E-mail message immediately. --------------------------------------------------------------------------- From owner-sqr-users@list.iex.net Thu Apr 26 09:50:35 2001 Date: Thu, 26 Apr 2001 10:47:39 -0400 From: "Johnson, Dan" Subject: Re: your thoughts on this code. Dragon, I'm not sure what your question is but I'll take a stab at it. Since SQR doesn't have a Boolean type, just like C, 0(zero) is considered false and everything else is true. Therefor it is logical to say: if #WorkLocnChg do some stuff end-if instead of saying if #WorklocnChg <> 0 do some stuff end-if My guess is that you already know this and I am not reading your question correctly. What I find curious about the code example is that there seems to be an if statement nested within another if statement. If that works then that is something to think about. Dan > > >From the DRAGON Sent: Thursday, April 26, 2001 10:30 AM To: SQR-USERS@list.iex.net Subject: your thoughts on this code. guys, gals and uncertains, I found some logic code in an sqr program that I am working on. It seems to work, so that isn't an issue, but I have never seen the if statement used this way before.... if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company if not #SQL-Status do Upd-Tax_Data end-if end-if Psft HRMS 7.01x Oracle 7.34 SQR 4.3.4 Only look at the outside if statement. My understanding of the if statement is such that it evaluates the truth of the logical condition following it. Such as : $W4FdChgFlag = 'Y' - if the variable = Y then true, otherwise false. However, what about the first three variables in the if statement above? Else where in the program they are initialized to 0, and then changed to 1 if a condition is met. Since they are initialized, even to 0, doesn't the if statement always return a true? I am not familiar with a way to initialize variables as logical binary variables only holding a 0 or 1 as false or true. Am I missing something here? There is certainly nothing about this concept in the sqr language reference table. It would be nifty if it works, but I don't see how that would happen. clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 26 09:51:32 2001 Date: Thu, 26 Apr 2001 09:49:03 -0500 From: Don Mellen Subject: Re: your thoughts on this code. Clark, Numeric values are considered false if they are 0 (zero), and true if they are non-zero. HTH, ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" From owner-sqr-users@list.iex.net Thu Apr 26 10:00:46 2001 Date: Thu, 26 Apr 2001 15:59:50 +0100 From: Tim Wilkinson Subject: Re: your thoughts on this code. I might be missing the point here (in which case I apologise). However as I see it, when the variables are initialized to 0, that is the same as FALSE. When they are set to 1, that is TRUE. Therefore unless one of those three variables has been set to 1 (TRUE), they will not affect the IF statement as they will be 0 OR 0 OR 0 (FALSE OR FALSE OR FALSE) Basically a variable being 1 = TRUE, being 0 = FALSE. Hope thats what you were looking for. Tim -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: 26 April 2001 15:30 To: SQR-USERS@list.iex.net Subject: your thoughts on this code. guys, gals and uncertains, I found some logic code in an sqr program that I am working on. It seems to work, so that isn't an issue, but I have never seen the if statement used this way before.... if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company if not #SQL-Status do Upd-Tax_Data end-if end-if Psft HRMS 7.01x Oracle 7.34 SQR 4.3.4 Only look at the outside if statement. My understanding of the if statement is such that it evaluates the truth of the logical condition following it. Such as : $W4FdChgFlag = 'Y' - if the variable = Y then true, otherwise false. However, what about the first three variables in the if statement above? Else where in the program they are initialized to 0, and then changed to 1 if a condition is met. Since they are initialized, even to 0, doesn't the if statement always return a true? I am not familiar with a way to initialize variables as logical binary variables only holding a 0 or 1 as false or true. Am I missing something here? There is certainly nothing about this concept in the sqr language reference table. It would be nifty if it works, but I don't see how that would happen. clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From owner-sqr-users@list.iex.net Thu Apr 26 11:25:20 2001 Date: Thu, 26 Apr 2001 12:22:33 -0400 From: "Johnson, Dan" Subject: Re: your thoughts on this code. If someone were to create a procedural programming language that adopted the standard of 0 being false and everything else being true and then suddenly changed this in a later release it would be the height of irresponsibility. Imagine if the standards committee for the C programming language suddenly said "From now on 0 will be true and everything else would be false". Such a thing would make Y2K look like a picnic. As you say, test it first, if it works once it will work forever. If not then nothing is safe. I can't imagine anyone changing such a fundamental aspect of a language. Besides, if a language uses this standard you can save a few CPU ticks by saying: if #NotDone ..... instead of if #NotDone <> 0 Safe, efficient, readable, and timesaving what more could you want. Dan (as you can tell things are a little slow here today) > > David wrote: At the same time, I think it's important to realize that not all compilers evaluate 0 as False and 1 (or not-zero) as True. If your compiler or language docs do not specifically say this is a safe thing to do, it may be a very BAD thing to assume. (Of course, you can test the language to see if this works, but what if they change the compiler in a later version?) Since a lot of us do PeopleSoft, we might take a hint from some of their SQR code: they make two compiler #DEFINEs: #DEFINE TRUE 1 #DEFINE FALSE 0 and then when they want to check to see if "flag" variables are true or false, their code looks like Let #my_flag = {TRUE} ... If #my_flag = {FALSE} .... I think this makes for *very* readable code, and avoids any possible problems with evaluations of expressions. Sure, it may not appear necessary in SQR, but I try not to make assumptions about how the language works or will work in the future, since my code will last much longer than I will. I'm willing to do the "extra work", especially since once you start doing this Of course, even PeopleSoft doesn't always use this, but I'm not going to start in on the quality of PS SQR code, except to say that it's clear their code has been worked on by many, many people who are not following the same style or standards... As always, Your Mileage May Vary - if you don't care about the risk of missing flags or disagree there is a risk, or don't want to do the work, then write your code as you want to. Just remember that assuming if #variable will evaluate correctly in all cases is NOT always safe... DTH David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Thu Apr 26 11:34:09 2001 Date: Thu, 26 Apr 2001 11:32:00 -0500 From: David Thompson-Hall Subject: Re: your thoughts on this code. At 12:22 PM 4/26/01 -0400, Dan Johnson wrote: > If someone were to create a procedural programming language that >adopted the standard of 0 being false and everything else being true and >then suddenly changed this in a later release it would be the height of >irresponsibility. Imagine if the standards committee for the C programming >language suddenly said "From now on 0 will be true and everything else would >be false". Such a thing would make Y2K look like a picnic. As you say, test >it first, if it works once it will work forever. If not then nothing is >safe. I can't imagine anyone changing such a fundamental aspect of a >language. Agreed. I really misstated my point, I guess. My concern is that if the language does not tell you that a single number will evaluate to True or False reliably, then who knows what the compiler is doing. Sure, you can test it now, but how do you know it will always be reliable, *if the language spec doesn't tell you so*? And my real point is, I think, that you should NOT assume you can just use this trick in any language. I've run across at least one language (VB, if I remember correctly - or was it PL/SQL?) where TRUE is 1 and False is -1, and I'm sure there are others. >Besides, if a language uses this standard you can save a few CPU >ticks by saying: > >if #NotDone ..... > >instead of > >if #NotDone <> 0 > >Safe, efficient, readable, and timesaving what more could you want. Wow, if you're so worried about processing time that the CPU cycles for that make a difference, then yeah, I guess it's a useful trick - provided the compiler turns it into less cycles, of course. (I don't know much about writing compilers, so I don't know if this would ever not happen...) As I said before, you can pick your own threshold; but we should be careful to say this trick works in SQR, and maybe lots of other places, but don't assume it's safe everywhere. DTH (kind of a slow day for me too) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Thu Apr 26 12:30:25 2001 Date: Thu, 26 Apr 2001 10:21:41 -0700 From: Michael Chandler Subject: Re: your thoughts on this code. Just thought everyone might like to know that the SQR Language Reference Guide states the following for an IF statement: "The expression is evaluated as a logical TRUE or FALSE. A value or expression that evaluates to non-zero is TRUE." At 11:32 AM 4/26/01 -0500, you wrote: >At 12:22 PM 4/26/01 -0400, Dan Johnson wrote: > > If someone were to create a procedural programming language that > >adopted the standard of 0 being false and everything else being true and > >then suddenly changed this in a later release it would be the height of > >irresponsibility. Imagine if the standards committee for the C programming > >language suddenly said "From now on 0 will be true and everything else would > >be false". Such a thing would make Y2K look like a picnic. As you say, test > >it first, if it works once it will work forever. If not then nothing is > >safe. I can't imagine anyone changing such a fundamental aspect of a > >language. > > > >Agreed. I really misstated my point, I guess. > >My concern is that if the language does not tell you that a single number >will evaluate to True or False reliably, then who knows what the compiler >is doing. Sure, you can test it now, but how do you know it will always be >reliable, *if the language spec doesn't tell you so*? > >And my real point is, I think, that you should NOT assume you can just use >this trick in any language. I've run across at least one language (VB, if >I remember correctly - or was it PL/SQL?) where TRUE is 1 and False is -1, >and I'm sure there are others. > > > >Besides, if a language uses this standard you can save a few CPU > >ticks by saying: > > > >if #NotDone ..... > > > >instead of > > > >if #NotDone <> 0 > > > >Safe, efficient, readable, and timesaving what more could you want. > >Wow, if you're so worried about processing time that the CPU cycles for >that make a difference, then yeah, I guess it's a useful trick - provided >the compiler turns it into less cycles, of course. (I don't know much >about writing compilers, so I don't know if this would ever not happen...) > >As I said before, you can pick your own threshold; but we should be careful >to say this trick works in SQR, and maybe lots of other places, but don't >assume it's safe everywhere. > > > >DTH >(kind of a slow day for me too) >David Thompson-Hall 1210 W. Dayton St. >Programmer/Analyst Madison, WI 53706 >Apps Tech/Business Operations Apps 608/265-9571 >Div of Info Technology (DoIT) >University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Thu Apr 26 12:34:47 2001 Date: Thu, 26 Apr 2001 12:25:01 -0500 From: David Thompson-Hall Subject: Re: your thoughts on this code. At 10:21 AM 4/26/01 -0700, Michael Chandler wrote: >Just thought everyone might like to know that the SQR Language Reference >Guide states the following for an IF statement: > >"The expression is evaluated as a logical TRUE or FALSE. A value or >expression that evaluates to non-zero is TRUE." Oops. Never mind.... (BTW, what version of the Language Ref is that from?) DTH (boy do *I* feel stupid) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Thu Apr 26 12:34:29 2001 Date: Thu, 26 Apr 2001 13:24:46 -0400 From: "Jamadagni, Rajendra" Subject: Re: your thoughts on this code. Mike, That is true, but I think it is a very poor programming practice, it doesn't make code readable IMO. HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art ! -----Original Message----- From: Michael Chandler [mailto:mchandle@QUALCOMM.COM] Sent: Thursday, April 26, 2001 1:22 PM To: SQR-USERS@list.iex.net Subject: Re: your thoughts on this code. Just thought everyone might like to know that the SQR Language Reference Guide states the following for an IF statement: "The expression is evaluated as a logical TRUE or FALSE. A value or expression that evaluates to non-zero is TRUE." ********************************************************************* This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. ********************************************************************* From owner-sqr-users@list.iex.net Thu Apr 26 15:36:56 2001 Date: Thu, 26 Apr 2001 15:35:01 -0500 From: David Thompson-Hall Subject: Re: your thoughts on this code. At 01:24 PM 4/26/01 -0400, Rajendra Jamadagni wrote: >...I think it is a very poor programming practice, it doesn't >make code readable IMO. Yeah, yeah, what he said. That's what I was talking about, yeah... DTH (slinking back to my hole now...) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Thu Apr 26 21:37:21 2001 Date: Fri, 27 Apr 2001 10:47:58 +0800 From: Karver Subject: Re: your thoughts on this code. My 2 cents... 1. David is right that 'true' can be represented by different values in different languages. I have long used this practice as quoted by Dan to improve readability but have found in different languages that true could be 1, -1, anything other than 0, and in one case (can't remember what it was though) true was 0 and false was 1 (or -1...not sure). Michael's quote from the manual seems to have clarified what the situation is here though. 2. One way to use this method to improve readability as suggested by Dan, yet address the concerns expressed by David et al, is to make sure these variables are assigned values in a logical manner ('logical' in the computing sense). eg "let #Overdue=($SomeDate>$AnotherDate)". This way it doesn't matter what value gets assigned (or if it changes in a later release). 3. On a side note, Dan probably just made up an example for his posting so I'm not hammering him, but if you're going to use this method I wouldn't recommend naming a variable something like #NotDone because you can end up with double negatives in your IF tests, destroying the readability advantage. Better to name it something like #Done (and reverse the context of the assignment obviously). Wayne Ivory -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of David Thompson-Hall Sent: Friday, 27 April 2001 4:35 AM To: SQR-USERS@list.iex.net Subject: Re: your thoughts on this code. At 01:24 PM 4/26/01 -0400, Rajendra Jamadagni wrote: >...I think it is a very poor programming practice, it doesn't >make code readable IMO. Yeah, yeah, what he said. That's what I was talking about, yeah... DTH (slinking back to my hole now...) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Fri Apr 27 08:15:18 2001 Date: Fri, 27 Apr 2001 08:11:02 -0500 From: David Thompson-Hall Subject: Re: your thoughts on this code. At 10:47 AM 4/27/01 +0800, Karver wrote: >2. One way to use this method to improve readability as suggested by Dan, >yet address the concerns expressed by David et al, is to make sure these >variables are assigned values in a logical manner ('logical' in the >computing sense). eg "let #Overdue=($SomeDate>$AnotherDate)". This way it >doesn't matter what value gets assigned (or if it changes in a later >release). I agree that this is a nice trick for "making sure the value is assigned right", but to me it is even less readable than 'if(#flag)'... Maybe my problem is that I started in BASIC, so to me programs should always be readable sort of like English; for those who started in C, I'm sure your 'instincts' are quite different than mine... DTH David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Fri Apr 27 08:40:21 2001 Date: Fri, 27 Apr 2001 06:40:18 -0700 From: Stan Quick Subject: Re: your thoughts on this code. Another technique for readability I haven't seen addressed yet is the use of #define. Example #1 #define FALSE 0 #define TRUE not(FALSE) ... if #var = {FALSE} etc... Example #2 #define WorkLocnChg #WorkLocnChg = 0 #define HomeLocnChg #HomeLocnChg = 0 #define W4FdChanged $W4FdChgFlag = 'Y' . . . if {WorkLocnChg} or {HomeLocnChg} or {W4FdChanged} etc. Stan -----Original Message----- From: David Thompson-Hall [mailto:david.thompson-hall@DOIT.WISC.EDU] Sent: Friday, April 27, 2001 9:11 AM To: SQR-USERS@list.iex.net Subject: Re: your thoughts on this code. At 10:47 AM 4/27/01 +0800, Karver wrote: >2. One way to use this method to improve readability as suggested by Dan, >yet address the concerns expressed by David et al, is to make sure these >variables are assigned values in a logical manner ('logical' in the >computing sense). eg "let #Overdue=($SomeDate>$AnotherDate)". This way it >doesn't matter what value gets assigned (or if it changes in a later >release). I agree that this is a nice trick for "making sure the value is assigned right", but to me it is even less readable than 'if(#flag)'... Maybe my problem is that I started in BASIC, so to me programs should always be readable sort of like English; for those who started in C, I'm sure your 'instincts' are quite different than mine... DTH David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Fri Apr 27 09:08:57 2001 Date: Fri, 27 Apr 2001 10:05:47 -0400 From: Denise White Subject: Re: your thoughts on this code. I use this type of flag all the time (numeric variable set to 0 or 1). I completely agree with Wayne that, if done correctly, the name of the flag makes it self-documenting. For example, I will frequently use a flag called #found (or even more specific, like #dental_plan_found), or #selected. I have never had any problems with this, or found that it made the code more confusing. I have noticed that most programmers' way of handling flags or switches is to use an alpha variable and set it to 'Y' or 'N', but for some reason I think that the numeric flag, and not having to use '=', is more efficient. I certainly do not agree with the statement that "it is a very poor programming practice". On the contrary, I think it is good programming practice. I didn't quite understand the poster who was surprised that you could nest 'if' statements - this is common practice! What did confuse me a bit (and I'm surprised that noone mentioned it) was the missing end parenthesis: if (#WorkLocnChg or #HomeLocnChg or #SchlDistChg or $W4FdChgFlag = 'Y' or $W4StChgFlag = 'Y' or $OldCompany != $Company if not #SQL-Status do Upd-Tax_Data end-if end-if Seems to me there should be a ')' at the end of the line before the second 'if' . . . Denise White Sr. Programmer/Analyst Vicor ------------------------------ Date: Fri, 27 Apr 2001 10:47:58 +0800 From: Karver Subject: Re: your thoughts on this code. My 2 cents... 1. David is right that 'true' can be represented by different values in different languages. I have long used this practice as quoted by Dan to improve readability but have found in different languages that true could be 1, -1, anything other than 0, and in one case (can't remember what it was though) true was 0 and false was 1 (or -1...not sure). Michael's quote from the manual seems to have clarified what the situation is here though. 2. One way to use this method to improve readability as suggested by Dan, yet address the concerns expressed by David et al, is to make sure these variables are assigned values in a logical manner ('logical' in the computing sense). eg "let #Overdue=($SomeDate>$AnotherDate)". This way it doesn't matter what value gets assigned (or if it changes in a later release). 3. On a side note, Dan probably just made up an example for his posting so I'm not hammering him, but if you're going to use this method I wouldn't recommend naming a variable something like #NotDone because you can end up with double negatives in your IF tests, destroying the readability advantage. Better to name it something like #Done (and reverse the context of the assignment obviously). Wayne Ivory -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of David Thompson-Hall Sent: Friday, 27 April 2001 4:35 AM To: SQR-USERS@list.iex.net Subject: Re: your thoughts on this code. At 01:24 PM 4/26/01 -0400, Rajendra Jamadagni wrote: >...I think it is a very poor programming practice, it doesn't >make code readable IMO. Yeah, yeah, what he said. That's what I was talking about, yeah... DTH (slinking back to my hole now...) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Business Operations Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu ---------------------