Skip to main content

Featured

Space Explorers Book 7: Answers and Explanations

Memunic Space Explorers › Book 7: Memoon and the Search for Another Home › Answers and Explanations Answers and Explanations Habitable means life could live there; inhabited means life does live there. A world can be habitable and empty, as an unoccupied flat has a roof and water but nobody in it. The Moon has almost no air, so water would boil or freeze, and its gravity is only about one-sixth of Earth’s, too weak to keep air. Accept also: no greenhouse blanket, so it swings between very hot and very cold. Venus. It matches Earth in size and roughly in mass, but its thick carbon dioxide air traps heat, making it hot and crushing. “Twin” is only true for size and weight. A dip of 1 per cent means (planet width divided by star width) squared is 0.01, so the ratio is 0.1: the planet is about a tenth as wide as the star. Repeats at the same gap show the planet is going round the star in 12 days, and rule out a one-time event such as a passing object. A planet shines only by reflected l...

JCL Expansion Program

Recently I was working for a client who didnt have JSCAN/JEM to expand and do syntax/dataset xref checking of a JCL before actually submitting it. As You would understand as a developer how useful it is to have such a utility. And this prompted me to create the JCLEXP tool which checks for things like dataset existance, symbolic parameters expansion, PROCs and Include Members Expansion, Sysin's or other Parm Files Existance etc.

  • Note that the tool doesnot do a JCL syntax check. 
  • You can View/Edit/Browse files directly or using Fileaid directly from the tool's output panel.
  • You can get a list of all input and output files used in the job.
  • You can resolve the actual GDG version dataset going to be used in the job.
  • Most importantly You can see the errors that the job has in its cross references with other modules/datasets.

In a nutshell this Exec Reads in the i/p JCL and Expands the Includes, Procs, Symbolic variables in the Job. It also scans for any Datasets, GDG Base, GDG Versions, Sysins, Includes, Procs cross reference errors.

JCLEXP is a ISREDIT command and it runs on the JCL member You currently are in. The utility consists of three Rexx Routines which need to be placed in your clist library and three ISPF panels which need to be placed in your ISPPLIB.

The Rexx Modules are:

  1. JCLEXP    - The main Driver Program
  2. JCLDSFA - Interface program with FileAid
  3. JCLDSFB - Interface program with FileAid

The Panels are:
  1. JCLEXP0 - Main Panel with choices of Output Desired
  2. JCLEXP1 - Panel for Input Datasets List and actions
  3. JCLEXP2 - Panel for Output Datasets List
You can download the zip file(JCLEXP.zip) containing the above modules below.

https://app.box.com/s/q4lnxk3klkxib1llnxmxs7pu9bkblei7

Please feel free to edit the program to make cosmetic or required changes to meet your application and system environment. After You copy the modules in the corresponding libraries, You can start using the tool program as below:

  • In any JCL member in view or edit mode, issue the command JCLEXP

  • After Expansaion is done, You will see the panel as seen below:

  • Option 1 shows the expanded code with all the expansion errors encountered. This is the place where you would go mostly.

  • Option 2 will give You the details  of all the input files used in your job. Here You can view/edit the file directly or thru file aid from this panel.

  • Option 3 will take you to the panel which lists all the output datasets from your job.


