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
0
votes
1 answer

What's wrong with my SORT function here?

First off, I'm a complete beginner to anything Mainframe-related. I have a training assignment at work to find matching keys in two files using SORT. I submitted this code to my mentor, pseudo-coded here because I can't access the system from home…
Caitlin
  • 1
  • 1
0
votes
1 answer

What does 'MGMTCLASS' of a dataset describe?

While allocating a dataset, What does MGMTCLASS of a dataset describe? To my knowledge it gives the retention and expiration period that it is gonna reside on disk and the possible values I have observed are BKUP35, NOBKNLIM etc. What are these…
Raja Reddy
  • 772
  • 8
  • 19
  • 37
0
votes
2 answers

Referring to Dataset Allocated in REXX

We have a REXX program which creates a dataset LOG.DYYMMDD.THHMMSS.OUT saves in DDNAME LOGNM. We call the REXX PROGRAM from JCL using IKJEFT1B utility. How do I use this dataset for further processing in JCL. I mean how I refer it in the JCL…
Hara Chaitanya
  • 928
  • 3
  • 9
  • 17
0
votes
1 answer

BATCHTMP Email dataset

I'm trying to send an email using BATCHTMP using the contents of a dataset. But what happens is it just displays the first row even incomplete. Here is my step that executes IEBGENER. Please note that the multiple inputs have different LRECL but it…
Luigi
  • 439
  • 5
  • 23
0
votes
1 answer

How to get text in my new member using JCL

I have to make a new member in a JCL. This isn't a problem: My code: //STEP1 EXEC PGM=IEBGENER //SYSUT1 DD * //SYSUT2 DD DISP=(NEW,KEEP),UNIT=SYSALLDA,DSN=name.JCL4(MEMBER), SPACE=(CYL,(1,1,45)), VOL=SER=DMTU01 //SYSPRINT DD…
lvthillo
  • 28,263
  • 13
  • 94
  • 127
0
votes
1 answer

What're the advantages/disadvantages of RECFM=FB over RECFM=F?

While defining a dataset to be created, one of the JCL parameters, DCB has a positional sub-parameter RECFM, has possible values of F,FB,V,VB etc.. What're the advantages/disadvantages of RECFM=FB over RECFM=F or RECFM=VB over RECFM=V? And which…
Raja Reddy
  • 772
  • 8
  • 19
  • 37
0
votes
3 answers

creating a vsam file using jcl

I am trying to create a VSAM file using IDCAMS utility in JCL. MAXCC code that it returns is 0000. But the newly created vsam file is not displayed in the list when I try to list it using 3.4. Can anyone help me on this.? The code that I have used…
Kinjal Shah
  • 31
  • 1
  • 8
0
votes
1 answer

I keep getting IEFC452I errors, what's wrong?

//name JOB 1,NOTIFY=&SYSUID //sort01 exec pgm=sort //sysout dd sysout=* //sysprint dd sysout=* //sysudump dd sysout=* //sortin dd…
0
votes
1 answer

To send body and attachment both using JCL utility TCPSMTP

Requirement: To send VB file of records length 100 as attachment using TCPSMTP utility with proper message in body without using IEBGENER utility. I am trying to send email attachment file VB dataset as attachment. Its working either message in…
deepaklearner
  • 151
  • 1
  • 6
  • 22
0
votes
1 answer

How to write a JCL SORT to COPY sort fields ona condition; + checking that files first row contain 'FILE1' written in first row

Suppose we have an input file: 123456789+123456789+ FILE1 -X-X-X-X-X-X-X ABCD 1234 XOXOXO 001 WXYZ 5678 YOYOYO 002 ABCD 0011 XOXOXO 003 I NEED TO SORT OUT THE DATA IN FILE2 WHEN INCLUDE=(11,6,CH,EQ,C'XOXOXO') WHICH IS EASY TO GET. But I also…
Agent Mahone
  • 307
  • 3
  • 15
  • 26
0
votes
4 answers

SB37 JCL error to small a size?

The following space allocation is giving me an sB37 JCL error. The cobol size of the output file is 100 bytes and the lrecl size is 100 bytes. What do you think is causing this error? I have tried increase the size to 500,100 and still get the same…
user3376708
0
votes
2 answers

In the effective JCL, with what value will the symbolic parameter &DEPT be replaced by?

In the effective JCL, with what value will the symbolic parameter &DEPT be replaced by? Procedure //ABC9999 PROC DEPT=’A’ //ABC9090 EXEC PGM=ABC9090 //SYSOUT DD SYSOUT=&DEPT //ABCREAD DD DSNAME=AAX1.MASTER.FILE,DISP=SHR Invoking JCL //AAX1BN JOB…
0
votes
1 answer

Can writing to an output ksds be done if we use alternate key concept with dynamic access mode in a input ksds?

I have an input KSDS file, i am using emp-id as primary key and emp-dept as alternate key, with access mode as dynamic. I am reading the file using dynamic access base upon the alternate key, in runjcl i am using base ksds file and ksds path file,…
0
votes
1 answer

How to use SYSIN?

I've an exercise that I need to complete and execute the necessary applications to distribute the information about the transactions of credit cards business, with the ultimate goal of showing at a web page the confirmations of transactions. My…
Bruno Neuman
  • 125
  • 1
  • 8
0
votes
1 answer

IEFC452I Job not run

I want to know why my JOB not run... //PAYMENT JOB MSGCLASS=H //STEP1 EXEC PGM=PAYMENT,REGION=1024K, // PARM=('CSQ1,CARD.PAYMENTS,.REPLY,', // '245.00,"My Payment"') //STEPLIB DD…
Bruno Neuman
  • 125
  • 1
  • 8