Skip to main content

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.

0 votes
1 answer
78 views

SORT to merge two files and append data without changing lrecl

I have two files with the same layout and LRECL FIELD NAME FIELD LENGTH STORE-CUSTOM-ID X(08) STORE-GROUP X(25) STORE-LIST 9(04) OCCURS 500 TIMES I want to Merge these ...
Aarthi M's user avatar
1 vote
2 answers
86 views

Error compiling COBOL program with sequential files

I have this COBOL program in my mainframe: IDENTIFICATION DIVISION. PROGRAM-ID. TEST2. ...
Juan's user avatar
  • 23
1 vote
1 answer
97 views

Can't create a member in a PDS using a JCL

I'm trying to create a member in an existing PDS but it keeps sending this code: UNIDENTIFIED KEYWORD ON THE DD DUMMY STATEMENT. I'm using this code: ... //PASO1 EXEC PGM=IEBGENER ...
Juan's user avatar
  • 23
3 votes
1 answer
48 views

Trying to compare 2 files in a batch job

I have a JCL job as follows trying to compare the contents of a dataset with an HFS file. //CHKOUTP EXEC PGM=ISRSUPC,PARM=(DELTAL,FILECMP) //NEWDD DD DSN=&&TMP1,DISP=(...
Morag Hughson's user avatar
0 votes
1 answer
36 views

Using sort for reformatting the variable length records

I have a input with comma delimited records Each field will be of different variables length Example 5467,2,567.82 243,10,856 Now I want output to be written as below first field length in the output ...
K Sahiti's user avatar
1 vote
1 answer
36 views

ls -rt | tail -n 1 does not work inside theJCL - piping symbol causing issue

I am facing a very strange problem, this command ls -rt | tail -n 1 works in linux server in the putty, but the same command when I give inside the JCL, for some unknown reason doesn't work. //SYSUT1 ...
Brindha Sharadha's user avatar
-1 votes
1 answer
112 views

Required sort jcl to copy last 3 days data from date format mmddyyyy in alphanumeric variable

I have input file with 10100 RL with date in MMDDYYYY format at 7033 position which is picx(08), I want to copy only last three days data. I tried so many date functions but did not work.
sarath pelluri's user avatar
-2 votes
1 answer
41 views

Overlay with iftrail

Overlay with iftrail I want to pass one hard-coded value with total sum from column 10-15 in trailer recordat specific position; can we do the overlay with iftril? I tried by adding overlay with ...
SD pune's user avatar
1 vote
1 answer
45 views

ICETOOL returns no records

I have a requirement to copy all records with 'AB0' or 'AB9' starting at column position 8. My job always returns an empty dataset. Any pointers to solve this will be of much help!
Nupur's user avatar
  • 67
0 votes
3 answers
217 views

How to modify a JCL variable inside a JCL procedure then use it in another step or another procedure

A procedure that has one step is used several times in a job, it is necessary that this step is executed only once in the whole job and the rest of the places are flushed. also I don't want to change ...
Mohamad Heydari's user avatar
0 votes
1 answer
43 views

How to pass Job Max RC / Last CC to COBOL Program

Imagine there is a PGM=SORT step in a job that ends with RC=8 after execution, I need to send that RC value (or last CC) through a parameter to a COBOL program in the next step. How can I use/send the ...
Mohamad Heydari's user avatar
0 votes
1 answer
328 views

Mainframe Programming Sorting, OUTFIL REMOVECC,NODETAIL

The program basically sorts the datas. And remove the duplications considering the range of 5-29 characters. I am trying to sort some values on Mainframe accordingly : SORT FIELDS=(5,24,CH,A,45,10,CH,...
aldimeola1122's user avatar
0 votes
1 answer
52 views

What are JCL Alternitives for Embeded Applications? [closed]

What are modern alternatives for IBM's old JCL (Job Control Language) scripting language? For the past several years a client is working on a rewrite/overhaul of their old Mainframe system porting ...
Obsidian Gnome's user avatar
1 vote
1 answer
68 views

Do I need delimiters on Dataset names for IDCAMS ALTER?

Ok, I'm sort of new to the whole mainframe/JCL thing. I've done a bit of looking and I'm not seeing the answer to what should be a very simple question, IMO. When writing a JCL proc, I'm wanting to ...
CoMo G-Dawg's user avatar
0 votes
0 answers
42 views

How do i automate the JCL

How do i automate the JCL , I Run the JCL job to check whether any objects are in restricted state. I want to excute the job using jenkins manually. I Run the JCL job to check whether any objects are ...
Saurav Chandra's user avatar

15 30 50 per page
1
2 3 4 5
32