dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forums,
Your question will be correctly answered by your system support, scheduling, or operations people. The answers to your question are site-specific and those people will know what your options are. |
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Dick suggested the best option, still would like to provide the below JCL. JCL will initiate a printer with DEST=XXXX (see the last parameter of DD name OUTFILE ). You should be very careful about DEST parameter, a wrong parameter can initiate a production or another location printer, which may cause problems & yeah this JCL will work only if you use are using AFP for printing reports.
You need to know FORMDEF, PAGEDEF & DESTination of printer from support or operation people.
Code: |
//OUTPUT1 OUTPUT FORMDEF=XXAFPF,PAGEDEF=XXAFPP,
// USERLIB=('HLQ.ANUJ.AFP')
//*
//STEP01 EXEC PGM=XXAFP
//STEPLIB DD DSN=HLQ.XXXX.PROD.PGMLIB,DISP=SHR
// DD DSN=XXXX.XXXX.LINKLIB,DISP=SHR
//*
//INFILE DD DSN=HLQ.XXXXX.PRINT.FILES.DYNSUM1,
// DISP=SHR
//*
//OUTFILE DD SYSOUT=A,OUTPUT=*.OUTPUT1,
// COPIES=1,DCB=(OPTCD=J,RECFM=VA),DEST=XXXX
//*
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=R |
If you would like to try Hard Copy print, then in ISPF go to START 3.4/Utilities/6, there provide the
data-set name to be printed
PRINT MODE: Batch,
SYSOUT class:site specific,
writer-name:Printer-Name(same as DEST in above JCL)
press enter.
Please be careful about the destination parameter in both the methods. |
|