Re: FTP-Code page

2010-03-23 Thread Shmuel Metz (Seymour J.)
In
of0af3e9c9.64f28aea-on862576eb.00460b0f-862576eb.0046a...@agfinance.com,
on 03/19/2010
   at 07:51 AM, Ron Wells rwe...@agfinance.com said:

the character is a N ~(tilde) on top

FWIW, ¤ and ¥ are D1 and F1 in ISO-8859-1 and ISO-8859-15. They're
probably A4 and A5 in your current code page.

--
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see http://patriot.net/~shmuel/resume/brief.html We
don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


FTP-Code page

2010-03-19 Thread Ron Wells
Have a file...on a PC..ascii to be ftp'd to mainframe...
the data has spanish name...some not all..is there a code page that can be 
specified to alter or leave the character(s) alone...tried the spanish 
member in SEZATCPX  and ran a CONVXLAT and generated a new file..
had them to ftp using following...
quote site sbd=TCPIP.IBMX284.TCPXLBIN   the ibmx284 is the new dataset 
created...
the character is a N ~(tilde) on top...it gets converted to a D... maybe 
this s/b left alone??
or am I missing something here ..

--
Email Disclaimer
This  E-mail  contains  confidential  information  belonging to the sender, 
which  may be legally privileged information.  This information is intended 
only  for  the use of the individual or entity addressed above.  If you are not 
 the  intended  recipient, or  an  employee  or  agent responsible for 
delivering it to the intended recipient, you are hereby notified that any 
disclosure,  copying, distribution, or the taking of any action in reliance on 
the contents of the E-mail or attached files is strictly prohibited.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP-Code page

2010-03-19 Thread Staller, Allan
Try http://www-01.ibm.com/software/globalization/g11n-res.jsp

HTH,

snip
Have a file...on a PC..ascii to be ftp'd to mainframe...
the data has spanish name...some not all..is there a code page that can
be 
specified to alter or leave the character(s) alone...tried the spanish 
member in SEZATCPX  and ran a CONVXLAT and generated a new file..
had them to ftp using following...
quote site sbd=TCPIP.IBMX284.TCPXLBIN   the ibmx284 is the new dataset 
created...
the character is a N ~(tilde) on top...it gets converted to a D... maybe

this s/b left alone??
or am I missing something here ..
/snip

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP-Code page

2010-03-19 Thread Ron Wells
looks like it maybe 1145 code page...
so I run convx against that(it is my seza lib..as espanish) naming it 
tcpip.standard.tcpspbin ..
the command 
quote site sbd=TCPIP.STANDARD.TCPSPBIN 
this seem correct??



From:
Staller, Allan allan.stal...@kbm1.com
To:
IBM-MAIN@bama.ua.edu
Date:
03/19/2010 08:02 AM
Subject:
Re: FTP-Code page
Sent by:
IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu



Try http://www-01.ibm.com/software/globalization/g11n-res.jsp

HTH,

snip
Have a file...on a PC..ascii to be ftp'd to mainframe...
the data has spanish name...some not all..is there a code page that can
be 
specified to alter or leave the character(s) alone...tried the spanish 
member in SEZATCPX  and ran a CONVXLAT and generated a new file..
had them to ftp using following...
quote site sbd=TCPIP.IBMX284.TCPXLBIN   the ibmx284 is the new dataset 
created...
the character is a N ~(tilde) on top...it gets converted to a D... maybe

this s/b left alone??
or am I missing something here ..
/snip

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
Email Disclaimer
This  E-mail  contains  confidential  information  belonging to the sender, 
which  may be legally privileged information.  This information is intended 
only  for  the use of the individual or entity addressed above.  If you are not 
 the  intended  recipient, or  an  employee  or  agent responsible for 
delivering it to the intended recipient, you are hereby notified that any 
disclosure,  copying, distribution, or the taking of any action in reliance on 
the contents of the E-mail or attached files is strictly prohibited.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Fw: FTP-Code page

2010-03-19 Thread Ron Wells
Not doing what I was hoping ..so question
If PC that is FTP'ing to me is using code page 437
what would the code page for ascii to ebcdic for converting Spanish N(~) 
 tilde on top of the N.??





- Forwarded by Ron Wells/AGFS/AGFin on 03/19/2010 11:14 AM -

