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

BMC UNLOAD ADUUMAIN: SYSREC LRECL


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

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Thu Sep 16, 2010 6:31 pm
Reply with quote

Hello,

We are using BMC unload utility ADUUMAIN to unload the data from DB2 table to flat file.

Please tell me how to calculate the LRECL of SYSREC (unload dataset) ?

Manually we need to calculate LRECL required by looking at SELECT query?

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 16, 2010 7:52 pm
Reply with quote

Hello,

If not specified doesn't the utility automatically generate proper dcb info?

Why is this needed externally and before the unload is run?
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri Sep 17, 2010 11:09 am
Reply with quote

Hi.

We ran without specifing DCB, unload dataset created with invalid blocksize.

Tried with BLKSIZE=0 and BLKSIZE=0 with LRECL=0 also, both the cases unload dataset created with invalid block size error while accessing the dataset.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Sep 17, 2010 12:02 pm
Reply with quote

How do you know the blocksize is invalid ?
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri Sep 17, 2010 1:36 pm
Reply with quote

Hi.

When I tried to browse it shows invalid blocksize, same error when the unloaded dataset accessed or read by another job.

Thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Sep 17, 2010 1:40 pm
Reply with quote

Don't know if this might help, just a passing thought ambling across the grey cell, but,

have you tried using an output of RECFM=VB and LRECL=27994, which if it works will probably cater for most unloads without need for change.

Usually I'd try this before posting, but not having that tool installed here, I can't.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Sep 17, 2010 2:14 pm
Reply with quote

I couldnt find any sample of ADUUMAIN jobs with dcb parameters defined
on the output dataset. So i go with Dick Scherrer.
What kind of program you used for reading the unload dataset ?
A BMC load job?
And browsing with what? And what kind of error messages?

If the output is on dasd, you could look at the vtoc info for that
dataset. It could be that the recfm is undefined.

Questions, questions....
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri Sep 17, 2010 2:49 pm
Reply with quote

Hi

1) Output used as input to Teradata MLOAD utility JCL
2) With manual browse (option 'B') of unload dataset , error message 'Invalid Block Size'
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Sep 17, 2010 3:21 pm
Reply with quote

what are the results of a 3.4 I ?
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri Sep 17, 2010 4:24 pm
Reply with quote

Sorry All,

The issue not with DCB parameters.

1) When the ouput of SELECT query is zero rows then it having error - invalid block size.

2) For the successful SELECT, BMC utility creates a valid unload (SYSREC) dataset.

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Sep 17, 2010 7:26 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
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 WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts Load new table with Old unload - DB2 DB2 6
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top