Say I have a file with 12 records. Each record has the name
of the month. I have to append data in these 12 records
into 1 record. How is it possible?
Answers were Sorted based on User's Feedback
Answer / priya
Read the file. Save the 1st record into output record after
calc its length. Say move in(1:len) to out(1:len), move
in(1:len) to out(len:len2) and so on. Write the out record
into output file.Correct me if am wrong.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / wing
Create an array then redefine it as a field that is long
enough to accommodate them all, then write the long field.
Is This Answer Correct ? | 2 Yes | 0 No |
I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?
what is a null indicator in db2?
Can we use two or more SYSPUNCH DD statements in a JCL for multiple unload (SYSREC00 & SYSREC01)..?
List the different components of jcl statement?
//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES
how to solve u4038 abbend?........
How do you handle empty files in a JCL ?
Can a job have only steplib and no joblib ?
can we bowse or edit the GDG dataset if it is a tape entry?
what will be the error code if duplicate key of VSAM file is found?
Suppose there r 10 steps . Out fo which i want to execute 10th, 9th and 8th in reverse order without using IEBEDIT. How can i do that..???
What will happen if two JOB statements are mentioned in an JCL continuously.