Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
OUTFIL with multiple output files with count only

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
garunmj

New User


Joined: 10 Jul 2014
Posts: 3
Location: USA

PostPosted: Thu Nov 06, 2014 7:08 pm    Post subject: OUTFIL with multiple output files with count only
Reply with quote

HI,

Needed help with the following problem. I am trying to write the counts (only) of records which satisfies certain conditions in to 3 different files. the following is the SORT card I am using.

Code:
SYSIN :                                                     
  SORT FIELDS=COPY                                           
  OUTFIL FILES=01,                                           
       INCLUDE=(52,2,CH,EQ,C'LS',AND,(138,3,CH,EQ,C'ACT',OR,
              138,4,CH,EQ,C'TACT'),AND,                     
              1109,20,CH,EQ,C'OAK ISLAND'),NODETAIL,         
      TRAILER1=(COUNT=(M10,LENGTH=10))                       
  OUTFIL FILES=02,                                           
      INCLUDE=(52,2,CH,EQ,C'LS',AND,(138,3,CH,EQ,C'ACT',OR, 
              138,4,CH,EQ,C'TACT'),NODETAIL,                 
      TRAILER1=(COUNT=(M10,LENGTH=10))                       
                                      *                     
  OUTFIL FILES=03,                                           
      INCLUDE=(138,3,CH,EQ,C'ACT',OR,                       
              138,4,CH,EQ,C'TACT'),NODETAIL,                 
      TRAILER1=(COUNT=(M10,LENGTH=10))                       
WER268A  OUTFIL STATEMENT  : SYNTAX ERROR                   
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE               


Can you tell me the correct syntax?

Thanks
George

Code'd
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1243
Location: Israel

PostPosted: Thu Nov 06, 2014 7:51 pm    Post subject:
Reply with quote

The INCLUDE in 2nd OUTFIL is missing a parenthesis.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Nov 06, 2014 8:43 pm    Post subject: Reply to: OUTFIL with multiple output files with count only
Reply with quote

Also looks to me as though your can improve clarity and performance by INCLUDE COND=(... for ACT and TACT. You can then remove all of those from your OUTFIL INCLUDE=s, which will simplify, and you won't process any non-ACT/TACT records at all, rather than processing to just ignore them.
Back to top
View user's profile Send private message
garunmj

New User


Joined: 10 Jul 2014
Posts: 3
Location: USA

PostPosted: Thu Nov 06, 2014 10:40 pm    Post subject:
Reply with quote

I feel so silly. It worked. Thank you!!
Back to top
View user's profile Send private message
garunmj

New User


Joined: 10 Jul 2014
Posts: 3
Location: USA

PostPosted: Thu Nov 06, 2014 10:43 pm    Post subject:
Reply with quote

Thank you Bill. That makes sense.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 3 Fri Sep 22, 2017 6:00 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us