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

i want apply mainframe devolper with 3+ but i dont have that much of knowledge what isthe solution to get that much of knoweldge?

1 Answers  


How to release the Output HELD by using HOLD = YES on DD statement ?

2 Answers   IBM,


what is mainframe?

4 Answers   CGI,


What is the function of the dd mgmtclas keyword in sms datasets?

0 Answers  


Explain about CBL/PROCESS statement syntax

1 Answers  






how do you code a null statement?

0 Answers   IBM,


Which COND paramter will u use to execute the step only if the previous step does not execute

3 Answers   BoA, HSBC,


can we have more than one job in a single job card that is we are specifying only one 'job' statement in the jcl.

7 Answers   Accenture,


How Can we see all generations of a GDG ?

3 Answers   Polaris,


how to solve u4038 abbend?........

3 Answers   Atos Origin, TCS,


Brief description of inline procedure of jcl.

0 Answers  


How to find out the number of records in a file using JCL

5 Answers   CTS,


Categories