I'm confused

How does a BUILD statement with 12 comma constants produce output which 
contains only 3 commas?

> -----Original Message-----
> From: IBM Mainframe Discussion List <[email protected]> On
> Behalf Of Ron Thomas
> Sent: Friday, May 03, 2019 9:53 AM
> To: [email protected]
> Subject: Appending timestamp to the file
> 
> Hi . We are appending the timestamp to a CSV file and when we do the same  we 
> see
> the microsecond part is different  for all the rows . Is there a way to make 
> it same for
> all of the rows ?
> 
> Here below is the control card we used
> 
> OUTREC PARSE=(%01=(ENDBEFR=C'|',FIXLEN=4),
>               %02=(ENDBEFR=C'|',FIXLEN=9),
>               %03=(ENDBEFR=C'|',FIXLEN=7),
>               %04=(ENDBEFR=C'|',FIXLEN=11),
>               %05=(ENDBEFR=C'|',FIXLEN=2),
>               %06=(ENDBEFR=C'|',FIXLEN=4),
>               %07=(ENDBEFR=C'|',FIXLEN=3),
>               %08=(ENDBEFR=C'|',FIXLEN=2),
>               %09=(ENDBEFR=C'|',FIXLEN=10),
>               %10=(ENDBEFR=C'|',FIXLEN=10),
>               %11=(ENDBEFR=C'|',FIXLEN=05)),
> BUILD=(%01,C',',%02,C',',
>        %03,C',',%04,C',',
>        %05,C',',%06,C',',
>        %07,C',',%08,C',',
>        %09,C',',%10,C',',DATE=(4MD-),C'-',TIME(24.),C'.',SEQNUM,6,ZD,
>        C',',%11,C',')
> 
> The o/p we are getting as follows
> 
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000001,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000002,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000003,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000004,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000005,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000006,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000007,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000008,33
> ITBR800X  ,IT800X    ,2019-05-03-11.44.40.000009,33

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to