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

rounding function in sort keys of jcl

i have input record with part - pic x(10), country - pic x(03), department - pic x(07), year - pic x(04), count1 - PIC S9(9) COMP-3, count2 - PIC S9(9) COMP-3, count3 - PIC S9(9) COMP-3, count4 - PIC S9(9) COMP-3, count5 - PIC S9(9) COMP-3, USAGE…
0
votes
0 answers

How to load the db2 table from ps dataset using jcl utility DSNUTLIB?

I am using the JCL utility DSNUTLIB And the JCL is, //STEP01 EXEC PGM=DSNUTILB, // REGION=0M //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSREC01 DD DSN=INPUTFILE.TEST,DISP=SHR //SYSIN DD * LOAD DATA …
0
votes
0 answers

Java Mainframe JCL call

From JCL, i'm trying to call java program.The intention of java program is to hit oracle database and fetch records. This java program works fine in my windows without error. But when it is called from JCL, i'm getting this exception. windows java…
Praveena
  • 29
  • 3
0
votes
1 answer

Select files by size in JCL

In a job I will treat two types of files. I need to select files by size because whichever is go to one program or another. Currently, I am getting every day a file of a length of 200 positions (LREC=200,FB) by EDITRAN , but now I can get a 200 or…
0
votes
1 answer

Add zero padding to string in JCL

In JCL, How do I add "0" padding to a string so that my string length is always 10? I am using TSSUtil v3 tool for jcl. If input "10541", 5 padding is added = 0000010541
Mayur Pawar
  • 1
  • 1
  • 1
0
votes
1 answer

Add to a value read into a JCL

I am working on writing a JCL which will read an option card containing a date. I need the date that is read in +1 and +2. Is there a way for me to do this in my JCL? For example, my option card might contain: 20150923 I, for other pieces of my JCL,…
Mark
  • 1
0
votes
1 answer

Mainframe JCL java Call

I'm trying to execute java program from mainframe using JCL.But the problem is the path specification in java file. I have mentioned to read properties file from current directory "./abc.properties" in java code. But it couldn't find the properties…
Praveena
  • 29
  • 3
0
votes
1 answer

How to debug JCL internal error while submitting RUNJCL

During the compilation of a COBOL program I got MAXCC=0, but while submitting the RUNJCL I got a JCL internal error. Does that mean I have an error in RUNJCL or a logical error in program? How to debug JCL INTERNAL ERROR?
0
votes
1 answer

Tool to automatically unload/load all tables of DB2 databases

Often, we need to unload (DB2 utility) all the data from a database and load it to another database (same structure). I usually have one unload jcl per table (source db), and one load jcl per table (target db). For 50-100 table databases, it's a lot…
user3489502
  • 3,451
  • 9
  • 38
  • 66
0
votes
2 answers

Get only record nr. x by using dfsort in JCL

I have a dataset that has multiple rows of data, I have to do something with some of these rows(not all, and there is no logic to be able to pick them out), I have a list of rownumbers that have to be selected and it's too big a list to copy them…
Jeremy C.
  • 2,405
  • 1
  • 12
  • 28
0
votes
2 answers

SUM not working 'Invalid or missing field format'

I have an input file in this format: (length 20, 10 chars and 10 numerics) jname1 0000500006 bname1 0000100002 wname1 0000400007 yname1 0000000006 jname1 0000100001 mname1 0000500012 mname2 0000700013 In my jcl I have defined…
Jeremy C.
  • 2,405
  • 1
  • 12
  • 28
0
votes
3 answers

Starting an existing Mainframe job with FTP and C#

We have a lot of jobs(jcl) running on the mainframe. I was asked to try and start a restore job. I have to do this with a C# application. What i got now is i am able to connect to the mainframe with an ftp library and I can call raw FTP commands…
0
votes
1 answer

Loop until data set is not in use with JCL

I am working in mainframe and I need to wait a dataset is released to execute automatically a JOB. Do you know any simple way to loop until a dataset is not in use in JCL? I was looking on the web and i found some solutions with REXX but they seemed…
Nico
  • 309
  • 1
  • 3
  • 18
0
votes
1 answer

Error when copying sequential dataset to VSAM file

I am trying to load a VSAM file with the data present in a sequential file using the below JCL, but I am getting the a JCL Internal error. //TESTJB5 JOB ,,NOTIFY=MURUGAN,REGION=6M //S1 EXEC PGM=IDCAMS …
0
votes
1 answer

Check if input file record is sorted and if not it should abend

I'm trying to write a JCL that check if the input file record is sorted and if not it should abend with a specific message. This is the job that I have; but I don't want it to sort anymore. I want it to abend if company number in column 3 not in…