View previous topic :: View next topic |
Author |
Message |
bade_miya Beginner
Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Tue Dec 16, 2003 7:00 am Post subject: jcl and db2 |
|
|
can a jcl access a db2? can the sort be applied to db2 tables also? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Dec 16, 2003 7:32 am Post subject: |
|
|
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 |
|
|
bade_miya Beginner
Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Wed Dec 17, 2003 11:35 pm Post subject: |
|
|
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 |
|
|
suryavarman Beginner
Joined: 18 Dec 2003 Posts: 1 Topics: 0
|
Posted: Thu Dec 18, 2003 12:27 am Post subject: |
|
|
No |
|
Back to top |
|
|
ian_montejo Beginner
Joined: 10 Jul 2003 Posts: 5 Topics: 1 Location: Phillipines
|
Posted: Thu Dec 18, 2003 2:36 am Post subject: |
|
|
You can use the unload utility of DB2 and specify your required condition and sort the output using syncsort |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Dec 18, 2003 6:27 am Post subject: |
|
|
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 |
|
|
|
|