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.
480
questions
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 ...
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.
...
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 ...
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=(...
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 ...
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 ...
-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.
-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 ...
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!
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 ...
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 ...
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,...
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 ...
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 ...
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 ...