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
 

 

Prob layout with DSNTEP2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Prob layout with DSNTEP2
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Fri Sep 14, 2007 4:24 pm    Post subject: Reply to: Prob layout with DSNTEP2
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: 2360
Location: Israel

PostPosted: Fri Sep 14, 2007 7:24 pm    Post subject:
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: 456
Location: Belgium

PostPosted: Fri Sep 14, 2007 10:01 pm    Post subject:
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    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 comparsion - Records are in diff... Suganya87 COBOL Programming 11 Tue May 10, 2016 1:05 pm
No new posts DB2 plan for DSNTEP2 / DSNTEP4 Mainak_Dalal DB2 3 Thu Jan 21, 2016 1:08 am
No new posts JCL Utility in accordance to the copy... meetsupriyo JCL & VSAM 3 Tue Dec 08, 2015 8:46 pm
No new posts Selecting a redefined record layout i... mallik4u Compuware & Other Tools 1 Wed Oct 08, 2014 8:14 am
No new posts partially intializing values from a l... mohitsaini COBOL Programming 2 Thu Sep 11, 2014 9:23 am


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