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 

jcl and db2

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Tue Dec 16, 2003 7:00 am    Post subject: jcl and db2 Reply with quote

can a jcl access a db2? can the sort be applied to db2 tables also?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Dec 16, 2003 7:32 am    Post subject: Reply with quote

bade_miya,

JCL is a mere Job Control Language. JCL by itself cannot access DB2.You need a program or an utility to access DB2. Programs can be either user written or you can use one of the terminal monitor program such as IKJEFT01. There are many utilities(DSNUTIL, DSNSTEP2..) to access DB2.

you can sort the data using the ORDER BY while unloading the data itself or you can unload the table and feed to sort program to sort it

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
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Wed Dec 17, 2003 11:35 pm    Post subject: Reply with quote

kolusu,
thanks for the response. but what i ment was that , i wanted to use some sorting utility like syncsort to operate on db2. i wanted to make an extract from a database. is it possible to do this using syncsort or some kind of other utilities.now i am doing it using cobol and cursors.can i do it using utilities? thanks in advance.
bade_miya
Back to top
View user's profile Send private message
suryavarman
Beginner


Joined: 18 Dec 2003
Posts: 1
Topics: 0

PostPosted: Thu Dec 18, 2003 12:27 am    Post subject: Reply with quote

No
Back to top
View user's profile Send private message
ian_montejo
Beginner


Joined: 10 Jul 2003
Posts: 5
Topics: 1
Location: Phillipines

PostPosted: Thu Dec 18, 2003 2:36 am    Post subject: Reply with quote

You can use the unload utility of DB2 and specify your required condition and sort the output using syncsort
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Dec 18, 2003 6:27 am    Post subject: Reply with quote

bade_miya,

The new SYNCSORT FOR Z/OS 1.1 comes with DB2 interface. i.e you can SORT while unloading itself

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 -> Job Control Language(JCL) 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