Hi,
I use the system z / OS version V1R6
How I see if my directory is /u/
and my file is encoded in ibm-1047 in that System??
==> oput 'xxxx.yyyy.zzz(member)' '/u/yourid/member' binary
==> omvs
==> iconv -f ibm-1047 -t iso8859-1 member > member2
==> exit
==> oget '/u/yourid/member2' 'xxxx.yyyy.zzz(member)' binary
In main menu, i have a command line option - ( option number 6 )
the above commands run this route??
sorry, I´m from Brazil and maybe I put not it well for you. But, I hope
solution this problem.
Regards
----- Original Message -----
From: "Steve Comstock" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: <[email protected]>
Sent: Sunday, September 21, 2008 3:00 AM
Subject: Re: Data conversion EBCDIC to ASCII
Claudio Marcio wrote:
Well, this is my situation
I have a member in a Dataset with EBCDIC data,
I need to turn into ASCII data
Which round dealing??
Regards,
OK, Claudio, but there are still possibilities that
are not clear:
* If you need to have it in ascii to be viewed
on a workstation, just access it with any
3270 emulator; that's automatic
* You could then cut and paste from your emulator
window into a text editor on your workstation
and save it on your workstation; the version
on your workstation will be ascii
Of course, this is tedious for large files
* You could FTP from the mainframe to the workstation
as text; on your workstation it will be ascii; then
FTP back to the mainframe as binary, then it will
be ascii on your mainframe (hmmm, except for those
nasty line-ends most ascii machines seem to love)
* You could write a little program in Assembler, PL/I,
COBOL, or C and do the conversion yourself; not too
hard. What's your language of choice?
* You could use z/OS UNIX:
==> oput 'xxxx.yyyy.zzz(member)' '/u/yourid/member' binary
==> omvs
==> iconv -f ibm-1047 -t iso8859-1 member > member2
==> exit
==> oget '/u/yourid/member2' 'xxxx.yyyy.zzz(member)' binary
This presupposes 1) you have z/OS UNIX segment defined and
your home directory is /u/yourid
2) the file is encoded in ibm-1047
Note that there are multiple ebcdic code pages; do you know
which one is being used?
Finally, I'm still curious as to how the ascii version
is to be used. That might give us some clues as to how
best to do the conversion.
----- Original Message ----- From: "Scott Barry" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: <[email protected]>
Sent: Saturday, September 20, 2008 10:31 PM
Subject: Re: Data conversion EBCDIC to ASCII
On Sat, 20 Sep 2008 22:20:11 -0300, Claudio Marcio <[EMAIL PROTECTED]>
wrote:
Hello,
I'm using below camando:
//INPUT DD
P=SHR - EBCDIC MEMBER
// OUTPUT DD xxxxx.yyyy.zzzzzz(member2),DISP=(,CATLG,DELETE), -
create new ASCII member in same dataset of the INPUT
member i
// DCB=(DSORG=PO,RECFM=FB,LRECL=80,BLKSIZE=27920)
//SYSTSIN DD *
OCOPY INDD(xxxxxxx.yyyy.zzzzzz(member))
OUTDD(xxxxxxx.yyyy.zzzzzz(member2))
TEXT CONVERT((BPXFX311)) FROM1047
returns the following error message:
IEF344I JOBCONV STEPCONV OUTPUT - ALLOCATION FAILED DUE TO DATA
FACILITY
SYSTEM
IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET
can you help me?
Regards
----- Original Message -----
From: "John McKown" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: <[email protected]>
Sent: Saturday, September 20, 2008 12:46 AM
Subject: Re: Data conversion EBCDIC to ASCII
On Fri, 19 Sep 2008, Claudio Marcio wrote:
Hello,
How do I convert a member with data EBCDIC to ASCII in the TSO
environment?
thanks
Claudio
A bit more information, please. Are you meaning in ISPF edit? Or do
you
mean a TSO command processor to do it? That is, some command such as:
E2A input.ebcdic.file output.ascii.file
?
In the latter case, you could possibly use the OCOPY command.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZA580
OCOPY INDD(EBCDIC) OUTDD(ASCII) TEXT CONVERT(BPXFX311) FROM1047
This translates from EBCDIC code page 1047 (C language, UNIX) to ASCII
code page ISO8859-1.
--
Q: What do theoretical physicists drink beer from?
A: Ein Stein.
Maranatha!
John McKown
Your parameters are inconsistent. You have OUTDD and INDD which are
DD-related, not DSN. Also, you specify DISP=(,CATLG,DELETE) but no
SPACE=
parameter, which would be required so you can provide directory-blocks.
I
would recommend pre-allocating the PDS with all required parameters, and
in
a second step use DISP=OLD with the member name specified in the DSN=
parameter. And, again, verify the proper syntax/specification of
INDD(?)
and OUTDD(?).
Scott Barry
SBBWorks, Inc.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
--
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
==> Check out the Trainer's Friend Store to purchase z/OS <==
==> application developer toolkits. Sample code in four <==
==> programming languages, JCL to Assemble or compile, <==
==> bind and test. <==
==> http://www.trainersfriend.com/TTFStore/index.html <==
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html