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?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: