Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to get a FB file when unloading data from a table
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    Post subject:
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    Post subject:
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    Post subject: still get a vb file
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    Post subject:
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    Post subject:
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    Post subject: Re: How to get a FB file when unloading data from a table
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 3 Tue Jan 17, 2017 4:26 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us