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

finding out the library of DSNUTILB utility program in JCL

I'm having trouble with the library of DSNUTILB. I dont know what library it belongs to. I've been surfing the net but can't seem to find the answer to this. Can anyone help out? How to find the library? Thanks.
n10dezEJ
  • 11
  • 2
0
votes
1 answer

Error in JCL DFSORT

I would like to ask for help regarding this JCL... I can't seem to get it working. I'm running this on mainframe. I get RC 16. //X544582Z JOB (T,92958888P), // 'N=TSO.X544582', // …
entendezEJ
  • 67
  • 2
  • 8
0
votes
3 answers

How can I dynamically pass the result of TRUNC_TIMESTAMP of any kind in my JCL steps?

I am looking to create a JCL stream that will do the following: Step 1: Run a instream DB2 Param1 = SELECT TRUNC_TIMESTAMP(CURRENT TIMESTAMP,'MONTH') FROM SYSIBM.SYSDUMMY1;` Step 2: Param2 = SELECT TRUNC_TIMESTAMP(CURRENT TIMESTAMP +…
0
votes
1 answer

Why would i get a SB37 error on the code?

I am changing three values inside of a file that is defines 7500 bytes. I used to put all of the file definition after my file so that I could see it better. But since I have moved up a level at COBOL I just want to make everything a filler and then…
user3376708
0
votes
1 answer

How to know OPC job status using Syncsort or anyother method?

My objective is, I need to get the current timestamp using Syncsort if one OPC job(existing Job) run fine in production. In my case I can not interpret my new job after existing OPC job. Is there any facility to check the existing job ran fine in…
Sekhar
  • 627
  • 4
  • 14
  • 34
0
votes
4 answers

Looping in JCL- number of counts taken as input from User(Mainframe)

I want to take input from User, and then Run some particular steps that many times in a JCL. Can it be possible ?
GeekyGeek
  • 79
  • 2
  • 5
0
votes
1 answer

How to use period in PARM parameters (JCL)?

The situation is the following. I have PARM parameters: CSQ1 - Queue manager name CARD.PAYMENTS - Request queue name CCD3050.REPLY - Reply queue name CCD3050 - Contestant user ID 400.05 - Payment amount "MY PAYMENT" …
0
votes
1 answer

What's wrong with my C-code?

Working in z/os mainframe, I have the following situation. I can't record a transaction. here is my code, it is written for transaction using jcl. Bur something goes wrong. /* Include standard C header files */ #include
0
votes
1 answer

PARM value not interpreted as expected

Working in z/os mainframe, I have the following situation 1) That's my JCL, which I've submited: //PAYMENT JOB MSGCLASS=H //****************************************************************** //*…
0
votes
1 answer

Passing symbol value using DFSORT to file

Statement: Earlier files were fetched from remote server location to mainframe. Then those files content were get and saved at mainframe in a sequential file. But sometime, some file names contained spaces. Due to this job fails while getting its…
deepaklearner
  • 151
  • 1
  • 6
  • 22
0
votes
2 answers

How does a JCL link the PRTOUTA, ...etc... to a Cobol program?

I am working on a program that writes information to a output file and also to PRTOUTA, PRTOUTB, PRTOUTC with a PRTRTENO program. You have to move variables to a PRINT-AREA and so forth. I am sure that it has to do with PRTRTENO but I am not…
Doug Hauf
  • 3,025
  • 8
  • 46
  • 70
0
votes
1 answer

JCL, JOB to run every night

So I have some JCL code that backs up a PDS for me whenever I submit the job. My question is if it's possible to create some JCL code that will backup my PDS, every night and automatically, and how I would go about doing that?
user1527185
0
votes
1 answer

compare RECORDS from POSITION 1 to 5, of two VB flat files and write the matching records in 3rd file JCL

file 1 : AAAAA1234 AAA111ZZZ BBBB111ZZ file2 : KAAAA1234 AAA111ZZZ BBBB111ZZ FILES WILL BE COMPARED FOR FIRST 5 LETTERS AND HENCE 3RD FILE WILL WRITE FILE 3 : AAA111ZZZ …
Agent Mahone
  • 307
  • 3
  • 15
  • 26
0
votes
1 answer

How to delete 2 GDG member in different steps

I defined a Generation Data Group (GDG) with limit parameter as 5, and let's put (1,2,3,4,5) as members(suppose 5 is current position). I use a job which has 2 steps each will try to delete a member using IEFBR14 utility. //STEP10 EXEC…
HiHui
  • 45
  • 2
  • 11
0
votes
1 answer

Easytrieve A010 invalid file reference

I am getting the error in this line of my easytrieve prog.. JOB INPUT NULL MASTER-FILE GET DATAPRM <~~~~~~~ LINE 59 DO WHILE NO EOF DATAPRM ... GET DATAPRM END-DO .. 59******A010 INVALID FILE REFERENCE - DATAPRM .. I have a DLBL…
user2155147
  • 55
  • 2
  • 3
  • 7