<?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>FTP Archivi - iBlog127.it</title>
	<atom:link href="https://iblog127.it/tag/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>https://iblog127.it/tag/ftp/</link>
	<description>Recensioni, Informatica e Tecnologia</description>
	<lastBuildDate>Sun, 03 Nov 2019 11:16:14 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://iblog127.it/wp-content/uploads/2021/12/cropped-LOGO_Iblog-32x32.png</url>
	<title>FTP Archivi - iBlog127.it</title>
	<link>https://iblog127.it/tag/ftp/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>FTP tra IBMI</title>
		<link>https://iblog127.it/informatica/ftp-tra-ibmi/</link>
		
		<dc:creator><![CDATA[iBlog127]]></dc:creator>
		<pubDate>Thu, 31 Oct 2019 16:12:44 +0000</pubDate>
				<category><![CDATA[As400-Ibmi]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[AS400-IBMi]]></category>
		<category><![CDATA[FTP]]></category>
		<guid isPermaLink="false">http://ptxavad.cluster100.hosting.ovh.net/?p=719</guid>

					<description><![CDATA[<p>FTP è uno dei software più diffusi, per lo spostamente/copia di file tra server o tra pc server. Il servizio FTP (che se non attivo può essere eseguito tramite comando STRFTP) è presente nei server IBMi sia come client che come server. Ma prima di procedere con l&#8217;uso del protocollo ftp , è necessario spiegare [&#8230;]</p>
<p>L'articolo <a href="https://iblog127.it/informatica/ftp-tra-ibmi/">FTP tra IBMI</a> proviene da <a href="https://iblog127.it">iBlog127.it</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="font-size: 14pt;">FTP è uno dei software più diffusi, per lo spostamente/copia di file tra server o tra pc server.</span><br />
<span style="font-size: 14pt;">Il servizio FTP (che se non attivo può essere eseguito tramite comando STRFTP) è presente nei server IBMi sia come client che come server.</span></p>
<p><span style="font-size: 14pt;">Ma prima di procedere con l&#8217;uso del protocollo ftp , è necessario spiegare un oggetto, presente solo in IBMi chiamato SAVF.</span></p>
<h3>Cosa è il SAVF</h3>
<p><span style="font-size: 14pt;">Si può considera il savf come un Contenitore Logico all&#8217;interno del quale puoi salvare oggetti di qualsiasi tipo. Ricordo che il savf in quanto oggetto, deve essere contenuto in una libreria.</span></p>
<p><span style="font-size: 14pt;">I comandi principali che comprendono il savf sono:</span></p>
<ul>
<li><span style="font-size: 14pt;">CRTSAVF</span></li>
<li><span style="font-size: 14pt;">CLRSAVF</span></li>
<li><span style="font-size: 14pt;">DLTSAVF</span></li>
<li><span style="font-size: 14pt;">DSPSAVF</span></li>
</ul>
<h3>CRTSAVF.. Creiamo!</h3>
<p><span style="font-size: 14pt;">Create SAVF.</span><br />
<span style="font-size: 14pt;">Questo comando server per la creazione del savefile, e come sempre necessita di avere una libreria dove </span><span style="font-size: 14pt;">creare il nostro contenitore. Possiamo aggiungere un testo descritivo.</span></p>
<h3>CLRSAVF&#8230; Svuotiamo!</h3>
<p><span style="font-size: 14pt;">Clear SAVF.</span><br />
<span style="font-size: 14pt;">Questo comando non cancella il savf come  potremmo sembrare, ma svuota il contenitore, lasciando senza file. Ovviamente si può riutilizzare. Il savf infatti non si &#8220;consuma&#8221;.</span><br />
<span style="font-size: 14pt;">Questo comando è usato spesso quando sbagliamo a salvare la libreria o oggetto, ed invece di cancellare tutto (e quindi poi ricreare il savf) basta semplicemente usare la clear del savf CLRFSAVF.</span></p>
<h3>DLTSAVF&#8230; Cancelliamo!</h3>
<p><span style="font-size: 14pt;">Delete Savf.</span><br />
<span style="font-size: 14pt;">Finalmente possiamo cancellare il nostro savf, magari dopo avero usato. E&#8217; sempre bene non lasciare oggetti in giro che occupano spazio disco inutilmente!<br />
</span></p>
<h3> DSPSAVF&#8230;Verifichiamo il savf?</h3>
<p><span style="font-size: 14pt;">DISPLAY SAVF.</span><br />
<span style="font-size: 14pt;">Possiamo verificare cosa abbiamo salvato all&#8217;interno del savf.</span></p>
<p>&nbsp;</p>
<h3>&#8230; E adesso salviamo gli oggetti!</h3>
<p><span style="font-size: 14pt;">Quindi per prima cosa dobbiamo creare il nostro SAVF</span></p>
<p><span style="font-size: 14pt;"><em>CRTSAVF FILE(MYLIBRARY/MYSAVF) TEXT(&#8216;Qua puoi mettere la descrizione&#8217;)</em></span></p>
<p><span style="font-size: 14pt;">Dopo aver creato il nostro savf e possiamo, tramite comando SAVLIB o SAVOBJ salvare la nostra libreria SALVA_LIBR) nel nostro savf  (MYSAVF) oppure l&#8217;oggetto/i MYOBJ.</span></p>
<p><span style="font-size: 14pt;"><em>SAVLIB LIB(SALVA_LIBR) DEV(*SAVF) SAVF(MYLIBRARY/MYSAVF)</em></span></p>
<p><span style="font-size: 14pt;">Oppure con SAVOBJ per gli oggetti/o</span></p>
<p><span style="font-size: 14pt;"><em>SAVOBJ OBJ(MYOBJ) LIB(MYLIBRARY) DEV(*SAVF) SAVF(MYLIBRARY/MYSAVF)</em></span></p>
<p><span style="font-size: 14pt;"><em><br />
</em></span><span style="font-size: 14pt;"><strong>Suggerimento:</strong></span><br />
<span style="font-size: 14pt;">Il comando SAVOBJ e SAVLIB ha moltissime opzioni,  tra i più importanti è il &#8220;<strong>Target release</strong>&#8221; che deve essere utilizzato se la relase del sistema operativo target è piu vecchio di quello dove ci troviamo. In questo caso, senza specificare il &#8220;Target release&#8221; <strong>NON </strong>sarà possibile eseguire il restore del salvataggio.</span></p>
<p><span style="font-size: 14pt;"><strong>Attenzione:</strong><br />
Dobbiamo anche <strong>creare un savf</strong> &#8220;vuoto&#8221; nel <strong>IBMi targe</strong>t con lo stesso identico comando.</span></p>
<p><span style="font-size: 14pt;"><em>CRTSAVF FILE(MYLIBRARY/MYSAVF)</em></span></p>
<p><span style="font-size: 14pt;"><strong>Suggerimento:</strong></span><br />
<span style="font-size: 14pt;">E&#8217; utile di utilizzare lo stesso nome del savf spedente cosi non fate confusione.</span></p>
<h3>&#8230;..FTP finalmente</h3>
<p><span style="font-size: 14pt;">Per eseguire FTP è necessario indirizzo IP o nomehost del server target. Il comando quindi sarà:</span></p>
<p><span style="font-size: 14pt;"><em>FTP RMTSYS(IP_REMOTO)</em>  oppure <em>FTP RMTSYS(NomeHost_REMOTO)</em></span></p>
<p><span style="font-size: 14pt;">Se va tutto bene vi restituirà la connessione corretta:</span></p>
<p><span style="font-size: 14pt;"><em>Connecting to remote host IP_REMOTO using port 21.</em></span><br />
<span style="font-size: 14pt;"><em>220-QTCP NomeHost_REMOTO </em></span><br />
<span style="font-size: 14pt;"><em>220 Connection will close if idle more than 5 minutes.</em></span></p>
<p><span style="font-size: 14pt;">Più in basso vi chiederà il login ID del server remoto, suggerendo quello del login attuale locale</span></p>
<p><em><span style="font-size: 14pt;"> Enter login ID (IDLOCALE)</span><br />
</em><span style="font-size: 14pt;">mettiamo lo user e vi chiederà la password</span></p>
<p><span style="font-size: 14pt;"><strong>Suggerimento:</strong></span><br />
<span style="font-size: 14pt;">verificate che il profilo sia abilitato o con password non in scadenza altrimenti non si potrà eseguire il login al server remoto (user rejected).</span></p>
<p><span style="font-size: 14pt;">Se tutto è andato a buon fine si avrà finalmente accesso al IBMi remoto.</span></p>
<p><span style="font-size: 14pt;"><em> 230 IDLOCAL logged on. </em></span><br />
<span style="font-size: 14pt;"><em>OS/400 is the remote operating system. The TCP/IP version is &#8220;V7R2M0&#8221;. </em></span><br />
<span style="font-size: 14pt;"><em>250 Now using naming format &#8220;0&#8221;. </em></span><br />
<span style="font-size: 14pt;"><em>257 &#8220;QGPL&#8221; is current library.</em></span></p>
<p><span style="font-size: 14pt;">A questo punto dobbiamo digitare la libreria locale dove è il savf e la libreria di destinazione dove fare il trasfer file del savf (infatti la libreria di default è sempre QGPL).</span></p>
<p><span style="font-size: 14pt;"><strong>Suggerimento:</strong></span><br />
<span style="font-size: 14pt;">E&#8217; utile creare una libreria di parcheggio in entrambi i sistemi per non lasciare troppi savf in giro.</span></p>
<p><span style="font-size: 14pt;">I comandi sono simili LCD (LocalCD) e CD.</span></p>
<p><span style="font-size: 14pt;">LCD NomeLibreria</span><br />
<span style="font-size: 14pt;">CD NomeLibreriaRemota</span></p>
<p><span style="font-size: 14pt;">Prima di spedire il nostro savf dobbiamo mettiamo in BINARIO il protocollo FTP tramite comando</span></p>
<p><span style="font-size: 14pt;"><em>BIN</em></span></p>
<p><span style="font-size: 14pt;">Adesso siamo finalmente pronti ad usare il comando</span></p>
<p><span style="font-size: 14pt;"><em>Put mysavf </em></span><br />
<span style="font-size: 14pt;"><em>50 Now using naming format &#8220;0&#8221;. </em></span><br />
<span style="font-size: 14pt;"><em>57 &#8220;MYLIBRARY&#8221; is current library. </em></span><br />
<span style="font-size: 14pt;"><em>29 Entering Extended Passive Mode (!!!49878!). </em></span><br />
<span style="font-size: 14pt;"><em>50 Sending file to member MYSAVF in file MYSAVF  in library MYLIBRARY. </em></span><br />
<span style="font-size: 14pt;"><em>26 File transfer completed successfully. </em></span><br />
<span style="font-size: 14pt;"><em>94236544 bytes transferred in 31.020 seconds. Transfer rate 19156.852 KB/sec.</em></span></p>
<p><span style="font-size: 14pt;">Per uscire F3 (1=Yes)  oppure quit</span></p>
<h3>&#8230;Finalmente Restore</h3>
<p><span style="font-size: 14pt;">Ok.. il savf è finalmente dall&#8217;altra parte. Ma appunto non abbiamo i file restorato ma solo il savf.</span></p>
<p><span style="font-size: 14pt;">Per ripristinare la libreria o gli oggetti bisogna utilizzare il corrispettivo RST del comando SAV, quindi SAVOBJ&#8211;&gt; RSTOBJ e SAVLIB&#8211;&gt;RSTLIB</span></p>
<p><em>RSTLIB LIB(SALVA_LIBR) DEV(*SAVF) SAVF(MYLIBRARY/MYSAVF)</em></p>
<p>Oppure con SAVOBJ per gli oggetti/o</p>
<p><em>RSTOBJ OBJ(MYOBJ) LIB(MYLIBRARY) DEV(*SAVF) SAVF(MYLIBRARY/MYSAVF)</em></p>
<p>&nbsp;</p>
<p style="text-align: center;"><span style="color: #8a2be2; font-size: 14pt;">Alla prossima con un altro Post!!!</span><br />
<span style="color: #8a2be2; font-size: 14pt;"><strong>Vostro iBlog127</strong></span></p>
<p><span style="font-size: 10pt;">Fonte:</span><br />
<a href="http://www.ibm.com"><span style="font-size: 10pt;">www.IBM.com</span></a></p>
<p>&nbsp;</p>
<p>L'articolo <a href="https://iblog127.it/informatica/ftp-tra-ibmi/">FTP tra IBMI</a> proviene da <a href="https://iblog127.it">iBlog127.it</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
