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.
387 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
  • 6,970
  • 3
  • 21
  • 49
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
  • 566
  • 1
  • 3
  • 18
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
  • 687
  • 8
  • 18
  • 30
3
votes
1 answer

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
  • 7
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
  • 5,244
  • 4
  • 30
  • 52
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
  • 732
  • 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
  • 728
  • 3
  • 8
  • 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
  • 687
  • 8
  • 18
  • 30
2
votes
2 answers

JCL for running COBOL program calling subprogram

I have one COBOL pgm A which is calling another COBOL pgm B. In pgm B I need one file.How can I write JCL so that I would be able to access this file in pgm B? I have written select clause and FD entry for this file in B.
Manasi
  • 687
  • 8
  • 18
  • 30
2
votes
3 answers

What is 'NAILDUMPS''?

I encountered a new term called 'NAILDUMPS' when I analysed a flowchart explaining a series of jcls.In some steps of that flowchart it is mentioned as"this file is naildumped" .Can anyone explain what is a naildump and why it is used?. Thanks in…
Dobby
  • 205
  • 7
  • 15
2
votes
1 answer

How to correctly declare DCB in JCL/assembler for QSAM put-locate

I'm trying to write a program that will write some data to a temporary dataset using the 370/assembler and QSAM. I get a soc01 when executing the put. My DCB declaration in the assembler code looks like this: TEMPFILE DCB DDNAME=TEMP, …
IGYCRCTL
  • 45
  • 7
2
votes
1 answer

JCL - supply instream data to cataloged PROC

I’m trying to replicate a case given by the book “Murach’s OS/390 and z/os JCL” (page 259), with the following code. Briefly, I want to supply the instream dataset in the invoking job to the procedure invoked. And I have no clue why it’s not…
Marco
  • 23
  • 2
1 2
3
25 26