how to convert a file form fixed Length to variable length?

Answers were Sorted based on User's Feedback



how to convert a file form fixed Length to variable length?..

Answer / harsh

//FBVB JOB A92,PROGRAMMER
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=A123456.SORT.SAMPIN,DISP=SHR
//VBOUT DD DSN=A123456.SORT.VSAMP,DISP=(NEW,CATLG,DELETE),
// UNIT=3390,SPACE=(CYL,(5,5))
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=VBOUT,FTOV
/*

Is This Answer Correct ?    9 Yes 2 No

how to convert a file form fixed Length to variable length?..

Answer / naga

In recfm=fb is fixed. instead of fb put vb in record format
is variable file,in variable file extra 4 byte control
information is added

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More JCL Interview Questions

how to create gdg with out using idcams utility

8 Answers   DSRC,


If i am going to change some variable in a copybook( size or variable type) ,what are the changes that need to be done in the corresponding JCL.

4 Answers   IBM,


A job has 90 steps i want to execute only step7 and step15

3 Answers   Cognizant,


What does the TIME parameter signify ? What does TIME=1440 mean ?

6 Answers   Accenture, TCS,


in job stmt i coded time=(2,30) and in step 1 i coded time=(1,30) and in step i coded time=(1,30), whch one executes first and what happens if step1 and step2 time executes and wht about the remaining time if step and step2 executes

4 Answers  






IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the second step using the JCL, How to do it?? Please give the answer ASAP:)

8 Answers  


What is STEPLIB, JOBLIB? What is it used for?

2 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.

3 Answers  


What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?

9 Answers   GE, Xansa,


If I defined space as TRK(10,10) for the one file and lrecl = 4K then tell me how many record will vsam file will contain. will it 1,2,3,4,5 or how many,

3 Answers   IBM,


I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter

8 Answers  


What are the basic JCL Statements for a Job?

1 Answers  


Categories