Retrun Code 12 while trying to convert EBCDIC to ASCII



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby mbattu » Wed Nov 27, 2013 9:24 am

Hi, below is the JCL and am getting ICE14A 0 INVALID OPERATOR error while running it

//SORTIN    DD DSN=ebcdic file
//SORTOUT DD DSN=ascii file
//TOOLIN DD *
OUTREC BUILD=(1,4,5,TRAN=ETOA)
/*



I am using a VB file. Please help me out
mbattu
 
Posts: 9
Joined: Wed Nov 27, 2013 8:26 am
Has thanked: 4 times
Been thanked: 0 time

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby BillyBoyo » Wed Nov 27, 2013 12:59 pm

Post your sysout from the step please. In the Code tags.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby mbattu » Wed Nov 27, 2013 2:02 pm

Hi Billy, below is the output from TOOLMSG



1ICE600I 0 DFSORT ICETOOL UTILITY RUN STARTED
 ICE650I 0 VISIT http://www.ibm.com/storage/dfsort FOR ICETOOL PAPERS, EXAMPLES
 ICE632I 0 SOURCE FOR ICETOOL STATEMENTS:  TOOLIN
 ICE630I 0 MODE IN EFFECT:  STOP                                   
             OUTREC BUILD=(1,4,5,TRAN=ETOA)                                   
             $                                                                 
 ICE614A 0 INVALID OPERATOR                                                   
 ICE602I 0 OPERATION RETURN CODE:  12

 ICE601I 0 DFSORT ICETOOL UTILITY RUN ENDED - RETURN CODE:  12
mbattu
 
Posts: 9
Joined: Wed Nov 27, 2013 8:26 am
Has thanked: 4 times
Been thanked: 0 time

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby NicC » Wed Nov 27, 2013 3:06 pm

So you have a sort question - DFSort in particular - and you post in the JCL section not the DFsort section. Also, you were requested to use the code tags. I will move your post to the correct place and "code" it for you. In future please post correctly using the code tags where appropriate. If you do not know how to ise the code tags then please search the forum as it is often explained.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby Robert Sample » Wed Nov 27, 2013 3:51 pm

Did you leave at least one space at the beginning of your OUTREC line as DFSORT requires?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby BillyBoyo » Wed Nov 27, 2013 4:19 pm

I think you have a confusion between ICETOOL and SORT.

For SORT, you use SYSIN for the Control Cards, and there must be at least on leading blank on each line, as Robert indicates.

For ICETOOL, you use TOOLIN and a leading blank is not required.

You are using TOOLIN yet have a statement belonging to SORT (OUTREC) which starts in column one.

Exactly what you need to do depends on what you are trying to do, so you'll need to explain a little more.

These users thanked the author BillyBoyo for the post:
mbattu (Wed Nov 27, 2013 6:08 pm)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby mbattu » Wed Nov 27, 2013 6:07 pm

Yes Robert, I have left 2 spaces before OUTREC.

Thanks Billy, for the information. The main idea is to convert EBCDIC file to ASCII. Till now I have been using CONVERT option as I am having a Fixed length (FB) file for Input. Now it has changed to Variable length(VB), so I am unable to use it and searching for alternatives.

Can you please suggest any methods to do this. Thank You
mbattu
 
Posts: 9
Joined: Wed Nov 27, 2013 8:26 am
Has thanked: 4 times
Been thanked: 0 time

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby dick scherrer » Wed Nov 27, 2013 8:14 pm

Hello,

Are you converting just before a download from the mainframe to something *nix or Win-based?

If yes, the file transfer will do this and there is no need for you to do so.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby mbattu » Wed Nov 27, 2013 9:41 pm

Hi Dick,

I need to use the output ASCII file as input to other Job. I was using OCOPY option earlier. I couldn't able to understand the reason why ETOA is not working in the JCL I posted above. If there is any method to convert a variable length file from EBCDIC to ASCII, please let me know. Thanks.
mbattu
 
Posts: 9
Joined: Wed Nov 27, 2013 8:26 am
Has thanked: 4 times
Been thanked: 0 time

Re: Retrun Code 12 while trying to convert EBCDIC to ASCII

Postby BillyBoyo » Wed Nov 27, 2013 9:53 pm

Can you post the ICE000I and ICE201I messages from a SORT step. Your DFSORT may not be up-to-date enough to have TRAN=ETOA
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Next

Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post