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

Calling to cobol module but failing with return 35


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Fri Dec 09, 2011 1:55 am
Reply with quote

What is the mistake in my code
Code:
/*REXX */                                               
ADDRESS TSO                                             
"ALLOC DD(INP) DA('XXX.TEMP.NAG') SHR REUSE"           
"ALLOC DD(OUT) DA('XXX.TEMP.NAG1') SHR REUSE"           
"CALL 'XXX.LOD(XX13T15)' '&INP &OUT'"   
"FREE F(INP)"                                           
"FREE F(OUT)"         


Tried below as well but failed with same error

Code:
/*REXX */                                               
ADDRESS TSO                                             
"ALLOC FI(INP) DA('XXX.TEMP.NAG') SHR REUSE"           
"ALLOC FI(OUT) DA('XXX.TEMP.NAG1') SHR REUSE"           
"CALL 'XXX.LOD(XX13T15)' '&INP &OUT'"   
"FREE F(INP)"                                           
"FREE F(OUT)"
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Dec 09, 2011 2:12 am
Reply with quote

What are the dd names for the files within the cobol module?
(in select statement)

and how is your linkage working with the attempt at file name passing?
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Fri Dec 09, 2011 2:24 am
Reply with quote

thx alot problem resolved and issue is due to DDNames
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Dec 09, 2011 2:55 am
Reply with quote

glad to help, thx for feedback.

it's the little things in life that just eat you butt up.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top