MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why DSNHPC can not expand?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Jun 22, 2006 2:34 am    Post subject: Why DSNHPC can not expand? Reply with quote

Hi,

Quote:
//PC EXEC PGM=DSNHPC,REGION=4096K,
// PARM=('HOST(COB2),SOURCE,APOST','')
//DBRMLIB DD DISP=SHR,DSN=STOZ.MNS.DBR(&MEM)
//STEPLIB DD DISP=SHR,DSN=SASY.MDB.SDSNAUTH.DBAG
// DD DISP=SHR,DSN=SYS5.DB2.V710D2.SDSNLOAD
//SYSLIB DD DISP=SHR,DSN=xxx <--- the lib include the copymember


DSNHSMUD LINE 72 COL 23 UNDEFINED OR UNUSABLE HOST VARIABLExxxx

Did I lost some option for precompile?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Jun 22, 2006 2:48 am    Post subject: Reply with quote

issac1029,

Can you please check whether you are including the correct copylib member in the copy lib pds a sample code:
Code:

//SYSLIB DD DISP=STOZ.MNS.COPYLIB(ABCD),DISP=SHR

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Jun 22, 2006 3:18 am    Post subject: Reply with quote

shekar123,

I have find the error,that because my EXEC not begin with 'A' area,I wander Why it did not give me a error about that?butonly told told failed to declare?Anything wrong?

my job FOLLOWed :

Quote:

SDSF EDIT RASCECMP (JOB12256) JCLEDIT Recovery suspended
Command ===> Scroll ===> CSR
000011 //********************************************************************
000012 //* PRECOMPILE THE IBM COBOL PROGRAM *
000013 //********************************************************************
000014 //PC EXEC PGM=DSNHPC,REGION=4096K,
000015 // PARM=('HOST(COB2),SOURCE,APOST','')
000016 //DBRMLIB DD DISP=SHR,DSN=STOZ.MNS.DBR(&MEM)
000017 //STEPLIB DD DISP=SHR,DSN=SASY.MDB.SDSNAUTH.DBAG
000018 // DD DISP=SHR,DSN=SYS5.DB2.V710D2.SDSNLOAD
000019 //SYSLIB DD DISP=SHR,DSN=STDC.MCM.OZNT.CMNSTAGE.#000950.CPY
000020 // DD DISP=SHR,DSN=SYS1.MODGEN
000021 // DD DISP=SHR,DSN=SYS1.CICSTS.SDFHCOB
000022 // DD DISP=SHR,DSN=SYS1.C104.SCEESAMP
000023 //*FFFFFFFFFFF
000024 //SYSCIN DD DSN=&&DSNHOUT,DISP=(MOD,PASS),UNIT=SYSDA,
000025 // SPACE=(TRK,(5,5))
000026 //SYSIN DD DSN=RASCE.MSI.SRC(TEST11),DISP=SHR
000027 //SYSPRINT DD SYSOUT=*
000028 //SYSTERM DD SYSOUT=*
000029 //SYSUDUMP DD SYSOUT=*
000030 //SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE)
000031 //SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE)
000032 //********************************************************************
Back to top
View user's profile Send private message Send e-mail MSN Messenger
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Jun 22, 2006 3:29 am    Post subject: Reply with quote

Quote:

Display Filter View Print Options Help
-------------------------------------------------------------------------------
SDSF OUTPUT DISPLAY RASCECMP JOB12194 DSID 102 LINE 143 COLUMNS 02- 81
COMMAND INPUT ===> SCROLL ===> CSR
120 .
121 STOP RUN.
122 0000-EXIT. EXIT.
123
124 ************************************************************
DB2 SQL PRECOMPILER MESSAGES
DSNH504I E DSNHSMUD LINE 67 COL 22 CURSOR "GET-ACC-LINK" WAS NOT DECLARED
DSNH312I E DSNHSMUD LINE 73 COL 23 UNDEFINED OR UNUSABLE HOST VARIABLE "RFA
DSNH521I W DSNHSM3 LINE 72 COL 16 THE FETCH FOR CURSOR "GET-ACC-LINK" IS A
NT
DB2 SQL PRECOMPILER STATISTICS
SOURCE STATISTICS
SOURCE LINES READ: 124
NUMBER OF SYMBOLS: 16
SYMBOL TABLE BYTES EXCLUDING ATTRIBUTES: 2000
THERE WERE 3 MESSAGES FOR THIS PROGRAM.
THERE WERE 0 MESSAGES SUPPRESSED BY THE FLAG OPTION.
165256 BYTES OF STORAGE WERE USED BY THE PRECOMPILER.
RETURN CODE IS 8
******************************** BOTTOM OF DATA ********************************


It do not give the message that I violate the rule.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jun 22, 2006 7:21 am    Post subject: Reply with quote

issac1029,

The pre-compiler only performs syntax checking of the SQL and replaces with approriate call statements. The precompiler does not validate the names of tables and columns that are used in SQL statements.

You need to code your SQL statements starts from COL 12.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group