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
 

 

Unload db2 data from different systems: SQLCODE = -904

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Unload db2 data from different systems: SQLCODE = -904
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    Post subject: Re: Unload db2 data from different systems: SQLCODE = -904
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Apr 26, 2007 10:17 am    Post subject: Re: Unload db2 data from different systems: SQLCODE = -904
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    Post subject:
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    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 copying data without knowing location arunsoods DFSORT/ICETOOL 5 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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