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.



There is one QSAM is the VB file. i want to get the first characters in this file and change those ..

Answer / 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

More JCL Interview Questions

in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths

1 Answers   DELL,


what are the types of abends that occur on job failure? And explain the possible causes of these

0 Answers  


If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?

4 Answers   Wipro,


Explain about LMMFIND - find a library member

1 Answers  


what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

1 Answers  






How to rename a VSAM file as well as it's index file?

4 Answers   CitiGroup,


What is S322 abend ?

5 Answers  


which parameter is used to check the syntax of a jcl without executing it?

0 Answers   IBM,


How do You skip a Step In JCL?

9 Answers   HTC,


The maximum number of steps in a job?

4 Answers  


What is the purpose of dd?

0 Answers  


What is COND=ONLY ?

2 Answers  


Categories