Skip to content

Instantly share code, notes, and snippets.

@hdary85
Created December 6, 2023 04:51
Show Gist options
  • Select an option

  • Save hdary85/86f81c0de194d1507e76892aff75a23e to your computer and use it in GitHub Desktop.

Select an option

Save hdary85/86f81c0de194d1507e76892aff75a23e to your computer and use it in GitHub Desktop.
data resultats;
set votre_table;
array colonnes[*] col1-col20;
terme1_present = 0;
terme2_present = 0;
terme3_present = 0;
do i = 1 to dim(colonnes);
if colonnes[i] contains 'terme1' then terme1_present = 1;
if colonnes[i] contains 'terme2' then terme2_present = 1;
if colonnes[i] contains 'terme3' then terme3_present = 1;
end;
if terme1_present and terme2_present and terme3_present;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment