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

UNIDENTIFIED OPERATION FIELD JCL

I am trying to understand where I am going wrong in my JCL file. Here is my code as follows: //MULTG013 JOB 1,NOTIFY=&SYSUID //STEP1 EXEC PGM=ICEGENER //SYSUT1 DD DSN=UNTG013.DATAIN(AUTODATA),DISP=SHR //SYSUT2 DD…
user3474116
  • 41
  • 1
  • 3
4
votes
2 answers

Dynamic FORMS for printing AFP

I am trying to print AFP to sysout but the FORMS parameter is not known (and cannot be known) by the JCL. My current solution is to create dynamic JCL and spin it to INTRDR, but this is a weak solution because the job will not be under the control…
mswanberg
  • 1,285
  • 8
  • 20
4
votes
3 answers

Why the StEPLIB always overrides the JOBLIB,in JCL?

In JCL the STEPLIB always overrides the JOBLIB.Can anyone explain why is it so?
Sahu Vinita
  • 69
  • 1
  • 4
4
votes
2 answers

How to submit JCL on IBM zOS through Java web app?

Can someone tell me the best way to run a piece of JCL on IBM zOS from a Java web app on a different server (Windows). I also need get a response code back from the job. The 2 options at the moment are: 1) Using JES - But its hard to get the…
irishguy
  • 671
  • 1
  • 9
  • 24
3
votes
2 answers

Symbolic Parameters in Dataset name JCL

In JCL, normally Symbolic parameters is created using & (Ampersand sign) followed by the variable name. But in dataset name, It has to followed by the dot sign after the variable name. Example: //J&USER JOB 1 //MYSTEP EXEC PGM=MYPROG //MYDATA DD…
user1221540
3
votes
2 answers

File tailoring without ISPF

I'm currently attempting to write a simpler external interface to a mainframe ISPF panel, however it makes use of ISPF file tailoring to modify JCL scripts before execution, and ISPF services (including file tailoring) aren't available without a…
Matt Lyons-Wood
  • 931
  • 11
  • 17
3
votes
3 answers

Can we add symbolic parameters in PDS members used in cataloged procedures?

I have JCL, which is executing one catalog procedure. In catalog procesdure one COBOL-DB2 pgm is being executed. Below is my JCL //A JOB (@),'CALL DB2',NOTIFY=&SYSUID //JS010 EXEC TESTPROC Below is my TESTPROC //TESTPROC //PS010 EXEC…
Manasi
  • 717
  • 8
  • 18
  • 30
3
votes
7 answers

How can I use IEBGENER?

I am having some trouble figuring out how to get IEBGENER working in the way that I want it to. I should preface all this by saying that I am running IEBGENER in a z/OS environment on an academic mainframe. I have three JCL procedures (PROC) inline…
Enyalius
  • 309
  • 3
  • 10
3
votes
3 answers

z/OS JCL command /*VS command fails when issued in a proc

I'm trying to execute a certain command ("VARY devaddr,OFFLINE") to run automatically during system startup. I can't find where the command should be placed. I tried setting the command in a proc, as follows: //MYPROG PROC MODULE='IEFBR14' …
viejo
  • 123
  • 1
  • 10
3
votes
3 answers

Read a flat file. Use COBOL to retrieve specific rows

I have a flat file like this: 1|sal|manager|2007/01/01|2007/12/31 2|sal|manager|2008/01/01|2008/12/31 3|per|abc|manager 4|sal|manager|2007/01/01|2007/12/31 5|per|xyz|ceo I have to read the file using COBOL, and write the rows that has the string…
williamtell
  • 301
  • 5
  • 17
3
votes
2 answers

PowerShell raw FTP

I am looking to use FTP to write a mainframe jobstream. To do that, I can connect to the mainframe via FTP and run these commands: QUOTE TYPE E QUOTE SITE FILETYPE=JES PUT myjob.jcl So, how would I do this in PowerShell? I have read plenty on…
Honus Wagner
  • 2,830
  • 13
  • 44
  • 61
3
votes
2 answers

Calling CICS program from JCL batch

Is it possible to call a CICS program from JCL batch? If yes how? If no why not?
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
3
votes
4 answers

jcl sort to divide Mainframe Dataset

I am trying to divide MF PS into several datasets. e.g. If I have a Dataset containg 600 recs, I want to divide this into 6 files with 100 records each. Is it possible to do this using JCL sort?
Manasi
  • 717
  • 8
  • 18
  • 30
3
votes
3 answers

How can I reduce CPU in SORT operation

I am using DFSORT to copy the Tape data-set to a temp file, and processing around 80000000 records. Its taking 3 Hours to just copy the data-sets. is there any other way around to reduce the CPU time. Suggestions will be very helpful. Thank You. …
NITISH SINGH
  • 55
  • 1
  • 9
3
votes
4 answers

How to write long z/OS UNIX shell commands in BPXBATCH

I'm going to describe my issue as well as possible. I know in advance that is is possible to type a z/OS shell UNIX command that does not fit on one line using a backslash at the end of the first line. In fact I've tested it in the computer I'm…
1
2
3
30 31