If this is a homework assignment, please develop your own examples. If not, then please find the JCL Language Reference
manual (hint: http://www.s390.ibm.com
) and read up until your questions are resolved.
In general, asking for code or examples on these forums is not a good idea -- you are asking people to provide their professional work product, for which they are typically paid. If you are willing to spend the 1000 (or more) U.S. dollars per day of time to compensate them for developing work products, you can usually get what you want. Otherwise, you must remember that this is a HELP forum, not a DO-YOUR-JOB-FOR-YOU forum.