Hi Rob,
So you're saying the job picks up the CCSID from either the user profile or the SYSVAL and overrides the file setting? Makes sense, I still have these issues though:
1) Using SFTP, not FTP, so no ASCII command.
2) I tried changing the CCSID on the user profile to 00367, tells me 367 is not valid.
3) I tried changing the file with CHGPF, no error, but a DSPFD now shows 500 (It used to be 37). What the ..... ?
Is there some problem with 367 I'm not aware of? That should be the ASCII CCSID, correct?
Thanks
Adam Driver | Senior Power Systems Engineer | Meridian IT Inc.
Office: 847-964-2705 | Mobile: 224 250 9049 | F 847-317-8590
adriver@xxxxxxxxxxxxxxxxx<mailto:adriver@xxxxxxxxxxxxxxxxx> |
http://www.onlinemeridian.com<
https://209.252.64.117/exchweb/bin/redir.asp?URL=http://www.onlinemeridian.com/>
Nine Parkway North Suite 500, Deerfield, Illinois 60015
date: Thu, 21 Dec 2017 07:26:36 -0500
from: Rob Berendt <rob@xxxxxxxxx<mailto:rob@xxxxxxxxx>>
subject: Re: Specifying ASCII with SFTP
DSPFD ERPLXF/RCO
Coded character set identifier . . . . . . : CCSID 937
DSPSYSVAL QCCSID
37
DSPUSRPRF ROB
Language identifier . . . . . . . . . . . : *SYSVAL
Country or region identifier . . . . . . . : *SYSVAL
Coded character set identifier . . . . . . : *SYSVAL
Character identifier control . . . . . . . : *SYSVAL
Job: QTFTP00062 (found with WRKOBJLCK ROB *USRPRF)
Language identifier . . . . . . . . . . . . . . . : ENU
Country or region identifier . . . . . . . . . . : US
Coded character set identifier . . . . . . . . . : 37
Default coded character set identifier . . . . . : 37
ftp gdisys
C:\Users\rob>ftp gdisys
Connected to gdisys.corp.dekko.com.
220-QTCP at GDISYS.CORP.DEKKO.COM.
220 Connection will close if idle more than 5 minutes.
501 OPTS unsuccessful; specified subcommand not recognized.
User (gdisys.corp.dekko.com:(none)): rob
331 Enter password.
Password:
230 ROB logged on.
ftp> quote site namefmt 1
250 Now using naming format "1".
ftp> ascii
200 Representation type is ASCII nonprint.
ftp> get /qsys.lib/erplxf.lib/rco.file/rco.mbr
200 PORT subcommand request successful.
150 Retrieving member RCO in file RCO in library ERPLXF.
226 File transfer completed successfully.
ftp: 8970 bytes received in 0.00Seconds 8970000.00Kbytes/sec.
ftp>
C:\Users\rob>type rco.mbr
A GROUP DEKKO 6928 N 400 E PO BOX 2000
Of course, the packed data columns look like crud.
hmm, I don't know if we have that PO box anymore...
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
As an Amazon Associate we earn from qualifying purchases.