Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Convert file from EBCDIC to ASCII using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Convert file from EBCDIC to ASCII using JCL
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jan 06, 2010 7:37 pm    Post subject:
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    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jan 06, 2010 8:07 pm    Post subject:
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    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jan 06, 2010 8:14 pm    Post subject:
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    Post subject:
Reply with quote

Hello raj_mainframe08,

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

Site Director


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

PostPosted: Thu Jan 07, 2010 8:38 pm    Post subject:
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    Post subject:
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

Site Director


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

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

Hello Dominic,

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

DFSORT Moderator


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

PostPosted: Fri Oct 29, 2010 1:21 am    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us