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

Why start a new session improved efficiency


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Mar 01, 2013 7:23 am
Reply with quote

PeterHolland wrote:
You should have asked me before icon_rolleyes.gif


I go through all my topic and , it seems no icon_biggrin.gif
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Mar 01, 2013 7:25 am
Reply with quote

PeterHolland wrote:
A wild gues, maybe because of this
Code:
ADDRESS TSO "SUBCOM DSNREXX"
, instead of this
Code:
"SUBCOM DSNREXX"


Share my trace log for subcom

1st time run
Code:

29 *-*  ADDRESS TSO "SUBCOM DSNREXX"               
   >>>    "SUBCOM DSNREXX"                         
   +++ RC(1) +++                                   
30 *-*  IF RC                                       
   *-*   THEN                                       
31 *-*   S_RC = RXSUBCOMM('ADD','DSNREXX','DSNREXX')
32 *-*  ADDRESS DSNREXX "CONNECT SUN"               
   >>>    "CONNECT SUN"                             
33 *-*  TRACE OFF                                   


2nd time run
Code:

29 *-*  ADDRESS TSO "SUBCOM DSNREXX"
   >>>    "SUBCOM DSNREXX"           
30 *-*  IF RC                       
32 *-*  ADDRESS DSNREXX "CONNECT SUN"
   >>>    "CONNECT SUN"             
33 *-*  TRACE OFF                   
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Fri Mar 01, 2013 7:29 am
Reply with quote

PeterHolland wrote:
A wild gues, maybe because of this
Code:
ADDRESS TSO "SUBCOM DSNREXX"
, instead of this
Code:
"SUBCOM DSNREXX"


Then I change to "SUBCOM DSNREXX"

1st time run
Code:

29 *-*  "SUBCOM DSNREXX"                           
   >>>    "SUBCOM DSNREXX"                         
   +++ RC(1) +++                                   
30 *-*  IF RC                                       
   *-*   THEN                                       
31 *-*   S_RC = RXSUBCOMM('ADD','DSNREXX','DSNREXX')
32 *-*  ADDRESS DSNREXX "CONNECT SUN"               
   >>>    "CONNECT SUN"                             
33 *-*  TRACE OFF                                   


2nd time run
Code:

29 *-*  "SUBCOM DSNREXX"             
   >>>    "SUBCOM DSNREXX"           
30 *-*  IF RC                       
32 *-*  ADDRESS DSNREXX "CONNECT SUN"
   >>>    "CONNECT SUN"             
33 *-*  TRACE OFF                   
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Mar 01, 2013 4:19 pm
Reply with quote

SUBCOM returns zero to indicate that the named environment (DSNREXX, in this case) exists, and one to indicate that it doesn't. You are apparently not deleting the DSNREXX environment when you are finished.

Note that SUBCOM only detects the existence of an environment (more strictly, the existence of a row with that name in the command environment table), it does not validate it. I have difficulty believing that DSNREXX is doing significantly more validation when addressed via a preexisting row, but perhaps that is what is causing the delay.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts I don't really get the, "Start a... General Talk & Fun Stuff 3
No new posts EIBCALEN 0 even if we pass LEN and FR... CICS 4
No new posts IBM Personal Communications session i... All Other Mainframe Topics 4
Search our Forums:

Back to Top