Author Topic: Trying to replace ARSZOSHL with oshell  (Read 2813 times)

tbe2856

  • Guest
Trying to replace ARSZOSHL with oshell
« on: October 25, 2016, 06:20:38 AM »
Just saw that ARSZOSHL is no longer available with 8.5.  When we converted to 8.5 we retrieved documents using ARSZOSHL (see below).  We tried to change it to use oshell but it is not working.  We don't seem to get a whole lot of information as to what the issue maybe.  Any help would be appreciated.

OLD JCL
=======================================
//ARSEXPRT EXEC PGM=IKJEFT01,REGION=0M,COND=(0,NE)                 
//*YSEXEC  DD DISP=SHR,DSN=ONDEMAND.TEST.SARSINST                 
//SYSEXEC  DD DISP=SHR,DSN=ONDEMAND.PROD.SARSINST                 
//SYSTSPRT DD SYSOUT=*                                             
//SYSTSIN  DD *                                                   
ARSZOSHL /usr/lpp/ars/V8R5M0/bin/arsdoc get        -               
         -h cpua.tjx.com:1445                    -                 
         -u ARSOND -p ARSOND12 -                                   
         -v -G "KS01"        -                                     
         -o /u/tbe/KS010514_LIST                      -           
         -X 5056-6-0-800605FAA-00000-00000                         
/*      -i "where rdate = 16418 and id = '0514'"                 
//STDENV  DD *                                                     
_BPX_SHAREAS=YES                                                   
_BPX_BATCH_SPAWN=YES                                               
/*                                                                 
//OSHOUT1 DD SYSOUT=*,DCB=(RECFM=F,LRECL=255)                     
//STDOUT DD SYSOUT=*                                               
//STDERR DD SYSOUT=*   

NEW JCL
==============================================
  //ARSEXPRT EXEC PGM=IKJEFT01,REGION=0M                 
//*                                                     
//SYSEXEC  DD DISP=SHR,DSN=SYS1.SBPXEXEC               
//*                                                     
//SYSTSPRT DD SYSOUT=*                                 
//*                                                     
//SYSTSIN  DD *                                         
oshell /usr/lpp/ars/V8R5M0/bin/arsdoc get              -
         -h cpua.tjx.com:1445                    -     
         -u ARSOND -p ARSOND12 -                       
         -v -G "NS01"        -                         
         -o /u/tbe/NS010417_LIST -c                   -
         -X 5413-10-0-486662GAA-00000-00000             
/*                                                       
//STDENV  DD *                                         
_BPX_SHAREAS=YES                                       
_BPX_BATCH_SPAWN=YES                                   
/*                                                         
//OSHOUT1 DD SYSOUT=*,DCB=(RECFM=F,LRECL=255)             
//STDOUT DD SYSOUT=*                                       
//STDERR DD SYSOUT=*     

=============================================================

ACF0C038 ACF2 LOGONID ATTRIBUTES HAVE REPLACED DEFAULT USER ATTRIBUTES         
READY                                                                           
oshell /usr/lpp/ars/V8R5M0/bin/arsdoc get                       -h cpua.tjx.com:
12          -v -G "NS01"                 -o /u/tbe/NS010417_LIST -c             
 OSHELL RC =  1024                                                             
                                                                               
 OSHELL Exit Status =  4                                                       
                                                                               
TERMINAL  NOT ALLOCATED, FILE IN USE                                           
READY                                                                           
END                                                                             
                                                                               
10/25/16 09:05:12 : Starting arsdoc.  Version:  8.5.0.8                         
                                                                               
10/25/16 09:05:12 : /usr/lpp/ars/V8R5M0/bin/arsdoc get -h cpua.tjx.com:1445 -u ARSOND -v -G NS01 -o /u/tbe/NS010417_LIST -c -X 5413-10-0-486662GAA-00000-00000
                                                                               
10/25/16 09:05:12 : Attempting login for userid 'ARSOND' on server 'cpua.tjx.com
                                                                               
10/25/16 09:05:12 : Login unsuccessful                                         
                                                                               
10/25/16 09:05:12 : Connection cannot be established for the cpua.tjx.com server
                                                                               
10/25/16 09:05:12 : arsdoc completed.                                                                                                                     

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: Trying to replace ARSZOSHL with oshell
« Reply #1 on: October 25, 2016, 08:19:51 AM »
"10/25/16 09:05:12 : Connection cannot be established for the cpua.tjx.com server" is likely the key to the issue.

Check the .profile for the userid that's running the job's and be sure it's has the correct paths, steplibs and DSNAOINI.

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1208
    • View Profile
Re: Trying to replace ARSZOSHL with oshell
« Reply #2 on: October 26, 2016, 01:58:44 PM »
tbe - let's also start with an oshell job that is much simpler.

All this JCL does is list out the parameters for ARSSOCKD:

Quote

//TMP1  EXEC  PGM=IKJEFT01,                                 
//            DYNAMNBR=200                                   
//SYSPROC  DD  DSN=SYS1.SBPXEXEC,DISP=SHR                   
//*                                                         
//SYSTSPRT DD  SYSOUT=*                                     
//SYSOUT   DD  SYSOUT=*                                     
//*                                                         
//SYSTSIN  DD  *                                             
 oshell /usr/lpp/ars/V9R5M0/bin/arssockd -v -I instance -q   
//*                                                         

Ed
#zOS #ODF

tbe2856

  • Guest
Re: Trying to replace ARSZOSHL with oshell
« Reply #3 on: November 03, 2016, 12:40:05 PM »
 Sorry for the delay in posting back.  We discovered that the issue was related to IP.  There was
 an issue under OMVS as to what resolver.conf file was being used.

 Thanks for the feedback.