IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PC to Host for unicode file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tom Steiner

New User


Joined: 14 May 2016
Posts: 3
Location: USA

PostPosted: Mon May 16, 2016 10:38 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon May 16, 2016 11:36 pm
Reply with quote

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
View user's profile Send private message
Tom Steiner

New User


Joined: 14 May 2016
Posts: 3
Location: USA

PostPosted: Mon May 16, 2016 11:39 pm
Reply with quote

Thanks for your response - where can I find ftp (or equivalent) to run?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue May 17, 2016 12:36 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue May 17, 2016 9:33 pm
Reply with quote

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
View user's profile Send private message
Tom Steiner

New User


Joined: 14 May 2016
Posts: 3
Location: USA

PostPosted: Wed May 18, 2016 7:06 am
Reply with quote

Thank you both very much!!!!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top