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

Get the GDG name in the report.


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhagyac

New User


Joined: 17 Apr 2008
Posts: 44
Location: bangalore

PostPosted: Tue Jul 01, 2008 4:11 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Jul 01, 2008 8:52 pm
Reply with quote

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
View user's profile Send private message
bhagyac

New User


Joined: 17 Apr 2008
Posts: 44
Location: bangalore

PostPosted: Wed Jul 02, 2008 9:29 am
Reply with quote

hi UmeySan,

Thank you. let me try to get that.

Is there any other possible method to get this?
Using REXX and PLI.. icon_sad.gif icon_confused.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 02, 2008 12:18 pm
Reply with quote

You can with REXX
Code:

X   = LISTDSI("DUMPREF  FILE")
DUMPDSN = SYSDSNAME
Back to top
View user's profile Send private message
bhagyac

New User


Joined: 17 Apr 2008
Posts: 44
Location: bangalore

PostPosted: Wed Jul 02, 2008 9:04 pm
Reply with quote

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
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Jul 02, 2008 10:08 pm
Reply with quote

You could use the following to get the generation 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
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
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
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top