|
|
| Author |
Message |
bhagyac
New User
Joined: 17 Apr 2008 Posts: 6 Location: bangalore
|
|
|
|
Hi all,
Please help me with this query.
This is my JCL
| Code: |
STEP005 EXEC PGM=plipgm1
STEPLIB DD DSN=AAA.BBB.CCC.LOAD,DISP=SHR
INFILE DD DSN=AAA.BBB.CCC.INPUT(0),DISP=SHR
REPORT DD DSN=AAA.BBB.CCC.REPORT(+1),
DISP=(,CATLG,DELETE),
UNIT=(SYSDA,5),
SPACE=(CYL,(10,10)),
LRECL=133,BLKSIZE=0,RECFM=FB
SYSPRINT DD SYSOUT=*
|
In the above JCL AAA.BBB.CCC.INPUT(0), is my input file(GDG)."plipgm" is the PL/I program. It takes the last input file and processes. I'm generating a report AAA.BBB.CCC.REPORT(+1).
In that report I want to print for which input GDG the report is generated.
Thank you. |
|
| Back to top |
|
 |
References
|
Posted: Tue Jul 01, 2008 4:11 pm Post subject: Re: Get the GDG name in the report. |
 |
|
|
 |
UmeySan
Senior Member
Joined: 22 Aug 2006 Posts: 624 Location: Germany
|
|
|
|
Hi bhagyac !
You could call a Assembler-Programm. This one could read the JobFileControlBlocks via RDJFCB / IHADCB to extract the komplete DSN, wich is allocated by the system.
Mostly companies have build some UtilityProgramms like this.
Ask your pers for such a programm. |
|
| Back to top |
|
 |
bhagyac
New User
Joined: 17 Apr 2008 Posts: 6 Location: bangalore
|
|
|
|
hi UmeySan,
Thank you. let me try to get that.
Is there any other possible method to get this?
Using REXX and PLI..  |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3207 Location: Brussels once more ...
|
|
|
|
You can with REXX
| Code: |
X = LISTDSI("DUMPREF FILE")
DUMPDSN = SYSDSNAME
|
|
|
| Back to top |
|
 |
bhagyac
New User
Joined: 17 Apr 2008 Posts: 6 Location: bangalore
|
|
|
|
Hi expat,
Thank you for your help.
But i couldn't understand how would i use that in my above JCL.
Can you please help?
Thank you. |
|
| Back to top |
|
 |
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 188 Location: Deerfield IL
|
|
|
|
You could use the following to get the genetation number into a file, then process that file how you need to in your report:
| Code: |
//STEP10 EXEC PGM=IDCAMS
//DD1 DD DSN=AAA.BBB.CCC.INPUT(0),DISP=SHR
//SYSPRINT DD DSN=HLQ...,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,SPACE=(TRK,(1,1),RLSE),
// DCB=(RECFM=FB,...)
//SYSIN DD *
PRINT INFILE(DD1) COUNT(0) CHAR
/* |
|
|
| Back to top |
|
 |
|
|