<?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>command line tools Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/command-line-tools/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/command-line-tools/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Thu, 30 Mar 2023 17:18:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>command line tools Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/command-line-tools/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Export / Create JSON File in Informatica (from SQL Query / Database Tables)</title>
		<link>https://zappysys.com/blog/export-create-json-file-informatica-sql-query-database-tables/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Thu, 30 Mar 2023 17:17:30 +0000</pubDate>
				<category><![CDATA[ZappyShell]]></category>
		<category><![CDATA[command line tools]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=10020</guid>

					<description><![CDATA[<p>Introduction In this article, you will learn how to create simple or complex JSON file in Informatica just in a few clicks. We will use the Powerful Export JSON Command line Builder from ZappyShell. Using this Portable / xCopy style command line you can build nested/complex JSON / XML or even CSV from single / [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/export-create-json-file-informatica-sql-query-database-tables/">Export / Create JSON File in Informatica (from SQL Query / Database Tables)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this article, you will learn how to create simple or complex JSON file in Informatica just in a few clicks. We will use the Powerful Export JSON Command line Builder from <a href="https://zappysys.com/products/zappyshell/data-export-command-line-tools-json-excel-csv-pdf/">ZappyShell</a>. Using this Portable / xCopy style command line you can build nested/complex JSON / XML or even CSV from single / multiple SQL Queries as Input or Select Database Tables as Source. Later you can copy generated command line from Tool and execute in any tool like Informatica / Talend / DataStage or Automation Script like Python / PowerShell.</p>
<h2>Prerequisite</h2>
<p>This article assumes you have access to Informatica Developer Tools and basic knowledge of command-line tools.</p>
<ol>
<li><a href="https://zappysys.com/products/zappyshell/">Download ZappyShell</a> Command line utility (Click on Download Button). You can get msi and Zip (Poratble / xCopy version)</li>
<li>If you want to use the Portable version just extract ZappyShell-xCopy zip to some folder lets say (C:\ZappyShell). If you installed MSI then its usually in C:\Program Files (x86)\ZappySys</li>
<li>Double click on DbCommandBuilder.exe <a href="https://zappysys.com/onlinehelp/zappyshell/index.htm#page=db/db.htm">as listed here</a>  to get started. At the end of this exercise, you will be able to generate something like the below JSON File in few clicks in Informatica or any other Tool / Programming Language you prefer which has option to invoke command line&#8230;</li>
<li>For all possible command line options <a href="https://zappysys.com/onlinehelp/zappyshell/scr/db/db-db-export.htm" target="_blank" rel="noopener">Refer this</a></li>
<li>So lets get started</li>
</ol>
<h2>Sample JSON Created by ZappyShell from Informatica</h2>
<p>&nbsp;</p>
<div style="width: 680px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" class="figureimage" title="Sample JSON Created by Informatica Workflow (Create From Database SQL Query or Tables)" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-json-custom-output.png" alt="Sample JSON Created by Informatica Workflow (Create From Database SQL Query or Tables)" width="670" height="626" /><p class="wp-caption-text">Sample JSON Created by Informatica Workflow (Create From Database SQL Query or Tables)</p></div>
<h2>Create Command Line to Export JSON File from Database SQL Query / Tables</h2>
<p>In this section, we will see how to build Command Line which you can then execute in Informatica Command Time and later Schedule Export Job to Produce JSON File on a predefined schedule or manually.</p>
<ol>
<li>Open DbCommandBuilder.exe and configure the Connection / Data source(s) <a href="https://zappysys.com/onlinehelp/zappyshell/index.htm#page=db/db.htm">as listed here</a> .<img decoding="async" class="figureimage" title="ZappyShell - Open Installed File or Directory" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/open-zappyshell.png" alt="ZappyShell - Open Installed File or Directory" /></li>
<li>Select JSON Export Option from the Dropdown. You can also choose XML, Excel or CSV<img decoding="async" class="figureimage" title="XML file generate" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-xml.png" alt="XML file generate" /></li>
<li>You can use the Custom Layout Option if you wish to Export using custom Output Layout else just choose tables you like to export or type SQL query.<br />
<img decoding="async" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-json-custom-layout.png" alt="JSON Custom Layout" /></li>
<li>Configure your Input Dataset(s) (can be SQL Queries or Tables) and define Desired Layout for your Output File.<img decoding="async" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-json-custom-layout-add-dataset.png" alt="JSON Custom Layout - Add Dataset" /></li>
<li>Here is just an example of how to define an Array for a nested layout in a JSON or XML file.<img decoding="async" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-json-custom-layout-add-element-in-document-array.png" alt="Layout Editor to define Structure of JSON / XML Output" /></li>
<li>t the end of configuration you may see command line like below (more examples <a href="https://zappysys.com/onlinehelp/zappyshell/scr/db/db-db-export.htm">listed here</a>)<strong>Example: Simple mode Export (Microsoft SQL Server)</strong><br />
<pre class="crayon-plain-tag">db.exe export customers --json -o c:\data\cust.json --connstr "Data Source=localhost;Initial Catalog=Northwind;Integrated Security=SSPI;" -y</pre>
<strong>Example: For Simple mode Export (MySQL SQL Server &#8211; ODBC Driver)</strong><br />
<pre class="crayon-plain-tag">export customers --out c:\data\customers.json --json --overwrite --connstr "Driver={MySQL ODBC 5.2 ANSI Driver};Server=your_server_name_or_ip;Port=3306;Uid=user1;pwd=SomeP@ssword;Database=your_db_name"</pre>
<strong><strong>Example: For custom layout mode Export<br />
</strong></strong><br />
<pre class="crayon-plain-tag">export --map c:\data\MySampleMap.xml -o c:\data\customers.json --json --connstr "Data Source=localhost;Initial Catalog=Northwind;Integrated Security=SSPI;" -y</pre>
</li>
<li>Once the Command line is created you can click <strong>Run</strong> to test and then copy it into tools like Informatica Command Task (see next section).</li>
</ol>
<h2>Export / Create JSON File In Informatica</h2>
<ol>
<li>Once the command line is prepared (see previous section) we can open Informatica Developer (D)</li>
<li>Connect to your Repository and create a new workflow</li>
<li>Drag new Command Task, from Toolbox and double click to edit
<div id="attachment_10021" style="width: 691px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2023/03/informatica-command-task.png"><img decoding="async" aria-describedby="caption-attachment-10021" class="size-full wp-image-10021" src="https://zappysys.com/blog/wp-content/uploads/2023/03/informatica-command-task.png" alt="Informatica Command Task" width="681" height="281" srcset="https://zappysys.com/blog/wp-content/uploads/2023/03/informatica-command-task.png 681w, https://zappysys.com/blog/wp-content/uploads/2023/03/informatica-command-task-300x124.png 300w" sizes="(max-width: 681px) 100vw, 681px" /></a><p id="caption-attachment-10021" class="wp-caption-text">Informatica Command Task</p></div></li>
<li>Enter the sample command line we obtained from the previous step</li>
<li>Save the workflow and run it&#8230; That&#8217;s it you will see the JSON file generated</li>
</ol>
<h2>Export / Create XML File In Informatica</h2>
<p>Same Steps as above except choose File format as XML and you will see output like the below once you run the command line.</p>
<div style="width: 905px" class="wp-caption alignnone"><img decoding="async" class="figureimage" title="Export / Create XML File In Informatica" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-xml.png" alt="Export / Create XML File In Informatica" width="895" height="160" /><p class="wp-caption-text">Export / Create XML File In Informatica</p></div>
<h2>Export / Create CSV File In Informatica</h2>
<p>Same Steps as above except choose File format as CSV and you will see output like the below once you run the command line.</p>
<div style="width: 817px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="figureimage" title="Generate CSV Files in Informatica" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/dbcommandbuilder/db-command-builder-csv-output.png" alt="Generate CSV Files in Informatica" width="807" height="507" /><p class="wp-caption-text">Generate CSV Files in Informatica</p></div>
<h2>Export / Create Excel File In Informatica</h2>
<p>Same Steps as above except choose File format as Excel and you will see output like the below once you run the command line.</p>
<p><img decoding="async" src="https://zappysys.com/onlinehelp/zappyshell/scr/images/export-sql-server-table-to-excel-split-by-column.png" alt="Export SQL Server Table to Excel files (split automatically using group by column)" /></p>
<h2>Conclusion</h2>
<p>In this post, we just saw how easy it is to generate JSON / XML / Excel or CSV files in tools like Informatica, Talend, python, PowerShell in few clicks without coding. You can schedule job to generate JSON / XML files from Database tables or SQL Query. <a href="https://zappysys.com/products/zappyshell/download/">Download ZappyShell</a> Today and try it to see what else you can do with it.</p>
<p>The post <a href="https://zappysys.com/blog/export-create-json-file-informatica-sql-query-database-tables/">Export / Create JSON File in Informatica (from SQL Query / Database Tables)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to check Amazon S3 Bucket location (Region)</title>
		<link>https://zappysys.com/blog/check-amazon-s3-bucket-location-region/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Tue, 15 Mar 2016 14:17:39 +0000</pubDate>
				<category><![CDATA[S3 (Simple Storage Service)]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[bucket]]></category>
		<category><![CDATA[command line tools]]></category>
		<category><![CDATA[redshift]]></category>
		<category><![CDATA[redshift copy]]></category>
		<category><![CDATA[Redshift Data Transfer Task]]></category>
		<category><![CDATA[s3]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[ZappyShell]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=409</guid>

					<description><![CDATA[<p>Problem Sometimes if you loading data to Redshift via COPY command or using SSIS Redshift Data Transfer Task to move data to redshift then you will have to make sure your S3 Bucket is in the same region as Redshift Cluster. Many people don&#8217;t know how to verify that because its hidden in the console. This [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/check-amazon-s3-bucket-location-region/">How to check Amazon S3 Bucket location (Region)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Problem</h2>
<p>Sometimes if you loading data to Redshift via <a href="http://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html" target="_blank">COPY</a> command or using <a href="//zappysys.com/products/ssis-powerpack/ssis-amazon-redshift-data-transfer-task/" target="_blank">SSIS Redshift Data Transfer Task</a> to move data to redshift then you will have to make sure your S3 Bucket is in the same region as Redshift Cluster. Many people don&#8217;t know how to verify that because its hidden in the console. This post will help you to find it easily.</p>
<h2>Find Amazon S3 bucket location (AWS Region endpoint)</h2>
<p>Below is step-by-step instructions how to find S3 Bucket region (i.e. location)</p>
<ol>
<li>Open your AWS Console by visiting <a href="https://console.aws.amazon.com/" target="_blank">https://console.aws.amazon.com/</a></li>
<li>From dashboard click on <strong>S3</strong> option (or visit <a href="https://console.aws.amazon.com/s3/home" target="_blank">https://console.aws.amazon.com/s3/home</a> )</li>
<li>You will see all buckets in the left side list</li>
<li>Click on desired S3 bucket name</li>
<li>Click on Properties Tab at the top</li>
<li>Now you will see <strong>Region</strong> for the selected bucket along with many other properties.</li>
</ol>
<p>Sometimes You may see US Standard as region name that means your bucket is located in US East (N. Virginia)</p>
<p>If you want to know Region Code rather than name check this link : <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region" target="_blank">Region Endpoints for Amazon S3 </a></p>
<div id="attachment_410" style="width: 592px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/03/how-to-find-amazon-s3-bucket-location-region-endpoint-aws.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-410" class="size-full wp-image-410" src="//zappysys.com/blog/wp-content/uploads/2016/03/how-to-find-amazon-s3-bucket-location-region-endpoint-aws.png" alt="How to find amazon s3 bucket location (AWS region endpoint)" width="582" height="272" srcset="https://zappysys.com/blog/wp-content/uploads/2016/03/how-to-find-amazon-s3-bucket-location-region-endpoint-aws.png 582w, https://zappysys.com/blog/wp-content/uploads/2016/03/how-to-find-amazon-s3-bucket-location-region-endpoint-aws-300x140.png 300w" sizes="(max-width: 582px) 100vw, 582px" /></a><p id="caption-attachment-410" class="wp-caption-text">How to find amazon s3 bucket location (AWS region endpoint)</p></div>
<h2>Download/Upload data to S3 bucket via Command line</h2>
<p>If you want to automate S3 file download/upload then check <a href="//zappysys.com/products/zappyshell/" target="_blank">this command line tool</a></p>
<h3>ZappyShell Command line tools for Amazon S3</h3>
<p><img decoding="async" title="ZappyShell Command line tools for Amazon S3" src="//zappysys.com/onlinehelp/zappyshell/scr/images/zappyshell-for-aws-command-line-tools.png" alt="Command line tools for Amazon S3" /></p>
<p>&nbsp;</p>
<h3>Upload local files to Amazon S3 from command line</h3>
<p><img decoding="async" title="Upload local files to Amazon S3 from command line" src="//zappysys.com/onlinehelp/zappyshell/scr/images/amazon-s3-command-line-tools-upload-files.png" alt="Upload local files to Amazon S3 from command line" /></p>
<p>&nbsp;</p>
<h3>List S3 buckets using command line</h3>
<p><img decoding="async" title="List S3 buckets using command line" src="//zappysys.com/onlinehelp/zappyshell/scr/images/amazon-s3-command-line-tools-list-bucket.png" alt="List S3 buckets using command line" /></p>
<p>&nbsp;</p>
<h3>List S3 file information using command line</h3>
<p><img decoding="async" title="List S3 file information using command line" src="//zappysys.com/onlinehelp/zappyshell/scr/images/amazon-s3-command-line-tools-list-information.png" alt="List S3 file information using command line" /></p>
<p>&nbsp;</p>
<h3>List S3 files using command line</h3>
<p><img decoding="async" title="List S3 files using command line" src="//zappysys.com/onlinehelp/zappyshell/scr/images/amazon-s3-command-line-tools-list-s3-files.png" alt="List S3 files using command line" /></p>
<h2>Download/Upload data to S3 bucket from SSIS</h2>
<a href="https://zappysys.com/blog/check-amazon-s3-bucket-location-region/"><img decoding="async" src="https://zappysys.com/blog/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FtlW7lpJoWEg%2Fhqdefault.jpg" alt="YouTube Video"></a><br /><br /></p>
<h2>Load data to Amazon Redshift using S3 Bucket and COPY command</h2>
<p>Below video shows how to use S3 bucket to perform bulk data load into Amazon Redshift using <a href="//zappysys.com/products/ssis-powerpack/ssis-amazon-redshift-data-transfer-task/" target="_blank">SSIS Redshift Data Transfer Task</a><br />
<a href="https://zappysys.com/blog/check-amazon-s3-bucket-location-region/"><img decoding="async" src="https://zappysys.com/blog/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2F5S_p0fNn6a8%2Fhqdefault.jpg" alt="YouTube Video"></a><br /><br /></p>
<h2>Conclusion</h2>
<p>Amazon S3 provides most common way to store/load data for various AWS related services (e.g. EMR, Redshift). Zappysys is one of the top leading providers who make tools for AWS, NoSQL and other Cloud connectivity providers. Check <a href="//zappysys.com/products/ssis-powerpack/" target="_blank">SSIS PowerPack</a> (For SSIS) or <a href="//zappysys.com/products/zappyshell/" target="_blank">ZappyShell Command line for AWS</a> if you want command line solution. ZappyShell is just single exe file does all heavy lifting for you 🙂</p>
<p>Cheers!</p>
<p>The post <a href="https://zappysys.com/blog/check-amazon-s3-bucket-location-region/">How to check Amazon S3 Bucket location (Region)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