From:
Ron Wells/AGFS/AGFin
To:
IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu
Date:
03/19/2010 08:15 AM
Subject:
Re: FTP-Code page


looks like it maybe 1145 code page...
so I run convx against that(it is my seza lib..as espanish) naming it 
tcpip.standard.tcpspbin ..
the command 
quote site sbd=TCPIP.STANDARD.TCPSPBIN 
this seem correct??



From:
Staller, Allan allan.stal...@kbm1.com
To:
IBM-MAIN@bama.ua.edu
Date:
03/19/2010 08:02 AM
Subject:
Re: FTP-Code page
Sent by:
IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu



Try http://www-01.ibm.com/software/globalization/g11n-res.jsp

HTH,

snip
Have a file...on a PC..ascii to be ftp'd to mainframe...
the data has spanish name...some not all..is there a code page that can
be 
specified to alter or leave the character(s) alone...tried the spanish 
member in SEZATCPX  and ran a CONVXLAT and generated a new file..
had them to ftp using following...
quote site sbd=TCPIP.IBMX284.TCPXLBIN   the ibmx284 is the new dataset 
created...
the character is a N ~(tilde) on top...it gets converted to a D... maybe

this s/b left alone??
or am I missing something here ..
/snip

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
Email Disclaimer
This  E-mail  contains  confidential  information  belonging to the sender, 
which  may be legally privileged information.  This information is intended 
only  for  the use of the individual or entity addressed above.  If you are not 
 the  intended  recipient, or  an  employee  or  agent responsible for 
delivering it to the intended recipient, you are hereby notified that any 
disclosure,  copying, distribution, or the taking of any action in reliance on 
the contents of the E-mail or attached files is strictly prohibited.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Fw: FTP-Code page

2010-03-19 Thread Tony Harminc
On 19 March 2010 12:16, Ron Wells rwe...@agfinance.com wrote:
 Not doing what I was hoping ..so question
 If PC that is FTP'ing to me is using code page 437

Are you sure it is using CP 437? That was typically used by MS DOS,
and not by Windows. How did the data get onto the PC?

In CP 437, an upper case N-tilde (Ñ) is X'A5'. In CP 819 (ISO Latin-1)
and Windows Western it is at X'D1'. So you need to be sure what you
are converting *from*, first. How are you viewing the Ñ on the PC?
Browse the data with a hex editor and be sure.

 what would the code page for ascii to ebcdic for converting Spanish N(~)
 tilde on top of the N.??

Then you need to think about the target code page. If you are in North
America, it is probably either CP 037 or 1140, but both have Ñ in the
same position X'69'. If you are using one of the European CPs, such as
that for Spain (CP 284 with Ñ at X'7B'), then you have a different
requirement. What is going to be processing or displaying/printing the
EBCDIC data on the mainframe? If it is going to wind up being
displayed on a 3270 that is actually a PC emulator, then you need to
think about the translation back to ASCII at that stage!

Tony H.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-05 Thread Rafal Hanzel

Norbert Friemel pisze:

UTF-8 is a multibyte codepage.

Try:
'quote site encoding=m'
'quote site mbdataconn=(IBM-870,UTF-8)'


Thanks to all for your help

Norbert
your tip works great. It's the simplest thing which I could imagine

Thank you very much


Best regards,

Rafal Hanzel
Systems Programmer, RD of Computer System Department
ZETO Katowice Sp. z o.o.
ul. Owocowa 1
40-158 Katowice, Poland
Phone: +48 32 3589 246
Mobile:+48 501677656
e-mail: hanz...@zetokatowice.pl
www: http://www.zetokatowice.pl

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


FTP CODE PAGE

2010-02-04 Thread Rafal Hanzel

Hi all

I'd like to ftp file from z/OS to WinXP with conversion from EBCDIC to 
UTF-8
I tried 'quote site sbdataconn=(IBM-1047,UTF-8) but it doesn't show my 
polish letters

Is there any direct way to do this ?

--
Best regards,

Rafal Hanzel
Systems Programmer, RD of Computer System Department
ZETO Katowice Sp. z o.o.
ul. Owocowa 1
40-158 Katowice, Poland
Phone: +48 32 3589 246
Mobile:+48 501677656
e-mail: hanz...@zetokatowice.pl
www: http://www.zetokatowice.pl

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Steve Comstock

