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

How to change the job name displayed in the spool.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hnharish

New User


Joined: 30 Aug 2005
Posts: 23

PostPosted: Tue Mar 23, 2010 11:38 am
Reply with quote

Hi All,
I have requirement in which i will be recieving a print file from our upstream and we are processing the print file and sending it to JES spool for printing.Currently i am using a fixed jobname to process all the print files.,but now the printer operator is requesting us to display the print job name onto the spool.The print job name will be present in the input print file that we can extract through cobol program.The problem here is how to change the jobname or display the print job name in the spool.

We have coded the below step to send the processed print file to the JES spool.

//PS008 EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=&HLQ..&JOBNAME..AFP.PRINT.FILE(&GDG1)
//SORTOUT DD SYSOUT=(,),OUTPUT=(*.U52),RECFM=VBA
//SYSOUT DD SYSOUT=(,)
//SYSPRINT DD SYSOUT=(,)
//SYSIN DD *
SORT FIELDS=COPY
/*
//*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 23, 2010 7:27 pm
Reply with quote

Hello,

Each time this is run, you need to run it under the jobname that is needed in the spool. You cannot changed the name after the job has been run.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 5
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts Search string in job at regular Spool... CLIST & REXX 0
Search our Forums:

Back to Top