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: 10210
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 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 JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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