Please give me the coding for converting VB to FB and FB to VB

Answers were Sorted based on User's Feedback



Please give me the coding for converting VB to FB and FB to VB..

Answer / sr

//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=SDS.OUTPUT.FBVB,DISP=SHR
//OUT1 DD DSN=SDS.OUTPUT.VBFB,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(TRK,(5,5)),
// DCB=(RECFM=FB,LRECL=80)
//SYSIN DD *
OPTION COPY
OUTFILE FNAMES=OUT1,VTOF,OUTREC=(5,80)
/*

SDS.OUTPUT.FBVB is a VB file of Record length=
84

Is This Answer Correct ?    4 Yes 1 No

Please give me the coding for converting VB to FB and FB to VB..

Answer / allu prakash

//STEP1 EXEC PGM=SORT

//SYSOUT DD SYSOUT=*

//SORTIN DD DSN=SAS12D.G4662V00.TEST,DISP=SHR
//SORTOUT DD DSN=GGJ67D.TEST4,
// DISP=(NEW,CATLG,DELETE),

// SPACE=(TRK,(10,10),RLSE),
// RECFM=FB,LRECL=10,DSORG=PS

//SYSIN DD *
OPTION VLSHRT
SORT FIELDS=COPY

INCLUDE COND=(89,1,CH,EQ,C'Y',AND,5,3,ZD,EQ,120)

OUTREC FIELDS=(8,2,PD,EDIT=(TTTTTTTTTT))

i hope this is the right to convert the VB TO FB..let me
know if the given answer is wrong......

Is This Answer Correct ?    3 Yes 4 No

Please give me the coding for converting VB to FB and FB to VB..

Answer / harsha

Important point is VB file will have 4 bytes extra than
it's corresponding FB file.
The four bytes contain catalog information of the file.

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More JCL Interview Questions

A STEP has more than 1 file as INPUT. And we have to put all these records int 1 output file. How to do ? //InputF  DD DSN=ID.File1              DSN=ID.File2              DSN=ID.File3

1 Answers   FIS,


What is the function of the dd dcb keyword?

0 Answers  


1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?

11 Answers  


What does IEBGENER do?

10 Answers   BirlaSoft,


Suppose I have five jobs to do. But I want to hold one?

0 Answers  






what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file

3 Answers   Virtusa,


wht happens if cond=true ? pls give me with an example ?

2 Answers   Syntel,


when GDG version number get changed ? bcz always Generations only increasing.

1 Answers   Cap Gemini,


i need some shortcuts and tso commands can any on ehelp me in these ?

1 Answers  


How can i execute 5th step without executing first 4 steps?

4 Answers  


How do you find which GDG is using which dataset?

3 Answers   Patni,


What do you understand by jcl?

0 Answers  


Categories