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
Can we use DISP=SHR in output file in JCL
what is use of disp parameter in dd statement?
Name the statement which can be used to send data to another mvs jes3 node?
What is the function of dd name parameter with a 2 part structure; audit.report?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Explain the jcl exec statement?
what is the difference between JES3 and JES2?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
What is NOTCAT ?
what is the purpose of coding class parameter in job statement?
how can you check if a file is empty using jcl?
what is DSN parameter and DISP parameter is used for?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
What is the function of dd disp parameter?
Explain the purpose of the dd keylen parameter?