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: 1228
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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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