Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


Give some examples of command terminators?

0 Answers  


how to change picture class of copy book variable inside program?

2 Answers  


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?

6 Answers   Xansa,


what are the isolation levels and where we use it in the db2 program

3 Answers   TCS,


What is rmode(24)

0 Answers  


why we are using set in searchall?

4 Answers   IBM,


how can we get current dat and time thru cobol pgm

3 Answers   DELL,


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


what is the purpose of linkage section?

10 Answers  


HOw can I get the negative sign while deduct high value from low value

0 Answers  


Categories