Hi,
My dataset have multiple records, say 100. I want to start
copy records only after a record contain a specific value
that may be in a specific position. Secondly I want to stop
copying rest records if certain record contains a specific
value. Can it be done using SORT/ICETOOL utilities?
Answer Posted / muttaiah
Hi Subrat,
can you cleary mention your query.
you want to start copying only after a particular record
contains a value & stop after you find a value in
particular record.
EX:
100 muttaiah hyd
200 kiran hyd
300 Guru hyd
400 ram hyd
500 narayana hyd
600 hari hyd
consider you input file has 5 records. You want to copy
only when you find 200 in the record & stop when you find
500 in the record
Output:
300 Guru hyd
400 ram hyd
Is this what your question exactly MR. Subrat,
@All:
All the previous answers are wrong
The one who posted i kindly request them to read the
question twice before they post. As number of people are
going to visit this site.
Thanks,
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are s0c1, s0c4, s0c5, s0c7 and socb?
Can we use DISP=SHR in output file in JCL
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
what is DSN in JCL and what are the parameters to declare the DSN?
Are there any set of rules for the names of the steps used in a job?
What is the function of the dd dcb keyword?
what is the purpose of coding notify parameter in job statement?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
which parameter is used to check the syntax of a jcl without executing it?
What does a disposition of (new,catlg,keep) for a dsn mean?
What dd statement is used to supply the name of a dataset?
What statement can be used to send data to another mvs jes3 node?
Why include statement is used in a jcl?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*