Chapter04 Tso Ispf Unix

Embed Size (px)

DESCRIPTION

Tso ISPF and Unix

Citation preview

  • 7/21/2019 Chapter04 Tso Ispf Unix

    1/62

    Introduction to z/OS Basics

    2006 IBM Corporation

    Chapter 4: Interactive facilities of z/OS:SO/!" IS#$" and %&I'

    58

  • 7/21/2019 Chapter04 Tso Ispf Unix

    2/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation2

    Chapter o()ectives

    Be able to:

    Log on to z/OS

    Run programs from the TSO READYprompt

    Na!gate through the menu opt!ons of"S#$

    %se the "S#$ e&!tor to ma'e (hangesto a f!le

    %se the %N") !nterfa(es pro!&e& onz/OS* !n(lu&!ng the z/OS %N")(omman& shell+

  • 7/21/2019 Chapter04 Tso Ispf Unix

    3/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation,

    *e+ ter,s in this chapter

    ,2-. an& ,2-. emulator

    L"ST

    "S0ELL

    "S#$ logon

    nat!e mo&e

    O1S (omman&

    path

    pass3or&

    READY prompt

    re(or&

    Restru(ture& E4ten&e&E4e(utor 5RE))6

    root

    SDS$

    shell

    T!me Shar!ng Opt!on /E4tens!ons 5TSO/E6

    user "D

  • 7/21/2019 Chapter04 Tso Ispf Unix

    4/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation7

    -o. do .e interact .ith z/OS

    SO/!

    Allo3s users to logon to z/OS an& use a l!m!te& set of bas!((omman&s+ Th!s !s somet!mes (alle& us!ng TSO !n !ts native mode+

    IS#$

    #ro!&es a menu s8stem for a((ess!ng man8 of the most(ommonl8 use& z/OS fun(t!ons+

    z/OS %&I' shell and utilities

    Allo3s users to 3r!te an& !no'e shell s(r!pts an& ut!l!t!es*an& use the shell programm!ng language+

  • 7/21/2019 Chapter04 Tso Ispf Unix

    5/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation9

    SO overvie.

    TSO/E

    1cron+, for i,e Sharin Option/!3tensionsSO/!5

    1llo.s users to create an interactive session .ithz/OS

    #rovides a sinleuser loon capa(ilit+ and a(asic co,,and pro,pt interface to z/OS

    Most users .or7 .ith SO throuh its ,enudriven interface" Interactive S+ste, #roductivit+$acilit+ IS#$5

  • 7/21/2019 Chapter04 Tso Ispf Unix

    6/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation

    SO overvie. continued5

    "n a z/OS s8stem* ea(h user gets a user "D an& a pass3or&author!ze& for TSO logon+

    Dur!ng TSO logon* the s8stem &!spla8s the TSO logon s(reenon the user;s ,2-. &!spla8 &e!(e or TN,2-. emulator+

    z/OS s8stem programmers mo&!f8 the la8out an& te4t of theTSO logon panel to better su!t the nee&s of the s8stem;susers+

  • 7/21/2019 Chapter04 Tso Ispf Unix

    7/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation-

    SO/! loon screen

  • 7/21/2019 Chapter04 Tso Ispf Unix

    8/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation

    %sin SO co,,ands in native ,ode

    %suall8* "S#$ pro!&es the !nterfa(e for TSO+

    0o3eer* TSO !n(lu&es a l!m!te& set of bas!(

    (omman&s !n&epen&ent of "S#$ an& other

    programs+

    %s!ng TSO !n th!s 3a8 !s (alle& us!ng

    TSO !n !ts native ,ode.

    Ihen 8ou logon to TSO* the z/OS s8stem

    respon&s b8 &!spla8!ng the READYprompt*an& 3a!ts for !nput 5s!m!lar to a DOS prompt6+

  • 7/21/2019 Chapter04 Tso Ispf Unix

    9/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationJ

    er,inolo+ for data files

    z/OS f!les are (alle& &ata sets+ Before 8ou (an 3r!te &ata !nto them* spa(e for &atasets must be resere& on &!s'+ The user !s !nole& !n spe(!f8!ng the amount ofspa(e as 3ell as the formatt!ng of !t+ 0ere are some of the terms use& 3henallo(at!ng a &ata set+

    olume ser!al < A s!4 (hara(ter name of a &!s' or tape olume* su(h as TEST.F

    De!(e t8pe < A mo&el or t8pe of &!s' &e!(e* su(h as ,,J.

    Organ!zat!on < The metho& of pro(ess!ng a &ata set* su(h as seGuent!al

    Re(or& format < The &ata !s store& !n (hun's (alle& re(or&s* of e!ther f!4e& orar!able length

    Re(or& length < The length 5number of (hara(ters6 !n ea(h re(or&

    Blo(' s!ze< "f re(or&s are Ko!ne& together to sae spa(e* th!s spe(!f!es the lengthof the blo(' !n (hara(ters

    E4tent < An allo(at!on of spa(e to hol& the &ata+ Ihen the pr!mar8 e4tent !s f!lle&*the operat!ng s8stem 3!ll automat!(all8 allo(ate more e4tents* (alle& se(on&ar!es

    Spa(e < D!s' spa(e !s allo(ate& !n un!ts (alle& blo('s* tra('s* or (8l!n&ers

  • 7/21/2019 Chapter04 Tso Ispf Unix

    10/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationF.

    S O

    TSO Logon READY prompt

    Allocating a dataset from the TSO Command Line

  • 7/21/2019 Chapter04 Tso Ispf Unix

    11/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationFF

    SO 8ead+ #ro,pt

    Cursor" .here +ou enter co,,ands

    SO is read+ to accept co,,ands

    9

    2

    :

    9 6 ;ou enter a co,,and 4li7e a

  • 7/21/2019 Chapter04 Tso Ispf Unix

    12/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationF2

    Using native TSO commands to SORT Data

  • 7/21/2019 Chapter04 Tso Ispf Unix

    13/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationF,

    #rora,,in usin SO/!

    CLIST

    REXX Exec

    Command Processor

  • 7/21/2019 Chapter04 Tso Ispf Unix

    14/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationF7

    =hat is a C>IS Co,,and >ist5

    L"ST !s a h!gh

  • 7/21/2019 Chapter04 Tso Ispf Unix

    15/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationF9

    =hat is a 8!'' !3ec a@7@a@ e3ecs5

    The REstru(ture& e)ten&e& e)e(utor 5RE))6

    language !s a h!gh leel !nterpret!e language that

    enables 8ou to 3r!te programs !n a (lear an&

    stru(ture& 3a8+You (an perform numerous tas's su(h a !no'!ng

    programs 3r!tten !n other languages+

    #erform "/O an& pro(ess ar!thmet!( an& (hara(ter &ata

    Ir!te !ntera(t!e appl!(at!ons us!ng "S#$

  • 7/21/2019 Chapter04 Tso Ispf Unix

    16/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM CorporationF

    C>ISs versus 8!'' L"ST e4e(ute onl8 !n a TSO/E

    en!ronment 3here RE)) (an e4e(ute !nan8 1S a&&ress spa(e

    RE)) !s Restru(ture& E4ten&e& E4e(utorlanguage* a (omman& language use& 3!thTSO

    RE)) !s the !mplementat!on of the S8stemsAppl!(at!on Ar(h!te(ture 5SAA6 #ro(e&uresLanguage* therefore 8ou (an 3r!te RE))e4e(s that 3!ll run !n an8 supporte& SAASAA en!ronments < !+e+ z1/S# 51S6

    Both L"STs an& RE)) offer shell s(r!pt>>? RESET S(roll >>>? #A=E

    >OLS?

  • 7/21/2019 Chapter04 Tso Ispf Unix

    34/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation,7

    Option 2 ! < I

    C$2A3TOE*EC1AT

    If you have made a

    connection to theworkstation, you canspecify a workstationfile name, for exampleC: \!"O#$#C%&",in this field%

    Chapter 04 SO IS#$ %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    35/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation,9

    IS#$ !dit #anel so,e line co,,ands

    omman& Des(r!pt!on

    I Insert lines

    <

  • 7/21/2019 Chapter04 Tso Ispf Unix

    36/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation,

    IS#$ !dit #anel Insertin lines

    Screen 2

    Screen 9

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    37/62

    Chapter 04 SO" IS#$" %SS

    2006 IBM Corporation,-

    Option %I>II!S

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    38/62

    p " "

    2006 IBM Corporation,

    Option @ 9 %I>II!S

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    39/62

    p " "

    2006 IBM Corporation,J

    %sin IS#$ allocate screenMenu RefList Utilities Help

    Allocte !ew "t Set

    #o$$nd ===>

    "t Set !$e % % % & 'S#HOL%(ES(%#!(L

    Mnge$ent clss % % % )*ln+ fo, defult $nge$ent clss-

    Sto,ge clss % % % % )*ln+ fo, defult sto,ge clss-

    Volu$e se,il % % % % E**ER1 )*ln+ fo, s.ste$ defult /olu$e-

    "e/ice t.pe % % % % % )ene,ic unit o, de/ice dd,ess-

    "t clss % % % % % % )*ln+ fo, defult dt clss-

    Spce units % % % % % (RA# )*LS (RS #4LS * M* *4(ES

    o, RE#OR"S-

    A/e,ge ,eco,d unit )M o, U-

    5,i$,. 6untit. % % 2 )7n 8o/e units-

    Second,. 6untit. 1 )7n 8o/e units-

    "i,ecto,. 8loc+s % % 0 )'e,o fo, se6uentil dt set-

    Reco,d fo,$t % % % % 9*

    Reco,d lengt: % % % % ;0

    *loc+ si

  • 7/21/2019 Chapter04 Tso Ispf Unix

    40/62

    p " "

    2006 IBM Corporation7.

    Option 6 S O co,,and

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    41/62

    p

    2006 IBM Corporation7F

    I S # $ %I

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    42/62

    2006 IBM Corporation72

    S+ste,

  • 7/21/2019 Chapter04 Tso Ispf Unix

    43/62

    2006 IBM Corporation7,

    S+ste,

  • 7/21/2019 Chapter04 Tso Ispf Unix

    44/62

    2006 IBM Corporation77

    z/OSJ %ni3 Interactive Interface %ni3 S+ste, Services5

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    45/62

    2006 IBM Corporation79

    %ni3 is inherent in z/OS

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    46/62

    2006 IBM Corporation7

    z/OS %&I' interactive interfaces L!'e TSO an& "S#$* the z/OS %N") shell an& ut!l!t!es

    pro!&e an !ntera(t!e !nterfa(e to z/OS+

    %se the %N") shell to:

    Invo7e shell scripts and utilities

    =rite shell scripts a list of shell co,,ands created .ith the

    shell prora,,in lanuae5

    8un shell scripts and C lanuae prora,s interactivel+@

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    47/62

    2006 IBM Corporation7-

    Invo7in the %&I' shell

    You (an !no'e the %N") shell !n an8 of

    these 3a8s:

    $ro, a 2K0 displa+ or a .or7station runnin a

    2K0 e,ulator

    $ro, a C#/I#attached ter,inal" usin the rloin

    and telnet co,,ands

    $ro, SO (+ enterin the OMES co,,and or

    the IS-!>> co,,and@

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    48/62

    2006 IBM Corporation7

    %&I' Shell

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    49/62

    2006 IBM Corporation7J

    %ni3 Interfaces on SO

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    50/62

    2006 IBM Corporation9.

    OMES Shell

    Enter any

    3ni command

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    51/62

    2006 IBM Corporation9F

  • 7/21/2019 Chapter04 Tso Ispf Unix

    52/62

    2006 IBM Corporation92

    SO co,,ands used .ith z/OS %&I'

    IS-!>> his co,,and invo7es the IS#$ shell@

    Intended for users ,ore fa,iliar .ith SO/IS#$ than %&I'

    #rovides panels for .or7in .ith %&I' files" ,ountin and un,ountin files+ste,s" and z/OS %&I' ad,inistration@

    z/OS prora,,ers can do ,uch of their .or7 under IS-!>>@

    OMES his co,,and invo7es the z/OS %&I' shell@

    Intended for users ,ore fa,iliar .ith %&I' than SO/IS#$

    1llo.s the user to alternate (et.een the shell and SO %&I' prora,,ers should find the z/OS %&I' shell prora,,in

    environ,ent fa,iliar@

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    53/62

    2006 IBM Corporation9,

    IS-!>> co,,and ish5

    A goo& start!ng po!nt for TSO/"S#$ users 3ho 3ant to use

    z/OS %N")+

    %n&er "S0ELL* 8ou (an use action codesto:

    b Bro.se a file or director+ e !dit a file or director+

    &

  • 7/21/2019 Chapter04 Tso Ispf Unix

    54/62

    2006 IBM Corporation97

    IS-ell,ain panel

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    55/62

    2006 IBM Corporation99

    #ull

  • 7/21/2019 Chapter04 Tso Ispf Unix

    56/62

    2006 IBM Corporation9

    OMES co,,and shell session su,,ar+

    You use the O1S (omman& to !no'e the z/OS %N") shell+

    %n&er the %N") shell* users (an:

    Invo7e shell co,,ands or utilities that reLuest services fro,the s+ste,@

    =rite shell scripts usin the shell prora,,in lanuae@

    8un shell scripts and Clanuae prora,s interactivel+ in the

    foreround5" in the (ac7round" or in (atch@

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    57/62

    2006 IBM Corporation9-

    %ni3 $ile S+ste,s on zOS

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    58/62

    2006 IBM Corporation9

    Structure of -ierarchical $ile S+ste,

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    59/62

    2006 IBM Corporation9J

    MES

  • 7/21/2019 Chapter04 Tso Ispf Unix

    60/62

    2006 IBM Corporation.

    %ni3 #rocess

    Chapter 04 SO" IS#$" %SS

  • 7/21/2019 Chapter04 Tso Ispf Unix

    61/62

    2006 IBM CorporationF

  • 7/21/2019 Chapter04 Tso Ispf Unix

    62/62

    Su,,ar+ TSO allo3s users to logon to z/OS an& use a l!m!te& set of bas!(

    (omman&s !n native ,ode@ "S#$ !s a menu