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

Internal reader job submission


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

New User


Joined: 08 Aug 2007
Posts: 9
Location: Chennai

PostPosted: Thu Aug 09, 2007 3:10 pm
Reply with quote

Hi All,

I have a requirement to submit my next jcl by using internal reader technique, usually when I submit a job with jobname eg. "ABCDEFGH", my RACF ID gets replaced in the place of first 7 characters with the last character "H" placed after it.

Here when I submit a job using internal reader technique, my RACFID is not getting placed at the first 7 positions of the job name, instead the same name as given in next JCL eg. "XYZABCDH" is used.

This makes me to move to the spool of "XYZABCD" rather than in the spool under my ID.

Is there any facility to have the jobs spooled under the ID who ever submits the job other than the jobname given in the JCL??


Please advise.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Aug 09, 2007 3:18 pm
Reply with quote

Could you try all jobs and use the OWNER filter?
Back to top
View user's profile Send private message
vtham

New User


Joined: 08 Aug 2007
Posts: 9
Location: Chennai

PostPosted: Thu Aug 09, 2007 3:35 pm
Reply with quote

OWNER RACFID => list the jobs under that RACF, but when the i have a stream of jobs with different job names, I would be pushed to get into the spool of all the different jobs, I would like to have the JOBS under my spool.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 09, 2007 4:42 pm
Reply with quote

How is the JCL for the submitted job generated ?
Back to top
View user's profile Send private message
vtham

New User


Joined: 08 Aug 2007
Posts: 9
Location: Chennai

PostPosted: Thu Aug 09, 2007 4:54 pm
Reply with quote

The JCL's are pre-created as different members in the PDS. they are not generated in run time.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Aug 09, 2007 5:06 pm
Reply with quote

You can try another method: instead of submitting the jobs through INTRDR, you can write a tiny REXX (probably an Edit-Macro) to replace the jobname temporarily, then SUBMIT the member.

O.
Back to top
View user's profile Send private message
vtham

New User


Joined: 08 Aug 2007
Posts: 9
Location: Chennai

PostPosted: Thu Aug 09, 2007 5:22 pm
Reply with quote

yes, REXX could be used...i already have one of that type, but I requirement is to use only JCL icon_smile.gif
could you please advise me a solution with JCL??
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Aug 09, 2007 8:59 pm
Reply with quote

I don't think you can do it with JCL solely, since JCL is just a control language. You will have to use some application (IEBGENER, SORT, REXX, COBOL etc.).

O.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 10, 2007 5:39 pm
Reply with quote

Hi,

If this
vtham wrote:
The JCL's are pre-created as different members in the PDS. they are not generated in run time.
and you can use
ofer71 wrote:
You will have to use some application (IEBGENER, SORT, REXX, COBOL etc.).
then perhaps the following JCL can help you:
Code:
//RACFIDH JOB (@),'SUBMIT ANOTHER JCL',                   
//          MSGCLASS=R,NOTIFY=@SYSUID,CLASS=0             
//*                                                       
//STEP001  EXEC UCC11RMS,PARM=F                           
//*                                                       
//STEP002  EXEC PGM=IEBEDIT                               
//SYSUT1   DD DSN=HLQ.JCL(OUTREC),DISP=SHR     
//SYSUT2   DD SYSOUT=(*,INTRDR)                           
//SYSPRINT DD SYSOUT=*                                     
//SYSIN    DD DUMMY                                       
/*                                                         
//*                                                       

where HLQ.JCL(OUTREC) will contain the next JOB with JOB-name as your RACFIDH.

Hope this helps.
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 Search substring in internal table of... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Getting error S000 U0016 (Cn Internal... JCL & VSAM 4
No new posts "Output" internal table (OD... COBOL Programming 0
No new posts Trying to submit COBOL PGM - JCL ERRO... JCL & VSAM 5
Search our Forums:

Back to Top