You already categorized your data into two groups:
one group for jet Airways and air india and second group for all other airlines
It is not clear what do you want.
If you can identify the group inside your data,
then you can add a flag or a category variable with appropriate value,
like 1 or 0, "Jet" or " ", etc.
Can you supply a test data with both categories data, and define the rules how
to distinguish between the groups - what variables to check for what values ?
You asked for a code, but you did not gave any example of input (few lines) nor of the rules of
how to decide to which category should be.
Your note is "from airline name we have to categorize data" -
can you supply airline names and define their categories?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.