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

Convert file from EBCDIC to ASCII using JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Wed Jan 06, 2010 7:30 pm
Reply with quote

Hi, Is there a way to convert a file from EBCDIC to ASCII file using JCL?
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: Wed Jan 06, 2010 7:37 pm
Reply with quote

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

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Wed Jan 06, 2010 8:02 pm
Reply with quote

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

Global Moderator


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

PostPosted: Wed Jan 06, 2010 8:07 pm
Reply with quote

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

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Wed Jan 06, 2010 8:12 pm
Reply with quote

I need something that can be run in mainframe batch..Is there a sample JCL for it?
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: Wed Jan 06, 2010 8:14 pm
Reply with quote

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

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Wed Jan 06, 2010 8:51 pm
Reply with quote

Hello raj_mainframe08,

If you have SORT, try ALTSEQ
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 07, 2010 8:38 pm
Reply with quote

Hello,

Why do you believe you need to create an ascii file on the mainframe?
Back to top
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Thu Jan 07, 2010 9:24 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 07, 2010 11:12 pm
Reply with quote

Hello Dominic,

Maybe raj_mainframe08 will clarify. . .
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Oct 29, 2010 1:21 am
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
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