Check if header date is eq current date (MM/DD/YYYY)



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

Check if header date is eq current date (MM/DD/YYYY)

Postby srajendran2 » Tue Jun 18, 2013 9:15 pm

I have a requirement to check if the header date is equivalent to current date. if it is not the rest of the processing should be skipped. The header date format is MM/DD/YYYY. I tried to use MD4. There is an error in the syntax. I think i have wrongly used the MD4 condition in the INCLUDE COND. PLease find below the code and error.

//ABCD1JA JOB (DWR,SYS999,TSO--TC3,TSTH,TSTH),             
//         MSGCLASS=X,REGION=4M,CLASS=A,NOTIFY=&SYSUID     
//*                                                         
//UCC11RMS  EXEC UCC11RMS,TYPRUN=P                         
//*                                                         
//SORT     EXEC PGM=SORT                                   
//SORTIN   DD DISP=SHR,DSN=TSTH.AAAAAA.REXX.INPUT           
//SYSOUT   DD SYSOUT=*                                     
//SORTOUT  DD DSN=TSTH.DFSORT.OUTP,                         
//             DISP=(NEW,CATLG),                           
//             UNIT=SYSDA,                                 
//             SPACE=(CYL,(400,400),RLSE)                   
//SYSIN DD *                                               
  SORT FIELDS=COPY                                         
  INCLUDE COND=(1,10,CH,EQ,DATE=(MD4/))                     
/*                                     


Input is
05/31/2013
05/31/2013,BBBB,1,0.000000000,
05/31/2013,CCCC,3,0.000000000,
05/31/2013,DDDD,1,0.000000000,
05/31/2013,AAAA,4,0.000000000,

Product is SYNCSORT FOR Z/OS 1.3.2.1R
srajendran2
 
Posts: 1
Joined: Tue May 13, 2008 8:34 am
Has thanked: 0 time
Been thanked: 0 time

Re: Check if header date is eq current date (MM/DD/YYYY)

Postby Robert Sample » Tue Jun 18, 2013 9:19 pm

Do not post on multiple fora. The same people who respond on the other forum respond to this one.

Topic locked prior to deletion later.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Check if header date is eq current date (MM/DD/YYYY)

Postby NicC » Wed Jun 19, 2013 1:04 am

And as it is syncsort why post under DFsort - a competing product?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post