IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to copy the content of table to a ps file


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Sun Jul 03, 2005 10:22 am
Reply with quote

hi,

1)how to copy the content of table to a ps file, with example?









thanking u.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Jul 04, 2005 12:28 am
Reply with quote

You can use UNLOAD UTILITY to copy data from table to PS Files.

Regards,

Priyesh.
Back to top
View user's profile Send private message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Mon Jul 04, 2005 8:30 am
Reply with quote

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
View user's profile Send private message
sivamf

New User


Joined: 28 May 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 12:29 am
Reply with quote

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
View user's profile Send private message
Mamata

New User


Joined: 01 Aug 2005
Posts: 4
Location: hyderabad

PostPosted: Mon Aug 01, 2005 4:11 pm
Reply with quote

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
View user's profile Send private message
Sangita

New User


Joined: 02 Jun 2005
Posts: 17

PostPosted: Mon Aug 01, 2005 5:31 pm
Reply with quote

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
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Aug 03, 2005 3:03 pm
Reply with quote

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)

icon_wink.gif
Quote:
Attitudes greater than aptitudes
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top