Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to invoke the JCL Interpreter from a program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
zatlas
Currently Banned

New User


Joined: 07 Dec 2006
Posts: 8
Location: Ne Jersey

PostPosted: Tue May 15, 2007 9:42 pm    Post subject: How to invoke the JCL Interpreter from a program
Reply with quote

Hi All
Where can I find information on how to invoke the JCL conveter/interpreter from a program and handling the output. I would like to SCAN a whole library at a time (rather then run 200 jobs with TYPRUN=SCAN) and ahndle the iterpreted output as a text sequential file (rather then sysout.)
I saw an assembler program that does something similar (scanning one job and shows to TSO) on the CBT Tape for MVS 3.8J but it does it via an SVC and it is an old release. I need it for z/OS and would like to run from batch.
Thanks
ZA
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Wed May 16, 2007 5:22 am    Post subject:
Reply with quote

Hello,

Are you quite familiar with assembler? If you are, i'd suggest downloading what you found and confirm that anything it uses (svcs, control blocks, etc) is still valid and if so, give it a try.

I'd make sure that for the initial testing at least, i did not update/delete anything in the system.

Good luck and let us know how things progress icon_smile.gif
Back to top
View user's profile Send private message
zatlas
Currently Banned

New User


Joined: 07 Dec 2006
Posts: 8
Location: Ne Jersey

PostPosted: Wed May 16, 2007 7:41 am    Post subject: Re: How to invoke the JCL Interpreter from a program
Reply with quote

I am quite familiar with Assembler and I have no problem with the SVC code, and yes I would actually try to use it (even though there are some prominent 24 bit addresses usage in the code.) The problem is that I need it for a client site and NOBODY in their right mind would EVER allow a consultant to compile such a thing :-(
Also this approach is not really suitable for batch processing. However, somebody gave me a solution that might work which involves actually submiting the jobs with TYPRUN=SCAN and capturing the sysout. He gave it to me on a private basis so I cannot share the code unfortunatly, though.
ZA
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed May 16, 2007 8:03 am    Post subject:
Reply with quote

Ah, the joy of contracting/consulting.

Yup, they most likely would not want that kind of code just put on the machine as an experiment. However, if it could become part of the statement of work. . . . icon_smile.gif

Trapping output is surely a non-invasive way to have the info you want machine readable.

Good luck icon_smile.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed May 16, 2007 10:32 am    Post subject:
Reply with quote

You can generate and submit a job with SCAN from within REXX, then use SDSF batch commands to trap the output (and delete it if you want) - all from within REXX.

O.
Back to top
View user's profile Send private message
zatlas
Currently Banned

New User


Joined: 07 Dec 2006
Posts: 8
Location: Ne Jersey

PostPosted: Wed May 16, 2007 4:20 pm    Post subject:
Reply with quote

Thanks Ofer
That's exactly the approach I am taking that I've referred to above.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us