View previous topic :: View next topic
|
Author |
Message |
Tom Steiner
New User
Joined: 14 May 2016 Posts: 3 Location: USA
|
|
|
|
My TSO session interactive send file to host pop-up uses IND$FILE to transfer files from the PC to the host. It transfers ASCII files fine but now I need to send a unicode file and there is no option to do that. Is there a TSO command to use on the ISPF screen to send a unicode file to the host? Thanks in advance. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You will need to use FTP or something other than IND$FILE to transfer the unicode data. Unless you get very lucky with your 3270 emulator vendor, IND$FILE generally does binary or text (ASCII-EBCDIC) transfers only. |
|
Back to top |
|
|
Tom Steiner
New User
Joined: 14 May 2016 Posts: 3 Location: USA
|
|
|
|
Thanks for your response - where can I find ftp (or equivalent) to run? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
FTP is available pretty much on any machine -- for Windows, you can bring up a command prompt and type in FTP -- or there are various products that can be installed to do FTP. You'll need the network name (or IP address) of the mainframe along with a user id and password that are valid for that machine (unless it allows anonymous ftp logons). You may have to specify the code page conversion, so you'll want to Google z/os 2.1 information center (or whatever release of z/OS you're running on) and look at the Communications Server bookshelf, IP User's Guide manual for the code page conversion choices (this will also give you the FTP subcommands that you can use). |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I have been working with UTF-8 files rather than unicode. Perhaps my setup will be of help:
Start FTP from Windows by specifying a bat file
Code: |
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Dir1>ftp -s:c:\\myftp.BAT |
The contents of the BAT file:
Code: |
open myMVS.acme.COM
PEDRO
mypassword
quote site en=mb
quote site mbd=(037,utf-8)
quote site trailingblanks
quote site ISPFSTATS
LCD C:/my/directory/PLI
CD 'PEDRO.MY.PDS.VB'
PUT MYPROG.PLI MYPROG
QUIT
EXIT |
The target of the FTP has to be a RECFM=VB file because the source file has a multi-byte encoding scheme. And by 'has to be', I mean FTP will not allow it otherwise.
Most people do not have an FTP server on their Windows system, so you have to FTP from Windows to MVS. |
|
Back to top |
|
|
Tom Steiner
New User
Joined: 14 May 2016 Posts: 3 Location: USA
|
|
|
|
Thank you both very much!!!!! |
|
Back to top |
|
|
|