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

Possible to send email, with an attachment from the Mainframe?

I have the following code: //****************************************** //PROC01 EXEC PGM=IEBGENER //SYSIN DD DUMMY //SYSPRINT DD SYSOUT=* //SYSUT2 DD SYSOUT=(B,SMTP) …
F0l0w
  • 243
  • 5
  • 15
0
votes
0 answers

Obtaining Input DDName from FTP (JES)

I have a job in JES on the mainframe that I want to retrieve or list directory via FTP. I'm able to do so easily if I want one or all of the OUTPUT DDNames of my job (In SDSF, with "INPUT OFF" command) SDSF JOB DATA SET DISPLAY - JOB MYUSERUL…
ericmas001
  • 603
  • 6
  • 12
0
votes
2 answers

JCL append date/time to a file?

How do I add the current date/time to a file in JCL? For example, from the JCL: //INPUT DD * CGQ-TEST.ISQCQ.NET ASCII LOCSITE SBD=SYSP.FTP.RCAMSI SENDSITE PUT 'TJ.UTJ0IR86.BC814.HDR' BC814001.TMP APPEND 'TJ.UTJ4IR86.BC(0)' …
Ardia
  • 89
  • 2
  • 10
0
votes
1 answer

JCL error - "$HASP165 IBMUSERW ENDED AT SVSCJES2 - JCL ERROR CN(INTERNAL)"

I am trying to the utility DFHWS2LS to create a CICS Web service requester. The first step mentioned in the IBM redbooks or the guides is running this in a JCL. I face this issue on submitting the JCL. I am doing something wrong. Can't figure out…
Shreyas
  • 999
  • 6
  • 19
0
votes
2 answers

Syncsort Sum Fields=None not removing duplicates

I'm trying to run a SYNCSORT job that will remove duplicate entries and when I run it, I'm still getting duplicates. The following is the SYNCSORT code I'm using: INCLUDE COND=(((61,1,CH,EQ,C'P'),OR, (61,1,CH,EQ,C'V')),AND, …
Wesley Kluckhohn
  • 115
  • 1
  • 5
  • 14
0
votes
1 answer

Capture multiple jobs output with pgm=sdsf

I've built a job to retrieve information from spool executions (with the utility PGM=SDSF), but I can only seem to do that for one job at a time, by doing: //SDSFS1 EXEC PGM=SDSF //SYSPRINT DD SYSOUT=* …
csbl
  • 265
  • 1
  • 6
  • 19
0
votes
2 answers

Error in JCL job

I have the below job which runs on a zlinux server and it creates a trigger in a destination zOS system. //WPLP0500 JOB (GBCRM,GBAWPL),'PLIW ESI TRIGGER', // CLASS=A,REGION=32M,MSGCLASS=E //STEP EXEC PGM=IEFBR14 //SYSPRINT DD SYSOUT=* But it…
Harshi
  • 189
  • 1
  • 4
  • 20
0
votes
1 answer

Send 2 CSV in JCL

I try to send attachment (2 csv files) using JCL. When I use XMIT all is good and I 've got lay out I want. But when I use IEBGENER: HELO ... MAIL FROM: RCPT TO:
0
votes
1 answer

Reading through Tapes - JCL

We currently backup some of our data to tapes (virtual, not physical) and I am needing to read and pull information from those tapes. Currently we are using JCL with a DD statement for each Vol/Ser that looks like: //VOLSERO DD…
Wesley Kluckhohn
  • 115
  • 1
  • 5
  • 14
0
votes
2 answers

Need to compare the same field in different records with JCL SORT

I have an input file, the 3rd field in this file is a number. This number usually is repeated in the same field for about 30-40 records, when a record is read that has a different value in this field I need the number '1' to print in the first…
randomG765
  • 63
  • 1
  • 13
0
votes
1 answer

Writing characters after x amount of records using a JCL Sort

I have written a JCL SORT that will sort/reformat various fields and print them to a new output file as in the code below. I need to amend this code to simply print the number '9' at the beginning of every tenth(10th) record. I presume I need an…
randomG765
  • 63
  • 1
  • 13
0
votes
2 answers

VSAM Search VS COBOL search/loop

I have a file that could contain about 3 million records. Certain records of this file will need to be updated multiple times throughout the run of the program. If I need to pull specific records from this file, which of the following is more…
SaggingRufus
  • 1,814
  • 16
  • 32
0
votes
0 answers

Sort jcl replace all

I've got a very interesting question. Using inrec parse I delete delimiter(.), and replace it by 20 spaces. May I change 20 spaces by comma using jcl and sort (or icetool)?
0
votes
2 answers

Specifying Environment variables in JCL

Physical DSN name specified together with the DD name in JCL is the usual way of handling files in ZOS. But we can also specify a variable DD name in FILE CONTROL and set the DSN in program using SETENV. e.g. How to set environment variables and…
cobp
  • 772
  • 1
  • 5
  • 19
0
votes
1 answer

Add some info for email via JCL

community! I 've got an interesting question. I write a small jcl, which xmit file to another email. XMIT Is it possible to add some information to email, such as subj?