if a dataset is already created with fixed length but after
that i want to change fixed length to variable length then
how is it possible

Answers were Sorted based on User's Feedback



if a dataset is already created with fixed length but after that i want to change fixed length to v..

Answer / vibhu

we can do that using Jcl and passing FTOV in the sysin
parameter

Is This Answer Correct ?    8 Yes 0 No

if a dataset is already created with fixed length but after that i want to change fixed length to v..

Answer / varsha

You can convert an FB data set to a VB data set with
OUTFIL's FTOV parameter. Each VB output record has a 4-byte
RDW followed by the corresponding data from the FB input
record, and the length in the RDW is the length of the FB
record plus 4.

The following JCL and DFSORT control statements convert the
bookstore data set records from FB to VB.

//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
/*Because the LRECL of SORT.SAMPIN is 173 bytes, each VB
record in SORT.VSAMP is 177 bytes (the FB record length of
173 plus 4 for the RDW) and SORT.VSAMP is given an LRECL of
177.

Is This Answer Correct ?    1 Yes 0 No

if a dataset is already created with fixed length but after that i want to change fixed length to v..

Answer / mainframesasi

No it is not possible the values which we have defined
while creating dataset in 3.2 is the final.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More COBOL Interview Questions

how to refer the data field?

0 Answers  


give the examples of strings in cobol

1 Answers   IBM,


what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


Hi Devolopers.. i need ur help.. i have 3 years of exp in Manual testing and SQL, next month onwards i shifted in to MAINFRAME TESTING... i have ZERO Knowledge abt mainframes.... PLS SUGGEST ME WHAT I LEARN in AMEERPET? mainframe testing or mainframe total devolopment subject... AS a devoloper u know every thing tester what to do PLSSSSSSSSS help me ITS VERY URGENT...

1 Answers  


What is the use of EVALUATE statement?

4 Answers   Tesco,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

0 Answers   HSBC, Quest,


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

0 Answers  


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


What is the problem of ordered sequential files access?

0 Answers  


What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?

1 Answers   Kuwait Oil Company,


Categories