- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to image copy the entire DB2 table TAB1 into a dataset?
The image copy allows us to download or copy the DB2 table into a mainframe dataset. There are two types of Image copy i.e. Full image copy and Incremental image copy. The full image copy is used to take the backup of the entire table. The incremental image copy refers to the differential backup. In order to take the full image copy of the DB2 table we can use the below JCL step.
//STEP1 EXEC DSNUPROC //SYSCOPY DD DSN=TEST.TAB1.COPY,UNIT=SYSDA,VOL=SER=CPY01I, // SPACE=(CYL,(15,1)),DISP=(NEW,CATLG,CATLG) //SYSOUT DD SYSOUT=* //SYSIN DD * COPY TABLESPACE TAB1SPAC /*
We can use the utility DSNUPROC for this purpose. The SYSCOPY will have the dataset in which we want to take the backup of the table. The SYSIN is populated with the parameter COPY TABLESPACE which is followed by the name of tablespace where the table TAB1 resides.
- Related Articles
- How to delete a DB2 table TAB1?
- How to recover a DB2 table space TABSPC1 using the image copy TOLASTCOPY?
- How to find the primary key of a DB2 table TAB1?
- How to add a row compression to a DB2 table TAB1?
- How to get the list of all COBOL-DB2 programs using a DB2 table TAB1?
- How to find all the foreign keys of a DB2 table TAB1?
- How to find out all the indexes for a DB2 table TAB1?
- How to do a full & incremental MERGECOPY for a DB2 table TAB1?
- How to create an ALIAS TAB2 for DB2 table TAB1?
- How to add a new column Address in the above DB2 table TAB1?
- How to create a DB2 table TAB1 with 4 columns, Student ID, Enrollment ID, Name and Age?
- How will you add a constraint on above DB2 table TAB1 for ages between 3 to 16 years?
- How to Copy the entire contents of a directory in C#?
- How to copy the entire ArrayList to a one-dimensional Array in C# ?
- Copy the entire LinkedList to Array in C#

Advertisements