Rafal Hanzel wrote:

Hi all

I'd like to ftp file from z/OS to WinXP with conversion from EBCDIC to 
UTF-8
I tried 'quote site sbdataconn=(IBM-1047,UTF-8) but it doesn't show my 
polish letters

Is there any direct way to do this ?



Have you tried using ibm-870? That seems to be a code page that
supports Polish. 1047 does not have Polish in its list of
supported languages.

Reference: http://www.ibm.com/software/globalization/ccsid/ccsid_registered.jsp
and also: http://www.ibm.com/software/globalization/cp/cp00870.jsp


--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

  z/OS Application development made easier
* Our classes include
   + How things work
   + Programming examples with realistic applications
   + Starter / skeleton code
   + Complete working programs
   + Useful utilities and subroutines
   + Tips and techniques

Ask me about our new, reduced rates for purchasing our course materials
for use by your own trainers or Subject Matter Experts (SMEs).

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Rafal Hanzel

Steve Comstock pisze:


Have you tried using ibm-870? That seems to be a code page that
supports Polish. 1047 does not have Polish in its list of
supported languages.

Yes, I do.
When I try 'get data' using 'quote site sbdataconn=(IBM-870, UTF-8)' I 
receive :

  ' Data contains codepoints that cannot be translated '

I tried :
//ICONVEXEC PROC=EDCICONV,
// INFILE='TEST.TEST88',
// OUTFILE='TEST.TEST.ZZA',
// FROMC='IBM-870',
// TOC='UTF-8'
//SYSPRINT DD SYSOUT=*

and ftp binary format after that

