Page 1 of 1

SYNCSORT SYSTEM DATE + DATA

PostPosted: Thu Feb 12, 2009 7:06 am
by cdellamas
In SYNCSORT, How will I create an output data + the current system date (in JULIAN format)

Re: SYNCSORT SYSTEM DATE + DATA

PostPosted: Thu Feb 12, 2009 8:49 am
by dick scherrer
Hello and welcome to the forum,

You need to post some sample input data and the output you want from that input.

Your title mentions Syncsort, but you posted in the cobol part of the forum. . . This is being moved to the Syncsort part of the forum. If this is not what you want, please clarify.

Re: SYNCSORT SYSTEM DATE + DATA

PostPosted: Thu Feb 19, 2009 3:22 am
by Alissa Margulies
cdellamas,

Assuming your input data is FB/80, and you want the Julian date added to the end of each record as yyyyddd, try this:

//SYSIN DD *         
   SORT FIELDS=COPY     
   OUTFIL BUILD=(1,80,&DATE3)