I have to create a 0-1 variable called dblehdr that indicates whether the triple play occurred during a game that was part of a double-header this is what I have but is not returning the value that I need, what I'm doing wrong?
data trp2; infile trpd2 DLM=',' DSD Firstobs=2 missover; input Year Date :$12. Game IAT Team :$12. LG $ HA $ oppteam :$12. OLG $ players :$150. inn $ SCRVH $ batter :$20. runner1 :$20. runner2 :$20. runner3 :$20.; if Date='' then delete; if dblehdr= indexc(Date,'()') then do; dblehdr=1; end;
Thank you
... View more