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
How can values be passed from the job stream to an executable program?
Differentiate between the joblib and the steplib statements?
Can we call instream to catalog and catalog to instream?
Is their any set of rules for dd? Explain.
Where & How Do You Code Identifier In Jcl?
how you can direct the data to spool using SYSOUT option?
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
How can a stopped job be started again?
What is the function of //jcllib statement?
//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 /*
What is the function of dd name parameter with a 2 part structure; audit.report?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What is the difference between run mode and addressing mode?
Explain dd statement in jcl?
What do you know about jcl?