19
Fri, Apr
5 New Articles

Case Study: MWI Veterinary Supply Company vanquishes pricing woes with ASNA's Visual RPG for .NET

Case Studies
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
MWI Veterinary Supply Company runs on the simplest, but most effective, of business tenets: To do whatever it takes to respond to customer needs. And, as a business with customers nationwide buying animal health care products for nearly 30 thirty years, there is clearly a lot to do. One of the ways MWI is able to keep customers happy is with its use of information technology. An early champion of data processing and information technology, MWI has been using some form of data processing/IT management for more than 23 years. MWI's IT team recently used ASNA's Visual RPG to further improve customer service by more tightly integrating iSeries-centric customer pricing information with the company's Windows Web server.

How the Web was won

MWI has used an iSeries as its line-of-business database server for a long time. Over the last couple of years, Kent L. Berggren, MWI's Internet Developer Manager, has built several Web applications for MWI. These web applications use load-balanced Microsoft Windows Web servers with Microsoft SQL Server as the data server. For these applications, all MWI's data is stored on the iSeries and then transferred nightly (using SQL Server's Data Transformation Service) from the iSeries to SQL Server. COM objects, written with Visual Basic, render the data to the Web pages. MWI recently upgraded their iSeries sales software. With this upgrade came a new and complex pricing scheme that enables MWI to maintain customer-specific pricing. Instead of duplicating the pricing portion of the sales software in the Web applications, MWI sought to access the data directly on the iSeries (thereby eliminating the nightly DTS step required to make the pricing info available). Berggren tried several solutions using ODBC and JDBC connections to the iSeries. The connections were sluggish and the jobs on the iSeries were difficult to manage. In a world where speed on the Internet is everything, these approaches were unacceptable. After disappointingly slow pricing fetches via ODBC and JDBC, ASNA's Visual RPG (AVR) came to Berggren's attention. MWI wasn't necessarily looking for an RPG solution to their problem, but AVR's siren call of building 100% managed .NET objects with a fast and reliable connection to the iSeries was irresistible. With VB.NET experience under his belt, an RPG programmer to help with the occasional RPG issue, and ASNA's tech support at the ready, Berggren rolled up his sleeves to put AVR through its paces. "I'm not an RPG programmer, " says Berggren, "but I quickly understood the underlying concepts of ASNA's AVR for .NET. AVR's enhanced RPG syntax was intuitive to me. I was comfortable with the language in just a couple of days."

Leaving iSeries programming logic intact

One of AVR's flagship components is DataGate, AVR's server component that runs on the ISERIES. DataGate provided Berggren with two important things: fast, record-level access to iSeries data and the ability to call OS/400 program objects. MWI had several OS/400 program objects that provided the pricing information their Web app need and the ability to call these objects from a Web page was key for Berggren. MWI's pricing is very complex with multiple level of decisions taking place before pricing is determined. Replicating the logic in another language wasn't an option for MWI."Our pricing logic is available with simple program calls on the iSeries. Our pricing matrix is powerful and quite complex: Its logic is key to us correctly providing pricing to our customers. With AVR for .NET, calling our programs on the iSeries was a simple matter of using CALL/PARM in RPG. For a VB programmer, I was feeling good pretty quickly about my new-found RPG programming skills," relates Berggren. "In literally two days, I had gone from installing AVR for .NET to getting my first program up and running. I didn't know RPG initially but once I familiarized myself with its syntax, and made a few calls to ASNA's technical support, moving from VB.NET and C# to AVR for .NET was actually fairly easy." In two days, Berggren has accomplished his initial goal and iSeries-hosted pricing module could be effectively call, to fetch either one price, or a group of them, quickly and effectively.

The icing on the cake

At this point in the project, AVR had let Berggren do exactly what he set out to do. MWI's iSeries-based pricing was now available through MWI's Web site. The solution was scalable, performed well, and was secure. It was, in short all that Berggren wanted. But, then, another thought occurred to him.He explains, "Our business is truly a 24x7 operation. At any given moment we have customers around the country contacting our Web site and doing business with us. Our Web site has to be operational all of the time. " Load balanced multiple Web servers take care of the times when one of the Windows Web servers needs to come down for maintenance or upgrades. The iSeries platform was more troublesome. Not because it exhibited any unreliability, but because, even when it's down briefly for maintenance or upgrades, product pricing on MWI's Web site is not available. Berggren set his sights on using AVR to solve this problem.Because AVR is, at its core, an RPG compiler, Berggren was able to use ASNA's Importa product to import his existing iSeries RPG programs into AVR. Once imported, and with minimal tweaks, these RPG programs were compiled to run on the Windows server. Explains Berggren, "With this system in place, prior to performing a Web-based pricing request we check the status of the iSeries connection. If the iSeries is down for maintenance, our Web app automatically gets pricing info from our Windows 2000 server using the Windows-hosted AVR for .NET pricing module. With our new pricing system in place, we can make a pricing change on the iSeries and instantly the prices are reflected company-wide on all platforms. This eliminates the time-consuming and error-prone steps we used to have to do to implement and test the same pricing change on multiple servers. The system gains us many hours a month of unnecessary maintenance and I'm sure, over time, we'll be able to measure increased customer satisfaction. "

Just the beginning

Berggren is very happy with his decision to use AVR to upgrade MWI's pricing system. So happy, in fact, that he's going to further use AVR for other purposes. MWI has both VB and RPG programmers, and Berggren sees AVR as just the application development environment to bring the two camps together. Says Berggren, "Some of us are going to attend some of ASNA's AVR training classes so that we can better learn how to exploit the product for our purposes. At MWI we just scratched the surface as to all the problems AVR can solve for us. "Roger Pence is ASNA's education director. Prior to joining ASNA in 2000, Roger worked for many years as a journalist, speaker, and technical editor in the iSeries community.
ROGER PENCE

Roger Pence is ASNA's Product Evangelist. Roger has been in the IBM i midrange community for so long that Elvis was alive when he started. He has been with ASNA since 2000. Prior to joining ASNA, Roger was a technical editor for NEWS/400 and the author of the 400/Group's AS/400 and Windows newsletter.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

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: