Skip to content

SCLM to GIT migration groovy script SclmExtract.groovy executes REXX exec after allocating ISPF gateway #298

@sammyiy

Description

@sammyiy

We are trying to invoke the EXTARCH exec through the groovy script SclmExtract.groovy but it looks like the exec is not executing properly. We are not sure if the ISPF legacy gateway has been configured properly. The command being executed is

$DBB_HOME/bin/groovyz /tmp/groovy/SclmExtract.groovy -x EXTARCH ../conf/sclmmig.config

$DBB_HOME is /usr/lpp/IBM/dbb.
The groovy scripts are in /tmp and the sclmmig.config file is in /tmp/conf.
The command produces the following output:

Executes EXTARCH
Creates data set 'iyvr7ms.REXX'
Copies file /MVSY/tmp/groovy/../rexx/EXTARCH.rexx to iyvr7ms.REXX(EXTARCH)
Copies /MVSY/tmp/groovy/../rexx/SORTDB.rexx macro to iyvr7ms.REXX(SORTDB)
Copies /MVSY/tmp/groovy/../rexx/SORTVER.rexx macro to iyvr7ms.REXX(SORTVER)
Copies /MVSY/tmp/groovy/../rexx/VERRETR.rexx macro to iyvr7ms.REXX(VERRETR)
Copies /MVSY/tmp/groovy/../conf/sclmmig.config to iyvr7ms.REXX(MIGCFG)
Creates data set 'iyvr7ms.SKELS'
Copies /MVSY/tmp/groovy/../rexx/VERJOBC.skel macro to iyvr7ms.SKELS(VERJOBC)
Copies /MVSY/tmp/groovy/../rexx/VERRETR.skel macro to iyvr7ms.SKELS(VERRETR)
Executes iyvr7ms.REXX(EXTARCH)
Successfully executed iyvr7ms.REXX(EXTARCH)
The following files were generated in directory /tmp/sclmMigration/sispgm:
langext.txt
projseq.txt
archtype.txt
keyref.xml
members.xml
** Build finished****

After completion we check /tmp/sclmMigration/sispgm and none of the files exist.

The logs directory has EXTARCH.log which has the following:

INPUT_FILE = /MVSY/tmp/ispfinput1423195119810893166.xml

