IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT error in splitting into two files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Fri Aug 17, 2007 11:33 am
Reply with quote

Hi,

Am getting error in this sort pgm.

Code:

//GOSORT1 EXEC BOSSORT                                                 
//SORTIN  DD DSN=UKTEST.W.PRM3.Z18.H200.AW68,DISP=SHR                   
//SORTOF1 DD DSN=UKTEST.W.PRM3.Z18.H200.AW68.SORT1,DISP=(,CATLG),   
//            UNIT=(SYSDA,5),SPACE=(CYL,(30,3))                         
//SORTOF2 DD DSN=UKTEST.W.PRM3.Z18.H200.AW68.SORT2,DISP=(,CATLG),   
//            UNIT=(SYSDA,5),SPACE=(CYL,(30,3))                         
//SYSIN   DD *                                                         
  SORT FIELDS=(001,02,CH,A,                       MANCO                 
              411,04,PD,A,                       DATE                   
              416,07,CH,A,                       PAYEE AGENT CODE       
              325,03,CH,A,                       TRUST (H200AC)         
              379,04,PD,A)                       RATE (H200AC)
  OUTFIL FILES=1,OMIT=((064,02,CH,EQ,C'00'),OR,                         
            (064,02,CH,EQ,C'01'),OR,      IGNORE RECORD TYPE '01'       
            (064,02,CH,EQ,C'99'),OR,      IGNORE RECORD TYPE '99'       
            (003,01,CH,EQ,C'0'),OR,       IGNORE CHEQUE INDICATOR '0'   
            (424,01,CH,EQ,C'1'),OR,       IGNORE PAYEE AGENT STATUS '1'
            (424,01,CH,EQ,C'2'),OR,       IGNORE PAYEE AGENT STATUS '2'
            (004,01,CH,EQ,C'1'),OR,       IGNORE AGENT STATUS '1'       
            (004,01,CH,EQ,C'2'))          IGNORE AGENT STATUS '2'
  OUTFIL FILES=2,INCLUDE=((064,02,CH,EQ,C'00'),OR,                     
            (064,02,CH,EQ,C'01'),OR,      IGNORE RECORD TYPE '01'       
            (064,02,CH,EQ,C'99'),OR,      IGNORE RECORD TYPE '99'       
            (003,01,CH,EQ,C'0'),OR,       IGNORE CHEQUE INDICATOR '0'   
            (424,01,CH,EQ,C'1'),OR,       IGNORE PAYEE AGENT STATUS '1'
            (424,01,CH,EQ,C'2'),OR,       IGNORE PAYEE AGENT STATUS '2'
            (004,01,CH,EQ,C'1'),OR,       IGNORE AGENT STATUS '1'       
            (004,01,CH,EQ,C'2'))          IGNORE AGENT STATUS '2'       



Error is:

WER161B ALTERNATE PARM USED
WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE


Thanks
Prabha
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Aug 17, 2007 12:00 pm
Reply with quote

Prabha,

Quote:
WER268A OUTFIL STATEMENT : SYNTAX ERROR


Is it not OUTFIL FNAMES?
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Fri Aug 17, 2007 1:35 pm
Reply with quote

Please post the SYSOUT fully,i.e., starts from SYSIN line.
Check whether there is space between comment words and sort card sords.
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Fri Aug 17, 2007 7:45 pm
Reply with quote

murmohk1 wrote:
Prabha,

Quote:
WER268A OUTFIL STATEMENT : SYNTAX ERROR


Is it not OUTFIL FNAMES?


He would need to specify the DDNAME of his outputs if he'll use OUTFIL FNAMES and not the fileID.
Back to top
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Aug 17, 2007 8:37 pm
Reply with quote

It is INCLUDE/OMIT COND=(
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Aug 21, 2007 11:45 am
Reply with quote

Hi Prabha
This is info from QW
Quote:
WER268A 'STATEMENT' STATEMENT: SYNTAX ERROR
EXPLANATION: A SyncSort control statement, as
indicated in the message text, contains a syn-
tax error. The next line will contain an '*'
indicating the approximate location of the syn-
tax error.

If you paste the complete SYSOUT info here, will be able to help you!

CICS Guy
Quote:
It is INCLUDE/OMIT COND=(

INCLUDE/OMIT under OUTFIL doesn't require COND=
Whatever Prabha has used is correct
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 21, 2007 1:37 pm
Reply with quote

Hi Prabha,

Only one INCLUDE/OMIT control statement can be specified for an application, either as an INCLUDE or as an OMIT control statement. If you'll look again on your JCL, both the control statements have the same arguments supplied to them. Remove one control statement & check the output.

Hope this helps.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Aug 21, 2007 1:59 pm
Reply with quote

krisprems wrote:
If you paste the complete SYSOUT info here, will be able to help you!
Yes, that would answer many questions.....
krisprems wrote:
INCLUDE/OMIT under OUTFIL doesn't require COND=
Whatever Prabha has used is correct
Good point....
anuj_model wrote:
Only one INCLUDE/OMIT control statement can be specified for an application
Sorry, limit is one for each output file....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top