Capital One Interview Question

How do you tell the return code of a program in JCL? What's the difference between subscript and index? What are the different types of VSAM files?