how to execute the omni script using jcls

22
How to execute the OMNI script using JCL Rootz Version 6.0 Template No: Template Ver 1.0 Table of Contents 1. How to open OMNI station..................................................... ....................................... 2 2. Navigating the Fileset..................................................... ................................................ 6 3.Creating the shortcut keys in Toolbar..................................................... ......................... 7 4. Text file browse...................................................... ...................................................... 11 5. Adding a new Text File in Omni........................................................ .......................... 15 6. Writing the OMNI script...................................................... ........................................ 16 7. How to execute the script in OMNI station ............................................................ .... 17 8. How to execute the OMNI script using JCL......................................................... ....... 18 Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 1 of 22

Upload: ganeswarsethi

Post on 12-Nov-2014

631 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Table of Contents

1. How to open OMNI station............................................................................................ 2

2. Navigating the Fileset..................................................................................................... 6

3.Creating the shortcut keys in Toolbar.............................................................................. 7

4. Text file browse............................................................................................................ 11

5. Adding a new Text File in Omni.................................................................................. 15

6. Writing the OMNI script.............................................................................................. 16

7. How to execute the script in OMNI station ................................................................ 17

8. How to execute the OMNI script using JCL................................................................ 18

8.1 Preparing the JCL........................................................................................... 188.2 How to see the output..................................................................................... 19

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 1 of 19

Page 2: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

1. How to open OMNI station.

To open OMNI station you should have OMNI station access (User id and password). Follow the below instructions to open the omni station.

Login to CITRIX.Navigate to the below path (Figure-1)

Start → All programs → Omnistation 5.45 → Omnistation 5.45.0041

(Figure-1)

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 2 of 19

Page 3: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

ThenClick Ok in this screen. You will find this below screen.

Then Click on Host to go to the below screen where you can change the regions.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 3 of 19

Page 4: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

In Current Profile you can choose the regions.

There are 3 regions like

1. OMNI 5.2 UAT-CY (for TEST)2. OMNI 5.2 SYST-AH (for QA)3. OMNI 5.2 PROD-B3 (for PROD)

After choosing the region in current profile, click on Expand.

Here you have to check the below 2 things for corresponding regions.

Remote port:Remote IP address or host name:

E.g: If your region is TEST you should select OMNI 5.2 UAT-CY (for TEST) then

Remote port: 7071Remote IP address or host name: 10.203.12.253

If your region is PROD you should select OMNI 5.2 PROD-B3 (for PROD) then

Remote port: 7513Remote IP address or host name: 10.203.12.253

Then click on save and click OK.

Then give your userid and password. Click OK.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 4 of 19

Page 5: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

You will find the below screen.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 5 of 19

Page 6: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

2. Navigating the Fileset.

To navigate the fileset or to change the fileset you can goto File → Change Fileset. Below screen will appear. Then Click on down arrow mark to select the desire Fileset, and click on OK.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 6 of 19

Page 7: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

3. Creating the shortcut keys in Tool bar

Navigate to Options → Toolbar → Insert Item

Then click on New. You will get this below screen and you can enter any title like 'abc' then click OK.

Then you can find a new toolbar will be created like this below screen. Then you can drag and drop into the toolbar.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 7 of 19

Page 8: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Drag and drop the shortcut keys from All items to the Newly created Toolbar.

The below items you can insert

TX → For Text file BrowseXED → For Text file EditS99 → For executing the script

The intention of adding these items is just to use the shortcuts. Instead of navigating through menu you can click on the buttons directly to navigate the desired menu.

Then your Toolbar will be like below screen.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 8 of 19

Page 9: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Then drag the new toolbar items(shortcut keys) and place in the toolbar like below picture.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 9 of 19

Page 10: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 10 of 19

Page 11: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

4.Text file Browse

Click on the TX short key to browse the text files. You will find the below screen.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 11 of 19

Page 12: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 12 of 19

Page 13: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Enter the text file name in the Text Name: field to search the text file for that corresponding fileset.Then double click on the text file name as shown in figure, and it will be opened in edit mode and you can view the script.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 13 of 19

Page 14: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 14 of 19

Page 15: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

5. Adding a new Text File in Omni

Click on TX from toolbar or navigate from components → text files → Text file Browse.Under the New file, enter the Name:

E.g: If your text file name is RPT-SCAN-XXXX, Enter this in the desired field. Then click on Add.The text file will be added and will open in edit mode.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 15 of 19

Page 16: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

6. Writing the OMNI script.

Now you can write your script here or copy the script from notepad and paste it here. Then click on save.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 16 of 19

Page 17: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

7. How to execute the script in OMNI station

After saving the text file then click on the S99 button for custom report testing. So the script will be executed and you have to click on the refresh button to get the output/report.

Below figure shows the output screen.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 17 of 19

Page 18: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

8. How to execute the OMNI script in Mainframe using JCL

8.1 Preparing the JCL

To execute the omni scripts in mainframe you need the jcl ZBQB30A and proc BQIMSPRC. Then follow these below steps.

STEP:1In the jcl ZBQB30A, change the corresponding fileset name with whom you want to execute your script(see the below example).

Exp: Enter a command to find the fileset F 'FSET='. Then change the fileset in two places. Press F5 to find the places.

First place

// FPREFIX='??', // FSET='A', //* GEN='(+1)', //* MDLDSCB='MDLDSCB', // NEXF='NULLFILE, ', // PARMLIB='??????????',

Second place

//* VSECPRE='BQ.W.OMNIPLUS', // FSET='A', //* MDLDSCB='MBB.MODEL', // NEXF='NULLFILE, ', // PARMLIB='CARDLIB',

Then in the control card change your Omni text file name where your script is placed.(see below example)

//COPY01.SORTIN DD *00200 $TIHDR ******00201 DEFINE PROTECTARREARS96600202 000000000XC5G4YXC5GPROD PF96600 $TIHDR ******000000000 2008123196601 RPT-SCAN-MTSINAI 00000000 000001//

Here RPT-SCAN-MTSINAI is the Omni text file name.

STEP:2

Then change the corresponding fileset in Proc BQIMSPRC, Like below example

//* CHANGE THE FILESET HERE ====>//* |

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 18 of 19

Page 19: How to Execute the OMNI Script Using JCLs

How to execute the OMNI script using JCL Rootz Version 6.0

Template No:

Template Ver 1.0

//* V//VMUPD DD DSN=BQACCX.W.OMNIPLUS.BQA.MSTR.MUPD,

Exp: If you want to run your script against fileset 'A' then change the proc and jcl accordingly.

STEP:3

Submit the jcl ZBQB30A.

8.2 How to see the output

After the successful completion of the job,

Go to the spool and find DATOT01 (the DD name which is mentioned in the JCL). See the generated output here.

You can import this output to a dataset by giving command XDC or, you can generate the dataset directly by changing the dsn name in the jcl for the DATOT01 dd name.

Then you can do a FTP to get those data into notepad.

Prepared by: Ganeswar Sethi Infinite Computer Solutions Page 19 of 19