Re: tn5250j file transfer for linux

Marshall Dunbar <[email protected]> Thu, 7 Apr 2016 14:55:35 +0000
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <D32BE92A.1D16D%[email protected]>
--===============0981885177685488621==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_D32BE92A1D16Dmarshalldpslinkcom_"

--_000_D32BE92A1D16Dmarshalldpslinkcom_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The issue has to do with name format.  Your IBMi is defaulting to path (for=
mat 1) naming.  The default naming is lib (format 0).  Someone has changed =
your IBMi FTP server attributes to default to path naming.  It is easy to c=
hange interactively from an FTP client,

site namefmt 0

I've never used the file transfer in tn5250j, so I don't know if it is poss=
ible to add that command in a configuration file so it would be executed af=
ter the logon in FTP.

Your other choice would be to change the FTP server attributes back to the =
defaults, but would be system wide and affect all users on your system.  I =
believe you'd need to change initial name format and initial directory:

CHGFTPA:

 Initial name format  . . . . . .   *LIB          *SAME, *LIB, *PATH
 Initial directory  . . . . . . .   *CURLIB       *SAME, *CURLIB, *HOMEDIR

After that change you would need to stop and start the FTP server on your I=
BMi.
--
Marshall Dunbar


From: Jason Cawood <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:tn5250j-general@lis=
ts.sourceforge.net>" <[email protected]<mailto:tn5250j-=
[email protected]>>
Date: Wednesday, April 6, 2016 at 9:13 PM
To: "[email protected]<mailto:[email protected]=
rceforge.net>" <[email protected]<mailto:tn5250j-genera=
[email protected]>>
Subject: [Tn5250j-general] tn5250j file transfer for linux

Have any of you gotten the file transfer portion to work on a linux machine=
?

when I attempt I get the following log:

220-QTCP at server.hostname.com<http://server.hostname.com>.
220 Connection will close if idle more than 5 minutes.

SENT: USER user
331 Enter password.
SENT: PASS ****************
230 user logged on.
SENT: SYST
215 OS/400 is the remote operating system. The TCP/IP version is "V5R4M0".
SENT: PWD
257 "/home/user" is current directory.
SENT: RCMD dspffd FILE(user/file) OUTPUT(*OUTFILE) OUTFILE(QTEMP/FFD)
250 Command dspffd FILE(user/file) OUTPUT(*OUTFILE) OUTFILE(QTEMP/FFD) succ=
essful.
SENT: PORT 192,168,1,225,203,198
200 PORT subcommand request successful.
SENT: RETR QTEMP/FFD
550 Unable to find file /home/user/QTEMP/FFD

is this a permissions issue, or something more?
--
Thank you
Jason Cawood

--_000_D32BE92A1D16Dmarshalldpslinkcom_
Content-Type: text/html; charset="iso-8859-1"
Content-ID: <[email protected]>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>
<div>The issue has to do with name format. &nbsp;Your IBMi is defaulting to=
 path (format 1) naming. &nbsp;The default naming is lib (format 0). &nbsp;=
Someone has changed your IBMi FTP server attributes to default to path nami=
ng. &nbsp;It is easy to change interactively from an
 FTP client,&nbsp;</div>
<div><br>
</div>
<div>site namefmt 0</div>
<div><br>
</div>
<div>I&#8217;ve never used the file transfer in tn5250j, so I don&#8217;t k=
now if it is possible to add that command in a configuration file so it wou=
ld be executed after the logon in FTP.</div>
<div><br>
</div>
<div>Your other choice would be to change the FTP server attributes back to=
 the defaults, but would be system wide and affect all users on your system=
. &nbsp;I believe you&#8217;d need to change initial name format and initia=
l directory:</div>
<div><br>
</div>
<div>CHGFTPA:</div>
<div><br>
</div>
<div>
<div>&nbsp;Initial name format &nbsp;. . . . . . &nbsp; *LIB &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp;*SAME, *LIB, *PATH &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp;Initial directory &nbsp;. . . . . . . &nbsp; *CURLIB &nbsp; &nbs=
p; &nbsp; *SAME, *CURLIB, *HOMEDIR</div>
</div>
<div><br>
</div>
<div>After that change you would need to stop and start the FTP server on y=
our IBMi.</div>
<div>
<p class=3D"MsoNormal" style=3D"font-size: 11pt; margin: 0in 0in 0.0001pt;"=
><span style=3D"font-size: 12pt; font-family: 'Estrangelo Edessa';">--</spa=
n></p>
<p class=3D"MsoNormal" style=3D"font-size: 11pt; margin: 0in 0in 0.0001pt;"=
><span style=3D"font-size: 12pt; font-family: 'Estrangelo Edessa';">Marshal=
l Dunbar<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin: 0in 0in 0.0001pt; "><br>
</p>
<p class=3D"MsoNormal" style=3D"font-size: 11pt; margin: 0in 0in 0.0001pt;"=
><span style=3D"font-family: 'Estrangelo Edessa'; font-size: 12pt; color: r=
gb(41, 101, 173);"></span></p>
</div>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Jason Cawood &lt;<a href=3D"m=
ailto:[email protected]">[email protected]</a>&gt;<br>
<span style=3D"font-weight:bold">Reply-To: </span>&quot;<a href=3D"mailto:t=
[email protected]">[email protected]=
</a>&quot; &lt;<a href=3D"mailto:[email protected]">tn5=
[email protected]</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Wednesday, April 6, 2016 at 9=
:13 PM<br>
<span style=3D"font-weight:bold">To: </span>&quot;<a href=3D"mailto:tn5250j=
[email protected]">[email protected]</a>&q=
uot; &lt;<a href=3D"mailto:[email protected]">tn5250j-g=
[email protected]</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>[Tn5250j-general] tn5250j =
file transfer for linux<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir=3D"ltr">
<div>
<div>Have any of you gotten the file transfer portion to work on a linux ma=
chine?<br>
<br>
</div>
when I attempt I get the following log:<br>
<br>
220-QTCP at <a href=3D"http://server.hostname.com" target=3D"_blank">server=
.hostname.com</a>.
<br>
220 Connection will close if idle more than 5 minutes. <br>
<br>
SENT: USER user <br>
331 Enter password. <br>
SENT: PASS **************** <br>
230 user logged on. <br>
SENT: SYST <br>
215 OS/400 is the remote operating system. The TCP/IP version is &quot;V5R4=
M0&quot;. <br>
SENT: PWD <br>
257 &quot;/home/user&quot; is current directory. <br>
SENT: RCMD dspffd FILE(user/file) OUTPUT(*OUTFILE) OUTFILE(QTEMP/FFD) <br>
250 Command dspffd FILE(user/file) OUTPUT(*OUTFILE) OUTFILE(QTEMP/FFD) succ=
essful.
<br>
SENT: PORT 192,168,1,225,203,198 <br>
200 PORT subcommand request successful. <br>
SENT: RETR QTEMP/FFD <br>
550 Unable to find file /home/user/QTEMP/FFD<br>
<br>
</div>
is this a permissions issue, or something more?</div>
<div dir=3D"ltr">-- <br>
</div>
<div dir=3D"ltr">Thank you<br>
Jason Cawood</div>
</div>
</div>
</span>
</body>
</html>

--_000_D32BE92A1D16Dmarshalldpslinkcom_--


--===============0981885177685488621==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============0981885177685488621==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tn5250j-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

--===============0981885177685488621==--