<?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; Database</title>
	<atom:link href="http://www.as400tutorials.com/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as400tutorials.com</link>
	<description></description>
	<lastBuildDate>Fri, 09 Jul 2010 20:55:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 and [...]]]></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>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 for storing [...]]]></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>
		<item>
		<title>Download Data From Your AS400 To Excel</title>
		<link>http://www.as400tutorials.com/as400-to-excel/</link>
		<comments>http://www.as400tutorials.com/as400-to-excel/#comments</comments>
		<pubDate>Fri, 22 May 2009 00:07:52 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[ODBC]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=13</guid>
		<description><![CDATA[What The Software Vendors Don&#8217;t Want You To Know&#8230;
Everyone wants to get there data into Excel or spreadsheet of choice to slice dice and do whatever else you need to in a user friendly, powerful program tailor made for data manipulation and reporting.
Getting data from your AS/400 to Excel used to be a major pain [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #000080;">What The Software Vendors Don&#8217;t Want You To Know&#8230;</span></h2>
<p>Everyone wants to get there data into Excel or spreadsheet of choice to slice dice and do whatever else you need to in a user friendly, powerful program tailor made for data manipulation and reporting.</p>
<p>Getting data from your AS/400 to Excel used to be a major pain but now its simple and routine process depending on what your reporting needs are. Simply replicating a table or pulling in a printed report can be done but if you need more complex functions or selecting slices of data from a large table you will want to get some third party software which will make this process easy.</p>
<p>Without the use of expensive third party software there are essentially two ways to pull data from an AS/400 over into your Excel spreadsheets.</p>
<p>The first method utilizes the data connection wizard built into Excel and an ODBC driver to query the database tables. Yes, Excel has a feature built right into it for querying databases (not just your AS/400) and storing the resulting data sets in your spreadsheets!</p>
<p>The AS/400 and iSeries ODBC driver comes with Client Access and is available as an option when you install Client Access on your PC. Alternatively there are some other vendors out there that sell ODBC or OLE drivers for connecting to your AS/400.</p>
<p><img class="aligncenter size-full wp-image-19" title="excel-database-connection" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/excel-database-connection.jpg" alt="excel-database-connection" width="518" height="370" /></p>
<p>Utilizing the AS/400 ODBC driver you then use the Excel Data Wizard to open a connection to your system and pull down data. Alternatively you can use an Access database and create linked tables (again utilizing the ODBC driver) and then query and report against them.</p>
<p><img class="aligncenter size-full wp-image-20" title="excel-import-data" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/excel-import-data.jpg" alt="excel-import-data" width="291" height="245" /></p>
<p>After using Excels data connection wizard (as shown above) you simply just import the AS/400 data into your desired spreadsheet page using the data import option which will then connect to your AS/400 ODBC data connection and pull down the data tables.</p>
<p>The default for this type of connection is to download the _entire_ database table&#8230; unless you want this there are some additional options you can use to add query constraints to pare down the data selection.</p>
<p>The second method is to take an existing spool file report, download it as a text file using iSeries Navigator and then importing it right into Excel. Excel handles this perfectly except you have to add in the column breaks and then cleanup the page headings.</p>
<p><img class="aligncenter size-full wp-image-22" title="import-as400-data" src="http://www.as400tutorials.com/wp-content/uploads/2009/05/import-as400-data.jpg" alt="import-as400-data" width="546" height="393" /></p>
<p>When using the Excel Text Import wizard to import AS/400 data contained in spool files make sure you select fixed width and not delimited field data. The alignment of the columns may take a little adjusting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-to-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