It gives me good translation but all data are in one line :-(

Best regards,

Rafal Hanzel
Systems Programmer, RD of Computer System Department
ZETO Katowice Sp. z o.o.
ul. Owocowa 1
40-158 Katowice, Poland
Phone: +48 32 3589 246
Mobile:+48 501677656
e-mail: hanz...@zetokatowice.pl
www: http://www.zetokatowice.pl










--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Steve Comstock

Rafal Hanzel wrote:

Steve Comstock pisze:


Have you tried using ibm-870? That seems to be a code page that
supports Polish. 1047 does not have Polish in its list of
supported languages.

Yes, I do.
When I try 'get data' using 'quote site sbdataconn=(IBM-870, UTF-8)' I 
receive :

  ' Data contains codepoints that cannot be translated '

I tried :
//ICONVEXEC PROC=EDCICONV,
// INFILE='TEST.TEST88',
// OUTFILE='TEST.TEST.ZZA',
// FROMC='IBM-870',
// TOC='UTF-8'
//SYSPRINT DD SYSOUT=*

and ftp binary format after that

It gives me good translation but all data are in one line :-(

Best regards,

Rafal Hanzel
Systems Programmer, RD of Computer System Department
ZETO Katowice Sp. z o.o.
ul. Owocowa 1
40-158 Katowice, Poland
Phone: +48 32 3589 246
Mobile:+48 501677656
e-mail: hanz...@zetokatowice.pl
www: http://www.zetokatowice.pl


Well, that's due to line ends, of course.


I'm working on a utility program, to run on z/OS,
that will convert / repackage files including
line end conversion and a variety of code page
conversions.

From: MVS flat file (F, FB, V, VB)
orHFS file (filedata={text|binary|record}),
   possibly with length prefix or
   you specify the record delimiter

To:   MVS flat file (F, FB, V, VB)
orHFS file (filedata={text|binary|record}),
   possibly with length prefix or
   you specify the record delimiter

skip some records on input
stop after some records on output

selected records composed of fields from input and literals

fields identified as string can be converted between any
supported code pages (several EBCDIC and ASCII as well as
UTF-8, UTF-16, and UTF-32); 870 wasn't in my initial ship
plan but it could be added; and I'll have instructions
for adding your own codepage mappings

fields identified as zoned decimal can be packed or
converted to binary or edited; fields identified as
packed can be converted to binary, edited, converted
to zoned, converted to packed but different size, etc.


Include optional header and trailer lines (e.g.: HTML or
XML headers and trailers)

-

Moving right along, but it will be a few months before
it'll be ready to go, I imagine. When it's ready it
might be just the thing you're looking for.




--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

Do It Yourself training:

Ask me about our new, reduced rates for purchasing our course materials
for use by your own trainers or Subject Matter Experts (SMEs).

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Rafal Hanzel

Steve Comstock pisze:


Well, that's due to line ends, of course.



-

Moving right along, but it will be a few months before
it'll be ready to go, I imagine. When it's ready it
might be just the thing you're looking for.




Steve thanks for reply

I do some test and if I ..
1. OCOPY INDD(INMVS) OUTDD(OUTHFS) TEXT CONVERT(NO) PATHOPTS(USE)
2. iconv -f IBM-870 -t utf-8 OUTHFS  OUTTEST
3. ftp binary OUTTEST
it's all OK ... ( I think so .. it's end of my work and maybe something 
is not checked)


But provided is all checked... why is it working on this way ??

Is it possible to run iconv directly in JCL ?

TIA

Best regards,

Rafal Hanzel
Systems Programmer, RD of Computer System Department
ZETO Katowice Sp. z o.o.
ul. Owocowa 1
40-158 Katowice, Poland
Phone: +48 32 3589 246
Mobile:+48 501677656
e-mail: hanz...@zetokatowice.pl
www: http://www.zetokatowice.pl






--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Field, Alan C.
Here's an In-line proc I've used to run ICONV.

Alan


//EDCICONV PROC INFILE=,  INPUT DATA SET   
//   OUTFILE=,OUTPUT DATA SET  
//   FROMC=,  INPUT CODE SET NAME  
//   TOC= OUTPUT CODE SET NAME 
//* 
//EDCICONV  EXEC PGM=EDCICONV,REGION=10M,   
//   PARM=('FROMCODE(FROMC),TOCODE(TOC)') 
//SYSUT1DD DISP=SHR,DSN=INFILE 
//SYSUT2DD DISP=SHR,DSN=OUTFILE
//SYSPRINT  DD SYSOUT=* 
//SYSIN DD DUMMY
//  PEND
//CONV EXEC EDCICONV,   
// INFILE=userid.MTGLB03.PRODE, 
// OUTFILE=userid.MTGLB03.PRODA,
// FROMC='IBM-1047',
// TOC='ISO8859-1'  


Is it possible to run iconv directly in JCL ?

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Norbert Friemel
On Thu, 4 Feb 2010 14:32:03 +0100, Rafal Hanzel wrote:

When I try 'get data' using 'quote site sbdataconn=(IBM-870, UTF-8)' I
receive :
   ' Data contains codepoints that cannot be translated '

UTF-8 is a multibyte codepage.

Try:
'quote site encoding=m'
'quote site mbdataconn=(IBM-870,UTF-8)' 

(MBdataconn not SBdataconn)
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B990/4.5.3?SHELF=EZ2ZBK0HDT=20090326164815

Norbert Friemel

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP CODE PAGE

2010-02-04 Thread Kirk Wolf
FYIW, you can use IBM Ported Tools OpenSSH with Co:Z SFTP (free) to do this.

(from WinXP using Putty SFTP to z/OS with Co:Z SFTP and Ported Tools):

C:\ psftp u...@zoshost
psftp ls /+mode=text
psftp ls /+clientcp=utf-8
psftp ls /+linerule=crlf== if you want Windoze CRLFs as line
terminators
psftp get //HLQ.MY.DATASET

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

PS If you prefer a single byte encoding, you might want to use
ISO8859-2, which AFAIK covers Polish characters.


2010/2/4 Rafal Hanzel hanz...@zetokatowice.pl:
 Hi all

 I'd like to ftp file from z/OS to WinXP with conversion from EBCDIC to UTF-8
 I tried 'quote site sbdataconn=(IBM-1047,UTF-8) but it doesn't show my
 polish letters
 Is there any direct way to do this ?

 --
 Best regards,

 Rafal Hanzel
 Systems Programmer, RD of Computer System Department
 ZETO Katowice Sp. z o.o.
 ul. Owocowa 1
 40-158 Katowice, Poland
 Phone: +48 32 3589 246
 Mobile:+48 501677656
 e-mail: hanz...@zetokatowice.pl
 www: http://www.zetokatowice.pl

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
 Search the archives at http://bama.ua.edu/archives/ibm-main.html


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html