Help/Systems - System I Automated Operation & Business IntelligenceRobots
Google Search

Help/Systems www

SEQUEL Q&A

I have created a connection to a remote database. How do I connect to it and use the tables?
The way to do this is to create a new view in SEQUEL ViewPoint. On the design menu, select File > Properties. Use the database drop-down on the View tab to select the remote database. Then, select files and fields, creating a view as you normally would.

How can I calculate the first and last days of the current month?
For the first day of the month use the following calculation:

(CURRENT DATE - DAY

(CURRENT DATE) DAYS) + 1 DAY

For the last day of the month, use:

CURRENT DATE + 1 MONTH - DAY (CURRENT DATE + 1 MONTH) DAYS

How can I remove non-alpha characters from a string?
This requires using two functions. Use TRANSLATE to convert non-alpha characters to blanks, and use STRIPX to remove the blanks from the string.

Let’s look at building this calculation step by step. For example, if field X has a value of a!b@c#d$e, you can use TRANSLATE to replace the non-alpha characters with blanks:

TRANSLATE(X,” “,”!@#$”)

The result is a b c d e.

By adding STRIPX, you can remove multiple occurrences of a character from a string. In this case, you want STRIPX to remove the blanks created by the TRANSLATE function. The final calculation would be:

STRIPX(TRANSLATE(X,” “,”!@#$”),” “)

The final result is abcde.

Comments are closed.

Help/Systems 6533 Flying Cloud Drive,
Suite 200
Eden Prairie, MN 55344
Ph. (952) 933-0609
Fx. (952) 933-8153
Contact information
Map/Driving Directions
Privacy Policy

Free Email Sign-Up

To get the latest operations automation and business intelligence news, sign up for Robot Direct by entering your e-mail address. We'll let you know about site updates or breaking news about twice a month!

Email Marketing Email:(required)


Please select default option:
HTML Version
Text-Only Version
!
Try our software FREE for 30 days!