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: 1258
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: 7314

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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm

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