bablack Beginner
Joined: 04 Dec 2002 Posts: 71 Topics: 0 Location: Little Falls, NJ
|
Posted: Wed Aug 03, 2005 1:59 pm Post subject: |
|
|
In assembler, it is very easy to get the jobname, but I have no idea how to get it in another language.
In assem, it is in the TIOT, which is pointed to by your TCB, which you can get from the PSA (low storage). Here is a code snip without macros, but I included the field names in case you want to include the proper IBM DSECTs.
L Rx,X'021C' L Rx,PASTOLD GET TCB ADDRESS
L Rx,12(Rx) L Rx,TCBTIO GET TIOT ADDRESS
MVC JOBNAME,0(Rx) MVC JOBNAME,TIOTNJOB GET JOBNAME _________________ Bruce A. Black
Senior Software Developer
Innovation Data Processing |
|