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

how to use skeleton in calling and called program


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

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Mon Jul 26, 2010 6:18 pm
Reply with quote

I have requirement to use skeleton in my calling program and called program as well.. it is working fine first time but second time member i am getting as blank.. here is the flow

Program A
"ISPEXEC LIBDEF ISPSLIB DATASET ID('ADCXSNS.JCL.AUTO.SKLTON.VAR3')"
"ISPEXEC LIBDEF ISPFILE DATASET ID('ADCXSNS.TEST.JCL')"

"ISPEXEC FTOPEN"
"ISPEXEC FTINCL "SKELETON""
"ISPEXEC FTINCL "SITEID""
"ISPEXEC FTCLOSE NAME("TJCL")"

call B

"ISPEXEC LIBDEF ISPSLIB"
EXIT 0


program B

"ISPEXEC FTOPEN"
"ISPEXEC FTINCL GDGBLD"
"ISPEXEC FTINCL EXECGDG"
"ISPEXEC FTCLOSE NAME(EXECGDG)"
ADDRESS TSO
"SUBMIT 'ADCXSNS.TEST.JCL(EXECGDG)'"

return

Maybe open and close has some error.. but could not able to resolve
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 26, 2010 6:27 pm
Reply with quote

I do not use LIBDEF for ISPFILE, just the standard ALLOCATE and FREE commands.

Have you tried that
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Mon Jul 26, 2010 7:03 pm
Reply with quote

Thanks, it is working fine using ALOC. Can we use different ISPFILE pds for different program.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 26, 2010 7:03 pm
Reply with quote

What members do 'ADCXSNS.TEST.JCL' contain?
I only do see you execute a submit for the second created member.
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 Using API Gateway from CICS program CICS 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top