COBOL: SYSIN JCL for compiling source from PDS -
I'm just starting COBOL, and went with JCL ... How do I get my original COBOL program I compile the PDS, I know that this could just be
// SYSIN DD * code code code / *
I tried to do something like this
// SYSIN DD DSN = The.pds.location (file), DISP = SHR
but all shots were trash back and I think return code of 12.
If someone can help, then be thankful.
Depending on the information you posted, your JCL should work. Maybe you are missing something else, following JCL provides complete job phase to compile COBOL:
Note: You may have to change STEPLIB to match the COBOL version running on your site. ... your job card goes here ... // COB EXEC PGM = IGYCRCTL // STEPLIB DD DISP = SHR, DSN = SYSP.IGY.V3R4M1.SIGYCOMP // SYSUT1 DD unit = SYSDA, SPACE = (Siwayel, (1,1)) // SYSUT2 DD unit = SYSDA, SPACE = (Siwayel, (1,1)) // SYSUT3 DD unit = SYSDA, SPACE = (Siwayel, (1,1)) // SYSUT4 DD unit = SYSDA, SPACE = (Siwayel, (1,1)) // SYSUT5 DD unit = SYSDA, SPACE = (CYL, (1,1)) // SYSUT6 DD unit = SYSDA, SPACE = (cv, (1,1)) // SYSUT7 DD unit = SYSDA, SPACE = (Siwayel, (1,1)) // SYSLIN DD DSN = object module, unit = SYSDA, // DISP = (MOD, PASS), SPACE = (TRK, (3,3) ) // SYSIN DD DSN = the.pds.location (file), DISP = SHR / / SYSPRINT DD SYSOUT = * ... Step using your link object SYSLIN up ...
If your JCL looks up close, then go to the next COBO L program Aispif editor (I think that you have access to it) and the command line, type PROFILE you Something like this should be seen:
= PROF> .... GEN (fixed - 80) .... Avoid recovery ... NUMBER OFF ..... .. .......... = Pro ... .... Caps on .... hex of .... tap on std .... tab closed .......... ............ = PAF> .... Autoshow on .... Automon of .... atollist of off .... status ........... ... = PRO ... .... PROFILE UNLOCK .... IMACRO NO ONE .... Pack Off .... Note On ................ = Pro. ... stay away from the cursor ............................................... ... = BNDS> & lt;
= COLS> ---- + ---- 1 ---- + ---- 2 ---- + ---- 3 ---- + - --- 4 ---- + ---- 5---- + ---- 6 ---- + ---- 7--
Now Pack < Have a look to / strong> (note the above shows pack pack). If you find Pack , then this is your problem. You need to issue a packed off order and save your dataset. Compile it again.
BTW ... you can get rid of the profile display by typing reset on the command line.
If none of these fix your problem you need to provide more information about the actual nature of the problem.
Comments
Post a Comment