INREC PARSE



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

INREC PARSE

Postby rtammire » Tue Jul 07, 2015 1:07 pm

Hello Everyone,

I am facing issue while parsing a file with length 10 bytes. Please find below the details.

Input file data

01.40
05.40
05
0
10000
123
1.14


My intention is to reformat the data as per below

Expected Output:

Command ===>       
****** ************
000001      01.40 
000002      05.40 
000003         05 
000004          0 
000005      10000 
000006        123 
000007       1.14 
****** ************
Below is the code i have used

//TOOLIN   DD  *                           
   COPY FROM(INFILE) TO(OUTFILE) USING(CTL1)
/*                                         
//CTL1CNTL DD  *                           
  INREC PARSE=(%0=(ENDBEFR=C' ',FIXLEN=9), 
  BUILD=(%0)                               
/*       


Issue details:"

ICE000I 0 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R12 - 08:27 ON TUE JU
            INREC PARSE=(%0=(ENDBEFR=C' ',FIXLEN=9),                           
            BUILD=(%0)                                                         
            $                                                                   
ICE243A F PARSED FIELD DEFINITION ERROR                                         
ICE146I 0 END OF STATEMENTS FROM CTL1CNTL - PARAMETER LIST STATEMENTS FOLLOW   
          DEBUG NOABEND,ESTAE                                                   
          OPTION MSGDDN=DFSMSG,LIST,MSGPRT=ALL,RESINV=0,SORTDD=CTL1,SORTIN=INFIL
                         ,SORTOUT=OUTFILE,DYNALLOC                             
          SORT FIELDS=COPY           


Can anyone help me in this regard. Thanks in advance

Code'd
rtammire
 
Posts: 12
Joined: Tue Nov 27, 2012 1:19 am
Has thanked: 1 time
Been thanked: 0 time

Re: INREC PARSE

Postby BillyBoyo » Tue Jul 07, 2015 1:20 pm

You need to count your brackets/parentheses.

PARSE will not get you there anyway, you want to look at JFY with SHIFT=RIGHT.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: INREC PARSE

Postby rtammire » Tue Jul 07, 2015 1:27 pm

My applogies.. It's working after using JFY with SHIFT=RIGHT.. Thanks Billyboyo..
rtammire
 
Posts: 12
Joined: Tue Nov 27, 2012 1:19 am
Has thanked: 1 time
Been thanked: 0 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post