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
Is it possible to define dd statements as you want?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
List in order the hierarchical levels of jcl?
Why block size is multiple of lrecl in jcl?
For what purpose steplib and joblib are used ?
Where can program checkpoints be stored for use in a restart?
How dummy is used in jcl?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How gdg are concatenated?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
How to alter the parameters for the existing gdg?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?