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
 
SYNCSORT error in splitting into two files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT error in splitting into two files
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: 1439
Location: Bangalore,India

PostPosted: Fri Aug 17, 2007 12:00 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Fri Aug 17, 2007 8:37 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 21, 2007 1:37 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Aug 21, 2007 1:59 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

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