Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1218
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: 7223

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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us