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

Vb.net exe that works when double clicked, but not when run by jcl

I have a VB.net application which imports a file called resource_NAMEOFEXE.txt and when my stream Reader takes in just "resource_NAMEOFEXE.txt" as location it assume local, im guessing, and reads the file correctly when ran by user. Then I tried…
Peter P
  • 289
  • 1
  • 5
  • 17
-1
votes
2 answers

How to get the records count using Syncsort?

MY requirement is to get same record counts using JCL - Syncsort. MY Input File contains the packed decimal values in 58-60 position. I need to get the record count when the input in between 01 and 05 range. Actually I tried to convert PD values…
Sekhar
  • 627
  • 4
  • 14
  • 34
-1
votes
1 answer

Mainframe Jcl proc

I have doubt how to handle rc from proc. Suppose //STEP1 EXEC PROC=BANKEMP How to handle return code from this step using if else .pls provide syntax.
Rekha
  • 21
  • 1
-1
votes
1 answer

Merge two files using Sort in batch

So i have two files that i need to merge. File A contains the key. Im unsure how to do this using SORT in batch (JCL). I know I need to use joinkey or ifthen. Would anyone know a solution to this? Any help is greatly appreciated. File…
Madmitten
  • 125
  • 1
  • 7
-1
votes
2 answers

PC COBOL program to JCL

I have the following simple COBOL program - written for the PC. It simply reads a file from the computer and writes to the file: ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT CUSTOMER-FILE ASSIGN TO "C:Customers.dat" ORGANIZATION…
Tom Taulli
  • 11
  • 2
-1
votes
1 answer

Submitting a JCL Job to z/OS 3270 emulator using FTP

I'm using Vista TN3270 as my emulator. I'm trying to submit JCL jobs to it using FTP. I'm trying to follow https://www.ibm.com/docs/en/zos/2.1.0?topic=jes-steps-submitting-job-automatically-receiving-output but I don't know how I can setup…
-1
votes
2 answers

How to schedule a sub jcl from main jcl

For Example while executing and running up a cobol db2 program we need to submit mutilpe jcl, so need to bring all those sub-jcl under my main jcl, so that i need to submit only one jcl and compilation and execution are done. …
-1
votes
2 answers

How to use an external variable in linkage section in COBOL and pass values from it into a new module and write into my new output file

Could someone please tell me why a variable is declared as "External" in a module and how to use that in other modules through Linkage section and how to pass them into new fields so I can write it to a new file.
-1
votes
3 answers

How to remove records from a file having same values at a location?

I have a sequential file having record length of 11. I have a field in-between starting from 9th position till 11th position and is of PIC 9(03). I want to delete all the records where I have same data in above specified location. This needs to be…
Naman Dubey
  • 39
  • 2
  • 2
  • 5
-1
votes
1 answer

How to copy one value from dataset to another dataset using JCL

My question is i want to append one value from one dataset to another dataset. Below is the screenshot of the first dataset. Below is the screenshot of the second dataset. I want the 0 value which is present at the 50th position the needs to added…
shruthi
  • 29
  • 4
-1
votes
2 answers

JCL should read internal reader than completely submit outer JCL

I have a batch job that has 10 steps in STEP5. I have written an internal JCL and I want after Internal reader step are completed successfully my next step in the parent job which is STEP06 to execute. Could you please give any resolution to this…
Vinay Naik
  • 31
  • 2
-1
votes
1 answer

"Can we read Indexed file using JCL?"

I am looking to read indexed file using JCL is there any possibility of doing like that? Like there is one KSDS file and we have to read that file using indices and we have to print the selected record onto the console using only JCL no usage of…
-1
votes
3 answers

Got a SQLCODE = -991

After the sub of the exec JCL, i've got the following error : SQLCODE = -991 Error = ALL ATTACH WAS UNABLE TO ESTABLISH AN IMPLICIT CONNECT OR OPEN TO DB2 This error is triggered when i call a module that allows to query a table. PS : i have the…
-1
votes
1 answer

How to run Java code using SAS (WPS) without JCL

Am try to call the java application using SAS(WPS). Java application will return some value/outfile. I need to read the same via SAS and comparing the result with existing values. Reference Link:…
Bharathiraja S
  • 679
  • 4
  • 12
  • 26
-1
votes
1 answer

SQLCode -991 when trying to read from DB2 table

I've created and compiled a program in Cobol, but when trying to run and test it with a JCL job, I'm getting this error when reading the output. (The program compiles and the job runs without errors themselves) SQLCODE = -991, ERROR: CALL ATTACH…
APL
  • 101
  • 1
  • 3
  • 14