IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get a FB file when unloading data from a table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
husj

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Thu May 25, 2006 7:33 pm
Reply with quote

Hi,
I unloaded data from a table into a dataset. but the record format of this dataset was VB. I want a FB format dataset by same JCL. What to do?
The JCL I used is followed.

//UNLOAD02 EXEC PGM=DSNUTILB,PARM='DQ11,GAFV009A',REGION=2M,
// COND=(4,LE,JBABTDN0)
//STEPLIB DD DSN=DSN.SDSNLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//UTPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSREC DD DSN=GAF.DTG.UT.EA01C311.TEMPG020,
// DISP=(NEW,CATLG),UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE)
//SYSIN DD *
UNLOAD
FROM TABLE SC0BABTU.TBACA0X0 HEADER NONE
(KMTNKOZASIKBTNO,KNYKKNCODE,KNYKKNEIGYOTCODE,
YOKINSHMKKBN,KOZANO)
SHRLEVEL REFERENCE
UNLDDN(SYSREC)
/*


best regards
husj
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Thu May 25, 2006 8:04 pm
Reply with quote

for the specify the DCB parameters , give recl =max rec length and recfm=fb
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Thu May 25, 2006 8:05 pm
Reply with quote

for the file please specify the DCB parameters

give recl =max rec length and recfm=fb


regards
jai
Back to top
View user's profile Send private message
husj

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Fri May 26, 2006 8:19 am
Reply with quote

Hi,

Thanks for your help. I have specified the following DCB parameters,still gotten a VB file. The length is max length+4. How to do?

DCB=(RECFM=FB,LRECL=30,BLKSIZE=23460),

regards

husj
Back to top
View user's profile Send private message
abhishekraghav

New User


Joined: 31 Mar 2006
Posts: 9
Location: Pune

PostPosted: Fri May 26, 2006 12:24 pm
Reply with quote

Use SORT


take only 5th byte onwards from input fie using OUTFIL OUTREC with VTOF or CONVERT option.
and write output record with

RECFM =FB and LRECL should be maximum.

find any SORT document for writing exact syntax about the options mentioned above.
Back to top
View user's profile Send private message
murali.gummadi

New User


Joined: 17 May 2006
Posts: 5

PostPosted: Thu Jun 08, 2006 4:12 pm
Reply with quote

HI Abhishekraghav,

Will u plase more clear on above answer.
I didnt get the answer u specified above.

Thanks In Advance
Murali
Back to top
View user's profile Send private message
varun_sharma

New User


Joined: 08 Jun 2005
Posts: 19
Location: new delhi

PostPosted: Thu Jun 08, 2006 9:26 pm
Reply with quote

Use RECFM =FB and LRECL= max record length +4

Let me know if it doesn't work. Else you can use File Aid for DB2, which is the most easy option.

Cheers
Varun
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top