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

Load a table with the data from a dataset


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

New User


Joined: 24 Jul 2007
Posts: 38
Location: Bangalore

PostPosted: Tue Aug 21, 2007 5:18 pm
Reply with quote

Hi all,

I want to load a table with the data from a dataset. I learned that this can be done using a load utility.

//EXESTP EXEC PGM=DSNUTILB
// REGION=1024K,
// PARM='V51A,DSNTEX'
// STEPLIB DD DSN=DSN510.SDSNLOAD,DISP=SHR
//**********************************************************
//* DATA SETS USED BY THE UTILITY
//**********************************************************
//SORTOUT DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND)
//SORTWK01 DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND)
//SYSDISC DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND)
//SYSERR DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND)
//SYSMAP DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND)
//TABLDS DD DSN=BHAGYA.SAMP.DB2TAB,
// DISP=SHR
//SYSUT1 DD UNIT=SYSDA,SPACE=(4000,(20,20),,,ROUND)
//SYSPRINT DD SYSOUT=*
//UTPRINT DD SYSOUT=*
//SYSIN DD *
LOAD DATA INDDN TABLDS
INTO TABLE EMPLOYEE
/*

this is my JCL. Here BHAGYA.SAMP.DB2TAB is the dataset which contains the data and EMPLOYEE is the table which needs to be populated.
I am doing((want to do)) a load-replace.

I am getting the error as

DSNUTILB - DB2 SYSTEM DOES NOT EXIST
DSNUTILB - UTILITY EXECUTION TERMINATED, HIGHEST RETURN CODE=8

I wrote this JCL after reading the manuals only, but not getting the output.

Can any one help me in this!!!
Tell me what are all the changes i need to do in this..


Thank you!!!!!!!!!
[/code]
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Aug 21, 2007 5:40 pm
Reply with quote

Hi lakshmi,

Can you explain about the parameter 'V51A,DSNTEX' mention in the PARM.


Thanks
sai
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: Tue Aug 21, 2007 10:34 pm
Reply with quote

Hello,

If you talk with your database support people, they can tell you what you need to load data in your environment - assuming of course, that you have the proper permissions to do this.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Aug 21, 2007 10:58 pm
Reply with quote

PARM needs to point to the actual subsystem you need, examples from my site:
DB2P
DB2B
DB2A
DB2U

Other than that I can't say on the rest of it.
Back to top
View user's profile Send private message
Bhagyalakshmi C

New User


Joined: 24 Jul 2007
Posts: 38
Location: Bangalore

PostPosted: Wed Aug 22, 2007 10:47 am
Reply with quote

Thanks all!!!!

I will find it out.

Thank you.
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 1
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top