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

JCL, What is the DD statement I would need to bring in my VSAM file for my cobol to use

VSAM file i need to use KC02477.NEWEMP.WORKASGN.KSDS my cobol is using imbedded sql, I am having trouble getting it to compile using the input file, what is the correct syntax for the dd statement ****** ***************************** Top of Data…
paxtuik
  • 47
  • 1
  • 13
0
votes
1 answer

JCL SORT - Need to add fields from different rows of input to a single output row

I have a 6 row input file which consists of a field(Position 1 to 6) that contains a different value on every line. Based on the different values contained in this field the other fields (From position 7 -80) will be moved to to a single row in…
randomG765
  • 63
  • 1
  • 13
0
votes
1 answer

How to append data in a PS file?

I have the following line in a PS file version !cd "//''" the another file contains the following line remove I want to append data from another file in between the single quotes of the above line. After Appending the characters(remove) from…
Parthi
  • 135
  • 4
  • 14
0
votes
2 answers

JCL expected continuation not received

When starting a job it fails with JCL not run 173 IEFC621| EXPECTED CONTINUATION NOT RECIEVED 174 IEFC605| UNIDENTIFIED OPERATIONAL FIELD The code 173 //STEP1 EXEC SASDUP,WORKU=SYSDU,WORK='100,25' OPTIONS='MACRO…
Piotr
  • 1
  • 1
0
votes
0 answers

What to do if i have 806 CC using DSNMTV01

I try to read some data from IMS DB and write it into db2 table using DSNMTV01. But I have 806 CC ( REQUESTED MODULE DSNMTV01 NOT FOUND ). //USER19 JOB NOTIFY=&SYSUID,MSGCLASS=A,MSGLEVEL=(1,1),REGION=360M //DLIBATCH PROC MBR=TEMPNAME,PSB=,BUF=7, …
0
votes
0 answers

Generate Excel report using P4QFOCUS

I have a requirement to generate an Excel report using P4QFOCUS. If the input file has data, then print the data in excel sheet, If there is no record in input file,then print only message "file is empty" in excel sheet. Eg: input file: 01 james…
0
votes
0 answers

How to write jcl to make dbdgen

I write jcl 4 dbdgen: //C EXEC PGM=ASMA90,REGION=8M, // PARM=(OBJECT,NODECK,NODBCS,'SIZE(MAX,ABOVE)') //SYSIN DD DSN=USER19.DBDSRC(LIBDBD),DISP=SHR //SYSLIB DD…
0
votes
1 answer

JZOS Batch launcher - Run JCL job with java source code within SYSIN DD *

JOB Description: JVMLDM76 library is in the dataset WLM.ABC.DEF.LINKLIB.PDSE. JVMLDM76(load module) comes with jzos batch launcher tool kit installation. Here is my job: //JHELLO JOB MSGLEVEL=(1,1),REGION=0M,CLASS=Q,MSGCLASS=A /*…
user1
  • 391
  • 3
  • 27
0
votes
1 answer

JCL job with java source code within SYSIN DD *

I want to run jcl job with java source code embedded with job itself. I found some cobol examples whose source code is written within SYSIN DD * or SYSIN DD DATA and tried the same with java program. Here is my job: //JHELLO JOB…
user1
  • 391
  • 3
  • 27
0
votes
1 answer

JCL/DFSORT to split dataset based on header of multi-lined records

I have a dataset with processed information, for 4 distinct departments, and I need to split it into one dataset per department. This is the general record structure: XXXXXXX = irrelevant string AAA = 3 letter alpha department ID Record details are…
kauedg
  • 827
  • 8
  • 20
0
votes
1 answer

JCL what is wrong with this?

I am trying to crack this JCL and wonder what is wrong. This is my code : 000001 //SORTJCL JOB 000002 //SORTSTEP EXEC PGM=SORT 000003 //SYSOUT DD SYSOUT=* …
Nick
  • 1
0
votes
1 answer

Merge 2 PDS member to 1

I have a seemingly easy task of of merging 2 member of a PDS, say MYDSN.X(A) and MYDSN.X(B) to a common member MYDSN.X(AB). My attempt was to use IEBCOPY but somehow I wasn't able to do this particular task, although I found quite a few helpful…
Klaus Schulz
  • 527
  • 1
  • 5
  • 20
0
votes
1 answer

DB2 SQLCODE -904 when unloading table using JCL

While i was unloading table using JCL , i Got this error : UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE But the table exist in Database and even available, at the beginning it works but when i repeated the process of unloading several…
KHL
  • 455
  • 2
  • 12
0
votes
2 answers

How to pass values from rexx to jcl

i've jcl which accepts date and pass value to rexx to get next date and previous date. and then jcl prints that next and previous dates. please tell how to take value back from rexx to jcl and use that values in jcl
Nithanth
  • 1
  • 2
0
votes
1 answer

Get job average elapsed time

I need to get the average elapsed time for each job in Active Job Environment in order to produce a report. I've tried to extract it from SMF records but I don't seem to get the right one. Also I've tried keystroke language but it's to slow! The job…
csbl
  • 265
  • 1
  • 6
  • 19