Page 1 of 1

Missing Word with substring

PostPosted: Wed Feb 27, 2019 3:13 pm
by samb01
Hello,

i just want to know if a word is ia dataset. But if the word dosn't exist in the dataset, i would like an RC =8 or more...

I used this sysin


//SYSIN    DD *                            
  SORT FIELDS=COPY                          
  INCLUDE COND=(1,80,SS,EQ,C'WORDCHECKED')
//*
 


But even if the word is not inthe dataset, the RC is 0...

Re: Missing Word with substring

PostPosted: Wed Feb 27, 2019 3:24 pm
by enrico-sorichetti
what is wrong about reading the manual
and meditate on the OPTION control statement ?

Re: Missing Word with substring

PostPosted: Wed Feb 27, 2019 4:54 pm
by prino
What the flucking 'ell is wrong with the SuperC? It has a option to search!

Re: Missing Word with substring

PostPosted: Wed Feb 27, 2019 6:57 pm
by samb01
Finally, i'm testing if the output dataset is empty. If it is empty, there's no word.