-
Notifications
You must be signed in to change notification settings - Fork 18
/
VERSION.TXT
173 lines (166 loc) · 11.1 KB
/
VERSION.TXT
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
V1.0.1 - 8/18/019
-Initial build
V1.0.2 - 9/23/2020
-Added SETPKGPATH parameter to set IBM Open Source paths
*DEFAULT = /QOpenSys/pkgs/bin
-Added PRTSPLF, PRTUSRDTA and PRTTXT parameters for personalizing
the spool file when printing the stdout logs.
V1.0.3 - 2/1/2021
-Added QSHBASH command to execute selected bash command line
using QSHEXEC. The QSHBASH command passes through the selected
command line to the bash command with: bash -c <cmdline>
This is a convenience wrapper ovewr QSHEXEC to keep from having
to type bash -c when you want to run bash commands.
V1.0.4 - 3/3/2021
-Added IFSSTDOUT option to QSHEXEC to copy stdout to IFS file.
-Added IFSSTDOUT option to QSHBASH to copy stdout to IFS file.
V1.0.5 - 4/11/2021
-Added QSHIFSCHK to check for IFS files.
-Added QSHPYRUN command to run Python shell scripts.
V1.0.6 - 5/13/2021
-Added PRTHOLD parm to QSHEXEC, QSHBASH and QSHPYRUN to optionally
hold the printer spool file when generated. Previously it was always
HOLD-*YES.
-Added PRTOUTQ parm to QSHEXEC, QSHBASH and QSHPYRUN to optionally
send spool output to a specific output queue. Default is *SAME which
will use the current job output queue.
V1.0.7 - 7/13/2021
-Added various python version numbers to QSHPYRUN/QSHPYRYNC to handle
the new Python 3.9 being installed side-by-side with 3.6.
V1.0.8 - 7/16/2021
-Added QSHQRYTMP command to use SQL to create temp files as needed.
V1.0.9 - 10/26/2021
-Added parm to QSHPATH to place open source package path at begin or
end of the PATH as set in the QSHPATHLOC data area. DFT=*BEGIN
V1.0.10 - 11/10/2021
-Added parm AUT(*INDIR) to CPYTOSTMF commands in QSHEXECC. This will
inherit output directory permissions when a log file is copied.
Default CPYTOSTMF behavior (*DFT) is to set *PUBLIC access to *NONE.
V1.0.11 - 03/16/2022
-Added QSHSETPROF command to create default PASE profile files
.profile, .bash_profile and .bashrc for the selected user.
The .profile sets default paths for STRQSH or default SSH shell.
.bash_profile sets default paths for bash when it's default SSH shell.
.bashrc sets default paths for bash when bash called from SSH shell
and bash is not the default shell.
V1.0.12 - 04/06/2022
-Created QSHCURL command to run the curl command.
V1.0.13 - 08/08/2022
-Created QSHPORTCHK command to check for active IPV4 or IPV6 TCP/IP port.
V1.0.14 - 10/27/2022
-Created QSHPORTEND command to end jobs on active IPV4 or IPV6 TCP/IP port.
V1.0.15 - 11/28/2022
-Updated desc on QSHPYRUN PRTSTDOUT command from:
Prt standard output on errors to
Print standard output result
V1.0.16 - 11/28/2022
-Added OUTFILE and MBROPT parms to QSHEXEC, QSHBASH and QSHPYRUN commands.
Default outfile is: QTEMP/STDOUTQSH. You can specifiy an outfile be placed in any library.
However library QTEMP is job agnostic so best to always create an outfile in QTEMP and
copy it if saving to an IFS file isn't an option.
Default outfile member option is: *REPLACE (Available options - *ADD/*REPLACE)
You can replace or add to the contents of an outfile. Generally *REPLACE should be used.
However you can copy the outfile anywhere you want after the commands complete.
V1.0.17 - 12/3/2022
-Added USEVENV and VENVPATH variables to the QSHPYRUN command.
If USEVENV value is *YES then a valid virtual environment base directory name must be specified
for the VENVPATH value. And it must be configured as a Python virtual environment.
V1.0.18 - 2/25/2023
-Added QSHEXECSRC command to execute a QShell .sh script stored in a source physical file.
V1.0.19 - 3/18/2023
-Updated QSHPYRUNC to support running python binary without a qualified path. The qualified path
can apparently cause issues when running python in a virtual environment. The wrong python binary
may get called.
-When using QSHPYRUN with a virtual environment, the PYPATH parm can be changed from *DEFAULT to ' '
or change the PYPATH data area to blanks instead of /QOpenSys/pkgs/bin and the path will never
get qualified and will always use the current binary search path.
V1.0.20 - 3/24/2023
-Updated QSHPYRUN to support a 'cd /scriptpath' directory change before running a Python script.
The new CHGSCRDIR parameter will support fully qualifying or not qualifying entire script path.
If *NO is specified, script path is fully qualified. (Default and same as previous versions)
If *YES is specified, a 'cd /scriptpath" is performed and script path is not fully qualified.
V1.0.21 - 4/13/2023
-Updated QSHEXECC to create data area QTEMP/QSHRTNCOD to capture the
QSH exit return code value so it can be checked from a CL/RPG program.
V1.0.22 - 4/14/2023
-Updated QSHEXECC to create data area QTEMP/STDOUTIFS to capture the
temporary STDOUT IFS file name used to capture QSH/PASE output.
This value is only useful if you use the DLTSTDOUT(*NO) value.
If DLTSTDOUT(*YES) is specified, the temp file gets removed after
the process completes, although the STDOUT contents do get copied
to temp file QTEMP/STDOUTQSH before removing the temporary IFS file.
Under normal circumstances you should always use DLTSTDOUT(*YES).
V1.0.23 - 5/1/2023
-Added PASEJOBNAM parm to the following commands:
QSHEXEC, QSHEXECSRC, QSHBASH, QSHPYRUN, QSHCURL
If set to *DEFAULT, standard thread names are used: QP0ZSPWP
If value is set for job name, that job name is applied to
all forked/spawned thread jobs by automatically adding the
environment variable PASE_FORK_JOBNAME with selected job name
before launching and thread jobs.
V1.0.24/V1.0.25 - 8/4/2023
-Created QSHPYCALL command. This is a variation of the QSHPYRUN cmd. It
will run a Python script and return parameter values as long as they
are prefixed in STDOUT with: RETURNPARM01: - RETURNPARM10:
Statements can be written to STDOUT using the print() statement
in a Python script. See sample script: ```pycallparl1.py`` on the
GitHub site.
Example STDOUT value: "RETURNPARM01:I am return value 1"
Would return: "I am return value 1" to the QSHPYCALL command
return parameter 1.
QSHPYCALL is mainly a convenience wrapper for RPG/CL/COBOL developers
who might want to do some quick work in Python and return it for
use in their RPG/CL/COBOL programs. They are generally used to the
call/parm convention of RPG/CL/COBOL programming.
-Created QSHCALL command. This is a variation of the QSHEXEC cmd. It
will run a Python script and return parameter values as long as they
are prefixed in STDOUT with: RETURNPARM01: - RETURNPARM10:
Statements can be written to STDOUT using the print() statement
in a Python script. See sample script: pycallparl1.py on the
GitHub site.
Example STDOUT value: "RETURNPARM01:I am return value 1"
Would return: "I am return value 1" to the QSHPYCALL command
return parameter 1.
QSHCALL is mainly a convenience wrapper for RPG/CL/COBOL developers
who might want to do some quick work in Python and return it for
use in their RPG/CL/COBOL programs. They are generally used to the
call/parm convention of RPG/CL/COBOL programming.
-Qualify RUNSQL command as QSYS/RUNSQL in QSHQRYTMPC.
Ran into a case where a customer has their own custom RUNSQL
command which was totally different than QSYS/RUNSQL in the
system library list. This cause the command to crash due to
having different parameters. Qualifying RUNSQL to QSYS should
resolve this issue.
V1.0.26 - 12/24/2023
-Created QSHCPYSRC command to copy source member to IFS file.
This will allow developers to store Python and other script files
in a source physical file if desired and copy to IFS at runtime
as a temporary file.
V1.0.27 - 4/28/2024
-Added QSHBASHSRC command to execute a QShell .sh script stored in
a source physical file. This is essentially a bash version of the
QSHEXECSRC command which runs a script via QShell.
V1.0.28 - 5/24/2024
-Added QSHONISRV service program to execute pase commands with
QSHEXEC OR QSHBASH.
-Added QSHONIPR01 RPG program to test the QSHEXEC service program call
and process the STDOUT results outfile in a single program.
-Added QSHONIPR02 RPG program to test the QSHBASH service program call
and process the STDOUT results outfile in a single program.
V1.0.29 - 7/2/2024
-Added binder source to the QSHONISRV service program build so
signature order stays consistent as we add new procedures to
the service program.
-Added QSHCALL subprocedure to the QSHONISRV service program
so that RPG programs can run a script and return up to 10
parameters directly to the RPG program. This is a complement
to the QSHCALL CL command that does the same thing from a CL
program.
-Added QSHONIPR03 RPG program to test the QSHCALL service program
call to return parameters.
-Added library name qualifer to the CL command processing program
build process. This will insure that the version of the command
processing program in QSHONI library always gets used in case
any objects exist with the same name in your own libraries.
V1.0.30 = 7/16/2024
-Added QSHIFSSIZ command to retrieve the file size and allocated size of an IFS file.