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 |
how can handle the s0c4 abend???
What is job control language?
I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.
What is the significance of addrspc parameter in the exec statement?
how many max steps can we use in a job? pls answer to my question
What is difference between Return Code, user completion code, Abend code and reason Code?
On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?
Whats error code s222?
How does jcl specify the job to the operating system?
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
i have records from 1 t0 100 . i need to open records from 10 to 18 and change the values in tht ? how can i do tht ?
How to send notification to multiple users through jcl???