<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AS400 Tutorials &#187; AS400</title>
	<atom:link href="http://www.as400tutorials.com/tag/as400/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as400tutorials.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 22:44:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SQL Workaround For AS/400 Multi-Member Files</title>
		<link>http://www.as400tutorials.com/as400-multi-member-file-sql-workaround/</link>
		<comments>http://www.as400tutorials.com/as400-multi-member-file-sql-workaround/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 17:36:24 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[IBM i]]></category>
		<category><![CDATA[iSeries]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=218</guid>
		<description><![CDATA[One thing I really dislike about the As/400, iSeries and IBM database system is the ability, or feature if you will, of being able to create multi-member data files. Multi-member files allow you to essentially create a database file with the same layout and structure but with a different &#8220;member&#8221; still a apart of the file [...]]]></description>
			<content:encoded><![CDATA[<p>One thing I really dislike about the As/400, iSeries and IBM database system is the ability, or feature if you will, of being able to create multi-member data files.</p>
<p>Multi-member files allow you to essentially create a database file with the same layout and structure but with a different &#8220;member&#8221; still a apart of the file that contains data separate from another member.</p>
<p>It&#8217;s as if they are two distinctly different files but have the same exact format.</p>
<p>Now I can see why members can be a useful feature but frankly I don&#8217;t like using multile member files because it can cause confusion and issues if you are not looking out for them when writing a program or report.</p>
<p>Just to be clear though, files with data have at least a single member created. And to be able to add data to a file it needs to contain a member, but just one will suffice.</p>
<p>The tools and programs created on the AS/400 handle multi-member files fairly easily, for instance in Query/400 when you specify the file selection you can choose a specific member if need be.  It handles everything without any more rigmarole.</p>
<p>But SQL is a different animal. This also applies when you are querying the database through ODBC, JDBC or something else.</p>
<p>Currently there isn&#8217;t a way of choosing the member you want when selecting data using an SQL statement.</p>
<p>There is a workaround though. And that is to create an &#8221;alias&#8221; of the physical file and specific member like the following where JOHNA is the library, SALES is the physical file and MEMBER3 is the member:</p>
<p>CREATE ALIAS JOHNA/SALES3<br />
FOR JOHNA/SALES(MEMBER3)</p>
<p>The alias SALES3 will be created as a non keyed logical file with only the data from the MEMBER3 member that you can then use your regular SQL statements on directly.</p>
<p>-John Andersen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-multi-member-file-sql-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not All Joins Are The Same</title>
		<link>http://www.as400tutorials.com/not-all-joins-are-the-same/</link>
		<comments>http://www.as400tutorials.com/not-all-joins-are-the-same/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 02:21:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[IBM i]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[Query/400]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=184</guid>
		<description><![CDATA[When writing custom reports you will eventually run into a situation where you want to be able to query data from two or more files, joining them together into the final report. This is where joins come in to play. Since relational databases, are well, relational if the data is similar or somehow related there should [...]]]></description>
			<content:encoded><![CDATA[<p>When writing custom reports you will eventually run into a situation where you want to be able to query data from two or more files, joining them together into the final report. This is where joins come in to play.</p>
<p>Since relational databases, are well, relational if the data is similar or somehow related there should be a common field between the files or tables. This common field is what allows you to join the database files together.</p>
<p>For instance take a SALES file that has a field SLSNUM that contains the salesrep numbers would be related to a file SALESREP with the same SLSNUM field. You would join these two files based on the SLSNUM field.</p>
<p><a href="http://www.as400tutorials.com/not-all-joins-are-the-same/sales-2/" rel="attachment wp-att-195"><img class="aligncenter size-medium wp-image-195" title="sales" src="http://www.as400tutorials.com/wp-content/uploads/2011/10/sales1-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.as400tutorials.com/not-all-joins-are-the-same/salesrep/" rel="attachment wp-att-192"><img class="aligncenter size-medium wp-image-192" title="salesrep" src="http://www.as400tutorials.com/wp-content/uploads/2011/10/salesrep-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>But, not all joins work the same regardless if you are writing custom reports using Query/400, Query Manager or another query tool since they tend to use SQL behind the scenes to actually query the database.</p>
<p>You need to understand the different types of joins for bringing our sales and salesrep files together because it makes a big difference in the end result.</p>
<p>The first method of joins will return only records that match the join field, salesrep, in BOTH files, here is the SQL used and a print screen of the query results:</p>
<p>select * from sales<br />
join salesrep<br />
on sales.salesrep = salesrep.salesrep</p>
<p><a href="http://www.as400tutorials.com/not-all-joins-are-the-same/equijoin/" rel="attachment wp-att-193"><img class="aligncenter size-medium wp-image-193" title="equijoin" src="http://www.as400tutorials.com/wp-content/uploads/2011/10/equijoin-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>The second join method will return records from the sales file and any records without a match in the salesrep file come back as nulls:</p>
<p>select * from sales<br />
left join salesrep<br />
on sales.salesrep = salesrep.salesrep</p>
<p><a href="http://www.as400tutorials.com/not-all-joins-are-the-same/leftjoin/" rel="attachment wp-att-194"><img class="aligncenter size-medium wp-image-194" title="leftjoin" src="http://www.as400tutorials.com/wp-content/uploads/2011/10/leftjoin-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>See the difference between query results? When there isn&#8217;t a match on the salesrep number field it comes back as null displayed as a &#8211; in the fields.</p>
<p>Now why does this matter? Well the first join could produce a report or query that is missing data or incomplete if there are missing records from your secondary file.</p>
<p>On well written software that checks for and enforces integrity of the data this is not always a problem (ie a sales record that has a missing salesrep number), but it can happen even in commercial programs.</p>
<p>Now as I mentioned previously this matters even f you use Query/400 or Query for iSeries, you specify the first join from above using &#8220;1=Matched Records&#8221; and the left join style using &#8221;2=Matched Records With Primary File&#8221; as the join type.</p>
<p>-John Andersen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/not-all-joins-are-the-same/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check This Out</title>
		<link>http://www.as400tutorials.com/check-this-out/</link>
		<comments>http://www.as400tutorials.com/check-this-out/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 20:27:22 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AS400]]></category>
		<category><![CDATA[IBM i]]></category>
		<category><![CDATA[iSeries]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=181</guid>
		<description><![CDATA[I recently wrote an article for the Midrange IMHO blog. You can check it out here: http://imho.midrange.com/2011/09/07/the-green-screen-sucks-and-other-heresy/ -John Andersen]]></description>
			<content:encoded><![CDATA[<p>I recently wrote an article for the Midrange IMHO blog. You can check it out here:</p>
<p><a href="http://imho.midrange.com/2011/09/07/the-green-screen-sucks-and-other-heresy/">http://imho.midrange.com/2011/09/07/the-green-screen-sucks-and-other-heresy/</a></p>
<p>-John Andersen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/check-this-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS/400 Tools For Fast And Easy Reports</title>
		<link>http://www.as400tutorials.com/as400-tools-for-fast-and-easy-reports/</link>
		<comments>http://www.as400tutorials.com/as400-tools-for-fast-and-easy-reports/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 16:48:36 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[IBM i]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[Query/400]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=168</guid>
		<description><![CDATA[At it&#8217;s core the AS/400, iSeries and IBM i is more or less a large database system. Yes, it does have a bunch of other cool features built in but the main principle of the system is storing, retrieving and updating data that is housed within the integrated DB2 database known previously as DB2/400 and now [...]]]></description>
			<content:encoded><![CDATA[<p>At it&#8217;s core the AS/400, iSeries and IBM i is more or less a large database system. Yes, it does have a bunch of other cool features built in but the main principle of the system is storing, retrieving and updating data that is housed within the integrated DB2 database known previously as DB2/400 and now DB2 for i.</p>
<p>At some point you will want to retrieve data out of the system, and you will want (or someone else will want) to see data in a report or way that the software you are running will not provide. This is where report writing and creation comes in, every place I have worked at had a fair number of &#8220;custom&#8221; reports used day in and out that where critical to running the business.</p>
<p>There are many different tools for creating reports. There is a whole market of third party report software. Many advanced systems and ERP vendors sell a reporting package or module in the bundle of software and these can be a good choice since they plug right in. For instance on SAP there are so many files its hard to find what file or field you need.</p>
<p>The neat thing about advanced report writing tools is they abstract all of that from the person building the report by usually having the software vendor create the mappings and cross references to the underlying database tables.</p>
<p>There are other methods to get at the data like using linked tables in Access via ODBC connection and I will covers those another time. For now let&#8217;s look at the common tools available for report building directly on the system.</p>
<p>First up is Query Manager, not to be confused with Query/400 which I will get to in just a minute.</p>
<p>Query Manager essentially has two parts, the query and the form. To create a report using Query Manager you first will create a query using SQL and then create a query manager form to format and display the query data.</p>
<p>Using standard SQL with Query Manager has several benefits. It will also end up using the SQE optimizer which is vastly superior to the old Classic Query Engine or CQE. Although query performance rarely matters to end users when you start drilling into files with millions of records it can have a huge impact.</p>
<p>SQL is also fairly well known and you can proof a SQL statement and usually copy and run it in another system to access the same data with no to very minor tweaking. With SQL you also have many more functions at your disposal, like being able to convert numbers to alphanumeric whereas doing this in Query/400 is hokey and has limitations.</p>
<p>So although Query Manager has it&#8217;s place, I find it clunky and not as efficient in building reports. But Query Manager is SQL driven, and that alone gives it a huge benefit over Query/400.</p>
<p>Also many end users are not savvy enough or don&#8217;t want to learn how to write SQL. Not to mention you can make a mistake with SQL and wipe out data (so there are some additional concerns) and drag a system down with a poorly written query. There are ways to get around this but I like to avoid it altogether.</p>
<p>That brings us up to Query/400. Even though DB2 Web Query has been around for awhile, Query/400 is still alive and kicking. However the writing is on the wall and you should be moving your reports over to Web Query or some other tool. The good news is that owning a license to Query/400 entitles you to a couple licenses of Web Query so you can get working on now without a bunch of additional costs.</p>
<p>Query/400 is quick and mostly efficient when it comes to creating reports. And you don&#8217;t need to be an IT geek or understand a bunch of techno babble to start writing reports with it. Usually the hardest part of using Query, or building any reports, is knowing what files contain the data you want.</p>
<p>Once you know the file and field names, you simply fire up Query/400, plug in the file name specification then press F5. And presto, on the screen the data from the file will be displayed. Next up you choose the Select Records option to limit the data to exactly what you want, salesrep = 10, customer = 1095 and so forth. Pretty simply, huh?</p>
<p>When you are all finished with your report you can save it as a query definition (object type *QRYDFN) to re-run it later. A cool thing to do is setup commonly used queries on a menu so users can choose what they want quickly and easily. You don&#8217;t need to be a programmer to do this, the SDA tool will do the heavy lifting for you when building custom menus.</p>
<p>You should always be judicial in the use of the F5 key used to preview the query. The longer it takes for the preview to come up, the more you are working the system, the less you should press F5. On systems where the interactive CPW is governed, a query writing session joining large files and sets of data can really bog things down and impact system performance by being overzealous with the F5 key.</p>
<p>-John Andersen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-tools-for-fast-and-easy-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS/400 and iSeries Jump Start</title>
		<link>http://www.as400tutorials.com/as400-and-iseries-jump-start/</link>
		<comments>http://www.as400tutorials.com/as400-and-iseries-jump-start/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 18:19:44 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=115</guid>
		<description><![CDATA[If you are looking for AS/400, iSeries or System i training be sure to take a look at my new Power System Jump Start course. Check it out here: http://www.midrangejumpstart.com/ -John Andersen]]></description>
			<content:encoded><![CDATA[<p>If you are looking for AS/400, iSeries or System i training be sure to take a look at my new Power System Jump Start course.</p>
<p>Check it out here:<br />
<a href="http://www.midrangejumpstart.com/">http://www.midrangejumpstart.com/</a></p>
<p>-John Andersen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-and-iseries-jump-start/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom Reporting AS400 Tutorial</title>
		<link>http://www.as400tutorials.com/custom-reporting-as400-tutorial/</link>
		<comments>http://www.as400tutorials.com/custom-reporting-as400-tutorial/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 19:31:38 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[AS400 Tutorial]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[OS400]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=99</guid>
		<description><![CDATA[One of the nice things about an AS/400, iSeries or System i machine is the database is tightly integrated into the operating system. The reality is that many 400 administrators aren&#8217;t really experts at DB2 because you dont need to be to make use of the database. Understanding how to enter DDS specifications into a source file [...]]]></description>
			<content:encoded><![CDATA[<p>One of the nice things about an AS/400, iSeries or System i machine is the database is tightly integrated into the operating system. The reality is that many 400 administrators aren&#8217;t really experts at DB2 because you dont need to be to make use of the database.</p>
<p>Understanding how to enter DDS specifications into a source file and compile them into physical and logical files is really as far as you need to go for 90% of the tasks involved in running a 400. Yes, nowadays you see alot about using DDL (essentially SQL) to create tables but I am still a fan of DDS and do create views using SQL statements when it makes sense to do so.</p>
<p>Recently I have been working on a tier three ERP system from one of those conglomerated software consolidation companies. Chances are you have heard of them if you have been around ERP systems in the last few years. </p>
<p>The one thing I really hate about this system (which uses a mainstream database on the backend running on a Win32 platform) is how clunky the report writing process is. It&#8217;s not elegent, and it&#8217;s not tightly integrated into the system itself. In short I think it sucks.</p>
<p>This is precisely an area where the AS/400, iSeries and System i shines. You have so many native tools and applications to work with the underlying database. You have tools like Query/400, Query Manager, direct SQL and so much more that simply plugs right in and goes. You don&#8217;t have to learn a bunch of complicated syntax to use programs like Query/400 either because its entirely menu driven.</p>
<p>Many people these days are frowning on &#8220;green-screen&#8221; based programs.</p>
<p>My take is always to use the right tool for the job and sometimes that is a query report or interactive lookup screen using runqry or query definition. The command line and perhaps a small CL program allows this to be transparent to the user, so who cares if the resulting data is displayed on an old fashioned green-screen.</p>
<p>So to get started writing reports check out the following short list of commands/programs:</p>
<p>WRKQRY<br />
STRQMQRY<br />
RUNQRY<br />
Operations Navigator (allows you to execute and thoroughly examine SQL statements)</p>
<p>One area that used to be lacking on the AS400 was report manipulation or report mining tools. People used to print out thousands of pages of reports (and many still do) just to pull out a couple pages with the pertinent details and then throw the rest away.</p>
<p>But nowadays there are so many third party tools that will take your spool files and convert them into plain text for your PCs. Even Operations Navigator has had this capability for many years. It even allows you to search through files and outqs. End users can even do this with a little bit of training on Operations Navigator, it&#8217;s not that difficult and they will love you for it.</p>
<p>There really aren&#8217;t many excuses for getting the most out of your systems today. We aren&#8217;t living in the stone age where data extraction and reporting writing for the AS/400 is complicated thanks to the myraid of tools that have been available for many years now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/custom-reporting-as400-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS/400 Operations Navigator to the Rescue</title>
		<link>http://www.as400tutorials.com/as400-operations-navigator-to-the-rescue/</link>
		<comments>http://www.as400tutorials.com/as400-operations-navigator-to-the-rescue/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 16:14:52 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[Operations Navigator]]></category>
		<category><![CDATA[OS400]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=73</guid>
		<description><![CDATA[There is a large misconception running about the user community these days that the AS/400 and iSeries platform are old antiquated machine as scarce as the dinosaurs and just as hard to use with its crummy looking text only interface commonly known as the green screen. This is a major sticking point for business looking [...]]]></description>
			<content:encoded><![CDATA[<p><!-- wpadmentor adposid="1" --></p>
<p>There is a large misconception running about the user community these days that the AS/400 and iSeries platform are old antiquated machine as scarce as the dinosaurs and just as hard to use with its crummy looking text only interface commonly known as the green screen.</p>
<p>This is a major sticking point for business looking to buy an AS/400 and especially for some system administrators that have been groomed on a Windows based environment with point and click ease of use and a built in wizard to do just about everything.</p>
<p>But there is really good news for those people who absolutely hate the old fashioned green-screens that the AS/400 and iSeries platform is known for&#8230; there has been a tool available to make maintenance and administration tasks easier. That cool graphical user interface tool is called Operations Navigator, it comes along with your regular licenses so it doesn&#8217;t cost any additional money and it has been available now for many years.</p>
<p>That&#8217;s right I said that the operations navigator utility is a GUI you can use with your AS/400 and iSeries systems. With it you can maintain users, catalogue system patches and program temporary fixes, watch jobs, administer printer output queues and more.</p>
<p>You want to run an SQL query to delete some data sets or run a quick and dirty report and export the results into Excel? Operations navigator has you covered. Want to copy files from your computer over to the integrated file system on the AS/400? Operations navigator can do that too.</p>
<p>If you are into keeping a watchful eye on the health and performance data of your system, once configured, operations navigator will spit out great looking charts and graphs of important performance metrics.</p>
<p>Did you know that you can also download your reports as text or pdf files from your AS/400 or iSeries with operations navigator, this very feature alone can replace you dependency for expensive third party software packages you may currently be using.</p>
<p>One of the greatest features not otherwise available until operations navigator came around is the ability to diagnose SQL statements and present them in a graphical diagram with each of the steps the system used to execute it in very thorough detail.</p>
<p>There is also a whole feature set available that will collect performance data on your programs and files and record how often temporary indexes are built, you then simply go back and review this data after running a collection and it will recommend indexes to build that will improve the performance of your reports and queries dramatically.</p>
<p>Eventually you may find yourself having to perform some tasks in the command line environment, but as time moves on more and more of features are being built natively into operations navigator with each new release slowly removing the dependency on the green-screen. Who knows though, you may even become a convert like some of us old 400 folks and start to use the command line interface instead of the GUI.</p>
<p>Nonetheless oprations navigator has such a rich set of tools and its ease of use make it an excellent tool to administering your AS/400 and iSeries systems so it is definitely here to stay.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-operations-navigator-to-the-rescue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS400 Report Mining</title>
		<link>http://www.as400tutorials.com/as400-report-mining/</link>
		<comments>http://www.as400tutorials.com/as400-report-mining/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 16:29:46 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AS400]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Spool File]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=66</guid>
		<description><![CDATA[We all have data&#8230; data, data everywhere and we need it in a user friendly form that makes sense. Data drives business, so the less time you spend getting at what you need the more time you can focus on getting important things done. This is where report mining comes in. You may not have [...]]]></description>
			<content:encoded><![CDATA[<p>We all have data&#8230; data, data everywhere and we need it in a user friendly form that makes sense. Data drives business, so the less time you spend getting at what you need the more time you can focus on getting important things done.</p>
<p>This is where report mining comes in.</p>
<p>You may not have heard the term &#8220;report mining&#8221; before but essentially report mining is just taking your printable reports from your AS40 or iSeries and bringing them over to your PC into a program like Excel, then scrubbing them up a bit.</p>
<p>Maybee you need to calculate some additional fields or condense the data into an easy to read format. This is where report mining can really come through.</p>
<p>Getting data off of your AS400 to a PC used to be a major hassle back in the dark ages&#8230; in fatc people hated it so much that software vendors sprung up all over to accomplish this now routine task.</p>
<p>If you have the luxury of having a programmer on staff that can write reports all day long then your in luck. But some places can&#8217;t and hiring an outside consultant to write reports at $175 dollars an hour adds up quickly.</p>
<p>Another option is using the excellent tool you might have is Query/400. This allows you to write simple reports joining together data from one or more files. </p>
<p>Unfortunatley Query has limited logic capabilities that are handled better by regular programmed reports, but for probably 80% of the reporting needed it will suffice.</p>
<p>Anyhow, back to report mining. If the data you want to get at is already a part of an existing report then you are in luck. No need to write a query since you can just mine that report to get what you want.</p>
<p>The process is really simple and takes only a few mouse clicks.</p>
<p>Using Operations Navigator you can simply browse the printer data on the system then drag and drop any report on your As400 or iSeries onto your desktop. The software then automatically converts it into a text file.</p>
<p>Now this works with reports that are still in an outq on the system. The best way to handle this is to have your spool files go to your own output queue that is not attached to a writer.</p>
<p>After copying the file over to your PC, simply open up that text file with the Excel data import wizard, add the column breaks, clean up the report headings and you are off to the races.</p>
<p>This really is a poor mans way to generate reports, but its really simple and you should already have all the tools to do it installed on your computer.</p>
<p>All you need is Operations Navigator (aka iSeries Navigator) and Excel.</p>
<p>If you need something more complex then look into the other options out there like writing reports using Query or the Excel Add-in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-report-mining/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Minute AS400 Tutorial</title>
		<link>http://www.as400tutorials.com/quick-as400-tutorial/</link>
		<comments>http://www.as400tutorials.com/quick-as400-tutorial/#comments</comments>
		<pubDate>Wed, 27 May 2009 16:24:14 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[AS400 Administration]]></category>
		<category><![CDATA[AS400 Commands]]></category>
		<category><![CDATA[AS400 Control Language]]></category>
		<category><![CDATA[OS400]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=45</guid>
		<description><![CDATA[Three Essential AS/400 Tasks You Need To Know The operating system that runs on an AS/400, iSeries, i5 is known as OS/400 or i5/OS and it is command and menu driven. At its heart everything tends to be a command and even the menus that you see use commands behind the scenes. All of these commands are known [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #000080;">Three Essential AS/400 Tasks You Need To Know</span></h2>
<p>The operating system that runs on an AS/400, iSeries, i5 is known as OS/400 or i5/OS and it is command and menu driven. At its heart everything tends to be a command and even the menus that you see use commands behind the scenes. All of these commands are known as control language</p>
<p> <img class="aligncenter size-full wp-image-54" title="as400-main-menu" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/as400-main-menu.jpg" alt="as400-main-menu" width="774" height="563" /></p>
<p> AS400 commands tend to be three letter abbreviations of two or more words put together. For example the word &#8220;work&#8221; is commonly used in several commands and is abbreviated as wrk. Printable output on an AS/400 is known as spool files and commands to work with those are abreviated as splf&#8212; ok so thats four letters but it is a rare exception.</p>
<p>So if we put together Work and Spool Files we ge the command &#8220;wrksplf&#8221; Work with Spool Files and it allows you to maintain your printable output that is still residing on the system. And by the way commands are entered on the command line at the bottom of menus and denoted with the &#8220;===&gt;&#8221; symbol.</p>
<p> To see a list of AS400 commands that have been catagorized into groups type in &#8220;go verb&#8221; on the command line. As you will see there are *alot* of commands. Ultimately you will probably only ever use 20% of them, and realistically even for day to day system administration less than that.</p>
<p><img class="aligncenter size-full wp-image-47" title="as400-verb-commands" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/as400-verb-commands.jpg" alt="as400-verb-commands" width="774" height="563" /></p>
<p>You can also prompt any command by typing it in and pressing the F4 key on the keyboard. This prompting will display more detail about the command and provide all of the available parameters that go along with it.</p>
<p>Everything that runs on the AS400 is called a job. And all of the jobs run within their own areas known as subsystems. To see a list of all the jobs currently running on the system you will use the command wrkactjob which stands for Work with Active Jobs.</p>
<p>Without getting into a bunch of techno jargon, subsystems are a way to run jobs that jobs can be allocated system resources like memory and CPU processing time. For example printers run in there very own subsystem called QSPL, which tends to have its own pool of memory allocated to it. That way others jobs in the system don&#8217;t use that allocated memory and vice versa. The memory can be reallocated easily if need be but that will be covered in another topic.</p>
<p>Out of the box an AS400 will have adequate subsystems configured to get you up and going&#8230; as time goes on your can create more subsystems or change the pre-configured ones if need be.</p>
<p>Lastly let&#8217;s take a look at how to shutdown or restart an AS400. Starting up an AS400 or restarting is know as an Initial Program Load or IPL for short. This is a rather straight forward process but can take quite a bit of time to complete.</p>
<p><img class="aligncenter size-full wp-image-50" title="as400-ipl-menu" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/as400-ipl-menu.jpg" alt="as400-ipl-menu" width="774" height="563" /></p>
<p>In a very brief nutshell upon startup the system checks everything out and loads up the operating system and related systems to make the system opertational. During an IPL is most often when you will experience a hardware failure&#8230; not to worry though because most hardware failures that occur on an AS400 can be replaced while the machine is running. This includes hard disks, redundant power supplies and even memory.</p>
<p><img class="size-full wp-image-51 alignnone" title="as400-pwrdwnsys-command" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/as400-pwrdwnsys-command.jpg" alt="as400-pwrdwnsys-command" width="774" height="563" /></p>
<p>So to shutdown or IPL a system you will use the Power menu which you access by typing in &#8220;go power&#8221; on the command line or alternatively using the Power Down System or pwrdwnsys command. Most people opt for using pwrdwnsys.</p>
<p>-John Andersen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/quick-as400-tutorial/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>AS400 Packed Data Conversion</title>
		<link>http://www.as400tutorials.com/as400-packed-data-conversion/</link>
		<comments>http://www.as400tutorials.com/as400-packed-data-conversion/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:11:53 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[EBCDIC]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=39</guid>
		<description><![CDATA[Why Your AS/400 Data Looks Like Guacamole&#8230; Sometimes when people transfer data from an AS/400 to Excel or another program they run into a some data that looks a bit like guacamole, this tends to happen when transferring numerical data. Without getting into a lot of boring technical details &#8220;packed data fields&#8221; are the default standard [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #000080;">Why Your AS/400 Data Looks Like Guacamole&#8230;</span></h2>
<p>Sometimes when people transfer data from an AS/400 to Excel or another program they run into a some data that looks a bit like guacamole, this tends to happen when transferring numerical data.</p>
<p>Without getting into a lot of boring technical details &#8220;packed data fields&#8221; are the default standard for storing numerical data on AS/400s in a format known as EBCDIC. PC based computers use ASCII and so they don&#8217;t always translate across when transferred in there native formats.</p>
<p>The problem is when you bring that data over to the PC world it doesn&#8217;t always translate correctly to ASCII&#8230; now this only tends to occur when using the data transfer program built into Client Access and not when using an ODBC connection or other program which does the data translation for you behind the scenes.</p>
<p>The symptom is that when you download the data you will see letters in fields where there should be numbers from 0 through 9. To correct you simply translate these letters or characters over to the corresponding number as follows:</p>
<p>0 = &#8216;}&#8217;<br />
1 = &#8216;J&#8217;<br />
2 = &#8216;K&#8217;<br />
3 = &#8216;L&#8217;<br />
4 = &#8216;M&#8217;<br />
5 = &#8216;N&#8217;<br />
6 = &#8216;O&#8217;<br />
7 = &#8216;P&#8217;<br />
8 = &#8216;Q&#8217;<br />
9 = &#8216;R&#8217;</p>
<p>Now thats about as easy as duck soup&#8230; but it sure can be a pain. Ultimately to &#8220;cure&#8221; this issue you will want to get at the data another way and not use the AS/400 Data Transfer portion of Client Access for this specific table, instead use ODBC and SQL query, import it as part of a printable report, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-packed-data-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

