|
View previous topic :: View next topic
|
| Author |
Message |
Venkatesan Arumugam
New User
Joined: 28 Jun 2005 Posts: 3
|
|
|
|
Hi Guys,
i am new to this portal, nice to join with u people, anyone can tell me about the conversion of the Record format From VB(Variable Block) To FB(Fixed Block).
Thanks & Regards,
Venkatesan Arumugam. |
|
| Back to top |
|
 |
machswap
New User
Joined: 19 Apr 2005 Posts: 14
|
|
|
|
Hi,
This jcl will convert a file of format variable to fixed.
//STEP0010 EXEC PGM=SORT
//SORTIN DD DSN=input file,DISP=SHR
//SORTOUT1 DD DSN=FV99T.TEST2,
// DISP=(NEW,CATLG,DELETE),LRECL=50,
// RECFM=FB
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT1,VTOF,
OUTREC=(1:1,50)
END
/*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//
Please try this.... |
|
| Back to top |
|
 |
jz1b0c
Active User

Joined: 25 Jan 2004 Posts: 160 Location: Toronto, Canada
|
|
|
|
keep the JCL as it is, and use the below sysin (make necessary changes)
SYSIN :
INREC FIELDS=(01:01,06,
07:4Z,
88:2620,1)
SORT FIELDS=COPY
OUTREC FIELDS=(01:07,82),CONVERT
END |
|
| Back to top |
|
 |
MGIndaco
Active User

Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
You can also use other IBM utility as IEBGENER to do the same.
| Code: |
//STEP010I EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
GENERATE MAXFLDS=1
RECORD FIELD=(350,1,,1)
//SYSUT1 DD DISP=SHR,DSN=myVBinput
//SYSUT2 DD DISP=(,CATLG),UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=FB,LRECL=350,BLKSIZE=3500),
// DSN=myFBoutput |
For more detail about this utility see this link:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/CCONTENTS |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|