JCL cannot do this - you need a program/utility program. Programs are not JCL, nor are program control cards. The JCL used to tell the OS what program you want to use will depend on the requirements of the program.

Totally unclear as to what you want to do. However, Job Control Language cannot do it - it only tells the OS which programs you want to run and the resources required by each. So, decide which program you want to run and post your queery in the approprite section of the forum.

If you have Endevor try F1. Remember that any documentation out there may be under copyright and probably cannot be legally shared. If you workplace requires you to use Endevor then they should provide you with the training or materials required.

Why are you tagging onto a topic that is over 7 years old? You shuld know that when you have a new query you should start a new topic. To create a new version you need to specify the datasetname, generation nmber and version number in full. If, on the other hand, you mean create multiple generations...

If you cast to CHAR it will produce '3' instead of 003 - standard rules across most languages. You need to cast to a numeric field type although I do ot know if any will retain leading zeros. By the way, this is either a sort query or a DB2 query so why post in the JCL section of the forum when ther...

Depends where you are. Loads of COBOL jobs in the UK at the moment and I am contracting in Ireland using CLOAS so if you have good CLOAS knowledge (and I have next to none!) then we haqve work for years to come - well, months anyway.