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

mainframe - FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO userid

I'm trying to create a report from a VSAM KSDS. I got this error when run the job IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO SHE02 IEF863I DSN = SHECICS.ZEUSBANK.BRANCHES SHE00081 RC = 04 RSN 2 IEF099I JOB SHE00081 WAITING FOR DATA…
Tri Nguyen
  • 1,688
  • 3
  • 18
  • 46
0
votes
1 answer

Generate a report using DFSORT

I have a task to write a JCL job invoking ICETOOL/DFSORT to generate a report. The report takes a VSAM KSDS as input and generates a list of bank branches. Each record in the BRANCHES KSDS is of the form • 4-byte binary unsigned integer representing…
Tri Nguyen
  • 1,688
  • 3
  • 18
  • 46
0
votes
1 answer

MAINFRAME: SORT in JCL to convert a dataset into CSV format

hope you are OK. I have a problem and I need your help, if possible. I'm working with Mainframe JCL and I have a dataset with records; each record has different fixed columns separated by "~" (We use that since in the column NAME the names are…
Jorge Spina
  • 1
  • 1
  • 7
0
votes
2 answers

Validating JCL with conditional logic

Normally, when I am done looking at a JCL, I will type the JEM command into my ISPF command line and that will do a quick scan and tell me any errors, such as files not allocated. The only problem is, when we have IF statements in the JCL, the JEM…
SaggingRufus
  • 1,814
  • 16
  • 32
0
votes
3 answers

What is the underlying cause of an Undefined Operation Code error for Assembly on MVS?

I have the following JCL to compile an assembly language program :- //JRETEST JOB (A925,22360679777),'AESANJA',NOTIFY=&SYSUID, // MSGLEVEL=(1,1) //PROCLID JCLLIB ORDER=IBMUSER,LEARN.ASMJCL // EXEC ASMACL //SYSOUT DD SYSOUT=* //C.SYSIN DD…
0
votes
1 answer

JCL : How to import xls from FTP location and send email as attachment

Using JCL I have tried to import .xls from FTP location into mainframe file . And I have used mainframe file as attachment in email. But in attachment the xls file haveing garbage value . I have tried receiving file in binary , text ,ASCII it's…
0
votes
2 answers

JCL error to create partitioned data sets

Here is my JCL command someone please help me why i got this error message, i got so frustated
0
votes
2 answers

I want to execute a JCL step no matter what the RC of previous step is?

There are 3 steps in my JCL: STEP 1: process STEP 2: NDM STEP 3: DELETE OUTPUT after NDM What I want to accomplish? I want to execute STEP 3 no matter what the return code of step 2 is. I tried this: COND=(16,GT) and COND=(16,ST,STEP 2) but it's…
0
votes
2 answers

cobol & JCL removing extra spaces

I am trying to accept input from jcl for example 'John Snow' and run it from my cobol program Im using JUSTIFIED RIGHT VALUE SPACES to move the string to the right side however I need to delete the extra spaces using my cobol pgm. example my…
Walee
  • 1
  • 2
0
votes
1 answer

How to copy a dataset(ps or pds) from MVS to PC using JCL

I want to copy a mvs file to my PC.. I have tried with the below code. //JOBNAME JOB NOTIFY=&SYSUID,CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1), // REGION=0M //STEP01 EXEC PGM=FTP …
Ruthra
  • 15
  • 5
0
votes
3 answers

Invalid length error while passing parameters to ispf macro from rexx code

I have written a macro to change a string all members of PDS. I am passing PDS, existing value and new value via JCL. I am getting invalid length error while passing arguments to ispf macro using rexx. Error is : ISPS108 Invalid length …
bp89
  • 91
  • 1
  • 13
0
votes
3 answers

Do we have any code retrofit tools inbuilt for mainframe technologies like COBOL, JCL etc?

I hope what does retrofitting of code mean? Since you checked-out the code from prod, if any changes have been deployed in prod, then retrofitting of a code will add those changes to your code to make your code deploy-ready. Hope…
Raja Reddy
  • 772
  • 8
  • 19
  • 37
0
votes
1 answer

What does this jcl code do?

//ACTUPT EXEC PGM=finance.ACCTREC.UPDATE, REGION=1M,TIME=(,6),COND= (0,EQ, VALIDATE) I understand this code allocates 1M of memory, the processor can take up to 45 seconds and that to make sure the return code equals zero. I do not understand…
AllisonR
  • 1
  • 1
0
votes
1 answer

Data manipulation with SORT utility

There is one DB2 table which has 4byte Interger as Primary key. Now i have to double the rows of this table. One way i have is, manipulate the key value by unloading the table to a dataset and keep all the columns detail as is. This way i will be…
VinDesai
  • 13
  • 1
  • 1
  • 4
0
votes
2 answers

Zedc dataset compression using JCL

What is zEDC dataset compression? How can we apply compression on our mainframe datasets. What are the DATACLAS parameter values used for zEDC compression. Please help Thanks, Sunitha S
Sunitha S
  • 1
  • 1
  • 3