Where to get the information

There are several ways for a command processing program to receive its input command; you can find your console and CART information in the same control block as the command text.