Comments

  1. This is great!

    Can it be used in batch mode to capture the expanded JCL of multiple JCL decks. If not, would it be straightforward to convert?

    ReplyDelete
  2. In Batch Mode you would better run the job using typerun=scan

    ReplyDelete
  3. Okay - what I wanted to do was determine what each JCL member called (PROC, program etc). and return just a list of objects accessed by the JCL deck in CSV form, like this:

    JCL Member Name,Proc Name,Program Name,Referenced Filename

    Values would repeat as required in the output, like this:

    "JOB1JCL","J1PROC1","PRGRM1","FILE1.DAT"
    "JOB1JCL","J1PROC1","PRGRM1","FILE2.DAT"
    "JOB1JCL","J1PROC1","PRGRM2",""
    "JOB1JCL","J1PROC2","PRGRM3","FILE2.DAT"
    "JOB1JCL","J1PROC2","PRGRM3","FILE3.DAT"
    "JOB2JCL","*NONE*","PRGRMy","FILEy.DAT"
    ...
    In which, JCL member "JOB1JCL" repeats five times, Proc "J1PROC1" repeats three times. Each value is repeated as needed according to how many objects are referenced in each 'context' (JOB, PROC, PROGRAM etc).

    I do not want to write fully-expanded JCL to a dataset (I'd then need to write a parser to extract what I need), only the bits of information I require. That's why your script looked a great place to start - it does all the difficult stuff already.

    Thanks
    JG

    ReplyDelete
  4. Hmm...You can check out the xreftool that I had developed..its there as a separete blog in this website...that guy gives you all the places where a particular module is referenced. That tool acutally builds a xref database in form of flat files, after building the db, you can write your scripts to generate the report that you want from this db. That may not be exactly what you want, but may be helpful if you want to look at...Thanks...

    ReplyDelete
  5. Hi,

    I couldnt able to see the attachment. Kindly confirm whether it is available still in this link?

    ReplyDelete
  6. Meenakshi, Sorry for the late response..Yes its still there as a box document.

    ReplyDelete
  7. Hi, is the zip file still available for the JCL Expansion Program? I can't seem to find it on the page.

    ReplyDelete
  8. Hi please send the expand jcl rexx code to me. I am unable to find it here in this page. my mail id is aravindhan.devarajan@gmail.com

    ReplyDelete
  9. I have a requirement that I want to expand all job under a PDS and search particular string in those expanded jobs, Instead to doing JJSCAN one by one and then search the string.

    I want write the JOB name in separate file which contains the string I am searching for.

    IS this possible using JCL or REXX ?

    Regards
    Abhay

    ReplyDelete
  10. Is this ZIP file still available? I would like to try out the code.

    ReplyDelete
  11. Hi... can i get the zip file.

    ReplyDelete
  12. Hi, can I get the zip file? The plug in is not supported. My email address is ztnawal@yahoo.com. Thanks!

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. Hi I cannot find the zip file. Can you please send me at jigarc6@gmail.com

    ReplyDelete
  15. Hi , can you send me zip file to reddybava2014@gmail.com ,I will try once.thankyou.

    ReplyDelete
  16. will be of grt help if you can shre the sample code. i am trying to code a similar rexx

    ReplyDelete
  17. Hi can you send me zip file to kgjothi@gmail.com. Thanks!

    ReplyDelete
  18. hi, i couldnt find the zip file...can you please send to my mail RAMASUBBU4ALL@GMAIL.COM

    ReplyDelete
  19. Hi, could you please send the code to madhuhere670@gmail.com!!?

    ReplyDelete
  20. Hi,
    Could you pls mail me the file on maratheaditi09@gmail.com

    ReplyDelete
  21. Please send me the zip file as well: camronthomas@gmail.com

    Thanks!

    ReplyDelete
  22. Please send the zip file for jclexp to skumardesigner21@gmail.com

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete

Post a Comment

Popular posts from this blog

CA-7 Job Status and Failure Reason Codes

Here are the various status codes that You may see for jobs in the Queue or Logs in CA-7. R-C0002 R-C0003 R-C0099 R-C0255 R-JCLER A-U0002 A-U0004 A-U0015 A-U0043 A-U4095 A-SOC7 A-U4000 Reason Code/Job Status Code explanation: The indication of the job's current disposition. Values and their meanings are: A-Snnnn-- The job has failed with a system abend. A-Unnnn --The job has failed with a user abend. C-Cnnnn --The job has completed successfully and is going through completion processing. E-ARFATT-- An error occurred during the attempt to attach ARF definitions. This can result if the ARFSET specified is not defined. A diagnostic message may have been written to the CA-7 log, the OS console, or to the trailer queue for the job (in which case it can be displayed using LQ,JOB=x,LIST=ALL). E-ARFERR ---The job encountered an error in the ARF processing. Do a LARFQ command for the job to get more specific information. E-SEGERR --The job has been requeued...

Whistling Winds and Waterfalls: 4 Days of Magic in Shillong

Nestled in the clouds, where the scent of pine trees mingles with the rhythm of waterfalls and the tunes of local guitar-strumming youth—Shillong is more than a place. It’s a vibe. If you’ve got 3 nights and 4 days, you’ve got just enough time to fall in love. Here’s how to make the most of it—food, fun, fog and fantastic views included. Day 1: Shillong, We’re Coming for You! You land in Guwahati, barely out of the airport when the hills start calling. You hop into your cab, Spotify on, windows down, and the three-hour ride to Shillong begins. Just when you think it can’t get better, you stop at Umiam Lake —a lake so calm, it looks like someone ironed the water. By evening, you’re sipping hot chai in Laitumkhrah, maybe nibbling on spicy momos or pork jadoh from a roadside stall. You’re checked into your charming hotel ( Tripura Castle if you fancy old-world royalty, Ri Kynjai if you’re into lakeside poetry). The breeze whispers secrets of waterfalls and pine forests. Sleep well, drea...

Installing and Configuring Hadoop on Ubuntu as a Pseudo Distributed Single Node Cluster

Briefly what is psuedo-distributed single node Hadoop cluster: It is a Hadoop distributed cluster having Single Node. All the five daemons (NN,DN,JT,TT,SNN) are running as individual JVM (java process) instances. We will get all distributed features of Hadoop. This mode is used to develop, test, and staging (before production) Map Reduce programs quickly. It writes all the system, daemon and user logs to different files on the cluster To install Hadoop in this mode, we have to modify the hadoop-env.sh, core-site.xml, hdfs-site.xml, mapred-site.xml. hadoop-env.sh contains all the Environment variables which are required for running Hadoop. All the default values are fine, Only we have to modify the JAVA_HOME=“The location of Java Home Directory” Core-site.xml contains all the cluster specific information like io, temp directory, sorting, file system uri etc. Hdfs-site.xml contains all the parameters which are specific to HDFS like name node directory, data node directory...