Page 1 of 2

Retrun Code 12 while trying to convert EBCDIC to ASCII

PostPosted: Wed Nov 27, 2013 9:24 am
by mbattu
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

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

PostPosted: Wed Nov 27, 2013 12:59 pm
by BillyBoyo
Post your sysout from the step please. In the Code tags.

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

PostPosted: Wed Nov 27, 2013 2:02 pm
by mbattu
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

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

PostPosted: Wed Nov 27, 2013 3:06 pm
by NicC
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.

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

PostPosted: Wed Nov 27, 2013 3:51 pm
by Robert Sample
Did you leave at least one space at the beginning of your OUTREC line as DFSORT requires?

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

PostPosted: Wed Nov 27, 2013 4:19 pm
by BillyBoyo
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.

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

PostPosted: Wed Nov 27, 2013 6:07 pm
by mbattu
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

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

PostPosted: Wed Nov 27, 2013 8:14 pm
by dick scherrer
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.

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

PostPosted: Wed Nov 27, 2013 9:41 pm
by mbattu
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.

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

PostPosted: Wed Nov 27, 2013 9:53 pm
by BillyBoyo
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