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

Get the report from spool to be printed in the dataset


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Thu Feb 12, 2009 2:56 pm
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
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: 2358
Location: Israel

PostPosted: Thu Feb 12, 2009 3:13 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top