TeX/jobname

Synopsis
\jobname

Description
TeX associates a name with each job it processes. If the TeX source file 'foo.tex' is processed by TeX, then \jobname is set to 'foo'. If TeX is run interactively, then \jobname is set to 'texput'.