I have a JCL with 10 steps, want to execute first 5 steps
only, what are ways of doing it?is it possible to control
through JOB card?

Answer Posted / laxman

//SYSIN DD *
SORT FIELDS=COPY,
STOPAFT=5
/*

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In sms datasets, what is the function of the dd avgrec keyword?

658


Explain how can a jobs execution priority be modified?

743


What do you understand by the terms: joblib and steplib?

626


Where & How Do You Code Identifier In Jcl?

699


What is multithreading in jcl?

944






What are some jcl statements that are not allowed in procedures?

730


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1590


how JCL works?

800


State the uses of syspring, sysin, sort fields, sum fields and dummy.

656


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1990


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

925


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

704


Explain about LMQUERY�give a dialog information about a data set

906


What is jcl in mainframe, and how many types of jcl statements are there for a job?

633


What are the difference between jcl and jes?

1050