INREC IFTHEN no key words found on control statement



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

INREC IFTHEN no key words found on control statement

Postby thotlma » Thu Sep 20, 2018 4:16 pm

I am using below code write the output data set based below condtion but getting syntax and NO KEYWORDS FOUND ON CONTROL STATEMENT errors.
Please correct me if I did code wrong

 OPTION COPY                                                    
     INREC IFTHEN=(WHEN=(5,1,CH,EQ,C','),                          
                                        *                          
     OUTREC BUILD=(1,1,1Z,2:3,2,4:6,15)                            
     IFTHEN=(WHEN=(4,1,CH,EQ,C','),                                
     *                                                            
     OUTREC BUILD=(1,1,1Z,2:2,2,4:5,15)                          
 WER813I  INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED    
 WER268A  INREC STATEMENT   : SYNTAX ERROR                        
 WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT                  
 WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                    
 WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
thotlma
 
Posts: 25
Joined: Tue Sep 18, 2018 8:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: INREC IFTHEN no key words found on control statement

Postby expat » Thu Sep 20, 2018 4:36 pm

Unless you learn to use the code tags

[code]
Put
it
here
[/code]


There is no way to tell if there are spaces in the first column of the control statements or not

Please post again using the code tags.

ALSO Please give RECFM, LRECL and DSORG of the datasets as these are very useful when looking at SORT related problems.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: INREC IFTHEN no key words found on control statement

Postby NicC » Thu Sep 20, 2018 5:10 pm

Please stop posting your sort topics under JCL. There are special sections of the forum for sort topics and as you are using SynSort you need to post there. This topic has been moved there and certain changes made to your original post. Please study it carefully and avoid making repeated mistakes.

Your messages are clear and the *s indicate where the errors were discovered. ou need to study the manual to learn the format of the various statements and continuations of them.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: INREC IFTHEN no key words found on control statement

Postby thotlma » Thu Sep 20, 2018 5:53 pm

//STEP001   EXEC PGM=SORT                                      
 //SORTIN    DD DSN=TRP.Q.KR0Z2R99.TRPIZ291.ISA.DAT(0),DISP=SHR  
 //SORTOUT   DD DSN=TRP.Q.KR0Z2R99.TRPIZ291.ISA.OUP(+1),        
 //             DISP=(NEW,CATLG,DELETE),                        
 //             DCB=(LRECL=100,BLKSIZE=0,RECFM=FB),              
 //             SPACE=(CYL,(20,10),RLSE)                        
 //SYSPRINT  DD SYSOUT=*                                        
 //SYSOUT    DD SYSOUT=*                                        
 //SYSIN     DD *                                                
   OPTION COPY                                                  
     INREC IFTHEN=(WHEN=(5,1,CH,EQ,C','),                        
     OUTREC BUILD=(1,1,1Z,2:3,2,4:6,15)                          
     IFTHEN=(WHEN=(4,1,CH,EQ,C','),                              
     OUTREC BUILD=(1,1,1Z,2:2,2,4:5,15)                    

please see above the code
thotlma
 
Posts: 25
Joined: Tue Sep 18, 2018 8:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: INREC IFTHEN no key words found on control statement

Postby enrico-sorichetti » Thu Sep 20, 2018 5:56 pm

did You notice that Your posts have been edited to use the code tags :?: :evil:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2979
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 160 times

Re: INREC IFTHEN no key words found on control statement

Postby NicC » Thu Sep 20, 2018 6:22 pm

please see above the code

Which is exactly the same as your previous paost but without the indicatore=s added by SyncSort when it was editing the control statements. Specifically the INREC has no contiuation provide despite you having coded a comma at the end (OUTREC is not part of INREC - it is a separate statement). IFTHEN is a subkeyword but you have not provided a keyword. Do notmake up your own syntax. Use that described in the manual paying special attention to what are keywords and what are sub-keywords.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post