Home > AS/400 Tips > iSeries administrator tips > Modern System i reports using Client Access
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Modern System i reports using Client Access


Andrew Borts, Contributor
02.27.2009
Rating: -4.27- (out of 5)


iSeries news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



Andrew Borts

In the old days of the AS/400, when we sent out reports we spent hours formatting, sorting and moving columns so users would be happy with their results. In today's computer-savvy world, that same report is just as easily translated into a spreadsheet that users can format. Why should you be forced to re-sort a report when they can select the column of their choice, re-sort, and two clicks later the report is now immediately sorted properly to the user's liking?

Several methods of delivering this to the users is available without much change from your current environment. Starting within the green-screen: CPYTOIMPF (copy to import file). When using this command, "allow null" needs to be defined properly in the file to make sure that the output is satisfactory.


Click on image for larger version

Another process to get this report into a spreadsheet is to open this new file. Once there, you have a spreadsheet, because comma delimited files are easily brought into Excel, or other programs.

The next method import uses Client Access "transfer data from iSeries" (Warning: This command is habit forming!). You can use any SQL selection process to create a spreadsheet within Excel. You do this by selecting the following: Step 1: Select "transfer data from iSeries" from the "Data" Excel program.


Click on image for larger version

Note: This process cannot be able to be used with multiple instances of Excel open at the same time.

Step 2: Create New, then click "Ok." If you have saved previous transfers you can browse and select them here.

Step 3: Select the server you are going to use for the transfer from the drop-down list, or you can type the address. Then click "Next."

Step 4: Type the library and file name of the file you'd like to see in Excel then click "Next."

Step 5: Optional -- Click "Data Options" if you'd like to change the selection order (e.g., what to select, add totals, etc.)

For anyone familiar with SQL, this is familiar territory. In this example, I'm asking to return records with the Field "VALUE = '200'". Use single quotes when indicating an alphanumeric field.

Clicking on "Details" button, you will see the following screen with your fields from your file displayed.

This will help you build your query quickly if you're not familiar with the field names. Click on "Where" to build your where clause. Click "Select" to select the fields you want to see on the report. Click "Order By" to see what fields you can sort the file by. Once completed, click "Next". If you'd like to save the selection for quicker recall in the future, type that file name (no extension) in the space provided for "File Name"

Click "Finish" to retrieve the data, and/or put a file name to recall this transfer at a later time.

Once the spreadsheet is created, your users can sort the way they want, move columns around, or simplify the column headings. There's also additional reporting tools inside of Excel that can be utilized to total columns when the data in a column changes.

Keep in mind, this isn't automation! For automated reports to be sent, you're going to need to turn to an external software package, such as GoAnywhere by Linoma Software that e-mails a transferred file, or another software package such as Sequel by Help/Systems that creates a detailed SQL statement, and e-mails the results to someone using one command and can be scheduled daily using the Job Scheduler or third party scheduling tools for the i5/OS platform.

No matter what the method, your reports will take on a life on their own as raw data for the users to massage and do what they need to for their use.

ABOUT THE AUTHOR: Andrew Borts is webmaster at United Auto Insurance Group in North Miami, Fla. He is a frequent speaker at COMMON and is past president of The Southern National Users Group, an iSeries-AS/400 user group based in Deerfield Beach, Fla.

Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
iSeries Access (Client Access)
How to print RPG output using iSeries Access
Automate Client Access to find files on Windows scheduler
Saving multiple sessions on IBM iSeries Client Access when using Vista
Running a job on the iSeries after it has been transferred to a PC
SQL7008 error in iSeries Access and journals
Converting and transferring AS/400 packed decimal fields to ASCII systems
Copying the spool file stream to IFS
How to: Transfer unlimited data to Excel from AS/400
The iSeries and MS Office make good partners
Microsoft computing: Integrating the iSeries and Microsoft Office

iSeries Applications
Tips for installing Lotus Domino server on a System i partition
Documenting nested program structures on the AS/400
System i no longer the stepchild of IBM's world
Storing XML data in a CLOB field
IBM System i gets VoIP via Nortel
Top 10 System i white papers
Fast Guide to System i/iSeries book excerpts
Top System i admin tips for 2006
System i software wrap
Red Wing finds that Intentia-Lawson merger fits just right
iSeries Applications Research

iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups
Database drivers on the i: MySQL vs. IBM Toolbox

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts