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
 

 

Get the report from spool to be printed in the dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
beruoist

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Thu Feb 12, 2009 2:43 pm    Post subject: Get the report from spool to be printed in the dataset
Reply with quote

I have a report which is getting printed in the spool.Now i need to get that report from spool to be printed in the dataset..i mean it should be printed in the dataset instead of the spool.And should be exactly the same.

Now below is the example of how the header is printed...

Code:


WRITE (1) NOTITLE                                                     
  'PGMNM' 48T #REPORT-TITLE              92T 'TIME ' #TIME /*<Y2000
    107T 'DATE '                         
          *PAGE-NUMBER(1) (EM=ZZ9)                           /* Y2000>
   /      43T 'SOME XYZ REPORT'               



What i want is to write the header exactly the same...I know i can do this by defining the workfile varibale and then moving the appropriate value in the redifinition var.

So my question is 'IS THERE ANY OTHER WAY TO ACHIEVE THIS ? '

Regards
beruoist
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Feb 12, 2009 2:56 pm    Post subject:
Reply with quote

There is no way of doing it programmatically, as the WRITE statement have its own unique characteristics (like the Tnotation, the slash mark, and EM).

However, you can add a step in your job to IEBGENER the CMPRT01 to a disk dataset.

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

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Thu Feb 12, 2009 3:11 pm    Post subject: Reply to: WRITE WORKFILE QUERY
Reply with quote

Ofer,

Please provide the JCL code to apply this.

I will be needing this to add in the NATRJE accordingly.to create the IEBGENER step in the end.

Thanks
Beruoist
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Feb 12, 2009 3:13 pm    Post subject:
Reply with quote

Sorry, using IEBGENER is basic, and it is well documented in the manual.

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

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Thu Feb 12, 2009 3:15 pm    Post subject:
Reply with quote

ok,thanks
Back to top
View user's profile Send private message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Mon Mar 30, 2009 6:56 pm    Post subject: Reply to: Get the report from spool to be printed in the dat
Reply with quote

You may also try for creating a dsn in the JCL itself which will write the report onto the DSN(DSN=MYDSN) instead of spool(sysout=*) in the cmprt01 or the like.


//CMPRT01 DD DSN=NIST.ARYA.MYPRG.REPORT1,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,SPACE=(TRK,(50,50)),
// DCB=(RECFM=VB,LRECL=4092,BLKSIZE=4096)
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Report cost in CA-dispatch Nileshkul CA Products 3 Wed Jun 07, 2017 10:32 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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