Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calling to cobol module but failing with return 35

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Calling to cobol module but failing with return 35
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    Post subject:
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    Post subject: Reply to: Calling to cobol module but failing with return 35
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us