I would refer you to Chapter 8 of the MAPDL Basic Analysis Guide for all the details on defining and plotting variables in MAPDL, /POST26.
Section 8.3, in particular, list several different APDL commands available to process variables, develop calculated relationships, and store the data.