how to unload different table data into different gdg files/
vsam files.

Answers were Sorted based on User's Feedback



how to unload different table data into different gdg files/ vsam files...

Answer / harsha

Use DSNTIAUL utility

Is This Answer Correct ?    3 Yes 0 No

how to unload different table data into different gdg files/ vsam files...

Answer / raghu

by using DSNUTLIB utility .
in dsnutlib of unload utility we first unload table data into file ,from that file we can load data into gdg/vsam files by idcams .

Is This Answer Correct ?    1 Yes 0 No

how to unload different table data into different gdg files/ vsam files...

Answer / anilkumar

do you need to unload more than 2 tables in a single unload step
Then need to specify sysrec01,syrec02 in jcl step
and in sysin
specify like this
select * from tab1 with ur; ---- data extrcat into sysrec01
select *from tab2 with ur; ----- data extract into sysrec02

this sort of jcl's we used in our project
but the same thing is not work for if you used union and
union all in the queries.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More DB2 Interview Questions

What is a trigger in the db2 database?

0 Answers  


List down the types of triggers in the db2 database?

0 Answers  


Hi All, In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

1 Answers  


Can a array declared with an index be displayed(readable format) in spool?

4 Answers   Syntel, UST,


Explain about rct in db2?

0 Answers  






What are the functions in DB2?

3 Answers   Satyam,


pls explain the precompilation process of cobol-db2 pgm

3 Answers   HCL, IBM,


What is the clustering index in the db2 database?

0 Answers  


What happens to a tablespace when its recovery infromation has been removed and a full recovery is no longer possible?

2 Answers  


What is meant by index cardinality?

2 Answers  


SI Stud name Subject Marks Pass/Fail 1 Sham Maths 40 P 1 Sham Physics 50 P 1 Sham Bio 20 F 2 Ram Maths 40 P 2 Ram Physics 50 P 2 Ram Bio 60 P For the above data , write the SQL query for the student who passed in all the subjects . For eg : I want the data of only Ram coz he passed all subjects .

2 Answers   Cognizant,


What is image copy in db2?

0 Answers  


Categories