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


Please Help Members By Posting Answers For Below Questions

How can values be passed from the job stream to an executable program?

861


Differentiate between the joblib and the steplib statements?

844


Can we call instream to catalog and catalog to instream?

671


Is their any set of rules for dd? Explain.

644


Where & How Do You Code Identifier In Jcl?

680






how you can direct the data to spool using SYSOUT option?

906


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1912


How can a stopped job be started again?

692


What is the function of //jcllib statement?

786


//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 /*

894


What is the function of dd name parameter with a 2 part structure; audit.report?

689


Matching Logic in Jcl not in cobol.Could any one please answer this question

3660


What is the difference between run mode and addressing mode?

620


Explain dd statement in jcl?

628


What do you know about jcl?

634