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

Precompile Problem


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ibmmainframe1

New User


Joined: 26 Jul 2005
Posts: 64
Location: India

PostPosted: Thu Nov 05, 2009 9:50 pm
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
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Thu Nov 05, 2009 9:54 pm
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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Nov 05, 2009 9:58 pm
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: 64
Location: India

PostPosted: Thu Nov 05, 2009 10:05 pm
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Nov 05, 2009 10:21 pm
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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Nov 05, 2009 10:55 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top