Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to copy the content of table to a ps file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to copy the content of table to a ps file
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: 1452
Location: Chicago, IL

PostPosted: Mon Jul 04, 2005 12:28 am    Post subject: Re: jcl&db2
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    Post subject: i need an example program
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    Post subject: Re: How to copy the content of table to a ps file
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    Post subject:
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    Post subject: Re: How to copy the content of table to a ps file
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    Post subject: Unload
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 1 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us