Suppose i have a file with 10 recs and i want to skip only the
7 th record and copy the rest into another file. How do i do
it using SORT?
Answer Posted / ananth
srot fields = copy
stopaft=6
next we have to give another step by using disp=(mod,delete,delete)
skiprec=7
stopaft=4
then 7th record gone remainging records into output file.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What is the maximum length of a single line of jcl?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
what is the purpose of coding notify parameter in job statement?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What do you understand by jcl?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is the function of the steplib dd statement?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
How can unused space allocation be returned to the system when a dataset is closed?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
What is the purpose of dd * statement in jcl?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?