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 

unable to pass date to a cobol db2 program

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


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

PostPosted: Wed Nov 29, 2006 9:45 am    Post subject: unable to pass date to a cobol db2 program Reply with quote

Hai All,

I am executing a COBOL DB2 program from a job system Project Specific and i am passing date in Julian format to the program and the date is obtained from the system and passed to the program in the LINKAGE SECTION.I am checking the value in the COBOL Program but is turns out to be blanks since i get error in passing date.Can anyone help me in this problem and the date is properly substitued for other parts.

I have already looked into the error description but not able to figure out.

My code for SYSTSIN:
Code:

//SYSTSIN DD *                                                 
 DSN SYSTEM(DSNY)                                                       
 RUN PROGRAM(ABCD) PLAN(ABCD)                                   
 PARM('&DATE')                                                         
 END                                                                   
/*   

ERROR MESSAGE
Code:

READY                                                 
 DSN SYSTEM(DSNY)                                     
DSN                                                   
 RUN PROGRAM(ABCD) PLAN(ABCD)                 
IKJ56641I DSN      ENDED DUE TO ERROR+                 
IKJ56641I SYSTEM ABEND CODE 0C7   REASON CODE 00000007



Finally i tried using code and i am receiving in the Program as &DATE but still not able to get the julian date from the JOB system.
Code:

//SYSTSIN DD *                                                 
 DSN SYSTEM(DSNY)                                                       
 RUN PROGRAM(ABCD) PLAN(ABCD)  PARM('&DATE') AS WELL AS PARM('&DATE/')
 END                                                                   
/*   

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Nov 29, 2006 10:02 am    Post subject: Reply with quote

shekhar123,

You canNOT pass symbolic parameters to a cobol-db2 program. Read this topic and you will understand.

http://www.mvsforums.com/helpboards/viewtopic.php?t=6325&highlight=symbolic

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Nov 29, 2006 10:03 am    Post subject: Reply with quote

You can't pass symbolic parameters within instream data. You can, however, generate the instream data with the date, and use it as a dataset/member.

O.
________
Toyota RZ engine specifications


Last edited by ofer71 on Sat Feb 05, 2011 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Wed Nov 29, 2006 1:09 pm    Post subject: Reply with quote

Shekar,
I see a missing comma after PLAN(ABCD) in your SYSTSIN card.
Code:
//SYSTSIN DD *                                                 
 DSN SYSTEM(DSNY)                                                       
 RUN PROGRAM(ABCD) PLAN(ABCD)  -                               
 PARM('&DATE')                                                         
 END                                                                   
/*
Back to top
View user's profile Send private message
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