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

Select QUERY in a job all fetched ROW to be sent to PS


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

New User


Joined: 31 May 2007
Posts: 4
Location: banglore

PostPosted: Fri Oct 12, 2007 5:00 pm
Reply with quote

I am looking for a job that reads Rows from table(DB2) and write it to a QSAM dataset.

INPUT is QUERY and table


OUTPUT selected ROWS
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 12, 2007 5:02 pm
Reply with quote

From Your signature..
Quote:
cool guy always looking easiest way to do things.....


/wisdom on
the easiest way of doing things is to do them Yourself,
and when asking for help, to show that You have tried to help
Yourself before asking
/wisdom off
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Oct 12, 2007 5:08 pm
Reply with quote

Hi Vinay,

U can use DSNTIAUL utility
Code:
//UNLOAD  EXEC PGM=IKJEFT1A,DYNAMNBR=20                       
//STEPLIB  DD DSN=SYS1.DSNDSNE.SDSNLOAD,DISP=SHR               
//SYSTSPRT DD SYSOUT=*                                         
//SYSTSIN  DD *                                               
 DSN SYSTEM(DSNE)                                             
 RUN  PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) -                       
 LIB('SYS1.DSNDSNE.RUNLIB.LOAD') PARMS('SQL')                 
//*                                                           
//SYSPRINT DD SYSOUT=*                                         
//SYSUDUMP DD SYSOUT=*                                         
//SYSREC00 DD DSN=Output data set                   
//SYSPUNCH DD DUMMY
//SYSIN    DD *     
Put ur sql here
/*                                         
Back to top
View user's profile Send private message
srikanthkailasam

New User


Joined: 13 Nov 2006
Posts: 24
Location: Bengalooru

PostPosted: Wed Oct 17, 2007 4:21 pm
Reply with quote

similar to this can we write it into a VSAM dataset?????
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 RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts SELECT from data change table DB2 5
Search our Forums:

Back to Top