Archive for the ‘Algorithms’ Category.

« Previous Entries

Date Arithmetic Breaks the Laws Of Arithmetic

September 30, 2012, 6:00 pm

One of our readers, John, recently posted a question on the SQR Dates blog entry:

“I need to subtract from date in the format years, months, days. For example, I want to subtract 5 years, 2 months and 3 days from the current date.  How can this be done in SQR?”
Continue reading ‘Date Arithmetic Breaks the Laws Of Arithmetic’ »

Category: Algorithms, Business, Commands  |  Comment

Rounding Error

March 7, 2010, 6:00 pm

Some people use the term “rounding error” to indicate that an answer is right enough, although not perfectly right.  Those people think “accurate” and “precise” are two different concepts.  They may be experimental scientists or programmers, but they aren’t working in Accounting.  Accountants cannot and should not leave journal entries alone with rounding errors.
Continue reading ‘Rounding Error’ »

Category: Algorithms  |  3 Comments

The Rewrite And The Bug Fix

February 21, 2010, 6:00 pm

Last week I worked on two SQR program bugs.  I rewrote the first one from scratch.  I wanted to rewrite the second one but didn’t.  Here is why.
Continue reading ‘The Rewrite And The Bug Fix’ »

Category: Algorithms  |  2 Comments

Dynamic Views in Application Designer

February 7, 2010, 6:00 pm

Views are a useful feature of SQL databases, letting us create virtual tables based on SQL select statements.  The Peoplesoft Application Designer also lets us create dynamic views, which we may use within the page processor.

Continue reading ‘Dynamic Views in Application Designer’ »

Category: Algorithms, Application Designer  |  Comment

Evaluate Two Values At Once In SQR

January 3, 2010, 6:00 pm

Last year I wrote about the similarity and superiority of the SQR evaluate command compared to the C or Java switch command in SQR Evaluate Versus C/Java Switch, part 1 and part 2. Here is another way to extend evaluate functionality.
Continue reading ‘Evaluate Two Values At Once In SQR’ »

Category: Algorithms, Commands, Practices  |  Comment

How To Write Spreadsheets From SQR

December 6, 2009, 6:29 pm

SQR and the Peoplesoft Process Scheduler work together to allow users to choose output format. The favorites in my organization are document (PDF) and spreadsheet (XLS). I mentioned this in 4 SQR Resolutions and I’ve had three readers ask me to elaborate. For this blog, that’s a tsunami of feedback.
Continue reading ‘How To Write Spreadsheets From SQR’ »

Category: Algorithms  |  Comment

SQR Functions

October 11, 2009, 6:00 pm

The SQR language has several families of built-in functions. They range from minor conveniences to potential life savers. There are some surprising inclusions and surprising omissions. I discuss some of the functions I wish we had in An SQR Wish List.

Continue reading ‘SQR Functions’ »

Category: Algorithms, Commands  |  4 Comments

Reporting Changes In Peoplesoft With SQR, Part 2

September 13, 2009, 6:00 pm

Last week, we considered change reporting based on the effective dates and action dates of PS_JOB. Other Peoplesoft tables track history differently. We need other approaches to report those changes.
Continue reading ‘Reporting Changes In Peoplesoft With SQR, Part 2’ »

Category: Algorithms, Peoplesoft Specific  |  4 Comments

Reporting Changes In Peoplesoft With SQR, Part 1

September 6, 2009, 6:00 pm

Most of my report and interface programs output snapshots of the database. Reports and interfaces about how the data has changed are more challenging. The effective date model of many Peoplesoft tables suggest that we can easily extract the history of data, but the difference between effective dates and action dates, and the availability of correction mode complicate the issue.
Continue reading ‘Reporting Changes In Peoplesoft With SQR, Part 1’ »

Category: Algorithms, Peoplesoft Specific  |  3 Comments

Table Driven SQR

August 23, 2009, 6:00 pm

Table-Driven programming is a technique that can make a program more easy to write or less easy to write, more clear or less clear, more maintainable or less maintainable.  It can improve a program when we use it appropriately.
Continue reading ‘Table Driven SQR’ »

Category: Algorithms  |  7 Comments
« Previous Entries
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.