MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing parameters to INTERNAL READER

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
THRIVIKRAM
Beginner


Joined: 03 Oct 2005
Posts: 70
Topics: 34

PostPosted: Mon Jul 17, 2006 11:34 am    Post subject: Passing parameters to INTERNAL READER Reply with quote

Hello,

I have about 80 jobs in which a particular step does the same task(TASK-1) (with differnent Input parameters passed as a JCLPARM) in every job.Since this step is failing frequently,the jobs are going into Error Q which is to be overcomed.

I thought of an Idea such that each job(JOB-1) triggers another job(JOB-2). Content of JOB-2 is to do the TASK-1. so even if JOB-2 abends JOB-1 will not go to Error Q.(The JOB-2 can be solved later)

I am thinking to use the concept of INTERNAL READER for this.
//INITRD EXEC PGM=COPYANY,
//INFILE DD DSN=PDS name(Member name),DISP=SHR
//OUTFILE DD SYSOUT=A,INTRDR),DCB=RECFM=F,LRECL=80)

Inside the member,I wrote JCL-2 to do TASK-1.

But now the problem is, I have to write 80 members inside the PDS name for all the 80 JCL-1's.

Is there any way to pass parameters to the Member name so that a single JCL-2 will be called by all JCL-1's by passing the required PARMS.


Thanks,
Thrivikram.
Back to top
View user's profile Send private message Send e-mail
THRIVIKRAM
Beginner


Joined: 03 Oct 2005
Posts: 70
Topics: 34

PostPosted: Tue Jul 18, 2006 7:10 am    Post subject: Reply with quote

Hello,

If not INTERNAL READER,is there any other way such that the triggered job will not effect the Return Code of the triggering job and the triggering job can send data to the triggered job.

Thanks,
Thrivikram.
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue Jul 18, 2006 7:47 am    Post subject: Reply with quote

I would suggest a CLIST or REXX step that could accept your parameter and modify the skeleton and then do a SUBMIT. Search the ISPF forum for SUBMIT JCL MODIFY and look at what others have done.
Click here http://www.mvsforums.com/helpboards/viewtopic.php?t=5805&highlight=submit+modify+jcl for a sample.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
THRIVIKRAM
Beginner


Joined: 03 Oct 2005
Posts: 70
Topics: 34

PostPosted: Sat Jul 22, 2006 9:10 am    Post subject: Reply with quote

Bill Dennis,

Thanks for the response.

CLIST or REXX is not allowed in my project.
Regarding the Link given,I tried understanding the code,but I could not.

Thnaks,
Thrivikram.
Back to top
View user's profile Send private message Send e-mail
German Castillo
Beginner


Joined: 23 Dec 2005
Posts: 83
Topics: 2
Location: Caracas, Venezuela

PostPosted: Wed Jul 26, 2006 3:45 am    Post subject: Reply with quote

Hello

Maybe using JCl // IF .. ELSE .. ENDIF Logic would help you in the above cases?
_________________
Best wishes,

German Castillo
Back to top
View user's profile Send private message
Steve Coalbran
Beginner


Joined: 09 Mar 2005
Posts: 22
Topics: 0
Location: Stockholm, Sweden

PostPosted: Mon Aug 14, 2006 10:10 am    Post subject: Reply with quote

THRIVIKRAM wrote:

CLIST or REXX is not allowed in my project...

Very odd - it is an IT shop? Rolling Eyes
Are you allowed programs - because Rexx is just a language (a very good and powerful one but)...
You can compile and link the Rexx source using REXXC & REXXL.
See User
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Aug 14, 2006 1:56 pm    Post subject: Reply with quote

You can use ISPF skeletons from within COBOL/Assembler.

o.
________
buy herbalaire


Last edited by ofer71 on Sat Feb 05, 2011 11:40 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Aug 14, 2006 3:26 pm    Post subject: Reply with quote

Do you have a scheduler that you use for submitting jobs? If you have one, I'm sure that you would have the option of turning off the error tracking for a particular step. In this case, if it works good otherwise, it wouldn't get into the Queue and your can probably run SDSF in batch, or SAR in batch to parse the job outputs to see which of those steps didn't work
________
Harley-Davidson FLHRCI
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group