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

Unload db2 data from different systems: SQLCODE = -904


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

New User


Joined: 20 Jan 2006
Posts: 1

PostPosted: Wed Apr 25, 2007 9:45 pm
Reply with quote

Hi,

I would need to unload db2 data from production system (DBP1), and then load this data into appl system (DBA1) in the same job. Production and appl systems are defined in different mainframe machines SY2 & SY4.
I am running my jcl in appl system, using

DSN SYSTEM(DBA1)
RUN PROGRAM(DSNTIAUL) PLAN(DSNTIAUC) -
LIB('DBA1.RUNLIB.LOAD') -

END

and A.SYSIN DD DBP1.CC.CURRENCY

I am getting SQLCODE = -904.

Would you know how to perform an unload from a different db2 system? THANKS!!
Marta.
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Thu Apr 26, 2007 1:34 am
Reply with quote

Please post the complete -904 error message along with reason code.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 26, 2007 10:17 am
Reply with quote

Quote:

-904 UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE. REASON
reason-code, TYPE OF RESOURCE resource-type, AND RESOURCE NAME
resource-name



if the prod and appla db2 systems are on different systems/cpus/lpars it does not seem reasonable to pretend doing the unload and reload in one job,
on what system would You be running it??

the reasonable ( and at first glance the only way ) is

run the unload on the production system
transfer the unloaded data to the application system
reload

regards

e.s
Back to top
View user's profile Send private message
rajandhla

Active User


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

PostPosted: Thu Apr 26, 2007 5:49 pm
Reply with quote

let know the reason code you are getting for the sqlcode

Regards,
jai
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 Store the data for fixed length COBOL Programming 1
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Remote Unload of CLOB Columns DB2 6
Search our Forums:

Back to Top