Page 1 of 1

Sort conversion

PostPosted: Wed Jul 16, 2008 8:31 pm
by jd020674
Hello,

I'm looking for solution to convert, using dfsort, icetool et other (not COBOL PGM)

+00000000845,09 to 00000008540I
-00000003278,18 to 00000032781Q

I try like this

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN    DD DISP=SHR,DSN=...
//SORTOUT   DD DISP=OLD,DSN=...
//SYSIN    DD    *
  OPTION COPY
  INREC BUILD=(001,058,
               059,15,SFF,TO=ZD,LENGTH=12)
/*


but the result is not totally correct, i have

000000084509 KO (I want 00000008540I) :o :o
00000032781Q OK

Is anybody can help me please.

thank, have a good day

Re: Sort conversion

PostPosted: Thu Jul 17, 2008 1:29 am
by Frank Yaeger
DFSORT's default is to use an F sign for ZD values. If you want a C sign instead of an F sign, you can use TO=ZDC instead of TO=ZD.

Re: Sort conversion

PostPosted: Thu Jul 17, 2008 1:15 pm
by jd020674
Alleluia !!! It's running correctly. Thanks a lot Frank.

Jack