ISPF NONE EXEC 'iyvr7ms.ISPFGWY.EXEC' Entering ISPZINT (Service initialization)
Legacy TSO/ISPF Gateway
Environment variables (first 1024 bytes):
0 MAIL=/u/mail/IYVR7MS
1 _CXX_LIBDIRS=/lib /usr/lib
2 _MAKE_BI=YES
3 _BPX_TERMPATH=OMVS
4 PATH=.:/bin:/usr/sbin:/usr/lpp/db2/db2710/lib:/usr/lpp/gskssl/bin:/u
5 CGI_CEATSO=FALSE
6 _CXX_INCDIRS=/usr/include /usr/lpp/ioclib/include
7 _CXX_WORK_UNIT=SYSDA
8 system_name=MVSY
9 TMPDIR=/u/iyvr7ms/temp
10 EDITOR=ed
11 _EDC_PTHREAD_YIELD=-2
12 BPXWISHTZ=EST5EDT
13 SHELL=/bin/sh
14 _C89_SLIB_PREFIX=SYS1
15 _CC_LIBDIRS=/lib /usr/lib
16 CGI_ISPDEBUG_MIN=FALSE
17 CGI_ISPLOGLEVEL=0
18 _C89_CLIB_PREFIX=SYS1
19 CGI_ISPDEBUG=FALSE
20 _CXX_PLIB_PREFIX=SYS1.CEE
21 DBB_CONF=/usr/lpp/IBM/dbb/conf
22 _CC_INCDIRS=/usr/include /usr/lpp/ioclib/include
23 _CC_WORK_UNIT=SYSDA
24 JAVA_TOOL_OPTIONS=-Dlog4j2.formatMsgNoLookups=true
25 PS1=$system_name:$LOGNAME:$PWD:>
26 COLUMNS=80
27 DBB_HOME=/usr/lpp/IBM/dbb
28 LOG4J_FORMAT_MSG_NO_LOOKUPS=true
29 _CC_PLIB_PREFIX=SYS1.CEE
30 _BPX_SPAWN_SCRIPT=YES
31 _=/usr/lpp/ispf/bin/ISPZINT
32 CLASSPATH=/usr/lpp/IBM/dbb/groovy/lib/:/usr/lpp/IBM/dbb/lib/:/usr
33 STEPLIB=ISP.SISPLPA:ISP.SISPLOAD
34 LOGNAME=IYVR7MS
35 LANG=C
36 LOCALE_SWITCH=EXECUTED
37 LIBPATH=/IPLY41/usr/lpp/java/J8.0_64/lib/s390x/compressedrefs:/IPLY
38 GROOVY_APP_NAME=Groovy
39 _CXX_SLIB_PREFIX=SYS1
40 _C89_LIBDIRS=/lib /usr/lib
41 _CXX_CLIB_PREFIX=SYS1
42 TMOUT=3600
43 TERM=dumb
44 CGI_ISPCONF=/etc/ispf
45 _BPX_SHAREAS=NO
46 _C89_INCDIRS=/usr/include /usr/lpp/ioclib/include
47 _C89_WORK_UNIT=SYSDA
48 HOME=/u/iyvr7ms
49 LINES=39
50 _CC_SLIB_PREFIX=SYS1
51 CGI_ISPWORK=/var/ispf
52 _CC_CLIB_PREFIX=SYS1
53 OSNMP_CONF=/etc/osnmp.conf
54 LC_ALL=en_US.IBM-1047
55 _C89_PLIB_PREFIX=SYS1.CEE
56 CGI_PING=FALSE
57 JAVA_HOME=/usr/lpp/java/J8.0_64
58 TZ=EST5EDT
59 CGI_ISPPREF=&SYSPREF..ISPF.VCMISPF
60 MANPATH=/usr/man/%L:/usr/lpp/curl/share/man:/usr/lpp/git/rocket/man
61 RESOLVER_CONFIG=/etc/tcpdata
62 NLSPATH=/usr/lpp/Printsrv/%L/%N/usr/lpp/ldap/lib/nls/msg/%L/%N/usr/
63 IBM_JAVA_COMMAND_LINE=/usr/lpp/java/J8.0_64/bin/java -classpath /IP
64 BPXWPERM=755
Number of environment variables is 65
Host driver level : z/OS V2R5 01JAN21 Base
Effective UID/GID = 300036/11
About to read from fileno(stdin) = 0
Data read from STDIN is ISPF EXEC 'iyvr7ms.ISPFGWY.EXEC'
EPOCH secs = 1738009496
Local Date & time: Mon Jan 27 15:24:56 2025
Hour: 15 Minute: 24 Second: 56 Hundredth: 49
Function ID timestamp = I5549649
Connection Protocol = RSE
CGI_ISPCONF = /etc/ispf
CGI_ISPWORK = /var/ispf
Server PATH = .:/bin:/usr/sbin:/usr/lpp/db2/db2710/lib:/usr/lpp/gskssl
SYSTSPRT file is /var/ispf/WORKAREA/IYVR7MS.I5549649.ISPF.SYSTSPRT
SYSTSPRT timeout file is /var/ispf/WORKAREA/IYVR7MS.TIMEOUT.ISPF.SYSTS
Last SYSTSPRT file is /var/ispf/WORKAREA/IYVR7MS.last
Funcid: Enqueue being requested
About to spawn task for ISPZTSO using spawnp
Parameters passed to ISPZTSO - PROFILE
SYSTSPRT file passed to ISPZTSO
Return code from ISPZTSO is 0
About to process PROFILE data in SYSTSPRT file
*** fopen() error for SYSTSPRT file, error: EDC5129I No such file or dir

We notice that /etc/ispf or /var/ispf do not exist and the user running the script cannot create these dirs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions