Page 1 of 1

Need Julian Date in Trailer record

PostPosted: Mon Aug 10, 2015 6:17 pm
by arpitpatel01
Hi,

I have a 80 byte FB input file.
I need to write an output file that will have record count ,one file name with Julian date appended to it and other hardcoded values.
ex. MY.OUTPUT.FILE.Dccyyddd

I used the sort card below:-

SORT FIELDS=COPY                                         
 OUTFIL REMOVECC,                                       
        NODETAIL,                                       
        TRAILER1=('1000',' ',                           
                   COUNT=(M11,LENGTH=9),' ',             
                  '000000000000000',' ',                 
                  'ABCD',' ',                           
                  'MY.OUTPUT.FILE.D',DATE3)


Below error message was generated.
OUTFIL STATEMENT : SYNTAX ERROR

Can someone explain why DATE3 is not supported here.Sortcard works fine if DATE is used.

Thanks.

Re: Need Julian Date in Trailer record

PostPosted: Mon Aug 10, 2015 6:59 pm
by BillyBoyo
You should consult the documentation to discover what values are valid for dates in TRAILER1. DATE3 isn't there, but there are options for what you want, depending on exactly what you want.