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 

Invalid Include statment

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


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Thu Oct 02, 2008 12:21 pm    Post subject: Invalid Include statment Reply with quote

Hi All,

Today i tried to run the following JCL but it was giving errors.please help me

JCL follows

Code:

//ISDXFJTA JOB TEST,'ICETOOL',CLASS=1,MSGLEVEL=(1,1),           
//   MSGCLASS=X,TIME=1440,USER=ISDXFJT,NOTIFY=&SYSUID,           
// PASSWORD=                                                     
//JSTY0010 EXEC PGM=SORT,REGION=1024K                           
//SORTIN    DD *                                                 
SIVAKUMARJETTYSIVAKUMARHDCFDCS\                                 
MALLIMALLIMALLIMALLIHDCXYZFDCS\                                 
NISHANTNISHANT2NISHANT HDCFDCS\                                 
20081002.HDCFDCS.SYNTEL                                         
20060902.HDCFDCS.SYNTEL                                         
20060902.HDCFDCS.SYNTEL                                         
/*                                                               
//SORTOF01 DD SYSOUT=*                                           
//SORTOF02 DD SYSOUT=*                                           
//SYSOUT DD SYSOUT=*                                             
//SYSPRINT  DD SYSOUT=*                                         
//SYSIN DD *                                                     
  OPTION COPY                                                   
  OUTFIL FILES=01                                               
  INCLUDE COND=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,
                ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))
  OUTFIL FILES=02
  INCLUDE COND=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,
                ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))         
/*     


When i do JJSCAN it was giving following error

Code:

 -------- PROCESSING SYSIN --------                                     
   OPTION COPY                                                           
   OUTFIL FILES=01                                                       
   INCLUDE COND=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,     
                 ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))         
   OUTFIL FILES=02                                                       
   INCLUDE COND=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,     
                 ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))         
 E1 - DSS11051E - UNRECOGNIZED 'SORT' KEYWORD '((10'.                   
 E2 - DSS10058E - SYNTAX ERROR; PARSING STOPPED AT ')'.                 


Thanks in Advance!

Siva
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Oct 02, 2008 12:30 pm    Post subject: Reply with quote

you have not used bbcode so it is difficult to see if your sort control statements start in cc1 (invalid) or not.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Oct 02, 2008 12:38 pm    Post subject: Reply with quote

Siva,

You have two INCLUDE statements - only one is allowed. Since your two INCLUDE statements are identical, you can remove one of them.

Code:

 OPTION COPY                                                     
 INCLUDE COND=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,
               ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))   
 OUTFIL FILES=01                                                 
 OUTFIL FILES=02                                                 


If you wanted to use two different INCLUDE conditions for the two OUTFIL statements, you would do that with INCLUDE= operands of the OUTFIL statement. For example:

Code:

  OPTION COPY                                                       
  OUTFIL FILES=01,                                                 
        INCLUDE=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,
                ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))     
  OUTFIL FILES=02,                                                 
        INCLUDE=(((24,3,CH,EQ,C'AAA'),AND,(27,4,CH,EQ,C'FDCS')),OR,
                ((10,3,CH,EQ,C'AAA'),AND,(13,4,CH,EQ,C'FDCS')))     

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Thu Oct 02, 2008 10:25 pm    Post subject: Reply with quote

Hi Frank,

Thanks for pointing out mu mistake..It was typo..

Code:

//ISDXFJTA JOB TEST,'ICETOOL',CLASS=1,MSGLEVEL=(1,1),               
//   MSGCLASS=X,TIME=1440,USER=ISDXFJT,NOTIFY=&SYSUID,               
// PASSWORD=                                                         
//*                                                                 
//*THIS JCL IS USE TO COUNT THE NO OF RECORD IN THE INPUT FILE       
//*                                                                 
//JSTY0010 EXEC PGM=SORT,REGION=1024K                               
//SORTIN    DD *                                                     
HX.TEST                                                             
SIVAKUMARJETTYSIVAKUMARHDCFDCS\                                     
MALLIMALLIMALLIMALLIHDCXYZFDCS\                                     
NISHANTNISHANT2NISHANT HDCFDCS\                                     
ANSHUANSHUANSHUNISHANT XYZFDCS\                                     
20081002.HDCFDCS.SYNTEL                                             
20070902.HDCFDCS.SYNTEL                                             
20060902.XYZFDCS.SYNTEL                                             
HDCFDCS.20050908.CTS                                                 
/*                                                                   
//SORTOF01 DD SYSOUT=*                                                 
//SORTOF02 DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSPRINT  DD SYSOUT=*                                                 
//SYSIN DD *                                                           
  OPTION COPY                                                           
    OUTFIL FILES=01,                                                   
          INCLUDE=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,   
                  ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))       
    OUTFIL FILES=02,                                                   
          INCLUDE=(((24,3,CH,EQ,C'XYZ'),AND,(27,4,CH,EQ,C'FDCS')),OR,   
                  ((10,3,CH,EQ,C'XYZ'),AND,(13,4,CH,EQ,C'FDCS')))       
/*     


When I try to run the above code it is giving following error

Code:

-------- PROCESSING SYSIN --------                                   
  OPTION COPY                                                         
    OUTFIL FILES=01,                                                 
          INCLUDE=(((24,3,CH,EQ,C'HDC'),AND,(27,4,CH,EQ,C'FDCS')),OR,
                  ((10,3,CH,EQ,C'HDC'),AND,(13,4,CH,EQ,C'FDCS')))     
E1 - DSS10214E - IMPROPER USE OF PARENTHESES FOR 'INCLUDE'.           
    OUTFIL FILES=02,                                                 
          INCLUDE=(((24,3,CH,EQ,C'XYZ'),AND,(27,4,CH,EQ,C'FDCS')),OR,
                  ((10,3,CH,EQ,C'AAA'),AND,(13,4,CH,EQ,C'FDCS')))     
E2 - DSS10214E - IMPROPER USE OF PARENTHESES FOR 'INCLUDE'.           
                                                                     
------- END OF UTILITY PROGRAM OUTPUT -------       


Thanks
Siva
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Oct 03, 2008 9:43 am    Post subject: Reply with quote

There's nothing wrong with those statements. They run fine with DFSORT.

The DSS messages are from a product called PRO/JCL (JJSCAN) that scans JCL but doesn't seem to do a very good job of scanning DFSORT statements or keeping up with new changes to DFSORT.

Try ignoring the JCL scanner messages and running the job with DFSORT directly. It works fine when I run it with your control statements.

Note: I've exchanged notes with ASG which owns PRO/JCL about their problems with analyzing DFSORT statements with no satisfaction. They said:

Quote:

I suggest that if you receive additional issues from your DFSORT clients with regard to our products, that you have them contact our support group at support@asg.com or 1-800-354-3578


So if anyone who uses this product wants to "complain" about their incorrect and out-of-date DFSORT analysis, here's your chance.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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