Results 1 to 1 of 1

Thread: run NAVUTIL by JCL on Mainframe

  1. #1
    John Wang is offline APAC Technical Team
    Join Date
    Sep 2006
    Posts
    2
    Rep Power
    0

    Default run NAVUTIL by JCL on Mainframe

    Description:

    When we do some works or QA jobs on mainframe, we need to run some SQL Statements on mainframe directly and redirect the SQL Statement output to a dataset.We can do that by JCL.

    Solution:

    1 - Create a JCL which invoke PRC4820.LOAD(NAVUTIL) such as:
    Eg. the JCL is "JOHNW.JCL(NAVEXEC)" as below:

    =============NAVEXEC==============
    //NAVEXEC JOB 'JOHNW',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
    // NOTIFY=&SYSUID
    //************************************************** *********
    //* THIS JOB USED TO EXPORT CONFIG TO AN XML FILE
    //************************************************** *********
    //EXECUTE EXEC PGM=NAVUTIL
    //STEPLIB DD DSN=PRC4820.LOAD,DISP=SHR
    //GBLPARMS DD DSN=PRC4820.DEF.GBLPARMS,DISP=SHR
    //NVCMDPRM DD DSN=JOHNW.JCL(NAVCMDI),DISP=SHR
    //SYSTSPRT DD SYSOUT=A
    //*SYSPRINT DD SYSOUT=A
    //SYSPRINT DD DSN=JOHNW.JCL.OUTPUT,DISP=(OLD,CATLG,DELETE),
    // UNIT=3390,SPACE=(CYL,(1,1))
    //SYSOUT DD SYSOUT=A
    //DDPRINT DD SYSOUT=A
    //DDDRUCK DD SYSOUT=A
    //SYSUDUMP DD SYSOUT=A
    //CEEDUMP DD SYSOUT=A
    /*
    ========= END NAVEXEC==============

    2 - Create the command input file as:
    Eg. the input dataset member is "JOHNW.JCL(NAVCMDI)" as below:

    =============CMDINPUT==============
    NV_CMDLINE=NAVUTIL EXECUTE NAVDEMO 'JOHNW.JCL(NAVSQLI)'
    =========END CNAVEXEC==============

    3 - Create the SQL Statements file as:
    Eg. The input SQL statements dataset member is "JOHNW.JCL(NAVSQLI)" as below:

    =============SQL Statement==========
    SELECT * FROM NAVDEMO:NATION LIMIT TO 4 ROWS;
    =========END SQL Statement==========

    4 - Submit job "JOHNW.JCL(NAVEXEC)" by command "sub", then you will get the result in dataset "JOHNW.JCL.OUTPUT".
    Last edited by John Wang; 09-08-2006 at 03:38 AM.
    To Find Out more About Attunity Technology:
    Attunity
    or:
    Contact Us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HOW TO: Troubleshoot DB2 CDC on the Mainframe
    By Adeeb Mass'ad in forum Change data capture-CDC for DB2
    Replies: 0
    Last Post: 09-11-2006, 08:05 AM
  2. Mainframe ABEND
    By Costi Zaboura in forum Mainframe System Integration
    Replies: 0
    Last Post: 09-05-2006, 04:05 AM
  3. DB2 on Mainframe
    By Costi Zaboura in forum ODBC drivers for Mainframe
    Replies: 0
    Last Post: 09-01-2006, 09:29 AM
  4. navutil IMPORT COMMAND ANOMALY on Maniframe
    By Costi Zaboura in forum Mainframe Migration
    Replies: 0
    Last Post: 08-29-2006, 11:07 AM
  5. How To: Create ODBC and ACX client programs from mainframe PL1 code
    By Costi Zaboura in forum Mainframe Data Access
    Replies: 0
    Last Post: 08-23-2006, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243