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

Prob layout with DSNTEP2


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

New User


Joined: 30 Aug 2007
Posts: 5
Location: Belgium

PostPosted: Fri Sep 14, 2007 12:56 pm
Reply with quote

Hi,

I want execute a select (db2) in a JCL.
I'm using PGM=IKJEFT01 and i'm running program DSNTEP2. The result of my query is in a file toto.db2.result
All is OK but in my file i can see in the first line the query and in the others lines i see the result with border and number for each row.

I would like see only the result of my query, without the query and the borders...

Can you help me?

here is the code:

Code:
   
//TAB500D EXEC PGM=IKJEFT01,DYNAMNBR=20           
//STEPLIB  DD DSN=DDA1LIB.SDSNLOAD,DISP=SHR       
//SYSPRINT DD DISP=(MOD,CATLG),SPACE=(CYL,(9,9)), 
//        DSN=toto.db2.TAB500D                 
//SYSTSPRT  DD SYSOUT=*                           
//SYSUDUMP  DD SYSOUT=*                           
//SYSTSIN   DD *                                   
  DSN SYSTEM(DDA1)                                     
  RUN  PROGRAM(DSNTEP2) PLAN(DSNTEP71)                 
       LIB('DSN710D.RUNLIB.LOAD') PARMS('/ALIGN(LHS)') 
  END                                                   
//SYSIN DD *                                           
  SELECT B.CLIENT, B.DBD                               
  FROM NNDBD.DBEURO_CLIDBD_DEV A                       
       RIGHT OUTER JOIN NNDBD.DEU02_CLIDBD_DEV B       
       ON CODE = CLIENT AND B.DBD = A.DBD               
  WHERE A.DBD IS NULL                                   
  GROUP BY B.CLIENT, B.DBD;                             
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 14, 2007 4:24 pm
Reply with quote

Quote:
Can you help me?

NO! :-)

Thats the way dsntep2 works...

but... dsntep2 source is available in the DB2 libraries,
modifying it to suit Your needs is not that difficult

regards

e.s
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Sep 14, 2007 7:24 pm
Reply with quote

Or simply process the output of DSNTEP2 using REXX/SORT etc.

O.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Fri Sep 14, 2007 10:01 pm
Reply with quote

Or - less simplier but a real good exercice, use DSNTEP2 as a sample and modify it ( it is PL/I however ).

A good week-end work .. icon_lol.gif

No Stop I am not really serious. although ...

Cheers

Pierre
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
This topic is locked: you cannot edit posts or make replies. I HAVE 2 INPUT FILES WITH SAME LAYOUT... COBOL Programming 6
No new posts DSNTEP2 - setting exception DB2 2
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
No new posts SMF Record layout DFSORT/ICETOOL 10
No new posts File comparsion - Records are in diff... COBOL Programming 11
Search our Forums:

Back to Top