There is one QSAM is the VB file. i want to get the first
characters in this file and change those characters
from'abcd' to '1234' and creat a vasm file to put '1234' in
it. how to do in only JCL.
if it not QSAM, it's VASM and VB. how to do it.
Answer Posted / chandrababu
Using DF sort:
Input file:QSAM file
Output File:VSAM file
(Before create the VSAM file with variable length record
using key field).
Starting Position of the VB file is :5
OUTREC FIELDS=(5:C'1234',9: )
If anything wrong then post the correct one
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is a type of file defined in the jcl that executes the cobol program?
What do you understand by the terms: joblib and steplib?
What happens if both JOBLIB & STEPLIB is specified ?
Are there any set of rules for the names of the steps used in a job? What are they?
What are the 4 fields in dd statement?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
Give the syntax of job specifying jcl statement.
How can unused space allocation be returned to the system when a dataset is closed?
What are the utility programs in jcl?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
How to pass the parameter in parm using linkage section ? (syntax)?
I need exexution process for JCL programs
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
how to do automated restart when a job abends?
Must tape dataset definitions include vol=ser specifications?