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

How to get details about TCB


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
girishms

New User


Joined: 06 Jun 2008
Posts: 21
Location: chennai

PostPosted: Thu Jun 12, 2008 2:42 pm
Reply with quote

HI all,

i would like know how to get the details of TCB of a task in assembler ..

Thanks,
Girish.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 12, 2008 3:37 pm
Reply with quote

what details do You need ??
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jun 12, 2008 4:52 pm
Reply with quote

Hi !

Include the desect for TCB ...here are the details !!!
Code:

SPACE                         
IKJTCB DSECT=YES,LIST=YES     
SPACE                         

BAL   R14,GETCVT    Adress the MVS CVT.
BAL   R14,GETTCB    Adress the MVS TCB.


GETCVT   DS    0H              Routine entry point.
         ST    R14,0(,R8)        Store return address to stack.
         LA    R8,4(,R8)          Increment stack pointer.
         L     R10,CVTPTR              Load A(MVS CVT) from PSA after IPL.
         USING CVT,R10                  Establish CVT addressability.
         MVC   WDSSYS,CVTSNAME     Save current MVS system name.
GETCVT99 DS    0H                  Routine exit.
         SH    R8,=H'4'                 Decrement stack pointer.
         L     R14,0(,R8)               Restore return address.
         BR    R14                        Return to caller.


GETTCB   DS    0H                  Routine entry point.
         ST    R14,0(,R8)            Store return address to stack.
         LA    R8,4(,R8)              Increment stack pointer.
         L     R10,CVTTCBP         Load A(current TCB/ASCB pointers).
         DROP  R10                       Drop MVS CVT.
         L     R9,4(,R10)                   Load A(Current TCB).
         SH    R9,=AL2(TCBPXLEN)      Backup to TCB prefix area.
         USING TCBFIX,R9                  Establish TCB addressability.
GETTCB99 DS    0H                  Routine exit.
         SH    R8,=H'4'                 Decrement stack pointer.
         L     R14,0(,R8)               Restore return address.
         BR    R14                        Return to caller.
         DROP  R9                       Drop MVS TCB.


Regards, UmeySan
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts JCL SORT to compress the student's de... DFSORT/ICETOOL 7
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
No new posts report on job scheduling details in Zeke IBM Tools 2
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts How to compare Packed date in details... SYNCSORT 5
Search our Forums:

Back to Top