26
Thu, Dec
0 New Articles

Tech Tip: Create Excel Spreadsheets with IBM i Data

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

With this free app, you'll be generating reports in minutes.

 

MS Excel is used in the business world for an unlimited number of reasons—basic accounting, product sales tracking, executive financials, and customer data to name a few. Having a good system to access the data— providing appropriate filters—allows users to limit data returned to what's applicable for any particular report.

 

There are tools available to search, filter, and automatically download a report into Excel from a Web-based application. These tools help to manage data sets that are too large. Examples of this might be finding sales for a specific date range or reporting a set of customers in a limited location. While some organizations have adopted change toward Web solutions to manage their data reporting needs, employees are quite familiar with the MS Excel format and features, thus having the "if it's not broken, don't fix it" attitude. Now companies can have the best of both of these worlds—a Web interface with automatic MS Excel reports.

 

WOW Community Edition software (a free product) from PlanetJ Corporation allows immediate data filtering and sorting solutions. If you're unfamiliar with WOW CE, I recommend you review this video to get the key background information on how WOW CE works.

Key Components

 

IBM i DB2

Provides the source data to be used for Excel spreadsheets, applications, and operations

 

WOW CE 7.0

Used to create applications and drive filtered Excel spreadsheet generation

Free from PlanetJ

Microsoft Excel or compatible .xls reader

Used to read the spreadsheet once generated.

OpenOffice Calc and Google Docs XLS readers are free options if necessary

 

The following example demonstrates an application that queries sample employee records. This query will include the option to download the returned data into an Excel spreadsheet. There's an unlimited number of other use cases that would use the same general process for establishing an Excel download.

Generating an Excel Spreadsheet from IBM i Databases

WOW CE makes it extremely easy to query any source "employee" data. Assume we have an employee file in library PJDATA called EMPLOYEE, as shown here.

 

081712PlanetJimg1 

Figure 1: Here's a sample employee file.

 

To produce a Web application with WOW, we simply create a connection to our IBM i, create an application, and then create an SQL operation within the application to query the Employee data.

 

081712PlanetJimg2 

Figure 2: To create a connection, simply select "AS/400 Remote" as the driver and then specify the System IP, User ID, and Password for the IBM i.

 

081712PlanetJimg3 

Figure 3: Create a new application (select the connection created in Figure 2).

 

081712PlanetJimg4 

Figure 4: Create an SQL operation to read the employee data. The "where lastname like ?" will result in dynamic prompting, allowing the user to enter a last name.

 

081712PlanetJfig5 

Figure 5: Executing the application results in this end user application.

 

WOW ships with a default set of properties for each operation; these properties include export to Excel (circled in the image above). When the circled icon is clicked, you will be prompted to download the PJDATA.EMPLOYEE.xls file (the file is named for the SCHEMA and TABLE we are querying in the operation). This file will contain all the records returned by our previous query, as shown below:

 

081712PlanetJfig6 

Figure 6: These are the records returned by the query.

 

Notice that the records in the above screenshot, taken from the .xls file, correspond with the data returned in the application.

 

WOW also has builder properties (which can be set in the Operation Properties section of the operation) that determine how the Excel data is returned. These property groups can be set to provide either internal database names or the external, more "user-friendly" names. The default is INTERNAL. The CSV{} property group can be found in the WOW Builders Guide here

Try It Yourself

1. Run the operation at this link.

2. Click on the icon circled in Figure 5 to begin the download to Excel.

 

Now, users have the ability to manipulate the data any way they would like within Excel.

Fast, Easy Excel Reports…FREE!

Whether creating sales reports, monitoring ROI, or managing customer files, many types of Excel export operations can be created in less than 15 minutes. WOW allows you to optimize your reports by including filtering and sorting of data from your IBM i database (or any other database).

 

Download the Community Edition of WOW for free.

 

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: