Kindly give me a jcl to find the occurences of the name "ABDUL" from the two records so that the ouput should be 6. Note that the literal "ABDUL" is placed at different columns in the two records given
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Abdul,
What is the RECFM and LRECL of the input file?
What is the maximum number of times ABDUL can be found in a record?
Is 2 the maximum number of records?
Would the output just be one record with the count? Or would it be the original records with an extra record with the count? Or what? Show the exact expected output for your input example.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Again:
Quote:
Would the output just be one record with the count? Or would it be the original records with an extra record with the count? Or what? Show the exact expected output for your input example.
The input should be as the one i have posted:
Input file:
ABDUL00000000000000ABDULMMMMMMMMMMMMMMMABDULJJJJJJJJJJJJJJJ
OOOOOOOOOOABDULIIIIIIIIIIIABDULNNNNABDULQQQQQQQQQQQQQQQ
Output file:
Count of "ABDUL" is : 6
This is how my output file has to look. Please give me a JCL to find it out
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
If you take to mind that Frank is the guy that develops and maintains DFSORT / ICETOOL within IBM and he gives a solution to a problem, then his way will most certainly be the most optimal / optimistic / opthalmic solution.