24
Sun, Nov
1 New Articles

Systems Administration and Operations Analysis: Add Search Capability to Your AS/400-based Web Site!

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

If your company is anything like the rest of corporate America, it’s probably trying to find a way to get on the Internet bandwagon. Perhaps your company handed down the directive that you need to get your applications Web-enabled, and you’ve been scrambling to find a way to do that. Or maybe you’ve been more proactive and have dedicated a part of your staff to design a Web site with all the bells and whistles. Whichever the case may be, if you’re like the rest of us, you’ve had to face this new business direction and all the inherent problems it brings.

Are You Missing Something?

One area you may not have given much thought to yet is allowing your customers (users) the ability to search your AS/400-based Web site. By this time, pretty much everyone has used one search engine or another on the Internet. Whether you were searching for information on wooden wagon wheel usage in the Ukraine or looking for superhero items for sale on eBay, you’ve typed in your request and let some nameless search engine return your search results. Wouldn’t this type of capability be useful for your Web site, too? I’ll give you an example.

Imagine that your company sells 37 different services for humor-impaired CEOs. All of your information is stored on your AS/400, and you’ve created a really nifty Web site crammed full of dazzling HTML forms with animation, music, and videos. Everything anyone would need is there. The only problem is, the customer has to know the exact path or navigational links to follow to get to that one piece of information. This will never work.

When customers log on to your Web site in search of a seminar on, say, “How to Make Your CEO Smile Without Breaking His Face,” you don’t want them to have to sift through page after page of HTML hyperlinks until they eventually find the page containing the seminar information. What you’d rather do is have them enter their search criteria (“face”; “smile”; “break”) on the first page of your site and then give them a list, with

hyperlinks, that will let them jump directly to the page of information they’re interested in. This is the kind of service your customers have come to expect from the Internet.

To Be or Not to Be

Fortunately, you are in luck. IBM introduced a new product with V4R2 of OS/400 called NetQuestion. Not to be confused with Net.Data, NetQuestion is a free licensed program from IBM that you install on your AS/400. This product will allow you to create and store indexes to your AS/400-based HTML documents on your AS/400. The index is then used by the NetQuestion search engine to return a list of matches based on the user’s search request. NetQuestion uses the Internet Secure Connections Server and the HTTP configuration on your AS/400 to allow you to maintain a secure, viable site for your AS/400 users.

One of the nicest things about NetQuestion is its price; it’s free! You can download a copy of NetQuestion by pointing your browser to www.as400.ibm.com/tstudio/workshop/tiptools/ toolindx.htm and following the links. If you are at an earlier release than V4R2, not to worry. NetQuestion will also run on V4R1 and V3R7. After you’ve downloaded the file and unzipped it, move it to your AS/400 and install it. NetQuestion is a licensed program, and it will need to be installed using the Restore Licensed Program (RSTLICPGM) command. NetQuestion runs under Qshell on the AS/400, so if you’re not familiar with this environment, it’d probably be a good idea to read up on it in the IBM manuals or in any of the great Qshell articles Midrange Computing has published. For example, look at “Qshell and Java” in the April/May 1999 issue of AS/400 NetJava Expert or “AS/400 Finally Gets a UNIX Face” in the February 1999 issue of Midrange Computing.

Using NetQuestion

As its input, NetQuestion uses *.txt files stored on the AS/400 in the Integrated File System, which contain a list of search words. It’s up to you to manually build and maintain these lists, along with the appropriate links. Although the interface for NetQuestion is fairly kludgy at this point, don’t despair. It’s still a good alternative for building a native, full-text search engine on your AS/400, and it’s flexible, too.

NetQuestion supports both simple and complex searches. For example, you might display the simple search form first to allow the user to search for, say, “Aardvark.” If users find too many matches on your site containing the word Aardvark (which begs the question, “What are you selling anyway?!?”), they can jump over into the complex search engine form and enter a new request (e.g., “Aardvark + Stuffed + Toy”).

Each default NetQuestion form is fully customizable. That means you can add your own company logo, text, links, and so forth so that the HTML form your customers see is unique to your little piece of the Internet. While it’s true that a certain amount of overhead is involved in setting up and configuring all the pieces to make NetQuestion work, the payoff is worth it. Once your customers begin to see that they can easily search your AS/400- based Web site for information, they’ll start using it more often. The more often they use it, the more they’ll come to depend on it. That translates into more business for you, and after all, isn’t that what it’s all about?

SHANNON ODONNELL
Shannon O'Donnell has held a variety of positions, most of them as a consultant, in dozens of industries. This breadth of experience gives him insight into multiple aspects of how the AS/400 is used in the real world. Shannon continues to work as a consultant. He is an IBM Certified Professional--AS/400 RPG Programmer and the author of an industry-leading certification test for RPG IV programmers available from ReviewNet.net.
 
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: