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

Can SYSIN errors be rectified without submitting the JOB?


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

New User


Joined: 31 Oct 2013
Posts: 5
Location: India

PostPosted: Thu Oct 31, 2013 11:59 am
Reply with quote

Hi All,

Scenario:
We have modified a JCL and we need to deploy it without executing. Can we capture SYSIN errors (or any JCL error) without executing Job? Is there any way to do it?

1. When we execute Easytrieve program with TYPRUN=SCAN, it cannot catch errors in SYSIN parameters. e.g.
suppose SYSIN has condition

IF I = 'A'
...
...
and we accidentally type
IF I = 'A (single quote is missing)
...
...
this is not captured through TYPRUN=SCAN but when we submit the JCL this would give us a JCL error.

We have some site utilities to compare - BEFORE and AFTER source codes, but this doesn't yield the required answer.

Can somebdoy give some suggestion to avoid such issues other than through self review?
Just wanted to know, if there is some way to capture the SYSIN errors without actually executing the Job?

Thanks!
Back to top
View user's profile Send private message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 213
Location: Chennai

PostPosted: Thu Oct 31, 2013 12:23 pm
Reply with quote

Check whether your shop has JJ or JEM or JJSCAN etc... Such utility might do a little, but not all the parameters..
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Oct 31, 2013 12:24 pm
Reply with quote

So what are you saying, that you do not have a test environment where you test any changes before deployment.

If so, that is extremely bad practice. Every little change needs to be thoroughly tested before being deployed into production.
Back to top
View user's profile Send private message
techie09

New User


Joined: 31 Oct 2013
Posts: 5
Location: India

PostPosted: Thu Oct 31, 2013 12:29 pm
Reply with quote

Hi magesh23586,

Thanks for the reply.

We have something similar "JCL", but even this doesn't help. Moreover we use CA Roscoe with no TSO access.
Back to top
View user's profile Send private message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 213
Location: Chennai

PostPosted: Thu Oct 31, 2013 12:49 pm
Reply with quote

I couldnt find any other option for you, testing will be the only solution... icon_sad.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Oct 31, 2013 1:11 pm
Reply with quote

The contents of SYSIN will never generate a JCL error, the program reading the SYSIN contents does the validating and handle any errors(abend, rc > 0,etc).
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Oct 31, 2013 1:44 pm
Reply with quote

You can do a syntax-only check of an Easytrieve Plus program. In your case, if you are running it inline, you can even compile it. The TYPRUN=SCAN has done your JCL. The syntax-check/compile does the program.

JCL Checkers could check a program (call the language-processor) but I don't think any of them do.
Back to top
View user's profile Send private message
techie09

New User


Joined: 31 Oct 2013
Posts: 5
Location: India

PostPosted: Thu Oct 31, 2013 2:05 pm
Reply with quote

Many Thanks to all for your replies. Even I had similar understanding that it is difficult to capture such errors, but just wanted to check with experts before concluding it.

Thanks!
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Oct 31, 2013 3:10 pm
Reply with quote

What is difficult about it? You put the Easytrieve Plus program in a PDS(E). You run a step to syntax-check that member.

If concerned about the JCL, run with TYPRUN=HOLD.

You can still get errors afterwards (dataset missing, duplicate dataset for instance).
Back to top
View user's profile Send private message
techie09

New User


Joined: 31 Oct 2013
Posts: 5
Location: India

PostPosted: Thu Oct 31, 2013 3:35 pm
Reply with quote

Hi Bill,

Thanks for your reply. Let me try this and get back to you on this.

Thanks!
Back to top
View user's profile Send private message
techie09

New User


Joined: 31 Oct 2013
Posts: 5
Location: India

PostPosted: Thu Nov 07, 2013 10:01 am
Reply with quote

Hi All,

Apologies for late reply, but after multiple discussions and brainstorming it has been decided to modify the process undertaken for review and deployment. Also, we had a discussion on suggestion regarding using PDS for Easytrieve but client has ruled out this preference because of some internal processes they adhere to.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Nov 07, 2013 1:16 pm
Reply with quote

Thanks for the update. Ironic to see client procedures getting in the way of what they wan't to do...
Back to top
View user's profile Send private message
anatol

Active User


Joined: 20 May 2010
Posts: 121
Location: canada

PostPosted: Mon Nov 11, 2013 9:18 pm
Reply with quote

you may try to put in your JCL as last step
// EXEC PGM=JSTTEST
it works better than TYPRUN=SCAN and is not actually execute your JCL
Back to top
View user's profile Send private message
anatol

Active User


Joined: 20 May 2010
Posts: 121
Location: canada

PostPosted: Mon Nov 11, 2013 9:21 pm
Reply with quote

just submit the JCL with additional step PGM=JSTTEST
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 11, 2013 9:50 pm
Reply with quote

please do not post site dependent suggestions
while JSTTEST is available at Your site , it might not be the same for the TS.
Back to top
View user's profile Send private message
anatol

Active User


Joined: 20 May 2010
Posts: 121
Location: canada

PostPosted: Mon Nov 11, 2013 10:16 pm
Reply with quote

ok, but JSTTEST facility is not home grown tool - it is part of JES3
If you specify the PGM=JSTTEST parameter on an EXEC statement, JES3 uses the job's Job Summary Table (JST) to produce a summary of the devices that should be allocated to your job. JES3 then stops processing the job when it completes converter/interpreter processing; the job is not scheduled for execution. The JCL and JSTTEST output are then printed.

An example of output from the JSTTEST facility is included in the following. The JCL to run the facility is illustrated below:
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 11, 2013 10:57 pm
Reply with quote

The problem which cannot be dealt with is the checking of the data cards. The data cards in question are an Easytrieve Plus program. Without being allowed to put the Easytrieve Plus program in a dataset, the Easytrieve Plus program cannot be syntax-checked prior to the run.

Other than by processing the source JCL to strip out the program and syntax check it. Which is nuts if it is much simpler to syntax-check it from a DSN

As to a JES3 solution - not everyone (by a very long way) uses JES3.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Nov 12, 2013 12:56 pm
Reply with quote

Quote:

Without being allowed to put the Easytrieve Plus program in a dataset, the Easytrieve Plus program cannot be syntax-checked prior to the run.


The source can always be syntax checked in-stream, so it being a pds member is not necessary.
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts submitting feedback for manuals All Other Mainframe Topics 3
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts COBOL reading from SYSIN COBOL Programming 1
Search our Forums:

Back to Top