MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sync sort - syntax error in OUTREC option

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Thu Oct 18, 2007 1:30 am    Post subject: sync sort - syntax error in OUTREC option Reply with quote

My Sort card is :
SYSIN DD *
INCLUDE COND=(322,7,CH,EQ,C'INBOUND',
OR,322,8,CH,EQ,C'OUTBOUND',
OR,322,8,CH,EQ,C'END TRAN')
SORT FIELDS=(210,7,CH,A,5,24,CH,A)

OUTREC FIELDS=(1:1,4,5:210,7,13:322,8,22:331,8,31:5,23,55:341,21)
IFTHEN=(WHEN=(322,8,CH,EQ,C'END TRAN'),OVERLAY=(1:7X))
/*

This is throwing syntax error.
can someone help in correcting this?



thanks,
Mahesh
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Oct 18, 2007 1:48 am    Post subject: Reply with quote

mahesh_chv,

Try this:

Code:

  SORT FIELDS=(210,7,CH,A,5,24,CH,A)
  INCLUDE COND=(322,7,CH,EQ,C'INBOUND',
OR,322,8,CH,EQ,C'OUTBOUND',
OR,322,8,CH,EQ,C'END TRAN')
OUTREC IFTHEN=(WHEN=(322,8,CH,EQ,C'END TRAN'),OVERLAY=(1:7X))
OUTFIL OUTREC=(1:1,4,5:210,7,13:322,8,22:331,8,31:5,23,55:341,21)


_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Oct 18, 2007 1:51 am    Post subject: Reply with quote

mahesh_chv,

Use "code tags" to enclose your code in code-format for clarity..
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Thu Oct 18, 2007 2:01 am    Post subject: Reply with quote

HI Vivek,

sorry I have not posted the complete sortcard.
I am already using outfil for my header ..
below is the complete sortcard

SYSIN DD *
INCLUDE COND=(322,7,CH,EQ,C'INBOUND',
OR,322,8,CH,EQ,C'OUTBOUND',
OR,322,8,CH,EQ,C'END TRAN')
SORT FIELDS=(210,7,CH,A,5,24,CH,A)

OUTREC FIELDS=(1:1,4,5:210,7,13:322,8,22:331,8,31:5,23,55:341,21)
IFTHEN=(WHEN=(322,8,CH,EQ,C'END TRAN'),OVERLAY=(1:7X))
OUTFIL LINES=18,
HEADER2=(.......
.....),
REMOVECC
/*

please let me know the solution now

thanks,
mahesh
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Oct 18, 2007 2:41 am    Post subject: Reply with quote

mahesh_chv,

Try this:

Code:


      SORT FIELDS=(210,7,CH,A,5,24,CH,A)
      INCLUDE COND=(322,7,CH,EQ,C'INBOUND',
      OR,322,8,CH,EQ,C'OUTBOUND',
      OR,322,8,CH,EQ,C'END TRAN')
      OUTREC IFTHEN=(WHEN=(322,8,CH,EQ,C'END TRAN'),OVERLAY=(1:7X))
      OUTFIL OUTREC=(1:1,4,5:210,7,13:322,8,22:331,8,31:5,23,55:341,21),
          LINES=18,HEADER2=(.......),REMOVECC

   

_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Thu Oct 18, 2007 3:00 am    Post subject: Reply with quote

vivek ,

its giving WER231A OUTREC - ILLEGAL DATA FIELD error.

thanks,
Mahesh
Back to top
View user's profile Send private message
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Thu Oct 18, 2007 3:40 am    Post subject: Reply with quote

Vivek,

I am able to figure out my mistake....
Now its working fine..
thank you

Mahesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group