View previous topic :: View next topic
|
Author |
Message |
nandakumar Warnings : 2 New User
Joined: 05 May 2005 Posts: 50
|
|
|
|
hi,
1)how to copy the content of table to a ps file, with example?
thanking u. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
You can use UNLOAD UTILITY to copy data from table to PS Files.
Regards,
Priyesh. |
|
Back to top |
|
|
nandakumar Warnings : 2 New User
Joined: 05 May 2005 Posts: 50
|
|
|
|
hi,
i never used unload utilituy,i need an example for copiying the content of db2 table to ps file.
thanking u. |
|
Back to top |
|
|
sivamf
New User
Joined: 28 May 2005 Posts: 6
|
|
|
|
Why Cant you select the content of a table move it to variables and update the PS file it can be done using COBOL program.
Siva |
|
Back to top |
|
|
Mamata
New User
Joined: 01 Aug 2005 Posts: 4 Location: hyderabad
|
|
|
|
Hi,
To have the data of a table in a PS, use SPUFI to execute the query.
Here, u write the query in an input file and also specify the output file. So, it will directly store the data in the output PS file you have specified.
Regards,
Mamata. |
|
Back to top |
|
|
Sangita
New User
Joined: 02 Jun 2005 Posts: 17
|
|
|
|
Use DB2DSNUT Utility to download the table .
Give the data set name where u want the data of the table to be in SYSREC and give SELECT * FROM Table in the SYSIN DD * |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
To select the UNLOAD utility, enter 7 in the DB2 utility input field on the DB2 Utilities panel.
If you selected "Tables" in the Object Type section of the DB2 Utilities panel, the UNLOAD Utility (Tables) panel is displayed.
If you selected "Table spaces" in the Object Type section of the DB2 Utilities panel, the UNLOAD Utility (Table Spaces) panel is displayed.
Sample JCL generated for UNLOAD (Tables)
Quote: |
Attitudes greater than aptitudes |
|
|
Back to top |
|
|
|