Questions tagged [jcl]

Job Control Language (JCL) is a scripting language used on the IBM mainframe operating systems z/OS and z/VSE (and predecessors) to instruct the system on how to run a batch job or start a subsystem. In z/VSE, it is sometimes referred to as JCS (Job Control Statements). In z/OS, Job Entry Control Language (JECL) controls how JES2 or JES3 handles the job execution and output.

In JCL, the unit of work is the job. A job consists of one or several steps, each of which is a request to run one specific program. For example, a job to produce a printed report for management might consist of the following steps:

  • A user-written program to select the appropriate records and copy them to a temporary file.

  • Sort the temporary file into the required order, usually using a general-purpose sort utility

  • A user-written program to present the information in a way that is easy for the end-users to read and includes other useful information such as sub-totals

  • A user-written program to format selected pages of the end-user information for display on a monitor or terminal.
457 questions
3
votes
3 answers

Simplifying a DF/Sort job thats reads SMF to analyse a dataset's lifecycle

So I have a batch job that extracts SMF type 14, 15 and 17 records into 3 separate files and then formats the files to produce a list of which datasets were read, written to and delete by which jobs. This is then sorted by timestamp so you can see…
Steve Ives
  • 7,894
  • 3
  • 24
  • 55
3
votes
4 answers

How can I use SYNCSORT to format a Packed Decimal field with a specifc sign value?

I want to use SYNCSORT to force all Packed Decimal fields to a negative sign value. The critical requirement is the 2nd nibble must be Hex 'D'. I have a method that works but it seems much too complex. In keeping with the KISS principle, I'm…
MikeC
  • 408
  • 2
  • 4
  • 9
3
votes
3 answers

Invoking Rexx from JCL

To invoke a Rexx program and pass parameters, IKJEFT01 can be used // SET PARM1= // SET PARM2= //AUDITDS EXEC PGM=IKJEFT01, // PARM='RXPGM &PARM1 &PARM2' But PARM supports limited number of characters. Is there any way to invoke a REXX using a…
cobp
  • 772
  • 1
  • 5
  • 19
3
votes
1 answer

append records to an existing file

If I want to append records to an existing file what DISP parameters do I need to use?
Manasi
  • 717
  • 8
  • 18
  • 30
3
votes
2 answers

JCL Return code FLUSH

//STE1 IF RC EQ 1 THEN .... //ENDIF the return code is giving me FLUSH and all the other job is not executing becaue of this can anyone help me on this. is it because i havent given ELSE?
user3248637
  • 63
  • 1
  • 8
3
votes
1 answer

UNIDENTIFIED OPERATION FIELD Error in JCL

I tried to run this following JCL program using IBM z/OS //PAYMENT JOB MSGCLASS=H //PAYMENT EXEC PGM=PAYMENT,REGION=1024K // PARM='CSQ1,CARD.PAYMENTS,IND0163.REPLY,IND0163 // 5999.99,"MY…
SiltyDoubloon
  • 147
  • 2
  • 3
  • 11
3
votes
2 answers

Is there a list of Special characters to be avoided in JCL/MVS Script variables

I have a program that generates random pin codes. These pins are generated in Java, then stored in the mainframe, via a NATURAL program. From there, they are eventually physically printed by a batch JCL job that calls an MVS SCRIPT to print the…
Raystorm
  • 6,180
  • 4
  • 35
  • 62
3
votes
4 answers

How to pass arguments to REXX program through JCL

Can we pass arguments to a REXX program from JCL? I suppose, JCL PARM can be used as we use for passing arguments to COBOL programs.. Do put your ideas here...
Raja Reddy
  • 772
  • 8
  • 19
  • 37
3
votes
1 answer

Mainframe COBOL & HTML

How to compose html tags/script format from mainframe batch COBOL? And send that formatted tags in an email attachment through mainframe JCL?
Prareed
  • 61
  • 1
  • 5
2
votes
1 answer

Flushed step return code in jcl

I have encountered below scenarion and I am confused a little on how cond parameter works for previous step which is flsuhed out. For example...... //STep 1 EXEC //Step 2 EXEC cond=(0,ne,step1) //step 3 EXEC cond=(0,ne,step2) In the above case…
Hara Chaitanya
  • 928
  • 3
  • 9
  • 17
2
votes
1 answer

How to run dymanic SQL through IKJEFT01 Utility?

How can we pass parameters in SQL query while executing IKJEFT01? Example: //UNLOAD EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * DSN SYSTEM(DB2X) RETRY(120) RUN PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) - PARM('SQL') END //SYSPRINT DD…
Akshay
  • 151
  • 1
  • 6
  • 17
2
votes
2 answers

Proc parameters

We are having some proc steps which are using control cards that contain cics region names. Procs are present in Endevor.Previously we had endevor macros which used to change the region names as per the env. But now onwards endevor macros are…
Manasi
  • 717
  • 8
  • 18
  • 30
2
votes
1 answer

File status 39 in VSAM KSDS file

Vsam file creation - //VSAMKSDS JOB CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),PRTY=15, // NOTIFY=&SYSUID //STEP10 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* …
Rahul
  • 117
  • 1
  • 14
2
votes
2 answers

what does this jcl error code mean? can't figure out what i need to fix

I'm getting an error code of 452 and in the stmt no message it says "IEFC0061 Positional parameters must be specified before keyword parame" I just can't seem to find where exactly this error is. Can someone take a look at my code and help?…
2
votes
1 answer

Does a call to BPXBATCH from JCL use the priority of the batch job or is priority in OMVS independent?

I am calling a shell script that does some processing from JCL using BPXBATCH like this: //STEP2 EXEC PGM=BPXBATCH, // PARM='SH PATHTOSCRIPT.SH MYARGUMENT' The JCL has the service…
Sfp
  • 539
  • 4
  • 15
1 2
3
30 31