.ISRDDN.CLIST'
16 | ```
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/How to make IBM Java work for TEP file _tep.jnlp_.md:
--------------------------------------------------------------------------------
1 | # How to make IBM Java work for TEP file tep.jnlp
2 |
3 | 1. Copy tep.jnlp into the lib, where javaws.exe is stored for IBM Java
4 | 2. Execute command:
5 | ```
6 | javaws -verbose tep.jnlp
7 | ```
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/How to pack or unpack a dataset with TERSE.md:
--------------------------------------------------------------------------------
1 | # How to pack or unpack a dataset with TERSE
2 |
3 | Tersed (packed) datasets are usually used to send/receive z/OS sequential or partitioned datasets across network.
4 | Tersed datasets need to be uploaded as binary files in the following format:
5 | * LRECL: 1024
6 | * RECFM: FB
7 | * BLOCKSIZE: 1024
8 |
9 | ## Terse (pack) a PDS
10 |
11 | Packing a PDS is exactly the same as packing a “normal” sequential dataset so we will show only JCL used to pack a PDS.
12 | ```
13 | //TERSEPDS JOB (,),REGION=0M,NOTIFY=&SYSUID,CLASS=A
14 | //*-------------------------------------------------
15 | //DEL EXEC PGM=IEFBR14
16 | //D1 DD DSN=IBMUSER.DATA.PDS.TERSED,
17 | // UNIT=SYSDA,SPACE=(TRK,1),
18 | // DISP=(MOD,DELETE)
19 | //*
20 | //TERSE EXEC PGM=TRSMAIN,PARM=PACK
21 | //SYSPRINT DD SYSOUT=*
22 | //INFILE DD DISP=SHR,DSN=IBMUSER.DATA.PDS,
23 | //OUTFILE DD DISP=(NEW,CATLG),UNIT=SYSDA,
24 | // SPACE=(TRK,(10,10),RLSE),
25 | // DSN=IBMUSER.DATA.PDS.TERSED
26 | //* DCB=(DSORG=PS,RECFM=FB,LRECL=1024)
27 | ```
28 |
29 | ## Unterse (unpack) a PDS
30 |
31 | To unpack a PDS is, as with packing, very similar to unpacking a sequential dataset. The only difference is that you need to be careful to allocate a PDS for the output and specify a directory size on the space parameter:
32 | ```
33 | //UNTERPDS JOB (,),REGION=0M,NOTIFY=&SYSUID,CLASS=A
34 | //*-----------------------------------------------------------
35 | //UNTERPDS EXEC PGM=TRSMAIN,PARM=UNPACK
36 | //SYSPRINT DD SYSOUT=*
37 | //INFILE DD DSN=IBMUSER.DATA.PDS.TERSED,
38 | // DISP=SHR
39 | //OUTFILE DD DSN=IBMUSER.DATA.PDS.UNTERSED,
40 | // DISP=(NEW,CATLG),
41 | // SPACE=(CYL,(1,1,1))
42 | ```
43 | The only difference with the unpack job for sequential dataset is the extra parameter to allocate directory block on last line of shown JCL
44 |
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/How to transfer file from Windows to zOS with command line ftp.md:
--------------------------------------------------------------------------------
1 | # How to transfer file from Windows to zOS with command line ftp?
2 |
3 | To transfer files from Windows to z/OS (especially when z/OS file must be created with specific LRECL , RECFM, size, etc) - good way is to use ftp line command, entered in command prompt (Run->cmd ) window.
4 | Below highlighted are few commands used to transfer character(not binary !) Windows file d:\downloads\USC.WRK.NOINTER.APFDBU.ACCESS2 to z/OS dataset USC.WRKTISH.NOINTER.APFDBU.ACCESS2
5 |
6 |
7 | C:\Users\shaklein_ia>ftp stutvs13.megacenter.by.iba.com
8 | Connected to STUTVS13.megacenter.by.iba.com.
9 | 220-TCPFTPH1 IBM FTP CS V2R4 at STUTVS13.megacenter.by.iba.com, 09:03:04 on 2021-04-12.
10 | 220 Connection will close if idle for more than 5 minutes.
11 | 501 command OPTS aborted -- no options supported for UTF8
12 | User (STUTVS13.megacenter.by.iba.com:(none)): e544271
13 | 331 Send password please.
14 | Password: _______
15 | 230 E544271 is logged on. Working directory is "E544271.".
16 | ftp> ascii
17 | 200 Representation type is Ascii NonPrint
18 | ftp> quote site lrecl=146 recfm=fb prim=20 sec=20 cyl
19 | 200-BLOCKSIZE must be a multiple of LRECL for RECFM FB
20 | 200-BLOCKSIZE being set to 6132
21 | 200 SITE command was accepted
22 | ftp> put d:\downloads\USC.WRK.NOINTER.APFDBU.ACCESS2 'usc.wrktish.nointer.apfdbu.access2'
23 | 200 Port request OK.
24 | 125 Storing data set USC.WRKTISH.NOINTER.APFDBU.ACCESS2
25 | 250 Transfer completed successfully.
26 | ftp: 16364508 bytes sent in 8.56Seconds 1911.52Kbytes/sec.
27 | ftp> quit
28 | 221 Quit command received. Goodbye.
29 |
30 |
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/How to use 3270 emulators with larger screensize/README.MD:
--------------------------------------------------------------------------------
1 | # How to use 3270 emulators with larger screensize?
2 |
3 | **Be careful**: This instruction is for the **IBM Personal Communications emulator**
4 |
5 | 1. Open ***.WS** file and update:
6 | * in [Telnet3270] section **add**
7 | ```
8 | TerminalTypeString=IBM-DYNAMIC
9 | ```
10 |
11 | * In [3270] section **modify**
12 | ```
13 | ScreenSize=43x142
14 | ```
15 | 2. Run your session and enter ISPF
16 | 3. Enter option Terminal and user parameters (option 0)
17 | * Set Screen format 3 (Max)
18 |
19 | 
20 |
21 | 4. The screen should be
22 | 
23 |
24 |
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/How to use 3270 emulators with larger screensize/images/ispf-settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/System operating scenarios/How to use 3270 emulators with larger screensize/images/ispf-settings.png
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/How to use 3270 emulators with larger screensize/images/result.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/System operating scenarios/How to use 3270 emulators with larger screensize/images/result.png
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/Migrate one or more data sets to migration volumes.md:
--------------------------------------------------------------------------------
1 | # How to migrate one or more data sets to migration volumes
2 |
3 | In ISPF -> 3.4, and issue against the name of dataset the command:
4 | ```
5 | hmig (or) ml2
6 | ```
7 | And the dataset will be migrated directly to "MIGRAT2" (command 'hmigrate' in the same way gives MIGRAT1)
--------------------------------------------------------------------------------
/zOS System operating/System operating scenarios/README.md:
--------------------------------------------------------------------------------
1 | # This directory contains various z/OS system work scenarios
2 |
3 | **List of scenarios:**
4 | * [Migrate one or more data sets to migration volumes](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/Migrate%20one%20or%20more%20data%20sets%20to%20migration%20volumes.md)
5 | * [How to include library to current LOGON session](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20include%20library%20to%20current%20LOGON%20session.md)
6 | * [How to make IBM Java work for TEP file "tep.jnlp"](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20make%20IBM%20Java%20work%20for%20TEP%20file%20_tep.jnlp_.md)
7 | * [How to find out which data sets have used the most amount of space?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20find%20out%20which%20data%20sets%20have%20used%20the%20most%20amount%20of%20space/README.MD)
8 | * [How to convert hexadecimal date to a readable date on z/OS?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20convert%20hexadecimal%20date%20to%20a%20readable%20date%20on%20zOS.md)
9 | * [How do I compare two data sets interactively?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20compare%20two%20data%20sets%20interactively/README.MD)
10 | * [How do I use 3270 emulators with a larger screen size?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20use%203270%20emulators%20with%20larger%20screensize/README.MD)
11 | * [How do I make some changes in each member of PDS?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/tree/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20do%20some%20changes%20in%20each%20member%20of%20PDS)
12 | * [How to transfer file from Windows to zOS with command line ftp?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20transfer%20file%20from%20Windows%20to%20zOS%20with%20command%20line%20ftp.md)
13 | * [How do I copy RTE to another LPAR?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/tree/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20copy%20RTE%20to%20other%20LPAR)
14 |
--------------------------------------------------------------------------------
/zOS System operating/XMIT/How to fix non working XMIT (enable NJE connection between two systems).md:
--------------------------------------------------------------------------------
1 | # How to fix non working XMIT (enable NJE connection between two systems (for example - connection from `````` to ``````))
2 |
3 | On `````` you need to define and start a NJE connection to ???RSPLEX01??? with the following commands:
4 |
5 | 1. ```$add socket(???boston???),ipaddr=(???rs22.rocketsoftware.com???),port=(??175??),node=21```
6 | 2. ```$add line(21),node=21,unit=tcpip```
7 | 3. ```$sline(21)```
8 |
9 | On `````` (the system in RSPLEX01 which handles NJE work) you need to define and start a connection to `````` with the following commands:
10 |
11 | 1. ```$add socket(),ipaddr=rs53.rocketsoftware.com,port=175,node=```
12 | 2. ```$add line(zzz),node=zzz,unit=tcpip```
13 | 3. ```$sline(zzz)```
14 | 4. ```$sn,n=rsplexi1```
15 |
16 | You could display ownnode value on by following command:
17 | ```$DNJEDEF,OWNNAME,OWNNODE```
18 |
--------------------------------------------------------------------------------
/zOS System operating/XMIT/XMIT commands.md:
--------------------------------------------------------------------------------
1 | # This document contains various day-to-day and rare XMIT commands
2 |
3 | ## How to transmit a data set?
4 | Specify `#node`, `#userid` and `#dsname`
5 | ```
6 | TSO XMIT #node.#userid DSN('#dsname') OUTDSN('#dsname.XMIT')
7 | ```
8 |
9 | **Or transmit members:**
10 |
11 | Specify `#dsname`, `#mem_names`
12 | ```
13 | TSO XMIT #node.#userid DSN('#dsname') MEMBERS(#mem_names) OUTDSN('#dsname.XMIT')
14 | ```
15 |
16 | ## How to receive a data set?
17 |
18 | When you're receiving a data set, the system asks for additional parameters. Here you can specify `DA(name.of.your.library)`, `UNIT(unit)`, `VOLUME(volume)`. You can skip it if you want
19 |
20 | Specify `#dsname`
21 | ```
22 | TSO RECEIVE INDSN('#dsname.XMIT')
23 | ```
24 |
25 | ## How to receive another user's data set?
26 | You need to use `RECEIVE USER(#userid)` to specify whose files you want to
27 | receive (and that's a restricted command - you need **OPER** authority to do
28 | that)
29 | ```
30 | TSO RECEIVE USER(#userid) INDSN('#dsname.XMIT')
31 | ```
32 |
33 | ## TRANSREC parameters
34 |
35 | Check what class is used for the XMIT. Check the `SYS1.PARMLIB`
36 | member `IKJTSO00` for any `TRANSREC` parameters, particularly SPOOLCL, which
37 | defines the class for the outgoing data.
38 |
39 | ## Related topics
40 |
41 | * [How to copy RTE to other LPAR?](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/tree/master/zOS%20System%20operating/System%20operating%20scenarios/How%20to%20copy%20RTE%20to%20other%20LPAR)
--------------------------------------------------------------------------------
/zOS System operating/images/Contributing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/Contributing.png
--------------------------------------------------------------------------------
/zOS System operating/images/GRMD_main_logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/GRMD_main_logo.jpg
--------------------------------------------------------------------------------
/zOS System operating/images/Logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/Logo.jpg
--------------------------------------------------------------------------------
/zOS System operating/images/blue-zone-cursor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/blue-zone-cursor.png
--------------------------------------------------------------------------------
/zOS System operating/images/commit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/commit.png
--------------------------------------------------------------------------------
/zOS System operating/images/contibute2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/contibute2.jpg
--------------------------------------------------------------------------------
/zOS System operating/images/create-new-file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/create-new-file.png
--------------------------------------------------------------------------------
/zOS System operating/images/create-pull-req.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/create-pull-req.png
--------------------------------------------------------------------------------
/zOS System operating/images/cursor-pointer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/cursor-pointer.png
--------------------------------------------------------------------------------
/zOS System operating/images/download-repo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/download-repo.png
--------------------------------------------------------------------------------
/zOS System operating/images/file-name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/file-name.png
--------------------------------------------------------------------------------
/zOS System operating/images/fork.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/fork.png
--------------------------------------------------------------------------------
/zOS System operating/images/jira_ticket_statuses.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/jira_ticket_statuses.png
--------------------------------------------------------------------------------
/zOS System operating/images/logo-jenkins.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/logo-jenkins.jpg
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/Pipeline stages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/Pipeline stages.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/Tests Results.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/Tests Results.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/Tests execution logs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/Tests execution logs.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image1.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image10.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image11.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image12.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image13.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image14.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image2.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image3.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image4.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image5.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image6.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image7.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image8.png
--------------------------------------------------------------------------------
/zOS System operating/images/mfarticleimages/image9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/mfarticleimages/image9.png
--------------------------------------------------------------------------------
/zOS System operating/images/new-pull-req.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/new-pull-req.png
--------------------------------------------------------------------------------
/zOS System operating/images/pull-reqs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/pull-reqs.png
--------------------------------------------------------------------------------
/zOS System operating/images/sdsf-command-extension.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/sdsf-command-extension.png
--------------------------------------------------------------------------------
/zOS System operating/images/swap-bar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/swap-bar.png
--------------------------------------------------------------------------------
/zOS System operating/images/swap-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/6b710e28ec672702e6e06c12bf100327b1a97882/zOS System operating/images/swap-list.png
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/README.md:
--------------------------------------------------------------------------------
1 | # zOS DevOps scripts
2 |
3 | **This repository contains various scripts and templates for working with z/OS System**
4 |
5 | **Repository content:**
6 | * [Shell script for running JCL jobs on the mainframe via ftp](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/wiki/Shell-script-for-running-JCL-jobs-on-the-mainframe-via-ftp)
7 | * [Shell script for datasets transfering from UNIX to the mainframe via ftp](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/wiki/Shell-script-for-datasets-transfering-from-UNIX-to-the-mainframe-via-ftp)
8 | * [Shell script for transferring changed sources in git to the mainframe via ftp](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/wiki/Shell-script-for-transferring-changed-sources-in-git-to-the-mainframe-via-ftp)
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for datasets transfering from UNIX to the mainframe via ftp/README.md:
--------------------------------------------------------------------------------
1 | # Shell script for datasets transfering from UNIX to the mainframe via ftp
2 |
3 | **sendLIBS.sh was created to send source datasets to z/OS via ftp.**
4 |
5 | [**Link to shell script sources (sendLIBS.sh)**](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/zOS%20DevOps%20Scripts/Shell%20script%20for%20datasets%20transfering%20from%20UNIX%20to%20the%20mainframe%20via%20ftp/sendLIBS.sh)
6 |
7 | **Script configuration before execution**
8 | 1. Prepare file which contains list of datasets LLQ (HLQ should be specified in the shell script parameters at startup) to be sent to z/OS.
9 | Each dataset name is located in separate line, for example datasetsList file contains:
10 | ```
11 | TEST
12 | SAMPLIB
13 | JCL
14 | COBOL
15 | PLI
16 | ASM
17 | ```
18 | All libraries should be located in the current directory
19 | 2. Replace the following values in the script:
20 | * `HOST=#Mainframe IP-address here#`
21 | * `USERID=#MF User#`
22 | * `PASSWD=#User password#`
23 | * `DSQ='#Script default HLQ qualifiers#'`
24 |
25 | **Sequence of script actions:**
26 | * Script receives an input file with list of datasets, required for transfering
27 | * Sends datasets to z/OS
28 |
29 | **Execution format:**
30 | ```
31 | >./sendLIBS.sh [ds_list] [ds_qualifier]
32 | ```
33 | * `ds_qualifiers` - HLQ and MLQ datasets on z/OS
34 | default: USER01.TEST
35 |
36 | * `ds_list` - file which contains list of datasets to be sent to z/OS
37 | each dataset name is located in separate line, for example:
38 | TEST
39 | ASM
40 | COBOL
41 | all libraries should be located in the current directory
42 |
43 |
44 | Script returns 1 if at least one directory/file was not found or dir/file transfer was unsuccessful.
45 |
46 | **Execution examples:**
47 | ```
48 | >./sendLIBS.sh dsList USER01.TEST
49 | ```
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for datasets transfering from UNIX to the mainframe via ftp/dsList:
--------------------------------------------------------------------------------
1 | EXEC
2 | INCLUDES
3 | JCL
4 | PLI
5 | SAMPLIB
6 | TEST
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for datasets transfering from UNIX to the mainframe via ftp/sendLIBS.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #echo reading input parameters
3 | INPUTFILE=$1
4 | DSQ=$2
5 | echo Input jcl: $INPUTFILE
6 | TMPFILE=tmp.txt
7 |
8 | HOST=#Mainframe IP-address here#
9 | USERID=#MF User#
10 | PASSWD=#User password#
11 | input="$PWD"
12 |
13 | if [ ! -f "$INPUTFILE" ]
14 | then
15 | echo Error: Input file $INPUTFILE not found
16 | exit 1
17 | fi
18 |
19 | if [ -z "$DSQ" ]
20 | then
21 | echo use default qualifiers
22 | DSQ='USER01.TEST'
23 | fi
24 |
25 | echo datasets qualifiers: $DSQ
26 |
27 | while read line
28 | do
29 | if [ -d "$input/$line" ]
30 | then
31 | PARAMS='LR=80 BLOCKSIZE=32720 REC=FB TR PRI=10 SEC=100 DIR=20'
32 | echo copy "$line" lib to z/OS
33 | echo "
34 | open $HOST
35 | quote USER $USERID
36 | quote PASS $PASSWD
37 | quote site $PARAMS
38 | mkdir '$DSQ.$line'
39 | cd '$DSQ.$line'
40 | lcd $input/$line
41 | mput *
42 | ls
43 | bye
44 | " | ftp -inv > $TMPFILE
45 | echo ---------------
46 | cat $TMPFILE
47 | echo ---------------
48 | else
49 | if [ -f "$input/$line" ]
50 | then
51 | PARAMS='LR=80 BLOCKSIZE=32720 REC=FB TR PRI=5 SEC=100'
52 | echo copy "$line" dataset to z/OS
53 | echo "
54 | open $HOST
55 | quote USER $USERID
56 | quote PASS $PASSWD
57 | quote site $PARAMS
58 | put $input/$line '$DSQ.$line'
59 | bye
60 | " | ftp -inv > $TMPFILE
61 | echo ---------------
62 | cat $TMPFILE
63 | echo ---------------
64 | else
65 | echo Error: $input/$line does not exist
66 | res="error"
67 | continue
68 | fi
69 | fi
70 | ERROR=$(grep -i 'Error' $TMPFILE)
71 | if [ -n "$ERROR" ]
72 | then
73 | echo Error occurred: $ERROR
74 | res="error"
75 | fi
76 | done < $INPUTFILE
77 |
78 | rm $TMPFILE
79 |
80 | if [ "$res" = "error" ]
81 | then
82 | echo Sending libs completed with errors
83 | exit 1
84 | fi
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for running JCL jobs on the mainframe via ftp/README.md:
--------------------------------------------------------------------------------
1 | # Shell script for running JCL jobs on the mainframe via ftp
2 |
3 | **runZosJcl.sh script is intended to execute job from z/OS dataset via ftp**
4 |
5 | **Also, this Shell script template can be used as part of the Jenkins pipeline to automate the launch of JCL jobs.**
6 |
7 | [**Link to shell script sources (runZosJcl.sh)**](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/zOS%20DevOps%20Scripts/Shell%20script%20for%20running%20JCL%20jobs%20on%20the%20mainframe%20via%20ftp/runZosJcl.sh)
8 |
9 | **Instructions:**
10 |
11 | Execution format::
12 | ```
13 | >./runZosJcl.sh [job] [output_file]
14 | ```
15 |
16 | * `job` - fully-qualified job name in quotation marks
17 | * `output_file` - file where job output log will be saved
18 |
19 | Script returns 1 if dataset with JCL was not found or job failed (completed with error or RC>04)
20 |
21 | Example:
22 | ```
23 | >./runZosJcl.sh 'USER01.TESTPROG.JCL(TEST)' build_output.txt
24 | ```
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for running JCL jobs on the mainframe via ftp/runZosJcl.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | HOST=#Mainframe IP-address here#
3 | USERID=#MF User#
4 | USERPSW=#User password#
5 |
6 | echo reading input parameters
7 | INPUTJOB=$1
8 | OUTPUT=$2
9 | echo JCL: $INPUTJOB
10 | echo Output file: $OUTPUT
11 |
12 | TMPFILE=tmp.txt
13 |
14 | echo run JCL from z/OS
15 | echo "
16 | open ${HOST}
17 | quote USER ${USERID}
18 | quote PASS ${USERPSW}
19 | quote SITE FILE=JES NOJESGETBYDSN
20 | quote SITE JESOWNER=*
21 | quote site jesjobname=*
22 | get '$INPUTJOB' $OUTPUT
23 | bye
24 | " | ftp -nv > $TMPFILE
25 |
26 | echo ---------------
27 | cat $TMPFILE
28 | echo ---------------
29 |
30 | JOB_ID=$( grep -o "JOB[0-9][0-9]*" $TMPFILE | head -1 )
31 | if [ -z "$JOB_ID" ]
32 | then
33 | echo Error: job was not submitted
34 | exit 1
35 | else
36 | echo Job $JOB_ID was submitted
37 | fi
38 | sleep 5s
39 |
40 | echo check rc code
41 | echo "
42 | open ${HOST}
43 | quote USER ${USERID}
44 | quote PASS ${USERPSW}
45 | quote site file=jes
46 | quote site jesjobname=*
47 | ls
48 | bye
49 | " | ftp -nv > $TMPFILE
50 |
51 | #echo ---------------
52 | #cat $TMPFILE
53 | #echo ---------------
54 |
55 | grep $JOB_ID $TMPFILE
56 | RC_CODE=$(grep $JOB_ID $TMPFILE | grep -o "RC=[0-9]*")
57 | if [ -n "$RC_CODE" ]
58 | then
59 | RC_CODE=$(echo "$RC_CODE" | cut -d "=" -f 2)
60 | fi
61 | if [ -n "$RC_CODE" ] && [ "$RC_CODE" \< "0008" ]
62 | then
63 | echo Job completed successfully
64 | else
65 | echo Error: job failed
66 | res="failed"
67 | fi
68 | rm $TMPFILE
69 |
70 | if [ "$res" = "failed" ]
71 | then exit 1
72 | fi
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for transferring changed sources in git to the mainframe via ftp/README.md:
--------------------------------------------------------------------------------
1 | # Shell script for transferring changed sources in git to the mainframe via ftp
2 |
3 | ** sendChangedScr.sh was created to send changed sources to z/OS via ftp **
4 |
5 | [**Link to shell script sources (sendChangedSrc.sh)**](https://github.com/IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers/blob/master/zOS%20System%20operating/zOS%20DevOps%20Scripts/Shell%20script%20for%20transferring%20changed%20sources%20in%20git%20to%20the%20mainframe%20via%20ftp/sendChangedSrc.sh)
6 |
7 | ** Script configuration before execution **
8 | 1. Prepare configuration file `vardefs` by replacing the following values:
9 | * `HOST=#Mainframe IP-address here#`
10 | * `USERID=#MF User#`
11 | * `USERPSW=#User password#`
12 | * `defaultHLQ='#HLQ of datasets#'`
13 | * `masterBranch=#master branch name#`
14 | * `developBranch=#develop branch name#`
15 |
16 | 2. Replace the path to the configuration file in the script:
17 | * `VAR_PATH="/$PWD/#PATH TO CONFIG#/vardefs"`
18 |
19 | **Sequence of script actions:**
20 | * Script retrieves list of modified modules from git
21 | * Sends modules to z/OS
22 | * Puts list of modified modules in [HLQ].DIFF dataset on z/OS
23 |
24 | **Execution format:**
25 | ```
26 | >./sendChangedSrc.sh [HLQ] [restore]
27 | ```
28 | * `HLQ` - datasets qualifiers, required parameter
29 |
30 | * `restore` - constant value which must be specified to restore changed modules from master branch in case of errors
31 |
32 | Script returns 1 if HLQ was not specified, changed modules list is empty or file transfer was unsuccessful.
33 |
34 | **Execution examples:**
35 | ```
36 | >./sendChangedScr.sh USER01.TEST
37 |
38 | >./"$PWD"/scripts/zOS/sendChangedScr.sh USER01.TEST restore
39 | ```
40 |
--------------------------------------------------------------------------------
/zOS System operating/zOS DevOps Scripts/Shell script for transferring changed sources in git to the mainframe via ftp/vardefs:
--------------------------------------------------------------------------------
1 | #ZOS variables
2 | HOST=#Mainframe IP-address here#
3 | USERID=#MF User#
4 | USERPSW=#User password#
5 | defaultHLQ='#HLQ of datasets#'
6 | #Git variables
7 | masterBranch=#master branch name#
8 | developBranch=#develop branch name#
9 |
--------------------------------------------------------------------------------