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
2 answers

Passing parameters to a c program from JCL using SYSIN DD *

Can anybody show me examples on how to pass to a c program the parameters from SYSIN DD * in JCL. I used to have my JCL program pass the parameter to a c program using the PARM option, but the PARM option has a 100 character limit, thus, requiring…
ineedhelp
  • 59
  • 1
  • 9
0
votes
2 answers

How to edit name of members of pds using JCL?

I want to copy all members of PDS to another with edited name using JCL. I have copied all members of a PDS to another but how to edit names of members.
0
votes
1 answer

Resize table unload output field in jcl

I have performed a bmcunld in jcl to direct the output to a dataset. The problem is that that field had maximum size and I cant read the dataset afterwards being created because it issues teh following error message: "Invalid Record Length" This…
csbl
  • 265
  • 1
  • 6
  • 19
0
votes
1 answer

How to automate Batch monitoring jobs

We have a set of BMP's called the batch monitoring jobs which runs whole day ( execution status always) and they are bought up running a start job. we need to see that the BMP's are always under execution status, I want to automate this so that it…
VNK
  • 1
  • 1
0
votes
3 answers

How to check the status of a CICS region through a JCL/Shell script(unix box)

I want to check the status of a Mainframe CICS region whether it is active or inactive by using a JCL or it is even better if one can suggest me a way to check the status of the CICS region through a shell script. This script/JCL will be used to…
ghosts
  • 177
  • 2
  • 15
0
votes
3 answers

how to automate jcl to run a cobol program on mainframe

We have a COBOL batch program that we are able to execute manually from JCL. We want to automate this process so that it can execute every 15 minutes. Is there a way to automate the execution of a batch program on the mainframe? I'm a PC guy and…
0
votes
1 answer

Is it possible to force delete VSAM file used by another Job/User?

We have a Job which takes a Back-up of VSAM file followed by standard Delete-Define-Repro of the same VSAM file. To handle the scenario of trying to delete a non-existing file we are following a standard practice to set MAXCC/LASTCC to 0 if Delete…
Mayur Manani
  • 795
  • 4
  • 12
0
votes
3 answers

Exclude a record from sort

Is there a parameter for sort programme to exclude (ignore) the first line of a file from sorting in jcl. Thanks,
jakatas
  • 23
  • 2
  • 4
0
votes
2 answers

Cant get JCL SORT's Outfil to work

I am learning mainframe programming (TSO, JCL, COBOL...) and I came across a problem I can't seem to solve, yet. I have a file with records that contain 3 fields and I want to use 'outfil' to include only certain records in the output file. My JCL…
csbl81
  • 453
  • 1
  • 4
  • 8
0
votes
1 answer

JCL for a COBOL table read / insert program

What JCL EXEC and DD statements would be required to run a COBOL program that Reads and inserts to a DB2 table has PCLog for good run and abends I don't need the actual code, but I'm looking to know what's required in terms of exec statements. If…
Frantumn
  • 1,725
  • 7
  • 36
  • 61
0
votes
2 answers

Formatting output file after an INCLUDE condition in JCL

I want to create 3 outfiles depending on the below INCLUDE criteria from the input file. In addition I want only part of the record in the output file given by the below 3 BUILD's. The issue now I think is that having multiple BUILD/OUTREC gives a…
change
  • 3,400
  • 7
  • 32
  • 42
0
votes
1 answer

add numbers from several input files into 1 file using JCL

I have n number of files that have a particular count. I now want to add all those count values into another file. it will be something like //SORTIN DD file1 // DD file2 . DD filen //SORTOUT DD output file need…
change
  • 3,400
  • 7
  • 32
  • 42
0
votes
2 answers

SUBMIT JOB IN TSO ERROR

I am learning mainframe programming now. I got a tso id with Dezhi and I am using PASSPORT terminal emulator.My user is CATIA81 I uploaded a few jobs and a cobol program to test. I tried to submit a job through the ISPF COMMAND SHELL: SUBMIT…
csbl
  • 265
  • 1
  • 6
  • 19
0
votes
2 answers

How do we get the current date in a PS file name qualifier using JCL?

How do we get the current date in a PS file name qualifier using JCL? Example out put file name: Z000417.BCV.TEST.D120713 (YYMMDD format).
Sekhar
  • 627
  • 4
  • 14
  • 34
0
votes
1 answer

find whether PS/PDS in migrated state within JCL

any way i can find whether a file is migrated state within JCL ? i need to put condition in my jcl depending on the location of the file, like how we can refer the creation, reference, expiration date..
change
  • 3,400
  • 7
  • 32
  • 42