Write a JCL by using the below requirement:
File1 =1, File2 =11 and output needs to come as File3 =111?
Answer Posted / muttiah
@satish:
I'm not sure on what basis you have created this jcl. But
if i'm your interviewer i would have blasted you like
anything.
Findings:
1. step1 output will be 1 in postion 1 followed by 001 in
pos 60 - 62.
2. step2 output will be 111 in position 1-3 followed by 002
in pos 60-63. why the hell are you hardcoding sortin in
both the steps and sortout of step2 you are force fully
making it come as '111' because of this
OUTREC FIELDS=1:C'1',2:1
Then what is the case of having step1 if you force fully
making it as '111'..
Coming to step4: i'm not sure what does it mean but i
executed and saw like the output is in this format.
111 in pos 1-3 and 001 in pos 60-62.
Then where are you eliminating 001 in cols 60.
If you are not sure of the answer don't post anything. But
never divert people with your answers. People who are new
to mainframe can feel your answer is correct.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
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
In job processing, what happens in conversion stage?
What is the maximum length of a single line of jcl?
Explain the job statement in jcl?
What is one line to pass PARM from JCL to COBOL?
what JCL Procedures?
What are the difference between jcl and jes?
Explain the function of the dd dcb keyword?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
what is use of space parameter in dd statement?
Explain how can an in-stream dataset be terminated?
what is SOC4 error?
Suppose I have five jobs to do. But I want to hold one?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How can an in-stream dataset be terminated?