Interview Questions   Tutorials   Discussions   Programs   

JCL - How to convert fb to vb in jcl ?




569
views
asked mar September 8, 2014 11:06 AM  

How to convert fb to vb in jcl ?


           

1 Answers



 
answered By Mswami   0  

VB dataset has a 4-byte RDW(Record Descriptor Word) followed by corresponding data from FB input record, And the length in the RDW is the length of FB record+4.

We can convert FB dataset to VB dataset with OUTFILÂ’s FTOV parameter.

Below is an example JCL which will convert a FB input dataset to VB output dataset.

//MXA0270A JOB A007,PROGRAMMER
//STEP010  EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=INPUT.DATASET,DISP=SHR
//SORTOUT  DD DSN=OUTPUT.DATASET,DISP=(NEW,CATLG,DELETE),
//            UNIT=3390,SPACE=(CYL,(5,5))
//SYSIN DD *
  OPTION COPY
  OUTFIL FNAMES=SORTOUT,FTOV
/*
flag   
   add comment

Your answer

Join with account you already have

FF

Preview

 Write A Tutorials
Online-Classroom Classes
www.writeabc.com


  1 person following this question

  Question tags

jcl × 1

Asked 2 years and 3 months ago ago
Number of Views -569
Number of Answers -1
Last updated
3 years and 3 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert