Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Precompile Problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware Tools
Author Message
ibmmainframe1

New User


Joined: 26 Jul 2005
Posts: 58
Location: India

PostPosted: Thu Nov 05, 2009 9:50 pm    Post subject: Precompile Problem
Reply with quote

I am using this JCL to precompile somehow its not recognising the host variables. Job is failing with RC 8. I created the JCL using Xpediter.
I am running only this job alone not the compile one which I should do next.

If I compile in changeman I am not getting the error. Job is successful.

Code:
000009 //PC     EXEC  PGM=DSNHPC,REGION=4M,                             
000010 //       PARM=('HOST(IBMCOB),XREF,SOURCE,QUOTE,APOST,APOSTSQL', 
000011 //            'VERSION(CSWC007558-PLANNED)')                     
000012 //STEPLIB  DD  DISP=SHR,DSN=SYSDB2.DSN3.SSPGM                   
000013 //DBRMLIB  DD  DISP=SHR,DSN=CSWCNSA.TEST.DBR(CS001478)           
000014 //SYSCIN   DD  DISP=(MOD,PASS),DCB=(RECFM=FB,BLKSIZE=4000),     


error
Code:
1DB2 SQL PRECOMPILER         MESSAGES                                         
0DSNH312I E     DSNHSMUD LINE 3305 COL 26  UNDEFINED OR UNUSABLE HOST VARIABLE
 DSNH312I E     DSNHSMUD LINE 3830 COL 46  UNDEFINED OR UNUSABLE HOST VARIABLE
 DSNH312I E     DSNHSMUD LINE 3831 COL 46  UNDEFINED OR UNUSABLE HOST VARIABLE
 DSNH312I E     DSNHSMUD LINE 3832 COL 46  UNDEFINED OR UNUSABLE HOST VARIABLE
 DSNH312I E     DSNHSMUD LINE 3833 COL 46  UNDEFINED OR UNUSABLE HOST VARIABLE
1DB2 SQL PRECOMPILER         STATISTICS                                       
Back to top
View user's profile Send private message
References
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 5414
Location: italy

PostPosted: Thu Nov 05, 2009 9:54 pm    Post subject: Reply to: Precompile Problem
Reply with quote

that should teach You the lesson...
never reinvent the wheel use the procedures provided by Your organization.

if You have/demonstrate the business need to run the job as You described, Your support will be glad to help You
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 3385
Location: germany

PostPosted: Thu Nov 05, 2009 9:58 pm    Post subject:
Reply with quote

more than likely, the CHANGEMAN procedure (developed by your site)
insures that COBOL COPY directives are invoked prior to the db2 pre-compile.

had you bothered to look at the lines referenced by the error messages,
you probably would have found that the host variables were not in the source used by the db2 pre-compiler.
Back to top
View user's profile Send private message
ibmmainframe1

New User


Joined: 26 Jul 2005
Posts: 58
Location: India

PostPosted: Thu Nov 05, 2009 10:05 pm    Post subject:
Reply with quote

I totally agree with both of you. In my SYSLIB I am including the copybook PDS then why its not referring it.

Since I cannot compile with xped option in changeman I am trying to do it using my jcl.


Thanks.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 13611
Location: 221 B Baker St

PostPosted: Thu Nov 05, 2009 10:21 pm    Post subject:
Reply with quote

Hello,

If there is a need to have an xped/changeman compile process, the support group needs to create one so that the developers have a common process to use. . .

It is best not to "roll your own" compile jcl.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 3385
Location: germany

PostPosted: Thu Nov 05, 2009 10:55 pm    Post subject:
Reply with quote

experience has shown when there is high compilation activity with xped option,
sometimes the compile will blow because there are too many accesses on the ddio file.

since that is unacceptable, users requested/forced

xpeditor to have a copy option
that will take the endevor archived compile output listing
and load it to the xpeditor ddio file.

maybe your site in beyond the stone-age
and xpeditor has such an option at your site.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware Tools All times are GMT + 6 Hours
Page 1 of 1