Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us