View previous topic :: View next topic
|
Author |
Message |
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
Hi, Is there a way to convert a file from EBCDIC to ASCII file using JCL? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Nope. JCL does nothing but execute programs. If you'd said you wanted to convert the file with a program or utility, THAT can be done -- but not using JCL. |
|
Back to top |
|
|
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
Is there any utility like sysncsort or some IBM utility that can be use to convert a file from EBCDIC to ASCII file using JCL? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Unix System Services command iconv is designed to do code page conversions, including EBCDIC and ASCII, and can be run via a batch job. |
|
Back to top |
|
|
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
I need something that can be run in mainframe batch..Is there a sample JCL for it? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Look in the Unix System Services commands manual for how to run batch Unix System Services commands. The same manual gives you the syntax for the iconv command. |
|
Back to top |
|
|
dominickim
New User
Joined: 28 Feb 2007 Posts: 65 Location: NS, CA
|
|
|
|
Hello raj_mainframe08,
If you have SORT, try ALTSEQ |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Why do you believe you need to create an ascii file on the mainframe? |
|
Back to top |
|
|
dominickim
New User
Joined: 28 Feb 2007 Posts: 65 Location: NS, CA
|
|
|
|
Hello Dick,
That is what I wanted to know, too.
If I put some alphabetics as an input, I got like:
Code: |
---+----1----+----2----+----3----+----4----+----5----+----6----+----7--
|+ + + < (+|+- &< ) .
| & | < + |(( + | |+.
- + + - + | |(( + +| < < + < | +
******************************** BOTTOM OF DATA ***********************
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Dominic,
Maybe raj_mainframe08 will clarify. . . |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
Is there any utility that can be use to convert a file from EBCDIC to ASCII |
With z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010), you can now use DFSORT's new TRAN=ETOA function to convert characters from EBCDIC to ASCII.
For complete details on the new functions for DFSORT and DFSORT's ICETOOL available with the Oct, 2010 PTF, see:
www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000242 |
|
Back to top |
|
|
|