Question: how to use xdc command in mainframe?
Answer: From the Interactive System Productivity Facility (ISPF), select the SDSF option.
Locate the job that contains the joblog that you want to copy to a data set.
To display the output files of the job, type a question mark (?) ... 
To print the log to a data set, type XDC next to the name of the joblog, and press Enter.