Precompilation problem

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Locked
trushant
Member
Posts: 17
Joined: Thu Sep 12, 2013 5:21 pm

Precompilation problem

Post by trushant » Mon Oct 14, 2013 11:37 am

I am using below jcl to precompile cobol-DB2 code

Code: Select all

//STP00#01 EXEC PGM=DSNHPC,PARM=('SOURCE','HOST(IBMCOB)',  
// 'APOST,APOSTSQL,')                                      
//STEPLIB  DD DSN=DPD2.BTLLOAD.PUSER,DISP=SHR              
//         DD DSN=DB2T.DSNEXIT,DISP=SHR                    
//DBRMLIB DD DSN=LFML.EXTW131.PAD.DBRM(MEM1),DISP=SHR      
//*                                                        
//SYSIN     DD DSN=LFML.EXTW131.PAD.TEST(COB222),DISP=SHR  
//SYSCIN    DD DSN=&&TEMP,                                  
//             DISP=(NEW,PASS),                            
//             SPACE=(TRK,(30,30),RLSE),                    
//             DCB=(RECFM=FB,LRECL=80)                      
//*                                                        
//SYSLIB    DD DISP=SHR,DSN=SYSU.SORTLIST.USER.COPYLIB      
//          DD DISP=SHR,DSN=SYSU.SORTLIST.MAST.COPYLIB      
//          DD DISP=SHR,DSN=PASA.UUIMST.PCOPY              
//          DD DISP=SHR,DSN=USRL.URPROD.PCOPY                    
//          DD DISP=SHR,DSN=SYSP.M01A.ADS901.OS390.VAKB.COBOL    
//*JE1008   DD DISP=SHR,DSN=SYSP.M01A.MEMO.API220.SOURCE          
//          DD DISP=SHR,DSN=SYSP.M06B.SSANAME3.SOURCE            
//*                                                              
//SYSPRINT DD SYSOUT=*                                            
//SYSTERM DD SYSOUT=*                                            
//SYSUDUMP DD SYSOUT=*                                            
//SYSUT1    DD SPACE=(23,(10,10),,,ROUND),UNIT=SYSDA              
//SYSUT2    DD SPACE=(23,(10,10),,,ROUND),UNIT=SYSDA 

even though i have provided all the necessary libraries i am getting below error

Code: Select all

DSNH312I E UNDEFINED OR UNUSABLE HOST VARIABLE "EFTN-Y17PHIST" 
DSNH312I E UNDEFINED OR UNUSABLE HOST VARIABLE "PAYN-Y17PHIST" 
DSNH312I E UNDEFINED OR UNUSABLE HOST VARIABLE "STAT-Y17PHIST" 
DSNH312I E UNDEFINED OR UNUSABLE HOST VARIABLE "SACN-Y17PHIST" 
DSNH312I E UNDEFINED OR UNUSABLE HOST VARIABLE "PDAT-Y17PHIST" 
DSNH312I E UNDEFINED OR UNUSABLE HOST VARIABLE "RAMT-Y17PHIST"
In SYSPRINT i can see that the above host varibles are included in my programe but its still showing above error

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Oct 14, 2013 8:49 pm

You have provided nothing of use - your compilation JCL is site-specific and is presumably correct and, anyway, has nothing to do with your error which is due to incorrect coding and you have shown none of the code.

On another forum you have been asked, and provided, further information none of which you have posted here. Don't you think that that information may be required by those who help here - who are, in the main, contributors to the other board?

As you are still being helped on the other board you should not be posting here - it is regarded as bad manners.
Regards
Nic

Locked

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others