MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unload from a Parttioned table space

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Mon May 17, 2004 3:51 am    Post subject: Unload from a Parttioned table space Reply with quote

Hi,

I did some search for the question, but did not find correct information.

Our requirement is to download from a partitioned table space.

The query is like this...

SELECT field1 FROM table1 PART 1,
table2
WHERE
field2 = field2 ;

Here field2 is there in table1 and table2. So we want to give synonym for the tables.

How can we give the synonym in this case?

I tried giving like

SELECT field1 FROM table1 A PART 1,
table2 B
WHERE
A.field2 = B.field2 ;

This gave an error

FU030 - DATA FIELD NOT NUMERIC OR OUT OF RANGE - CHECK DOCUMENTATION

FU075 - INVALID SELECT STATEMENT - SEE DOCUMENTATION

Thanks,
Ranjish
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon May 17, 2004 10:22 am    Post subject: Reply with quote

Ranjish,

It would have been easier if you had mentioned the utility you are using to unload the data. I had search around and finally figured that you are using CA-FAST UNLOAD.

I guess the sql-access is the culprit once again. If SQL-ACCESS NONE is specified, the view cannot have any of the following in the view definition:

  • Joins
  • DISTINCT clauses
  • Column functions
  • Scalar functions
  • WHERE clauses
  • ORDER BY clauses
  • HAVING clauses


If any of the above is specified in the view definition, SQL-ACCESS must be specified as ONLY or EXTENSION, so that Unicenter Fast Unload can use SQL access to unload the table data.

So check your unload control cards and specify the sql-access to only or extension and you should be able to unload the data.

Check this topic which discusses sql-access which accidentally is started by you.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1972&highlight=sqlaccess

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Mon May 17, 2004 10:45 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for your reply and sorry for not mentioning the utility in my original post.

I checked the utility control card and it is using SQL ACCESS EXTENSION.

The following is the control card which I am using.

FU003 - FASTUNLOAD CONTROL CARD PARSING STARTED - U01E1 - 12/27/02
FASTUNLOAD
EXCP YES
INPUT-FORMAT TABLE
IO-BUFFERS 60
LOAD-CONTROL DB2LOAD
VSAM-BUFFERS 360
DISPLAY-STATUS 100000
SHRLEVEL CHANGE,BP-LOOKUP
SQL-ACCESS EXTENSION
SORTDEVT SORTWK SORTNUM 4 ESTIMATED-ROWS 1000000
OUTPUT-FORMAT DSNTIAUL

regards
Ranjish
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon May 17, 2004 11:11 am    Post subject: Reply with quote

Ranjish,

Try the following control cards and see if it works.

Code:

//SYSIN DD *
FASTUNLOAD
INPUT-FORMAT T
OUTPUT-FORMAT D
SQL-ACCESS EXTENSION
ESTIMATED-ROWS 1000000
OUTPUT-FORMAT DSNTIAUL
SORTNUM 3
*
SELECT A.FIELD1
  FROM TABLE1 PART 1 A
      ,TABLE2 B
WHERE A.FIELD2 = B.FIELD2
;
//*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group