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

How to usign null value to report


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
atik

New User


Joined: 29 Jul 2005
Posts: 20

PostPosted: Mon Sep 12, 2005 12:53 pm
Reply with quote

Hi
I have a situation where I am using a job as a model for my new job. The job takes some 8 input files and creates 8 reports. In my new job I want only 3 reports to be generated using the same proc. So I assigned NULLFILE to the files which are not necessary. But how to assing null value to the reports? The symbolic parameter used are used in the sysout in proc like

In job
//P100CRD='NULLFILE',

In Proc
//P100RPT DD SYSOUT=&P100RPT

If I give like this it gives as
CAY6042E OPERAND "NULLFILE" IS TOO LONG FOR "CLASS" PARAMETER OF
"SYSOUT"
Please tell me how to assign Null value in this situation.

Atik
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Sep 12, 2005 3:18 pm
Reply with quote

You can override the report in your jcl where you call the proc or use a variable in your proc with default.
Here you will find two samples:
1)Override DD:
Code:
//TRYPROC  PROC VARSYS='SYSOUT=*'
//STEP010I EXEC PGM=IEFBR14       
//DD1      DD &VARSYS             
//         PEND                   
//CALLPROC EXEC TRYPROC           
//STEP010I.DD1 DD SYSOUT=B       


2) Using a variable:
Code:
//TRYPROC  PROC VARSYS='SYSOUT=*'
//STEP010I EXEC PGM=IEFBR14     
//DD1      DD &VARSYS           
//         PEND                 
//CALLPROC EXEC TRYPROC         
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Sep 12, 2005 3:31 pm
Reply with quote

Wouldn't you want to specify:

//STEPxxxx EXEC procname
//*
//PROCSTEP.P100RPT DD DSN=NULLFILE,DISP=SHR
or
//PROCSTEP.P100RPT DD DUMMY
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Sep 14, 2005 5:49 am
Reply with quote

You might want to try:

//P100RPT DD &RPTYPE

Then exec the proc:

//S1 EXEC PROC1,RPTYPE=DUMMY
or
//S1 EXEC PROC1,RPTYPE='SYSOUT=A'

You can do something similar w/the I/P DS.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
Search our Forums:

Back to Top