Home
SELCOPYi Training Manual
Contents
1. 81 Resiricihgithe CHANGE TO Specie TII S toi 82 CHANGEIng Numero Data Ty pe ie as eem 83 Filtering records Using ALL WHEREVMORE LESS CDOFDITIaRUs accuse orn va vein tere pntat certus and ences 84 Usma Multiple Selection CIEL IB ica as ascii ri otro EO Or Maia Oe EU PAS exe A napa 85 Increasing the Size or the Command InBUGATGS us cusa a iodo 86 Usiriga FILTER tO Select Records On EOBE acre protein eA SEENE AA teenies e eee 87 Specitying Simple FIL TER SeleciOi llo eios ias tame te ette eeri aes niinn lose aaa 88 Activating Deacivatiig a EIEPE sss o cesset italia Li eespa as 89 VY Ong wit Multiple Recd MyPan esas cs Sassari lso llenen EA tuU UR etnia uuo Eruca Ea AAE 90 Automatic Record Type Association for Direct Copybook Overlay nennen 91 Record Identification Criteria for Direct Copybook Overlay ecaiee cte corem en tn nte etra tdeo etr tenentes 92 Locating NEXT PREV record Dy Record Type p sarrollo illinois 93 Selecting Visible Record Ty BS pens cease apere eorr esa para a sois akain aspi MAD 94 Creating a Structurea Data Object SDO Le iieri p ie i E AA fusce uas Le G EEE ERE 95 SipecilyIndgGopyboOILIDESfIeS 1 52 i riebet etu a liada 96 SPECHVINGHRECONG SIS Sd Detalls RE OE TE 97 peciiving Record Type Identification CMTC eee s iiec coisa ese eben asc DO cle UAR MARNE tees ake 98 SpecilyinguAdditibtial Record DOS sados pnl edilicias hes ttis eate cosa 99 STS cu Oo acess ERE 100 Browse Ed
2. al al al E 2 E E 2 2 2 E 2 E Figure 59 SELCOPYi SDE LOCATE field 2015 01 19 11 28 28 Training Manual 65 Option 2 Data Edit SDE Locating a Record Locating a Record Use the LOCATE nnn command to scroll to a specific record number nnn e Alternatively you may use nnn e g the following commands are functionally equivalent L 1001 1001 The result of issuing either of these commands from a VFMT display is shown below e The LOCATE command may also be used to scroll a VSAM ESDS to the record at a specific RBA scroll a VSAM KSDS to the record at a specific key partial key or RBA Type Help Locate for full information USER123 SELCTRN ZZST1DAT using USER123 SELCTRN SAM1CZZST1C m File Edit Actions Options Utilities Window SwapList Help wS wR Command Scroll Csr Record type TRACK Fixed 407 Offset 0 Data elements 18 PERSISTENT ID TRACK NUM TRACK ID NAME 2 3 4 H5 AN 1 16 ZD 17 3 zD 20 4 AN 24 120 t 4 5 lt gt t 4 t B 4 Bd 080001001 4D17E66D893AE49E 1969 Vagabond of the Western World OBO00100e2 D48DS5O001F94E2ESFO Black Boys on the Corner 080001003 SenacsecaenacFEDFE Randolph s Tango 080001004 IOSSIBSOABEOF362 Broken Dreams B0001005 SABF1BD714A9CEASG Little Girl In Bloom 0001006 CciscossoES7O0O0067B SO Ways to Say Goodbye 43EED604567C11B25 Drops of Jupiter AD2159C78BD2DB08 Hey Soul Sister DOCAEGE
3. E Scroll Csr 225GHNL1 Lines 1 26 of 26 Type OPTIONS for translation and other options Start Record Start at Top of File Start at focus record Start at supplied user label zFIRST 96606867 66660805 96666669 99890816 96660811 96660012 66660815 PELE d 66660815 66666016 90600817 96660815 99690819 96660626 96600621 TEST1 SELCTRN_ ARTIST_IO End Record Z End at End of File End at supplied user label ZLRST Maximum output records Scroll Csr 15 SMINT 5 86600806 t Top of D 66660061 48 66666662 10009003 6 no Limit 48 Sende Output XML Text File PDS E member Sequential USAN dataset or HFS path Osn Path gt TESTi SELCOPYI XHL Member PILL Volume If dataset is uncataloged i98 Duf 208 DI 216 Emb _ Append to existing Output HFS Output Options Table EOL Characters gt NL NL CR LF CRLF 66660622 66660623 10000024 66660625 69066626 66600627 00099025 66660629 66600636 66666831 226 Flo Gre Gun Jen Jes 276 Joh 258 Joh 296 Jou 366 Jud 316 Kos 90009990 66600661 69600662 66666663 00000004 90000005 66600666 66600867 66600865 66600869 66600616 66600611 66666612 90900613 F6 0PTIONS Alt 6 6 8 _ FS CHx Line 6 Figure 167 SELCOPYi DB2 Figure 21 2015 01 19 11 28 28 52 EXPAND TES P C k Top of Data ek DIEFS3B1i4DSAd796 82ERCES32929B55F C63R3B24DB37595D B26EEC331 74DCC60 S276C65D2939EE3B 74E5395057479A399 DE
4. Option 12 DB2 The RE line command To explore the Artist Alanis Morrisette enter RE in the prefix area File Edit Actions Options Utilities Window SuapList Help lo un Aj Edit table TESTI SELCTRN_ARTIST in tablespace TEST1I S5ELCTRNR Top of 73 Table TESTi SELCTRN RRTIST ID E SMINT lt gt NAHE 2 VARCHAR 78 4 7 1 7 4 2 4 3 4 4 5 4 5 i 90000000 Hk Top of Data ek 18 Adele lt 96660661 90000002 10000003 RE aaBaaaos 00009905 8888800 aaaaeaa5 89666009 90060018 88888011 88888012 888880135 88888014 88888015 88888616 88888017 88888018 88888013 88888028 88888821 88088822 00009923 66660024 66660025 88888826 88888827 88888028 88888029 88888030 88688851 _ FS RFIND Line 6 26 36 56 66 76 58 36 166 116 126 136 146 156 196 266 216 226 Alabama Shakes lt Alabama 3 lt Alanis Morissettec Alex Harvey lt RC DCX Bob Dylanc Bruce Springsteenc Bruce Springsteen amp The Sessions Band lt Burt Bacharach amp Elvis Costello lt Christ ina Rguilerac Christina Aguilera amp Dave Navarro lt Coldp lay lt Crash Test Dunmies lt Damien Rice lt Duffy amp DJ Fresh lt Enbrace lt Florence The Machine lt Fe RCHRNGE si InsLine X s2 DelLine i SS 200nW Alt 6 6 6 5ize 735 Recl1 54 es els 2614 69 18 15 35 19 Figure 159 SELCOPYi DB2 Figure 13 2015 01 19 11 28 28 Training Manual The
5. Required dataset USER12 SELCTRN Z TA1DAT FCOPY1 does Choose the di set organisat Library Partitioned Non SAM Sequential Organisation gt Figure 103 SELCOPYi Choose new Output file Access Method 2015 01 19 11 28 28 Training Manual 110 Option 5 File Copy Reformat FCOPY Allocate New Output File Allocate New Output File e The allocation dialog will be displayed next allowing you to enter various details for your new file Initial values will be primed using the input file as a model provided it is of a compatible type You may overtype any of the values displayed in green and or enter an alternative model dataset then press ENTER to call up its details e Select the Allocate button to create the file note that pressing ENTER will place the cursor on the Allocate button A message box will appear confirming the new file has been created Press F3 to continue with the copy process For large file copies a progress window will be displayed indicating how many records have so far been read selected etc You may use the 3270 Attention key to interrupt the copy process But remember to first unlock the keyboard by pressing the 3270 Reset key Please consult your 3270 emulator s keyboard settings help if you re unsure of which physical keys are mapped to these 3270 functions A summary message detailing the number of records copied etc will be displayed once the copy process has completed SEL
6. 2015 01 19 11 02 44 Training Manual Contents DOCUMENTATION NOTES e HTA 1 summary of Changes unii iacu ntu ue uud es enu era ead cites i noa UE I mee 2 First Edition 20H 2 eicesnpHsepenrisispece o res cere rere M RERUM 2 Tin GTO MOT SOL er eem 2 Fourth Edinon 2019 10 09 rrr a EEE ENE A Nr can s 3 A A um Ru Tt crm 3 Sith Editon 2015 0 171 Di ad oi andy E a its da 3 Setup Treming Material iioi cu ilii iri O ee 4 Windowed Display si oreet tnn tron seran sS EAE AAAA ENAREN REEKS SER RR KR SER anexs needa 5 Opening Multiple Display WNUOW ca dni ninia EE 6 Men Panel WNOAOWSE aokii n 7 FlepaEih EP VWIUOSWS a iot or Ep cert T E E eter tere tque tre mer n GNU tree DM SU NIS NEL d rer 8 SWiiching facus between Opel WINDOWS secreci n e cotta sea PH Cra Kee radeon QuSK a a 9 Windowblst WE GONG Se creates een se Faire inen eire i a arate cid uictus E tu tup etse esten eti lovem ac ke DOM ce umb dus 10 MA EE 11 Moving esci 12 Dragalig VWIBOOWS soto beati R dra altas tede ore MR RI UR RID capui ian Ama RD MI MERDA MILI Iud I ted ecur 13 Resizing Window a contacts ence EE 14 at elle cir 15 Dr gomg VWIROOWJBOLOIS ccu tatkr ia ratita ces TRENRSOF ii da E ARS ptu E ENTUM DIM EVNQ LUE 16 Maximise MIIM TI SR s c a ttd re tio po sete caused eese rebos pu A Ubi D Lax Oen Re SPUR er
7. 8g 4 4 4 B5 4 B 4 T 000001 TEST1 SELCOPYI TEMNA xxx L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 RT 001 000008 ARTIST 070 000009 001 000010 070 000011 001 000012 BERSISTEBTZIU 016 000013 TRACK NUM 9r 003 000014 TRACK ID 9 004 000015 NAME 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox SIRIA ae e a A ITE Figure 33 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 38 Option 1 Text Edit Overlaying a Box Block 1 Overlaying a Box Block 1 Place your at column 33 of the first copied line then press the MrkBox key Shift F5 e Place your at column 35 of the last copied line then press the Shift F5 e The b
8. COLW 7 20 COLW 6 18 SELCTRN SAM1 CZZST1C wS wR SELCOPY i USER123 SELCTRN ZZSTiDAT using USER123 File Edit Actions Options Utilities Window SwapList Help Command Record type TRACK Fixed 407 Offset 0 Data elements 18 TRACK NUM NAME ARTIST H3 H5 7 6 AN 24 120 AN 144 70 a A a G 1 5 Rolling In the Deep Adele Rumour Has It Adele Turning Tables Adele Don t You Remember Adele Set Fire to the Rain Adele He Won t Go Adele Take It ALL Adele I ll Be Waiting Adele One and Only Adele Lovesong Someone Like You I Found a Boy Bonus Adele 81 A Track B Hold On I Found You Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Boys amp H38 Girls Be Mine T Ain e aan Same Size Scroll Csr 000000000 2000300400 a a a a a a a a a e ro foro FO fO TO FO FO TO FO FO TO FO B BHHHHHHHHBHH Gao tro e Gu o momu h 00 00 0 00 00 0 0 00 0 0 Tew eww bw ew eww be en oe I IG G 9 C9 C9 C CS FUNN RRR RE p Qo Qo Qo Qo Qo Qo Qo o Co Uitititititititiririr 1 3 09 Q3 CO 9 CO C0 C0 OO 4 Figure 65 SELCOPYi SDE VFMT After p F11 the TERRY will be updated as follows SELELCTRHSZ wS wR USER123 SELCTRN AAA SAmi Z2ZST1C LAT AIT Actions Options Utilities Window Command gt Record type TRACK TRACK NUM using USER1i23 SwuapList Help Scroll Csr Fixed 407 Offset 0 Data elements 18 NAME PERSISTENT ID TRACK ID TOTAL TIME S He
9. Ime 18 H records Filter Q Select records to copy F File Q Quick PF6 Edit Filter File gt Member gt Options _ Reformat using structurezcopubook layouts _ Recurse HFS Sub directories Append to existing Output Ignore HFS fileid case Figure 110 SELCOPYi Record Selection Intro 2015 01 19 11 28 28 Training Manual 117 Option 5 File Copy Reformat FCOPY Browse Input File Browse Input File n order to assist with record selection its very helpful to peek at the file you wish to select from e From the File Copy panel press F19 Shift F7 to browse the input file We will initially select to copy records 16 to 20 SELCOPY i Browse SERTA SELCTRN 2257 2DAT 6 Ys m File Edit Actions IRTE Utilities Window ETE ist Help wS wR Ex Command gt Scroll gt Csr Press PF4 for Utilities menu including point shoot options Record type UnMapped Variable 0 268 Offset 0 Data elements 1 Length UnMapped Se ee cicer goa cce pes Cosi Sr Se et leen teen eS pS SIS gagaadgao1t fi iAdele gaooaagao2 17221 Bgaaogaaogaags 268 30CB12DD714D51828C004A208CRolling In the Deep B0000004 265 326458A25533D15404006205ERumour Has It 00000005 268 39815923C6D2E683000C208GTurning Tables 000000065 268 37D003FF7T52074C1800D208IDon t You Remember alla lalalala 268 3AED7Y39D857T4AA4C5ODE209ASet Fire to the Rain gaagoaaas 268 S3ETSSBCE1CF5CDERATYOOF2809CHe Won t Go gagaagaagas 268 S36798C2RnBORFB2571080G209ETake It ALL 80000010 268 3962B
10. 000016 SRMPLE RRTE B PACKED DECIMAL 000017 YERR 000018 NORMALIZATION C PACKED DECIMAL 000019 DISC NUMBER B 000020 000021 000022 07 RELEASE YYYY 004 000023 Gf PILEER 001 000024 OQ RELERSE MM 002 si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO 12 Reset Box Line 0 Col 1 Alt 0 051 pr Recl 80 Figure 24 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 29 Option 1 Text Edit Copying a Line Block 1 Copying a Line Block 1 Place your cursor anywhere on line 2 then press the MrkLine key Shift F6 e Line 2 will be highlighted e Place your cursor anywhere on line 12 then press Shift F6 e The block of lines from 2 to 12 will be highlighted SELEDPTZiI TESTISSELETBHZSHMIUZZSTZEPE 90 F PDSE Size J Alt 0 0 1 File Edit Actions Options Utilities Window SwapList Help Command gt Scrolls Cer 1 2 3 4 4 5 7f 000000 x x x Top of 000001 1 line s not displayed 000002 05 R PIC 000003 05 ARTIST PIC Al E 000004 1 line s not displayed 000005 05 R PIC 000006 905 PIC gt 000007 1 line s not displaye 000008 05 R PIC X 00 000009 05 PE EN PIC 000010 T Up PIC 000011 TRACK ID PIC 000012 NAME PIC amp uere 000013 05 TOTRL TIME PI 9 007 BINARY 000014 FILESSIZE ZEN 9 009 BINARY 000015 JS BIT RATE ZN 9 004 BINARY 000016 SAMPLE RATE 28 9 005 PACKED DECI
11. 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Line 1 Alt 12 12 8 51 tec l 32 732 Figure 40 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 45 Option 1 Text Edit Adjusting Sequence Numbers 3 Adjusting Sequence Numbers 3 You can use the UNDO REDO keys to verify the increment has occurred for each value BREEEUOPTII TESTTISEEEUPTI EHR Jj td V Se Size 141 HEES3 3239 m File Edit Actions Options Utilities Window SwapList Help w5 wi x Command Scroll gt Csr Zy SEDE ES affected g nde 000001 SELCOPVI CMX 901 2014 07 30 14 39 49 FESTA 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 RT 000008 ARTIST 000009 000010 000011 000012 PERSESTENT LD 000013 TRACK NUM 000014 TRACK ID 000015 NAME 2C 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly fr
12. 070 000007 1 line s not displayed 000008 PTE 001 000009 PERSISTENT ID PIE 015 000010 2 line s not displayed 000012 PIC 120 000013 Te not displayed 000020 RLBUM RRTIST PIC 041 000021 1 line s not CE 000022 RELEASE YYYY FIC 000023 FILLER PIC 000024 RELERSE MM PIC 000025 FILLER PIC 000026 RELERSE DD PIC 000027 FILLER PIC 000028 RELEASE HH PIC 000029 FILLER PLE 000030 RELEASE MN ETE 000031 FILLER PIC g si InsLine s2 DelLine s3 DupLine s4 ACTION sgz MrkBox s6 MrkLine sf SPLT JOIN S8 BoxFuncs 5S LOS UNDO CASA 12 Reset Box Line 0 3 Si Recl 80 Fmt F j Figure 19 SELCOPYi Text Edit Panel Window 2015 01 19 11 28 28 Training Manual 22 Option 1 Text Edit Displaying HEX Data Displaying HEX Data e Just like in the standard ISPF Editor you may type the primary command HEX ON OFF to display the hexadecimal representation of each text line n addition the SELCOPYi text editor supports the HEX line command which opens a separate dump style storage display for the focus line If you are operating in windowed display mode you ll notice this display appears in a separate window Multiple dump windows may be opened for several different lines e Enter the HEX line command on line 6 e Now modify the data at offset X 28 from X D7 c P to X FF and press ENTER You should see the screen shot below SELCOPY i Hex Edit TEST1 SELCTRN SRaM1 ZZST2CPC m File Edit Actions Options Utilities Window SwapList
13. 66660063 90900004 10090905 90090005 1000007 10090005 90990999 66660616 60600611 96666612 66666615 F6 RCHANGE si InsLine Col Alt 6 6 6 z All I Really Vant lt You Oughta Know Perfect lt Hand In My Pocket lt Right Through You lt Forgivent You Learns Head Over Feet lt Mary Jane lt Ironic amp Not the Doctor lt Vake Up amp 13 You Oughta Know s2 De LL ine s3 D pLine s4 0 FS RF IND cm Fmt u tions sS5 2oonW 16 UNDO Line 6 5 3 Views 3 2014 89 15 Figure 162 SELCOPYi DB2 Figure 16 2015 01 19 11 28 28 Training Manual Scroll Csr ID OBID COLCOUNT EDPROC UR 473 5 3 473 2 473 16 s11 REDO 171 Option 12 DB2 Generating CSV or XML from selected table rows columns Generating CSV or XML from selected table rows columns Typically used for export to other platforms Comma Separated Variable CSV and Extended Markup Language XML documents may be generated from the currently viewed DB2 table data To select the data columns required 1 Press the Options key Shift F4 to display the DB2 options popup 2 Select Option 1 to Select Exclude visible field names Alternatively just type the SELECT SEL primary command with no parameters to display the field selection dialog File Edit Actions Options Utilities Window SuapList Help lo un Scholl Csr Top of 3 Scroll Csr Table TESTi SELCTRN RRTIST SDEUTILD SELCOPY i DB2 Browse Edit Utilities menu Select option b
14. 7 000001 xx TEST1 SELCOPYI CMA ox L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 ABCDEF x 001 000008 RBCDEF 070 000009 ABCDEF 001 000010 ABCDEF aLOTG 000011 ABCDEF x 001 CHG gt ABCDEF x 016 CHG gt ABCDEF 9 003 CHG gt ABCDEF 9 004 000015 ABCDEF x 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 24 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 Reset Box Line 1 Enrz11 Alt 6 6 10 E Recl 32752 SELCOPYi Figure 46 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 51 Option 1 Text Edit String Coloring String Coloring Syntax coloring similar to that supported by the standard ISPF Editor is available within the SELCOPYi Text Editor and is controlled by the HILITE primary command Type HE
15. Bon o o o Qo Co Co o co Training Manual ARTIST 6 Sermon AN 144 70 41 gt Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes Bob Dylan Bruce Bruce Bruce Bruce Bruce Bruce Bruce Bruce Bruce Bruce Springsteen Springsteen Springsteen Springsteen Springsteen Springsteen Springsteen Springsteen Springsteen Sprin steen 81 Option 2 Data Edit SDE Restricting the CHANGE to Specific Fields Restricting the CHANGE to Specific Fields Just like FIND EXCLUDE and ONLY the CHANGE command may be restricted to one or more specific fields e g C ALL 21 Twenty One NAME E USER123 SELCTRN ZZST1iDAT using USER123 SELCTRN SAM1I CZZST1C ections Options Uti lit ies Window SwapList Help wS wR ei An Eos One Name Scroll Csr 0000 op of Data ord ty ACK Fixed 407 Offset 0 ati elements 18 UM NAME ALBU ARTIST S 6 AN 24 120 AN 144 70 o nnn A gt SAS DSL Cas a Rolling In the Deep Adele Rumour Has It Adele Turning Tables Adele Don t You Remember Adele Set Fire to the Rain Adele He Won t Go Adele Take It ALL Adele I ll Be Waiting Adele One and Only Adele Lovesong Adele Someone Like You Adele I Found a Bo Bonus Adele Adele MERA gt Adele Hold On Alabama I Found You Alabama Hang Loose Alabama Rise t
16. Catalog Span Speed Avg rec len Writecheck gt Max rec len Erase Buffer size Owner gt Expiry gt Data Class gt Region share option gt 1 Stor Class gt Sustem share option gt 3 Mgmt Class gt EME name USER123 SELCTRN Z2Z2ST2DAT ESDS1 DATA Volumes Space type TRACKS Primary gt 1 Secondary gt CI Size gt 4096 Figure 114 SELCOPYi Define ESDS 2015 01 19 11 28 28 Training Manual 121 Option 5 File Copy Reformat FCOPY Copy Summary Message Copy Summary Message e Press F3 to return to the File Copy dialog Press ENTER to continue with the copy process For large file copies a progress window will be displayed indicating how many records have so far been read selected etc You may use the 3270 Attention key to interrupt the copy process But remember to first unlock the keyboard by pressing the 3270 Reset key Please consult your 3270 emulator s keyboard settings help if you re unsure of which physical keys are mapped to these 3270 functions A summary message detailing the number of records copied etc will be displayed once the copy process has completed SELCOPYZI File Copy m File Help JCL Command wS wR M Command gt edere bil es TEES ZZSD4851 FCOPY Summary COPY 5 record s selected of 20 read from 1 file s 80 Remap Errors 8 1 0 Errors DSN Path Mask USER123 SELCTRN ZZST2DRT Member Mask All mask matches will be copied Volume Mask gt press PFS to
17. Databases Table spaces Tables Views Rliases Indexes Synonyms Types Unique constraints Parent tables Database object id Encoding scheme Edit procedure name Label Remarks Referential constraints Check constraints Child tables 473 Table object id EBCDIC Table access audit Validation procedure name Created by Create time stamp TESTL 2614 69 16 15 25 03 759226 Command Use F4 VINDOU 2252PRIN Use command Sett in Statistics for table TESTi1 SELCTRN RLBUH RUNSTRTS time stamp 6001 61 61 00 00 00 000090 Create Number of rows i Drop DASD kilobytes 1 List Audit Ob ject Traini Pages used Length or Precision 00 300NAaUNr o Columns of table TESTi SELCTRN RLBUH SMALL INT aerrst m smaiimr 2 of 176 Col 1 of 73 File TEST11 D2614261 11529575 HTHL IBINFO FS TEXT F6 SOURCE Alt 1676 1676 6 F7 UP 3 ize 1876 _ F3 BACK 2014 09 15 2015 01 19 11 28 28 Training Manual 159 Option 12 DB2 DB2 Table Information 3 DB2 Table Information 3 e Place your cursor on the link for Referential constraints then presss ENTER e We can see that SELCTRN ALBUM has both a parent table SELCTRN ARTIST and a child table SELCTRN TRACK and that the Delete Rule is Restrict in both cases e Press F3 to exit the Table Information window and return to the Table List File Edit Actions Options Utilities Vindow SuapList Help lo Um
18. Edit related table TEST1 SELCTRN_ALBUN in tablespace TEST1 SELCI6A5 Command m Scroll Csr 22502121 6 out of 6 occurrences were changed in 6 out of 6 records of type SELCTRN_ALBUN RRTIST ID ID NAHE 3 mue SHINT SHINT URRCHRR 88 Mie ideis ictu Ecoute mn 90000000 Hik Top of Data Week CHG gt i888 Gossip In the Grains CHG gt 456 _ 1696 Jolene Live from Union Chapel Single lt Scroll Csr 450 1188 Raycharles LamMontagne lt 450 118 Till the Sun Turns Black lt 450 128 Trouble lt 486 136 Trouble Live Session Live at The Chapel London EP lt 60000007 End of Data er 686 Turin Brakes lt 696 U2 798 U2 amp B B King lt PE DBNANE TSNRHE DBID OBID COLCOUNT EDPROC VA 710 Vhitesnake lt TESTi SELCiI6AS 473 5 a 728 Vhitney Houston lt TESTi SELCTRNR 473 3 2 730 2Pac amp Dr Dre lt TESTi SELCICNU 473 14 16 k End of Data ek FG RCHRNGE si InsLine s2 DelLine s3 DupLine sd Options sS 200mW 16 UNDO s11 REDO 2014 89 15 15 46 37 Figure 179 SELCOPYi DB2 Figure 33 2015 01 19 11 28 28 Training Manual 188 Option 12 DB2 REDIT Example 3 We can now delete ARTIST IDz490 save and exit without error File Edit Actions Options Utilities Vindow SwapList Help WS WR IB2 CBLAJ Edit table TEST1 SELCTRN_ARTIST in tablespace TEST1 SELCTRNR Conmand 22503461 SAVE inserts 6 deletes 6 updates 6 SQL errors 6 for DB2 object TEST1 SELCTRN_ALBUN 22503471 Commit changes issued m w S
19. OR then enter Live in the Value input field File Edit Actions Options Utilities Vindow SwapList Help WS WR IB2LCBLAJ Edit Object File SwapList Vindow Help File Run Command Help Conmand gt Conmand gt Scroll Csr 1 39 of 39 d ect table rows by colum value Al Command Scroll Csr ZZ52DRSD opt ional E Row selection criteria for table TEST1 SELCTRN_TRACK DB2 row selector Con Colum name Data Op Value type ALBUN_ID SMINT TRACK Nun SMINT NRHE uc 126 NRHE vc 128 TRACK ID SMINT PERSISTENT_ID CH 16 TOTAL TIME INTEGER FILE SI2E BIGINT BITRATE INTEGER SRMPLE RATE DEC 5 8 YERR SMINT NORMALIZATION DEC S 8 DISC NUMBER SHINT RLBUM RRTIST Uc 88 RELEASE DRTE TIMESTHP A lt omn o 5 m o b o m z o DIDI JAE 100 JN NA YN 2D i D z O lt Value type option D z iz D z iml Any case Ignore case Respect case Use Fa D z iO 2D iO 2D zm iz Use D z DD zz olio D o EN DILE EISE eexn lllllllllllllli Z Use DB2 Default Isolation level Uncommitted Read least restrict ive Cursor Stability Read Stability Repeatable Read most restrict ive Initial Display Format Miscellaneous Options Z Table Single Create Audit File Do not protect Prime Key Profile Macro Z Use Default Use Specified Macro Hacro Name SDEPROF Do not use a Profile Macro Alt 0 038
20. Preserve data Use SET FILEID before SAVE Browse Records Records are loaded dropped when scrolled HFS Opt ions Z Undefined HFS records terminated by End Of Line characters _ Fixed HFS records are of Fixed Length Record Length gt 8 G gt default Undefined 32752 Fixed 50 EOL Characters 510 EOL user string 2 byte char hex Profile Macro Use Default Use Specified Macro Do not use a Profile Macro o Scroll Csr 4 1 4 2 4 3 i 4 i 5 61 TRACK PERSISTENT ID PIC X 816 TRACK NUN PIC 9 003 TRACK ID PIC 9 004 NRHE PIC X 128 RRTIST PIC X 078 ALBUM PIC X 078 TOTAL TINE PIC 3 887 BI FILE SIZE PIC 9 669 BI BIT RATE PIC 9 064 BI SANPLE RATE PIC 9 665 PA YEAR PIC 93 064 NORMAL IZATION PIC 59 665 PA 888814 DISC NUMBER PIC 9 003 FS V inas F6 VinRes F7 Drag U F Drag D Fi8 Drag L Fii Drag R s3 Vidth 26 sd Vidtht26 sS Depth 26 s6 Depth 28 s7 Drag Ux5 s Drag Dx5 si8 Drag Lus5 si1 Drag R 5 Line 1 Alt 6 6 6 EI Fmt F Files 2 2 2614 69 64 16 3 Figure 13 SELCOPYi Focus Window Also with the cursor in either the window borders or title bar Press function key Shift F3 to decrease the width by 20 Press function key Shift F4 to increase the width by 20 Press function key Shift F5 to decrease the depth by 20 e Press function key Shift F6 to increase the depth by 20 e Press function key Shift F1 to save the location Press function key S
21. RE line command Scroll Csr Scroll Csr 1 12 of 12 8 B Text Help Scroll Csr PE DBNANE TSNAME DBID OBID COLCOUNT EDPROC UR TESTI SELCi6RS 473 5 3 TESTI SELCTRNR 473 3 2 TESTi SELCiCNU 473 14 16 516 UNDO 11 REDO 168 Option 12 DB2 The Related Tables List The Related Tables List A separate window will appear listing the all related tables The ARTIST table has only one dependent child the ALBUM table e Enter RE in the list entry prefix area or just select it with the mouse File Edit Actions Options Utilities Window SuapList Help 45 un AJ Edit table TEST1 SELCT IB21CBLAJ List Related Tables Command 2252LREL Table TEST1 5ELCTRN_ARTIST List tables related to ID NAME me Owner TESTI SHINT URRCHRR 8 Name SELCTRN ARTIST A dl nt 90000000 Hk Top of Data ek Related Tables 1 Row 96960801 16 Adele lt Sel Related Related Table Relationship Relationship Foreign Delete Enforced 66986662 26 Alabama Shakes lt Table Name Name Type Key Rule by DB2 160000003 38 Alabama 3 lt Owner Co lums Baaaaaad 48 Alanis Morissette lt 96900005 58 Alex Harvey lt IL UTER Sates a OSS Sse ELM SS 10090905 568 RC DC Ak Top of Data tk 1600009007 76 Bob Dylanc re TESTI SELCTRN_ALBUN RLBUHR1 DEPENDENT 1 Restrict Yes 96980805 66 Bruce Springsteen lt ek End of Data ek 66660009 96 Bruce Springsteen 66686616 166 Burt Bacharach amp E 88886011 118 Christina Rguilera 6000001 2 126 Christina Aguilera 00090
22. Scroll Yes or No 000007398 00000799 000000 999 Gossip In the Grain Gossip In the of Data 50000 00000801 gooooosaos 00000803 CHG gt OOO01071 E T i i od i d ai ai a EmtzF Figure 82 SELCOPYi SDE Command Line Options SELCOPY i IEA AE ZS T using USER SELCTRN SAM1 ZZST1iCR File Edit Actions Opt E x SwapList He Ex Command all bit rate Scroll Csr gt amp 10 gt 10 gt D Record tupe i 7 Offset 0 Data elements i8 BIT RATE SAMPLE R TRACK NUM NAME ALBUM 10 H5 7 ee AN 24 120 AN 214 70 AS AO O O OSO O ASS CHG gt 232 Adele Twenty One A 21 CHG gt ooo Murder Incorporated The Greatest CHG gt E Dog Days Are Over Lungs 0005396 2993 Good Times Bad Times Led Zeppelin T 0000598 ANTE You Shook Me Led Zeppelin it 800602 cor Kashmir Led Zeppelin Remas CHG gt 244 Old Man Live At Massey Hal CHG gt 244 Ohio Live At Massey Hal CHG gt 249 Barton Hollow Barton Hollow Del CHG gt 240 Poison amp Wine Barton Hollow Del c c e a s ao UD uU uu gogo ou Du uuGoodctu iu uuum u HG 243 Behind the Scenes L Barton Hollow Del HG gt 231 Making of Poison amp W Barton Hollow Del HG gt 244 Track Bg Track Barton Hollow Del 01009 215 When I Look To The S My Private Nation 01071 End of Data o a 8 t a 8 a rep ES AL 7 Ur Siz a7 C Recl 407 Fmt F Figure 83 SELCOPYi SDE ALL 3 2015 01 19 11 28 28 Training Manual 86 Option 2 Data Edit SDE Using a FILTER t
23. This dataset name should already be in place same as previous sample Type ZZST2CPC in the Member field for COBOL installations Type ZZST2CPP in the Member field for PL1 installations Check the Type option for Cobol or PL1 as appropriate for your installation Press ENTER to edit the sample dataset Unlike some other products SELCOPYi is able to display files with multiple record types in Formatted Multi Record VFMT Display Mode with all record types simultaneously visible a set of record type column headings being displayed for each new group of one or more consecutive records of the same type You will notice that SELCOPYi has attempted to automatically assign record types by matching between the individual record length to the length defined by the copybook for each record type Where this process is unable to uniquely identify a record types the first matching record type is assigned The initial view of the sample dataset shows that ARTIST record 1 has been assigned the correct record type unique match on fixed record length 268 ALBUM record 2 has automatically been assigned the incorrect record type ARTIST first match on fixed record length 71 TRACK record 3 has been assigned the correct record type first match on fixed record length 71 SELCORY Command gt aagaoaagg Record type 00000001 d0000002 Record tupe 00000003 00000004 88008005 H8G00006 H8000007 88000008 B
24. To de select members place cursor on each lib name and press ENTER 1 Row Sel File Name Member Volume Org YSAM GDG RecFm Lrecl Mask Sosa Soe Soe aia 2a Sa A oa Sat 0 E gt Qro IUE XXX Top of Data xx 000000 Ss USER123 SELCTRN ZZST5DRT TRACKO2 PO N IB 407 gaaadgao1t XXX End of Data X 000002 Figure 106 SELCOPYi Select Input Library 2015 01 19 11 28 28 Training Manual 113 Option 5 File Copy Reformat FCOPY Select input Members Select input Members Individual members may be selected deselected for copy from this screen e Inititially ALL members are selected but you may press F5 F6 to toggle back and forth between all files being selected or deselected e Further selection deselection may be made by manually overtyping the Se column for each individual entry e The sample screen shot below shows members TRACK020 and TRACKO023 only selected for copy SELCOPY i Select Members m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt SCROLL CSF Z25GFSU2 Select members to be included in the operation PF6 Select Deselect ALL Member Mask gt TRACKO2 Select Members to process 4 Rows Sel Member Alias Created LastMod Cursize Inisize TTR Us gt SAPOS CS ODA SO PSSS IG pis A pre SIS ROA Ta XXX Top of Data Xxxx 000000 S TRACKO20 N gagagrs 000001 TRACKO21 N gaogare 000002 Xx TRACKO22 N OBOO0F7 000003 S TRACKO23 N gagogaora 000004 xXx End of Data xX 880005 Figure 107 SE
25. What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Col 1 HUESO Size 141 ecl 32752 FmtzV Ice SA E ep ey 9 o a Figure 31 SELCOPYi Min Max Close Buttons 2015 01 19 11 28 28 Training Manual 36 Option 1 Text Edit Moving a Box Block 1 Moving a Box Block 1 e Place your cursor at column 11 of the first copied line then press the MrkBox key Shift F5 e The first box corner will be hilighted Place your cursor at column 12 of the last copied line then press the Shift F5 e The box block containing COBOL level number will be hilighted SELCOPY i TEST1 SELCOPYI CMX j z m File Edit Actions Options Utilities Window SwapList Help w5 wh Command gt Scroll gt Cer 4 1 4 2 4 3 4 4 4 5 4 B5 4 7 000001 xx TEST1 SELCOPYI CM ok L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 your HOME file or personal Command Centre 000006 000007 OS X 001 000008 C 070 000009 5 001 000010 35 070
26. Woke Up This Morning U Don t Dans 2 Tekno Bourgeoisie Blues Ain t Goin to Goa Mao Tse Tung Said ull of Loue The 12 Step a Fmt C L ANNO D ub G O0 D i p Im m m arm o cooucrmme iuDpogocmmurnomcornt uboT ocooomuupcGov Figure 57 SELCOPYi SDE VFMT Controlling Table Headings A fixed heading displays the Record Type name Other items on this line are described in the following table Displayed when the record type is of a fixed length n Displayed when the record type may vary in length Variable n1 n2 Its lower pred m PE p Its upper length Offset n Indicates the offset n into the record at which record type mapping is applied Data Elements n Indicates the number of fields n mapped by this record type e The first column heading is fixed and displays the Field Name e Subsequent column headings are optional The table below indicates the primary commands used to control each one Mm peespin ants Field Number Displays the field reference number ftn Pee SES Optionally displays one of the following 1 A combination field of the format data type position length e g AN 111 30 2 A combination field of the format length format Data Type e g 30 CHAR 3 The position or offset defining the field s location within the record e g 111 4 The jas S picture string Displays the scale Use command OFST X to display a hexadecimal offset scale 2015 01 19 11 28 28 Training Manual 63 Option 2 Data
27. available storage for full test edit capabilities File Edit Actions Options Utilities Vindow SuapList Help Wo WR Primary Option Menu Text Edit 1 File SwapList Vindow Help Qu Back Forward HomeLink Close Source Text Help Conmand gt Command m Scroll Csr Text Edit Entry Panel Name gt File Help Nember gt Command gt An absolute or relative HFS Path name or the fully qualified name of a ZZSGEDIT sequential data set or PDS PDSE library member Note that the Member PDS PDSE member Sequenti field is ignored if Name field is not a library or contains Wildcard Name characters Dataset names must be fully qualified quotes being volume I unnecessary but permitted Action A selectable list of files will be presented if wildcards percent Z Edit Records or asterisk are entered or dataset is a PDS PDSE library and Read Only Edit DISP 5 member is left blank Browse Records Volume HFS Opt ions Specifies a volume serial id mask for an uncataloged data set Not Z Undefined HFS record applicable to HFS files Fixed HFS record Record Length If an entry exists in this field then the selectable list of files will EOL Characters 51D be generated from a list of UTOC entries for the specified volume Profile Macro Action Use Default Identifies the action taken by the panel on pressing the lt Enter gt key Use Specified Macro Mutually exclusive options are as follow Do not use a Profile H I Edit
28. wm File Edit Actions Options Utilities Window SwapList Help wS wR Command gt scroull gt CSF BSS Spe SS Silas Sopa SS Se SS Sh SS SSS 2 PSS SS Sel SSS p 2902 LLLI 800001 ZUSER123S JOB CLRSS RH MSGCLRASS X MSGLEVEL 1 1 NOTIFY amp SYSUID 000002 0000803 SELCOPY i 3 2B C 2012 Compute Bridgend Ltd UK 44 1656 552222 000004 lt lt JEL for 225GFCOB SDE FCOPY Basic File Copy 000005 Created by USER123 cala cid calor ls allay lores 000006 800007 SELCODO1 EXEC PGM SDEAMAIN REGION 0M 000008 STEPLIB DD DISP SHR DSN CBL CBLI320 EXE 80009 DD DISP SHR DSN CBL CBLI310 EXE 000010 ZZZSUSERI DD DISP SHR DSN USER123 CBLI INI 000011 SDEPRINT DD SYSOUT gt 000012 SDEIN DD 000013 FCOPY 000014 800015 USER123 SELCTRN 225n L A 800016 aaoogati7 using cobol USER123 SELCTRN SAM1 ZZST1CPC 8680018 800019 USER123 SELCTRN 22ST1DAT FCOPY2 80028 using cobol USER123 SELCTRN SAM1 2Z2SP1CPC 000021 000022 x 000023 End of File X xX Alt 0 0 0 Figure 135 SELCOPYi Generated Batch Job 2015 01 19 11 28 28 Training Manual 142 Option 6 File Search Update Copy Reformat FSU The File Search Update Copy Reformat utility allows you to Globally search and optionally update multiple sequential PDS PDSE GDG HFS and or VSAM data sets Restrict PDS PDSE library search update copy to members with names that match a member name mask to members satistying directory element sele
29. 0 Data elements 1 Record 00000011 Flags f Length 407 Field ASS Sp Soil poco SO O O O O O SO O A SI O o e A o a loce UnMapped E374BE6EE7C86B1D01A210CSomeone Like You EI fea Adele 181 21 241 FOUN 201A 301 gonadele 2011 01 21T08 361 Bardgesetie gdg HBWerd4 3g dbrcgOgTTI 8g i8Tqg 468 B85 956 Line 1i1 T 31 Siz da tec1 407 Fmt F Figure 55 SELCOPYi SDE UNFMT 2015 01 19 11 28 28 Training Manual 61 Option 2 Data Edit SDE Hex Dump HEXD Display Mode Hex Dump HEXD Display Mode Type HEXD to set hex dump display mode You may add the NEW parameter in order to open the display in a new window Press F7 F8 to scroll along the record e Press F10 F11 to scroll the display to the previous next record e Use the SPM command to show a popup menu providing display options for the hex dump screen Type Help HEXD for full information The offset field on the first displayed line of data may also be overtyped in order to scroll the display to the specified offset within the record While in multi record table view the HEXD line command may also be typed into record the prefix area to show the selected record in hex dump format USER123 SELCTRN ZZST1IDAT using USER123 SELCTRN SAM1 ZZST1Cx File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Record type UnMapped Record 00 oo011 SCROLLS Csr Fixed 407 Offset 0 Data elements 1 Flags f Length 800008 600016 9
30. 000008 05 x 070 000009 05 x 001 000010 05 x 070 000011 05 x 001 CHG 05 x 016 05 9 003 EHE 05 9 004 000015 a M O5 4 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Line 1 Bie ES 33 2 Figure 45 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 50 Option 1 Text Edit Using the FILLBOX Primary Command 3 Using the FILLBOX Primary Command 3 The FILL command may also be used to set a left adjusted character string on each box block line e On the command line type FILL ABCDEF Press ENTER to set the values BSELEUPTYZI TESTY SELEUPTI EHR deras V JEY Size 141 Alt 6 6 10 m File Edit Actions Options Utilities Window SwapList Help w5 wR m Command _ Scrolls Est 4 1 4 2 4 3 4 4 4 5 4 5 4
31. 20 Terminal Characteristics Screen format 3 1 Data 2 Std 3 Max 4 Part During this section you will learn how to e Open multiple display windows e Switch focus between open windows e Move windows e Resize windows e Save Restore favourite dataset window locations 2015 01 19 11 28 28 Training Manual 5 Windowed Display System Opening Multiple Display Windows Opening Multiple Display Windows When started with a 3270 screen width of 132 or higher and a screen depth of 32 or higher SELCOPYi will operate in windowed mode with its Primary Options Menu located centralised at the at the top of the screen by default File Edit Actions Options Utilities Vindow SwapList Help WS UR nimany Option Menu File SwapList Vindow Help QuickRef Conmand gt Scroll Csr 225GPRIM Lines 1 22 of 22 Sett ings Set SELCOPY i opt ions User TESTL Text Edit Edit Vieu small text type files Version 3 36 Data Edit Edit Browse potentially large data files Date 2014 09 04 List List Volumes UTOCS Datasets Hembers etc Times 15 34 42 Home Edit Execute point and shoot conmands OpSys z 05 1 11 6 Copy Reformat File Copy with copybook reformat option System ADCD Search Update File Search Update Copy Reformat Un User 205111 Compare File Library Compare Utilities Utilities Inc SELCOPY debug XHLACSU gen etc Structure Create structure from copybooks etc Filter Create record selection filter Pr int Print Dataset D62 Vork with D62 browse edit tab
32. 2014 09 23 Option 1 Text Edit 0 Function keys shortcuts and convenience features 0 UNDO REDO 0 Multiple windowed views 0 Marked Line and Box block features 0 String Coloring Option 12 DB2 9 Setting up sample DB2 Tables 0 Display of DB2 Table detailed Information INFO 0 DB2 Table Edit 0 Editing selected table rows using the WHERE dialog 0 Editing Related Tables REDIT 0 Generating CSV or XML from selected table rows columns 0 Handling Relational Constraint Errors Sixth Edition 2015 01 19 SELCOPYi Rel 3 30 cover change only Third Edition 2013 02 27 2015 01 19 11 28 28 Training Manual Setup Training Material Sample data files and COBOL PL1 copybooks are supplied with the SELCOPYi program To create your own personal copies of these datasets allowing you to follow the training manual in real time select option T from the SELCOPYi Primary Option Menu SELCOPY i Primary Option Menu x m File SwapList Window Help QuickRef w5 wR m Command Serei ESP ZZSGPRIM Lines 1 22 of 22 O Settings Set SELCOPY i options User USER123 1 Text Edit Edit View small text type files Version 3 20 2 Data Edit Edit Browse potentially large data files Date 2013 11 05 eet List Yolumes YTOCs Datasets Members etc Time 14 42 01 4 Home Edit and execute point and shoot commands OpSys z OS 1 11 0 5 Copy Reformat File Copy with optional copybook reformat System ADCD 6 Search Update File Search Update Copy
33. 38 98 USER123 0001 Sg TRACKOO2 2013 02 21 16 47 2013 02 21 ar or USER123 0002 9 TRACKOO3 2013 02 21 16 47 2013 02 21 30 99 USER123 0003 S TRACKOO4 2013 02 21 16 47 2013 02 21 89 89 USER123 0004 9 TRACKOOS 2013 02 21 16 47 2013 02 21 80 80 USER123 0005 5 TRACKOOB 2013 02 21 16 47 2013 02 21 83 83 USER123 0006 5 TRACKOO 2013 02 21 16 47 2013 02 21 80 80 USER123 0007 5 TRACKOOB 2013 02 21 16 47 2013 02 21 76 76 USER123 0008 5 TRACKOOS 2013 02 21 16 47 2013 02 21 TE iS ERU 0009 S TRACKO10 2013 02 21 16 47 2013 02 21 TO TO USER123 0010 5 TRACKO11 2013 02 21 16 47 2013 02 21 52 62 USER123 0011 5 TRACKO12 2013 02 21 16 47 2013 02 21 ajal SE USER IZA 0012 5 TRACKO13 2013 02 21 16 47 2013 02 21 34 34 USER123 0013 5 TRACKO14 2013 02 21 16 47 2013 02 21 25 25 USER123 0014 5 TRACKO15 2013 02 21 16 47 2013 02 21 14 14 USER123 0015 9 TRACKO16 2013 02 21 16 47 2013 02 21 13 ls Mela es 0016 5 TRACKO17 2013 02 21 16 47 2013 02 21 10 10 USER123 0017 5 TRACKO18 2013 02 21 16 47 2013 02 21 8 8 USER123 0018 5 TRACKO19 2013 02 21 16 47 2013 02 21 8 8 USER123 019 RISHELE pe SRL F4 WINDOW F5 Select F6 Deselect F9 SWAP F12 CRETRIEY F14 EXPAND abris aad F22 UNDO F23 REDO Figure 141 FSU Member Selection List 2015 01 19 11 28 28 Training Manual 149 Option 6 File Search Update Copy Reformat FSU Condensing Selected Members by Timestamp Size Userid Condensing Selected Members by Timestamp Size Userid Listed members will be active in the Search Update process prov
34. AN 220 2 07 H24 Y RELEASE MN AN 223 2 00 Line 563 ALt 0 0 Size gt 26 P lecl 32752 Files 1 Figure 101 SELCOPYi SDE Formatted Single Segment Dsiplay Mode FMT MAP e In formatted FMT MAP or unformatted UNFMT HEXD single record modes the scrolling keys F10 F11 will navigate to the next prev visible segment regardless of its type PRIMARY SECONDARY e n both formatted multiple VFMT and single record FMT MAP display the NEXT N and PREV P primary commands may be used to navigate more specifically to segments based on their segment type Type N B to scroll to the next base primary segment Type N ALBUM to scroll to the next segment of the type ALBUM Type N to scroll to the next segment of the same type as the focus segment Type N to scroll to the next segment of a different type from focus segment Type Help NEXT for full information 2015 01 19 11 28 28 Training Manual 106 Option 2 Data Edit SDE Modifying Segmented Datasets Modifying Segmented Datasets Individual segment data may be modified by Overtyping inserting or deleting data in character or hex Executing a CHANGE command e Segments may be inserted and deleted by Typing the INSERT primary command e g to insert a new ALBUM segment 0 Type I ALBUM 0 The new segment will be inserted following the focus segment In multi segment VFMT CHAR display modes focus is defined by the cursor position Using the DELETE pri
35. COLCOUNT EDPROC UR SELCTRN RLBUM TESTI T TESTi SELCiI6AS 473 SELCTRN_ARTIST TESTI T TESTi SELCTRNR 473 3 2 SELCTRN_TRACK TESTI T TESTi SELCiCNU 473 14 16 Col 1 of 623 SS ZOOMLIST Frat Files 2 2014 89 15 Training Manual 157 Option 12 DB2 DB2 Table Information DB2 Table Information e At the List Tables window enter forward slash in the prefix area for table sqlid SELCTRN ALBUM the first table in the list A popup window will be displayed detailing all of the line commands available to this type of object list Place your cursor anywhere on the I Table Information entry in the popup list then press ENTER Alternatively enter the I line command directly into the prefix area for table sqlid SELCTRN ALBUM File Edit Actions Options Utilities Vindow SwapList Help Primary Option Menu WS UR File SwapList Vindow Help QuickRef Conmand gt ACIE File Help Command 2252L666 List DB2 Objects Storage groups Databases Table spaces Tables Views Aliases Indexes Synonyms Types Conmand gt Use F4 VINDOU Z252PRIH Use command Setting 062 SQL Edit Browse Create Drop List Rudit Objects Trainin 0 00 Utf F2 SPLIT Fa VINDOV Col 1 Alt 1676 1676 6 F3 5URP 5ize 1070 F1 HELP 5e Line 1 Figure 150 SELCOPYi DB2 Figure 04 2015 01 19 11 28 28 List Object Option Menu Scroll Csr Lines 1 12 of 12 Create Alias List Aliases Browse T
36. Csr Record type TRACK Fixed 407 Offset 0 Data elements 18 TRACK NUM SAMPLE RATE YEAR NORMALIZATION DISC NUMBER ALBUM ARTIST 3 H11 Hie 13 14 15 ZD 1713 PD 294 3 ZD 297 4 PD 301 3 zD 304 3 AN 307 41 lt gt lt gt gt gt lt gt 1i 0000001 00i 44100 201i 5154 Adele oooooaoaosa 44100 7474 Adele 0000003 44100 6529 Adele 0000004 44100 Adele B000000S 44100 Adele 00000065 44100 Adele B0000007 G 44100 Adele goooooaos Adele goooooaos Adele 6000 Adele Adele Adele Adele Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama GaGGGGGGGOoGOGOGOGOO P m a a a a a ae a a a a a ae a e 000000000000 000000000000 0000000000000 000000000O GoGGGGGOGGGOGOGOGOGGOGOGGOGOGOGGOGO BpBPHPEHHHHB RHHHBHHH HBHHH PRRERRRRRRRRRRRRRRRRRRR Ero ro mo mo mom m rmrmrmmei e b b I IPI epPEHE mocGoococGocooc gocGoGococcccoco Sno T TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO jocGGoGcGoOGGGGOGOGGGGGOGOGGGGGOO ALt 0 0 50 10708 recl Fmt F Figure 64 SELCOPYi SDE SELECT 4 2015 01 19 11 28 28 Training Manual 69 Option 2 Data Edit SDE Adjusting Field Display Column widths Adjusting Field Display Column widths Use COLWidth command to control the number of characters occupied by any particular field Type the following sequence of commands to produce the results below SEL 3 5 H ALBUM ARTIST COLW NAME 20
37. Data elements 18 TRACK NUM ALBUM HS 7 ZD 17 3 AN 214 70 ee A a NN oca cc ENN I NNN NN IG I caca goccia s 00000 2i gaoaooaoao 000000 0000004 B000000s 00000065 gaooooaoo eL al ET ET ET EXT ET E cub ed E E mcGGGOGGOGOGGGOGOCOOOC UO Enmmmmembmmbmme amp mBm amp BHmPHHOG wm e C up 0 J C ur 4s CO F0 e C9 D 0 0 00 00 0 00 0 00 00 00 0 OA Fmt Figure 61 SELCOPYi SDE SELECT 1 e The following results will be displayed after scrolling right once SELCOPY i USER123 SELCTRN ZZST141DAT using USER123 SELCTRN SAM1ICZZST1CH File Edit Actions Options Utilities Window SwapList Help wS wR M Command Scroll Csr Record tupe TRACK Fixed 407 Offset 0 Data elements 18 ALBUM ARTIST 7 6 AN 214 70 AN 144 70 in a E ii A a ii a da e Eds det Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele ALt 0 0 50 Siz 4170 Recl 407 Fmt Figure 62 SELCOPYi SDE SELECT 2 Type SELect to reset the display to show all fields in their default order 2015 01 19 11 28 28 Training Manual 67 Option 2 Data Edit SDE Preventing Fields from Scrolling Off screen HOLD Preventing Fields from Scrolling Off screen HOLD By adding the Hold keyword following the field name ref that field may be prevented from scrolling off the screen HOLD need only be specified once i e for the last right most of a sequence of held fields Type the following command to produ
38. Entry Panel File Help Conmand gt 225GEDIT PDS PDSE member Sequential VSAM or HFS path Name TESTi SELCTRN SRHi Volume If dataset is uncataloged Action Z Edit Records All records are loaded in available storage Read Only Edit DISP SHR Preserve data Use SET FILEID before SAVE Scroll Csr Lines 1 26 of 26 Member z25TiCPC Browse Records Records are loaded dropped when scrolled HFS Opt ions Z Undefined HFS records terminated by End Of Line characters _ Fixed HFS records are of Fixed Length Record Length gt 8 gt default EOL Characters 510 EOL user string Profile Macro Use Default Undefined 32752 Fixed 50 2 byte char hex Use Specified Macro Macro Name PROFILE Do not use a Profile Macro Figure 7 SELCOPYi Focus Window File Edit Actions Options Utilities Vindow SwapList Help WS WR TES T1 SELCTRN SAMI 225 Ti CPC 5 ize 15 MERAH Command 4 1 4 2 pj pp po pp pp pa 888801 61 TRACK 998082 PERSISTENT ID PIC X 016 8888803 TRACK NUM PIC 9 003 Boaaad TRACK ID PIC 9 004 900065 NANE PIC 126 606006 ARTIST PIC 76 800067 ALBUN PIC 670 900005 TOTAL TINE PIC 9 667 BINARY 806009 FILE SI2E PIC 9 069 BINARY 906016 BIT RATE PIC 9 664 BINARY 808611 SRHPLE RATE PIC 9 665 PACKED DECIMAL 888612 YERR PIC 9 004 888613 NORMALIZATION PIC 59 665 PRCKED DECIMRL 900014 DISC NUMBER PIC 9 003 906015 AL
39. Example ete 187 ui b M scie O H 188 las E Co C liado 189 2015 01 19 11 28 28 iii Documentation Notes First Edition November 2012 Information in this document details general features and functionality of the SELCOPY Product Suite 3 10 component SELCOPYi This document replaces any previous edition of SELCOPYi Training Material which are now obsolete Copyright in the whole and every part of this document and of the SELCOPY Products Suite system and programs is owned by Compute Bridgend Ltd hereinafter referred to as CBL whose registered office is located at 8 Merthyr Mawr Road Bridgend Wales UK CF31 3NH and who reserve the right to alter at their convenience the whole or any part of this document and or the SELCOPY Product Suite system and programs SELCOPY Product Suite for z OS z VM CMS and z VSE operating systems which includes SELCOPY SELCOPY i and CBLVCAT is available for download and install from http www cbl com selcdl html The following publications for SELCOPY Product Suite and its component products are available in Adobe Acrobat PDF format at CBL web page http www cbl com selcdoc html e SELCOPY Product Suite Customisation Guide e SELCOPY User Manual e CBLVCAT User Manual e SELCOPYi Reference and User Guide e SELCOPYi Text Editor CBLe Manual e SELCOPYi Structured Data Editor Manual e SELCOPYi Training Material Manual No reproduction of the whole or any
40. Filtered Output File 2015 01 19 11 28 28 Training Manual 131 Option 5 File Copy Reformat FCOPY Reformat Reformat The FCOPY utility may also be used to reformat records as they are copied to the output file Reformat requires use of two similar but not identical structures that define the layout of the input and output records with each output field being sourced from the corresponding input field of the same name within the same record type Input and output fields for any given record type may but need not necessarily be ein a different order a different length a different data type Additionally fields may exist in either input or output without existing in the other e Specify the Input File Type userpfx SELCTRN ZZST1DAT in the DSN Path Mask field where userpfx is your own user prefix e Specify the Output File Type userpfx SELCTRN ZZST1DAT FCOPY2 in the DSN Path field e Select Reformat using structure copybook layouts from the Options section of the FCOPY panel SELCOPY Zi File Copu x m File Help JCL Command wS wR E Command gt cr Es zzsaGFcoa a o cree Input PDS PDSE Library Sequential VSAM DSN mask or HFS path mask DSN Path Mask USER123 SELCTRN ZzZST1DRT Member Mask gt All mask matches will be copied Volume Mask gt press PFS to view deselect matches Output PDS PDSE Library Sequential YSAM DSN or HFS path DSN Path gt USERD2Z3 SEDAN ole Rte ee UR ree Member gt _
41. HODIFIED File kkk FS V inflar F6 U inRes F7 Drag U F8 Drag D Fi6 Drag L s6 Depth t28 s7 Drag UxS s Drag DxS si8 Drag LusS5 511 Drag Rxs e Line 1 Alt 6 6 6 Fmt F Files 2 Fii Drag R Figure 10 SELCOPYi Focus Window With the cursor in the window title bar Press function key F7 to drag the window up 1 position Press function key F8 to drag the window down 1 position Press function key F10 to drag the window left 1 position Press function key F11 to drag the window right 1 position e Simultaneously hold down the Shift key to drag the window 5 positions 2015 01 19 11 28 28 Training Manual PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC PIC x 815 9 663 s aad x 128 x eva x 676 9 667 BINARY 9 669 BINARY 9 904 BINARY S 885 PRCKED DECIHRL 9 604 sa 885 PRCKED DECIHRL s a83 x 041 x 020 x 020 x 920 S3 Vidth 26 sd Vidtht26 s5 Depth 29 2014 09 04 16 27 39 13 Windowed Display System Resizing Windows Resizing Windows Move the cursor anywhere into the window top Border then press ENTER e The window title bar and borders will be hilighted in reverse video This indicates that the window is in move resize pending state File Edit Actions Options Utilities Window SwapList Help co un Primary Option Menu File SwapList Vindow Help QuickRef Conmand gt Text Edit Entry Panel File Help Command gt Scroll Cs
42. Help w5 wR Command gt Scroll gt Est RecNo gt 6 Length 80 LRecL 80 000000 40404040 40404040 4040FOF3 40C1D3C2 000010 E4D44040 40404040 40404040 40404040 M 000020 40404040 40404040 FFCICS40 40E74DFO 000030 F7FO5D4B 40404040 40404040 40404040 000040 40404040 40404040 40404040 40404040 Figure 20 SELCOPYi Help Window 2015 01 19 11 28 28 Training Manual 23 Option 1 Text Edit Non Display Characters Non Display Characters Now press F3 to close the hex dump window You should see the screen shot below Notice that the colour of the modified line has changed to TURQUOISE UNDERSCORE This is to alert the user to the presence of non display characters within the visible text Display characters are overtypable and are indicated by the underscore Non display characters e g X FF are protected from input using a 3270 attribute byte which displays as blank without an underscore You can type the primary command NOND to toggle on off this feature SELCORY i TESTISSELETRHSRHUIUZZST2ERE Si Hitzl 1 3 f E m File Edit Actions Options Utilities Window SwapList Help m Command Scrolls Cer 1 2 3 4 4 7 000001 01 ARTIST 000002 05 RT 001 000003 05 ARTIST 070 000004 01 ALBUM 000005 05 RT x 001 000006 05 ALBUM 070 000007 01 TRACK 000008 05 RT 001 000009 05 PERSISTENT ID 016 000010 05 TRACK NUM 9 003 000011 05 TRACK ID 9 004 0
43. IDz70 We ll attempt to delete The Essential Bob Dylan expecting a similar problem due to the existance of TRACK table rows matching this album Enter D to delete The Essential Bob Dylan Press F3 to exit and save or type primary command SAVE The reinserted row is flagged with R 532 in the prefix area Enter E in the prefix area to display the DB2 Save SQL Error dialog e Enter R in the Action gt field to start Related Table edit File Edit Actions Options Utilities Vindow SwapList Help LS WR Al Edit table TESI1 SELCIRN_ARTIST in tablespace TES11 5ELCTRNR H Top of 3 Scroll Csr Table TESTi SELCTRN_ARTIST ID NAME tH i SMINT URRCHRR 8 Scroll Csr ty e emma TT pongan pra pr en pra a pr y 1 12 of 12 80000000 HHH Top of Data ek R 532 79 Bob Dylant 880080882 ao000085 JI ZH Edit related table TESTI SELCTRN_ALBUN in tablespace TEST1 5ELCi6A5 H 90000904 Scroll Csr 99006805 Top of 1 69968006 Table TESTi SELCTRN RLBUM Dependent of TESTi SELCTRN RRTIST Constraint ALBUMRI R 90086807 ARTIST_ID ID NAME 90000905 15 me TESTIS SHINT SMINT URRCHRR S8 80006816 Kann A 4 1 i4 2 4 3 4 4 4 5 1 6 90000011 60000000 aer Top of Data ser 88008812 R 532 78 158 The Essential Bob Dylan lt 90000913 eoaaanao2 Scroll Csr 00099014 ELE a 66660015 Command Scroll Csr 808880816 99600017 DB2 has reported a DELETE rule violation
44. My Pocket lt 5 Right Through You amp 6 Forgivent 99666067 7 You Learns 866660685 3 Head Over Feet lt 66600069 9 Hary Jane lt 66900016 18 Ironic amp 96900611 11 Not the Doctor lt 96606612 12 66666615 13 Vake Up lt You Oughta Know F5 RllSel F6 RllDesel sd EXECUTE s5 RrrayEl s6 ArrayEl si8 UNDO s11 REDO e Line 8 HERH 26146915 15 Figure 164 SELCOPYi DB2 Figure 18 2015 01 19 11 28 28 Training Manual 173 Option 12 DB2 The CSVGEN dialog The CSVGEN dialog Type the primary command CSVGEN CSV with no parameters to start the CSV dialog e Select option Start at Top of File e Select option End at End of File Enter an Output CSV Text File name of your choice e g lt userid gt SELCOPYI CSV PILL File Edit Actions Options Utilities Vindow SwapList Help WS WR AJ Edit table TESTI SELCTRN_ARTIST in tablespace TEST1I 5ELCTRNR Table TESTI SELCTRN_ARTIST ID NAME tH 2 SMINT VARCHAR 76 lt gt 80000000 kk Top of Data kk 0000061 18 Adele lt 86000062 28 Alabama Shakes lt 00000903 38 Alabama 3 lt CEECEE 46 Alanis Morissett 66600665 aaa 66660666 90000007 Table TEST1 SELCTRN_ RRTIST ID 90000005 66666669 3 SHnINT S E lt 69000816 66000611 86666606 H Top of D 666000681 46 60000612 600090013 66660062 An ER 96008663 60000014 mary 600900515 Table TES P e t CSU Generation File Command Help Command m 225GCSV1 Record Types SELCTRN TR
45. Options Utilities Vindow SwapList Help AJ Edit table TESTI SELCTRN_ARTIST in tables Table TESTi SELCTRN RRTIST ID NRHE f m SMINT VARCHAR 78 EA GG000000 dk Top of Data eek Baaoooo 18 Adele lt 99990002 28 Alabama Shakes lt 90999903 38 Alabama 3 lt Tris issih 48 Alanis Morissettec 99000005 58 Alex Harvey lt 9000006 68 RC DCX 90000807 8 Bruce Springsteenc 69000865 36 Bruce Springsteen amp The Sessions Band lt 99000009 i88 Burt Bacharach amp Elvis Costello lt 60000010 18 Christina Aguilera lt 88888011 128 Christina Aguilera amp Dave Navarro lt 60909001 2 138 Coldplay lt 60000013 146 Crash Test Dunmies lt EE 158 Damien Rice lt 60009015 158 David Gray lt 60000016 178 Deep Purple lt 88888017 188 Del Rmitr ic 88888018 198 Duffy lt 60000019 2808 DJ Fresh lt 99000026 218 Embracec 99900021 228 Florence The Machine lt 90000022 238 Gretchen Vilson lt 88888823 248 Guns N Roses lt 00000024 258 Jennifer Hudson lt 60000025 268 Jessie J lt 99000026 278 John Hayer lt 66666027 288 John Nellencamp lt 99000028 298 Journey lt 99000029 388 Judas Priest lt 90000030 318 Kosheent 888888051 328 Led Zeppelin 7774 7771 7 4 2 i 3 i 4 __F3 BACK FS TEXT Figure 176 SELCOPYi DB2 Figure 30 2015 01 19 11 28 28 WS UR IB2 Table Browse and Edit Back Forward HomeLink Close Source Text Help Conmand gt Scroll Csr previous next contents DB2 Table Browse and E
46. Record Length gt 8 b gt default Undefined 32752 Fixed 50 EOL Characters 510 EOL user string gt 2 byte char hex Profile Macro Use Default Use Specified Macro Hacro Name PROFILE Do not use a Profile Macro F1 HELP F2 SPLIT F4 4 INDOW FI SUAP F12 CRETRIEU s2 EXPAND Te F4 2 Line 1 Alt 6 6 6 Size 16 Rec l 56 Figure 17 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 18 Option 1 Text Edit SELCOPYi s own Text Editor while running in ISPF compatibilty mode for ease and familiarity has some significant advantages over the standard ISPF Editor The most obvious of these is that it uses the SELCOPYi windowed display system providing movable resizable overlapping views of many files at once It even allows multiple simultaneous views of the same file During this section you will learn about e Function keys shortcuts and convenience features e UNDO REDO e Multiple windowed views e Marked Line and Box block features e String Coloring 2015 01 19 11 28 28 Training Manual 19 Option 1 Text Edit Function keys shortcuts and convenience features Function keys shortcuts and convenience features Running on z OS systems the SELCOPYi Text Editor operates in ISPF Edit ISREDIT compatibility mode meaning that its look and feel is very similar and it supports all the commonly used primary and line commands of the original standard editor There are however some differences
47. Ref ormat YM User 205111 7 Compare File Library Compare Utilities 8 Utilities General utilities 9 Structure Create structure from copybooks etc 10 Filter Create record selection filter 11 Print Print Dataset Batch 12 DBZ Work with DB2 brouse edit tables etc T Training Setup SELCOPY i Training Material WL Window List Display active windows select with cursor to switch focus A Exit Exit SEEEBRM 1 Use F4 WINDOW to switch between SELCOPYi display windows Use command optional fastpath e g 3 4 to access this menu sub options F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEV F14 EXPAND Figure 1 SELCOPYi Setup SELCOPY i Training Material 2015 01 19 11 28 28 Training Manual 4 Windowed Display System Mainframe z OS sessions are typically connected via a 3270 Emulation package running on the user s PC Most users logon to TSO ISPF with one of the following standard screen sizes Via their settings modern 3270 emulators may be configured to run with large dynamic screen sizes such as 62 lines by 160 columns SELCOPYi takes advantage of large screen sizes by employing a multi windowed display system If you would like to use a large screen for your z OS TSO ISPF session configuration is usually very simple taking only a few minutes For assistence with your setup please contact CBL support 2cbl com Note that ISPF restricts screen width to 160 columms and requires an update via its own Settings
48. Resizing Windows 2 Move the cursor up or down a number of lines then press ENTER again e The window depth will grow or shrink as desired File Edit Actions Options Utilities Window SwapList Help w5 un nimany Option Menu File SwapList Vindow Help QuickRef Conmand gt Text Edit Entry Panel File Help Command gt Scroll Csr 225GEDIT Lines 1 26 of 26 PDS PDSE member Sequential VSAM or HFS path Name gt TESTI SELCTRN SAML Member gt 225T1CPC Volume If dataset is uncataloged Action 4 Edit Records All records are loaded in available storage Read Only Edit DISP SHR Preserve data Use SET FILEID before SAVE Browse Records Records are loaded dropped when scrolled HFS Opt ions Z Undefined HFS records terminated by End Of Line characters _ Fixed HFS records are of Fixed Length Record Length gt 8 G gt default Undefined 32752 Fixed 88 EOL Characters STD EOL user string 2 byte char hex Profile Macro Z Use Default Use Do TEST1 SELCTRN SRH1 225T1CPC 66 F PDSE 5 ize 16 Alt 6 6 6 Command Scroll Csr 4 1 4 2 4 3 4 4 5 42 6 4 4 5 aaaaat 61 TRACK 900992 PERSISTENT ID PIC X 016 009903 TRACK NUH PIC 9 093 Gaa8ad TRACK ID PIC 39 664 888805 NRHE PIC X 128 909905 ARTIST PIC X 678 900997 ALBUN PIC x 070 909005 TOTAL TINE PIC 3 887 BINARY 009009 FILE SIZE PIC 9 669 BINARY 069019 BIT RATE PIC 9 064 BINARY 009011
49. SELCTRN_ARTIST Constraint RLBUHMR R a88808818 RRTIST ID m ne 90000011 ES 96986812 ShINT snmi UnchaR 50 000000913 e KIE uu ETUR y O Scroll Csr eoaoaoid eacaceoa Ak Top of Data ek 60000015 aacacaoi 46 46 Alanis Morissette The Collect ion lt 66660616 RE 46 58 Jagged Little Pill lt 88000017 00800003 Hk End of Data week 98888818 988808819 i98 Duffy lt 00000020 288 DJ Fresh lt 96986621 218 Embracec 66666622 228 Florence The Machine lt PE DBNANE TSNANE DBID OBID COLCOUNT EDPROC UR 66666625 238 Gretchen Vilsonc TESTi SELCi6RS 473 3 d 96980624 Roses lt TESTi SELCTRNR 473 3 2 99000025 i TESTi SELCiCNU 473 id 16 99006626 i 980080827 select 96660625 66666629 298 Journey lt 96960036 388 Judas Priest lt 886888051 318 Kosheen lt FS RF IND F6 RCHANGE si InsLine s2 DelLine s3 DupL ine s pt ions sS Zoonw 16 UNDO s11 REDO 5e Line 6 Hat Alt 6 6 6 3 ize 2 DLE z es 2 eus 2 2614 6915 15 36 17 Figure 161 SELCOPYi DB2 Figure 15 2015 01 19 11 28 28 Training Manual 170 Option 12 DB2 Related Table Edit Window 2 A separate window will once again appear listing the all related tables The ALBUM table again has only one child the TRACK table Enter RE in the list entry prefix area or select it with the mouse Related Table Edit Window 2 A separate edit window will display only the TRACK rows for Jagged Little Pill ALBUM ID 50 File Edit Actions Options Utilities Vindow SwapList Help W
50. SRHPLE RATE PIC 9 665 PRCKED DECIHMRL 009012 YEAR PIC 9 004 009013 NORHRL IZATION PIC 59 005 PACKED DECIMAL 009014 DISC NUMBER PIC 9 003 FS V inas F6 U inRes F7 Drag U FS8 Drag D Fi Drag L Fii Drag R si ws S3 Vidth 26 sd Vidtht26 s5 Depth 26 s6 Depth 26 s7 Drag Ux5 s Drag Dx5 si6 Drag Le5 sii Drag R 5 Line 1 Alt 6 6 6 Fmt F Files 2 Vieuws 2 2014 09 04 16 29 35 Figure 12 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 15 Windowed Display System Dragging Window Borders Dragging Window Borders This technique may be repeated on the bottom left right or border corners With the cursor in the window borders Press function key F7 to drag a horizontal border up 1 position Press function key F8 to drag a horizontal border down 1 position Press function key F10 to drag a vertical border left 1 position Press function key F11 to drag a vertical the border right 1 position e Simultaneously hold down the Shift key to drag the window 5 positions File Edit Actions Options Utilities Vindow SwapList Help WS WR nimany Option Menu File SwapList Vindow Help QuickRef Command Text Edit Entry Panel File Help Command Scroll Csr 225GEDIT Lines 1 26 of 26 PDS PDSE member Sequential VSAM or HFS path Name gt TESTI SELCTRN SAML Member gt 225 Ti CPC Vo lume gt If dataset is uncataloged Action Z Edit Records All records are loaded in available storage Read Only Edit DISP SHR
51. Turning Tables Adele Don t You Remember Adele Set Fire to the Rain He Won t Go Take It ALL I ll Be Waiting One and Only Lovesong Someone Like You I Found a Boy Bonus Adele Twentu One A Hold On I Found You Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbresker Boys amp Girls Be Mine ALt 7 0000000 i Qe mun s a a a a a a a a ea H T0 f TO FO FO TO FO FO TO FO FO TO FO PREEBBBBBBBBBB www LO www wo www LO 000000000 z O O 00000 C9 Opa 1 LO 00 4 m un ds C TO e 900014 oo oo ao ao ao aao 0 aao 0 p C C C oo ao ao 0 oo oo ao 0 ao f Co Qo Qo So o Qo o Oo a a a a ae a e e e a a 18 s ae a a a a 0moomoomomoto E332323355 loo See AA Figure 79 SELCOPYi SDE CHANGE 3 2015 01 19 11 28 28 Training Manual 83 Option 2 Data Edit SDE Filtering records using ALL WHERE MORE LESS commands Filtering records using ALL WHERE MORE LESS commands As an alternative to using the ONLY FIND and EXCLUDE commands records may be filtered by a potentially complex SQL style expression using the ALL MORE and LESS commands ALL excludes all records except those that match the selection criteria MORE adds to the included records any excluded records that match the selection criteria LESS excludes any included records that match the selection criteria WHere is a synonym for ALL Type the following commands to prod
52. You may also want to consider copying the generated command into your HOME file saving it there for future repeat executions SELCOPYZ1 USEHIZ3 SELCOPNI SUL D281387253 T715053T1 Cb5MX m File Edit Actions Options Utilities Window SwapList Help wS wR Ex Command gt retell OST bB 4 t 2 L 3 F 4 Tt 5 t b t 4 000001 lt sd FCOPY x aaogagz NC aaaoaads USER123 SELCTRN ZZST2DRT xv aaaogaga NI 800005 Bo B000065 IU SERTZJSSEECHhBRHIESZSSISBDEIDSSESDS po aagaaadgr N B0000s filter N 800009 N 000010 include record v O880011 where substr record 1 5 3 ES 800012 and 000013 substr record lt lt c Blues N 000014 or substr record lt lt Rock ln Ralli iN x S A 880015 or substr record Cr fS Ey LIN 000016 000017 000018 000019 AN RN OS 000020 ok ok Figure 123 SELCOPYi Modified Command 2015 01 19 11 28 28 Training Manual 130 Option 5 File Copy Reformat FCOPY Browse Output from Generated Command Window Browse Output from Generated Command Window You may wish to browse your output file before exiting and discarding precious changes to your generated FCOPY command One handy way to do this is to 1 Type the command DSN B on the command line but do not press ENTER 2 Place your cursor on the name of the dataset that you wish to browse within the generated FCOPY command 3 Press ENTER Alternatively type the command DSN without
53. anywhere Update the Output File Type userpfx SELCTRN ZZST2DAT ESDS3 in the DSN Path field Press F6 FILTER to enter the filter definition panel Type in the conditions as depicted in the following screen shot 12 Bei ze Quick Filter S Criteria m File Help wS wR Command gt Site Gilles Csr ZZzSGFLTQ PFi Help PF3 Continue PF22 23 UNDO REDO Limit gt B No limit Type I I INCLUDE X EXCLUDE QUick FILTER Selection Criteria 4 Rows AND Position Length ROp Value OR A Seo OGD SSG do BSS pel SSS O SS OSO SGP SS Spo SS Sg pS elo SSS B00001 i g 000002 AND a c Blues 000003 OR 18 SROCK hn Rolle B00004 OR a cos out gaaggs KKK End of Data Xxx Figure 121 SELCOPYi Filter Multiple Selection Criteria 2015 01 19 11 28 28 Training Manual 128 Option 5 File Copy Reformat FCOPY Generate FCOPY primary command Generate FCOPY primary command Press F3 to return to the File Copy panel then select item Command from the top menu bar You will be prompted once again to define your new output file you should use the previous sample as the model dataset following which the generated FCOPY primary command will be displayed in a text edit window in a format suitable for point and shoot execution using the ACTION key which by default is F16 Shift F4 SELCOPY 1 HSERI2S3 SELEHPYTI SQE B2013823 T1598983r1 C5MX 80 F SEQ Size 17x m File Edit Actions Options Utilities Window SwapL
54. area to set a line name e g HERE then return to it by typing LOC HERE on the command line But SELCOPYi users can just open a 2nd 3rd 4th etc view of the file in order to look at other areas then return to their original location just by pressing F3 to close the additional view s To demonstrate Type the primary command WIN NEW to open a new view of the current file Type M on the command line and press Function Key F7 to scroll to the top of the file e Just press F3 to close the new view returning to your original location File Edit Actions Options Utilities Window SwapList Help uS wR TESLFISCSEECORTLIZENS S Command Sera LLO cer 4 1 4 2 4 3 4 4 4 5 4 5 4 000000 x x x Top of File x x 000001 xx TEST1 SELCOPYI CMA xx L 001 2014 07 30 14 39 49 T 000002 000003 SELCOP Yi 000004 000005 This is your HOME file or personal Command Centre TEST1 SELCOPYI CMX 1 32752 Y SEQ Size 132 Alt 0 0 1 Command gt Scroll ESF 4 j 4 2 4 3j 4 4 4 5 4 b 4 WIN xx Windowed Display System xK win 000080 While running on a wide greater than 80 char screen SELCOPYi 000081 will automatically operate in a windowed display mode 000082 000083 All SELCOPYi display windows may then be moved resized maximised 000084 minimised and restored in a fashion similar to those on your PC 000085 000086 This is ach
55. available online at www cbl com pdf SELCOPYi Training Manual Rel320 pdf OK Press ENTER or F3 to continue 2015 01 19 11 28 28 Training Manual 156 Option 12 DB2 Setting up sample DB2 Tables 3 Setting up sample DB2 Tables 3 The sample tables will be displayed in a List Tables window as shown below e List windows to display tables and many other DB2 objects may be opened by selecting Option 7 from the DB2 Primary Options Menu File Edit Actions options Utilities Window SwapList Help Primary Option Menu WS uR File SuapList Vindow Help QuickRef Conmand gt IBZ2ICBLA List Object Option Menu File Help Command gt 2252L666 DB2 Objects Storage groups Databases Table spaces Tables Views Aliases Indexes Synonyms Types Conmand gt Use F4 VINDOU 2252PRIM Use command Setting DB2 SQL Edit Browse Create Drop List Rudit Objects Trainin AWONAMeUWhK F1 HELP F2 SPLIT F4 UINDOU _F3 SUAP Alt 1676 1676 6 3 ize 1676 Recl1 352 Figure 149 SELCOPYi DB2 Figure 03 2015 01 19 11 28 28 Fi2 CRETRIEU Ss2 EXPAND Scroll Csr Lines 1 12 of 12 Triggers Global temporary tables Sequences Roles Trusted contests Columns Volumes Table space parts JIB21CBLAJ List Tables View Refresh Back Forward FDB Text Help Command m 2252L DB2 T list Scroll Csr Name SELCTRN Creator TESTI DBName gt TSName gt CREATOR TYPE OBNANE TSNRHE DBID OBID
56. be used to condense the list of selected members Only those members that contain at least one record which satisfies the find operation are selected for subsequent processing Following execution of the find operation the FIND panel remains open to allow further find condense operations on the list of remaining members To follow the demonstration use the panel to pre select members containing the string soul case insensitive Type soul in the Find string field For simple case insensitive character strings there is no need to add quotes this will be done automatically You may specify the string using C ABCD notation if case sensitivity is required Hex strings may be specified using X 1234 notation e Enter 1 in the Limit field in order to display the first hit only Since the purpose of running the FIND is only to condense the member selection list for a subsequent search then establishing the presence of more than one hit would be wasteful e Enter Yes in the View report field in order to display the FIND report This will allow us to use the F6 facility from the report to edit the hit member Set this option to No if you are not interested in the detail e Enter Yes in the Condense member list field so that for subsequent FSU operations any member without at least one search match will be deleted from the selection list Press ENTER to execute the search SELCORDZI S Members FIND X m File Help wS wR Ex
57. feature 2015 01 19 11 28 28 Training Manual 25 Option 1 Text Edit Multiple Windowed views Multiple Windowed views Whether running in windowed display mode on a large screen or not the SELCOPYi Text Editor supports multiple views of any edited dataset To demonstrate this we ll edit a second slightly larger file e Type the primary command to display or return focus to the SELCOPYi Primary Options Menu If you are running on a standard screen size it is worth noting that this action does not close any of the windows we have already seen Press the WINDOW key F4 to scroll through each of the open windows e From the Primary Options Menu select option 4 to edit your HOME file which will be discussed in more detail later in this section Alternativeley you may type the HOME HO primary command to directly edit this special file Type M on the command line and press Function Key F8 to scroll to the bottom of this file REDDUPYZIL TESTI Se CCP AA e tal V Sell Size 132 Alt 0 0 1 m File Edit Actions Options Utilities Window SwapList Help w5 wR m Command Scroll gt Csr 1 2 3 4 4 7 WIN xx Windowed Display System Xxek win 000080 While running on a wide greater than 80 char screen SELCOPYi 000081 will automatically operate in a windowed display mode 000082 000083 ALL SELCOPYi display windows may then be moved resized maximised 00008
58. frequentlu it becomes 000015 very convenient and efficient to store these commands along with 000016 meaningful comments in an easy to maintain plain text file 000017 000018 To execute your stored commands just place your cursor anywhere 000019 within the command text then press the RCTION key Default F16 000020 Try it now on the next line Commands are colour coded blue 000021 lt tso lista 000022 A Place cursor here then press Shift F4 to 000023 c execute the T50 LISTA command 000024 000025 The lt sign at the beginning of the line indicates that when the si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN S8 BoxFuncs s10 UNDO Sli REDO 12 Reset Box Alt 0 0 1 91 32752 C SELCOPY i Figure 26 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 31 Option 1 Text Edit Copying a Line Block 3 Copying a Line Block 3 Place your cursor anywhere on line 6 of your HOME file Press the BoxFuncs key Shift F8 e The Line Box Block Options panel will be displayed SELCOPY i Text Edit Line Box Block File Help w5 wR Command gt Scroll Csr ZZSTBOXO Lines 1 20 of 20 p Mark Diagonal Corner of a Box block Mark Top Bottom Edge of a Line block Reset Marked Line Box block Copy i e Insert marked Line Box block at the cursor position Copy and Keep marked block active Move marked block Overlay text at cursor with contents of marked blo
59. gt SCFOLLCA CSE Use CHAR MAP YFMT UNFMT to switch view mode Press PF4 for Utilities menu Record type TRACK Fixed 73 Offset 0 Data elements 5 ARTIST ALBUM TRACK NUM NAME 2 3 5 AN 1 10 AN 11 10 AN 24 50 SR Spe SoS ey ee Sogo eS SS O SO SSeS pS SSeS A e OS SSS OS Spe oS Adele zi Rolling In the Deep Adele m Rumour Has It Adele eal Turning Tables Adele Don t You Remember Adele Set Fire to the Rain Adele He Won t Go Adele Take It ALL Adele I ll Be Waiting Adele One and Only Adele Lovesong Adele Someone Like You Adele I Found a Boy Bonus Track Adele Adele 21 A Track By Track Interview Alabama Hold On Alabama T FOUNd eric cs Alabama Hang Loose Alabama Rise to the Sun Alabama You Ain t Alone Alabama Goin to the Party Alabama Heartbreaker Alabama Boys amp 38 Girls Alabama Be Mine 33 Recl 167 Fmt F N NNNNNNNN PPB HPB BH B B Figure 134 SELCOPYi Browse Formatted Output 2 2015 01 19 11 28 28 Training Manual 141 Option 5 File Copy Reformat FCOPY Running File Copy Reformat in Batch Running File Copy Reformat in Batch The File Copy Reformat utility may also be run in batch by selecting JCL from the panel menu bar e After typing the SUB primary command to submit the generated JCL deck you will have the option to allow SELCOPYi to automatically guide you into SDSF starting a new ISPF split screen in order to view the output SEL COPY USERIZ3 SELEUPTI SQE B280138023 T11615254 JrL 80 F SEQ
60. in this field for additional information 4 The Start Level field will automatically be set to 1 indicating the record type is defined at LEVEL 01 You may accept this default also Press F1 with cursor in this field for additional information 5 Type ARTIST into the Record Type Name field of inserted table row 1 6 The Record Offset field will automatically be set to 0 indicating the layout describes data from the begining of the record You may accept this default also Press F1 with cursor in this field for additional information 7 The Lang field will automatically be set to COBOL Update this to PL1 if necessary gt GERT TP S D m File Help trom wS wR x Command gt seror GSF ZZSGSDOR Add a table row then press PF2 to specify its record identification criteria Create Structure Define Record Types 1 Row Copybook Type Start Record Tupe Name Oi1 Lewv Record Lang Library Level Offset Member O sor O SO DOS obo OOO a O E a O eo Shroot Bgaggi ZZSTZCPC PRI 1 ARTIST 6 COBOL 000002 k k End of Data x Figure 93 SELCOPYi SDE Define Record Types 1 2015 01 19 11 28 28 Training Manual 97 Option 2 Data Edit SDE Specifying Record Type Identification Criteria Specifying Record Type Identification Criteria Define the identification criteria for the ARTIST record type as follows 1 With the cursor anywhere on inserted table row 1 press F6 ZOOM to access a screen where details may be added
61. ll Be Waiting Adele One and Only Adele Lovesong Someone Like You I Found a Boy Bonus Adele 21 A Track B Hold On amp i Shakes I Found You amp i Shakes Hang Loose amp i Shakes Rise to the Sun amp i Shakes You Ain t Alone a i Shakes Goin to the Party j Shakes Heartbreaker i Shakes Bous HEEE i Shakes Be Mine i I Bin E the B N o AB IN 80000006 gaooooaoao faja faja fa 3 Qvvwvvgooooo TO TO TO TO TO TO T TO FO TO TO TO TO IIl OGOOGO 160000 000000 PRRROO w Me uo Rep papa pa pa pa pa pa pa ps a a a a a H a ea a ae ae G G G G H zo H CO CO e GOGGOGOGOGGOOGOCGGOGOGGOGOGOCGOGOGOQOQOQOU mr ccocGGOGGGHBP BH BHPBOOOOOGOGOGGOO H o 10 0 y m ur 4s 0 me 9 TO E Gr uo 0 mus 0 FTO jV ow Figure 76 SELCOPYi SDE CHANGE 1 UNDO REDO Note that all modifications may be individually undone redone using F22 F23 normally Shift F10 F11 which are set to execute the UNDO REDO primary commands Consecutive modifications may be undone by pressing F22 repeatedly e Consecutive modifications may be redone by pressing F23 repeatedly The UNDOING primary command controls the following aspects 1 Whether the UNDO REDO facility is activated 2 The number of modification levels maintained 3 The maximum amount of storage allocated Type Query UNDOING to determine your current settings 2015 01 19 11 28 28 Training Manual 80 Option 2 Data Edit SDE Se
62. marked block Delete marked block C Copu marked block to the clipboard M Move marked block to the clipboard Paste data from the clipboard Insert sequence numbers into marked box Delete word at cursor or blanks up to next word EN ECCE LO I7 e a fi pes nu F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEV s2 EXPAND Figure 30 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 35 Option 1 Text Edit Deleting a Box Block 3 Deleting a Box Block 3 Type D in the option field and press ENTER The marked box block will be deleted from your HOME file e Any data to the right of block will have been shifted left SEBEUPT I TESTI SELCOPYIL CMA Jelade v SEU Size 141 Alt 2 233 am File Edit Actions Options Utilities Window SwapList Help w5 wR Command _ Scratl gt Ger lt 1 2 3 4 7 000001 xx TEST1 SELCOPYI CMX xxx L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 035 RT 001 000008 035 ARTIST 070 000009 05 OO01 000010 o5 amp 070 000011 o5 O01 000012 PI PERSTSTENTI0 016 000013 05 TRACK NUM 9 003 000014 Q5 TRRCK ID 9 004 000015 Q5 NAME 4 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 24 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020
63. mask USER123 SELCTRN 22STSDAT ALL mask matches will be copied press PFS to view deselect matches TRACKOZ2 ar Library Sequential VSAM DSN or HFS path USER123 SELCTRN 2Z2STSDAT FCOPY1 _ Replace existing members If output file is uncataloged ergo E If copying fixed lt gt var length records copy only selected records Z Record Key For each input file RBA t H records PF6 Edit Filter Member gt F File Q Quick gt _ Recurse HFS Sub directories _ Ignore HFS fileid case Figure 105 SELCOPYi COPY Library Members 2015 01 19 11 28 28 Training Manual 112 Option 5 File Copy Reformat FCOPY Select Input Datasets List Select Input Datasets List e f the input file mask matches more than one dataset or matches a PDS PDSE library then a file selection list will be displayed Within the dataset list the member mask field may be overtyped to refine member selection invidually for each selected library Place your cursor on the library dataset then press ENTER to access the member selection panel if required If the member selection panel is not accessed then all members matching the mask will be included in the copy process SELCOPY i Select Files to m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt SCROLL CSF Z25GFSU1 Select files to be included in the operation PF6 Select Deselect ALL File Mask USER123 SELCTRN Z2Z2STSDAT TRACKO2
64. o p a a n O00000 Top of File X X X cx 01 TRACK poooz OS ARTIST PIC B00003 05 ALBUM PIC 000004 05 TRACK NUM PIC 060005 BS NAME PIC OQOQOG kK End of File X ok Line 0 3l SO Si Recl 80 Fmt F Figure 128 SELCOPYi Create Output Copybook 2015 01 19 11 28 28 Training Manual 135 Option 5 File Copy Reformat FCOPY Specify Output Copybook Specify Output Copybook Type CANCEL to discard changes to the input copybook and return to the File Reformat panel Specify the Output Structure Copybook File Type userpfx SELCTRN SAM1 in the Dsn field Type ZZSP1CPC in the Member field assuming COBOL installation Check the Type option for Cobol or PL1 as appropriate for your installation SELCOPY i File Reformat m File Help JCL Command wS wR Command gt EDO Csr zzsGFCOO Lines a of 2i PF10 Browse Input Dataset PF22 Browse Input Copybook Input Structure Copybook overlay Recompile gt N Dsn gt USER123 SELCTRN SAM1 Member Z2ST1CPC Type mpl RData zt JE oie tail PFii Browse Output Dataset PF23 Browse Output Copybook Output Structure Copybook overlay Recompile gt N Dsn gt USER123 SELCTRN SAM1 Member 22SPiCPC Type SDO RData als ino PEI A PFI 2 Execute ENTER 3 Back PF3 A Exit PF15 Figure 129 SELCOPYi Specify Output Copybook 2015 01 19 11 28 28 Training Manual 136 Option 5 File Copy Reformat FCOPY Execute Reformat Press ENTER to execute the r
65. of Updated Output GOpVDOOIE ucc nio rita peek E ipe iia iii 140 Force Recomplle of Updated Output Copybook 2 coaccosseess cence cxech heh e dete tardes dee E Ecke ba ete aui Ro dva a enun ex edd 141 Running Ele Gopy Reforat Im BICI cos sauces eod rer erdt a vorago tv rur res sve E 142 Option 6 File Search Update Copy Reformat FSU eeseeeeeeeei eee eeeeeeeeee nennen nens ntnn sinn aan tn natns sinn asina sinn satt n nete sana 143 ThS bile Sesren Update d SU T PSL oia qtu f ids NR Uem E DEI Ted 144 Searchinga PIBS IPIDSEJXIDIGE EES qaid ial tto a ea tei EO Eaa E Fapear seul iedeiancesdeud 144 Search Report Output Standard 80 columm Screen WIidili uiuit orate iore eu eate tecta te vertat eee itum ev iue 145 Displaymg Additional Hit Infarmisuon fields 3 2 2 2 lapso dales Uus SIUE lirio Aiai 146 Using Fe te sditthe Ht ile RECON usos oco eese ete eot es ren t pete oil ir 147 Adiusting Report Table Vias a 148 Selecting Library Members for Search DU pale i saos ciu ete corri reta irren aislada 149 Condensing Selected Members by Timestamp Size Userid sesseseesseseeeeeene enne 150 Condensing Selected Members usino INI iiia do MALES 151 Condensed Member selecta SE auc iure cea eth tae li tuc ea a ideo 152 Condensed Member Search ori m 159 AA A eaaa ar a aE ae Sa a EAO AEE Ea Aa AEAEE 154 Setting Up sample DB2 Tables instan ricota ios E Ia 155 Ss Up sample DB TADOS B
66. return to SDO main panel e Select option 3 should you wish to supply any COBOL Replacing Options not necessary for our sample e Select either Option 4 to Create the SDO in the foreground Option 5 to Create a Batch Job to generate your SDO Note To specify a JOB statement that will be automatically inserted at the start of any z OS batch job generated using SELCOPYi select option 6 Batch from the Settings panel 20 6 e f created in the foreground a message similar to the following should appear on completion ZZSD145I Structure USER123 SELCTRN SDO ZZST2 created with 3 record type s Maximum record length 268 minimum record length 71 Opti COPY 1 USER dit Action EVENE M a ons apList SUL D2U1273525 S S Utilities Window Sw S wR a s Help Command gt Scroll gt Csr Ce d pesce gei s c S Ci Ca PS IG SS Ae SS SE leere pese cs SSS co pesi o co s E63 Sepa So Spe Sa 00001 USER1235S JOB CLASS A MSGCLASS xX MSGLEVEL 1 1 NOTIFY amp SYSUID 00002 77X 00003 XX SELCOPY i 3 2B C 2012 Compute Bridgend Ltd UK 44 1656 652222 00004 x JCL for ZZSGSDOT SDE Create Structure 80005 X Created by USER123 2012 11 20 11 19 17 00006 xk 0007 SELCOBO1 EXEC PGM SDERMRIN REGION OM 00008 STEPLIB DD DISP SHR DSN CBL CBLI320 EXE 0009 DD DISP SHR DSN CBL CBLI310 EXE 00010 22SUSERI DD DISP SHR DSN USER123 CBLI INI 00011 SDEPRINT DD SYSOUT 00012 SDEIN DD 0001
67. the Browse option to get a drop down list of available utility functions including edit delete and rename SELCORY 71 Browse DSER 123 SELCTRH ZZST2DAHT ESDS3 m File Edit Actions Options Utilities Window SwapList He Command gt Scroll Csr 00000000 et k Top of Data Xxx Record type UnMapped Variable 0 268 Offset 0 Data elements 1 Length UnMapped A ccc ccccqeececfeecc gaoaogaadaodo1t 268 STCBTFD20RDBEi19R8DOGE211GBourgeoisie Blues 00000002 268 3079FFO6C1501FB9600D797I Roman Wall Blues 268 31ED550900D5C62FDODA433GIt s A Long Way To The Top If You Wann 00000004 268 3D6A9IFB72ABAE79C100B433IRock n Roll Singer aagagaaaaogs 268 35524E8098080DTB3CTSO0OE143GSoul Stripper 80000006 268 3342C9735E5AT6418004A437YIRock N Roll Damnation oo000007 268 3QEEDS24BEE2DD30100B438ADown Payment Blues B000000s 268 3924DD5148CDEF39F00H421ESubterranean Homesick Blues gaoeagaaoaoaogs 268 32AFQS8B93888AEES87O0F303AEveryday I Have the Blues Live 00000010 268 3DE36E78FD678857800C340ASoulmate 00000011 268 347TES5BE872D4779C900D175ESoulmate 00000012 268 3FD4B86E2C95D53CFOBDH3569AGuUsS s Blues Intro 00000013 268 30C9E4EBOFF13BF8800B3Tr0CKilling the Blues 00000014 268 39D4FF395C7568D0EADOC1589ARunaway Train 00000015 268 3988EE8137A14CDED00C382ILife and Soul 268 3402159C7Y8BD2DB08004A428IHey Soul Sister 80000017 268 3EF3024088704CFFS00C405GWalking In the Shadow of the Blues 00000015 KK End of Data Xxx Line 0 ALt 0 0 0 Figure 124 SELCOPYi Browse
68. the Name of Love Live si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO 12 Reset Box E I yuecl 3J39 Cal l Alt 7 34 5ize 1298 Recl 268 Fmt Files 2 Figure 47 SELCOPYi SCOLOR LCOLOR 2015 01 19 11 28 28 Training Manual 52 Option 1 Text Edit String Coloring 2015 01 19 11 28 28 Training Manual 53 Option 2 Data Edit SDE Data set records may have an associated file structure that maps field information position length and data type for all data within each data set record These structures often exist as a PL 1 or COBOL copybook The SELCOPYi Structured Data Environment SDE allows users to display and process structured data sets using a pre defined SDE structure so that record data is formatted and arranged in field columns An SDE structure may be generated from a copybook or using SDE s Create Structure internal syntax and can contain a number of mappings one for each different type of data set record During this section you will learn how to e Change Display Modes e Use the LAYOUT command to display the active structure e Scroll the display to an invidual Field e Select Order visible Fields Adjust Field display column widths Use the SELECT panel e Use the FIND EXCLUDE and ONLY commands e Use the CHANGE command Use UNDO REDO e Filter records using ALL MORE LESS commands Work with Multiple Record Types with different Layouts e
69. to the Rain Adele E7TSS5BCE1CFSCDEA He Won t Go Adele 6798C2ABGAFBe2S71 Take It ALL Adele 3962B35D1547DE7SE I ll Be Waiting Adele One and Only Adele Lovesong Adele Someone Like You Adele I Found a Boy Bonus Adele Adele 21 A Track B cord tupe TRACK Uninvited ALL I Really Want 80000010 goooooii gaoaooooia 80000013 80000014 80000038 80000039 DIEFS3B14D5A4790 00000040 ORSEACES3S2929B38F You Oughta Know BOG00041 CBSASB24DB37898D Perfect 00000042 BeeEEC33174DCC60 Hand In Muy Pocket 00000043 8276C6502939EE3B Right Through You 74E398087479A309 Forgiven D6876CESB59004CF You Learn 00046 AF138361B3B3E268 Head Over Feet q 7 gt Fmt F eoo aos aos 610 011 012 ais clu 016 Boi oos aos Figure 71 SELCOPYi SDE EXCLUDE 2015 01 19 11 28 28 Training Manual 75 Option 2 Data Edit SDE Excluding Records Based on Field Content ONLY O Excluding Records Based on Field Content ONLY O e The ONLY command may be used to display only the matching records and also takes the same parameters as FIND e g ONLY ALABAMA 5 6 ONLY may be abbreviated to O e Use the ALL command to redisplay any excluded records USER123 SELCTRN ZZSTIDAT using USER123 SELCTRN Mist wS wR e occurrences of string alabama were found in records PERSISTENT ID TRACK NUM TRACK ID NAME 2 3 4 H5 AN 1 16 EDITUS zD 20 4 AN 24 120 cdi eS tuer RON OO LO et pacco 6D4CeC7BATEDISIS 4169 Hold On E241B09CcC251C386 4171 I Found You E
70. to this file at any time during 0000185 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s68 BoxFuncs s10 UNDO ALS s12 REESE Eds Line 1 a Alt 4 4 58 Sia c Jede Toe h e L e a e y lo Figure 43 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 48 Option 1 Text Edit Using the FILLBOX Primary Command 1 Using the FILLBOX Primary Command 1 Next we ll use the FILLBOX FILL primary command to set all characters within a marked block This technique is most frequently used to blank out a portion of the file but we ll use it to set the value X Mark the data block as shown below On the command line type FILL X SELCOPY i TEST1 SELCOPYI CMX arde Y E Size 141 Alt 4 4 5 m File Edit Actions Options Utilities Window SwapList Help w5 wR E Command fill X Scroll Csr 225E0201 3 occurrence s changed on 3 line s 000001 xx TEST1 SELCOPYI CMX xxx L 001 2014 07 30 14 39 49 TEST1 000002 000003 ls 000004 000005 This is your HOME file or pe
71. vView deselect matches Output PDS PDSE Library Sequential YSAM DSN or HFS path DSN Path gt USER123 SELCTRN ZZST2DRT ESDS1 Member gt _ Replace existing members Volume gt If output file is uncataloged Strip Pad Char elg EE If copying fixed lt gt var length records Record Selection For each input file copy only selected records AO O Gr Z Record _ Key RBA Eg snm 5 records Filter Q Select records to copy F File Q Quick PF6 Edit Filter File gt Member gt Options Reformat using structure copybook layouts _ Recurse HFS Sub directories Append to existing Output _ Ignore HFS fileid case Figure 115 SELCOPYi Summary message 2015 01 19 11 28 28 Training Manual 122 Option 5 File Copy Reformat FCOPY Browse the Output File F20 Browse the Output File F20 e From the File Copy panel you may press F20 Shift F8 to browse the output file SELCORY i Browse USERIZ3 SELCTRN 2Z25TZDAT ESOS1 m File Edit Actions Options Utilities Window SwapList Help Command gt SECOL CSI Press PF4 for Utilities menu including point shoot options Record type UnMapped Variable 0 407 Offset 0 Data elements 1 Length 00000001 wel Bogaoaoaoaoao2 posl 00000003 268 00000004 268 Bgaaaoagaags 258 3080808080065 Line UnMapped BN NT IN A I II pee cse f eie 1Alabama Shakes 2Bous amp 38 Girls 36D4C2CTBATED1593004A4161IHold On 3E241B09CC251C38600B417AI Found You 3E74C16BCB3198
72. with the structure SDO deactivated For efficiency reasons the process of separating each physical record into its logical segment is performed once only at initial load e In single record modes display is sensitive to the PREFIX setting PHYSICAL LOGICAL PREFIX Mode Display SOS PHYSICAL Segment gt pppppppp 111111 pppppppp denotes the physical record number 111111 denotes the logical segment number within that physical record LOGICAL Segment ssssssss ssssssss indicates the logical segment number within the whole file SELCOPY i Browse USER123 SELCTRN Z22S5T3DAT using USERi23 SELCTRN SDO 72ST3 m File Edit Actions Options Utilities Window SwapList Help wS wR Ex Command gt Siete LS LET ee Segment TRACK Fixed 268 Offset 0 Data elements 53 Segment 00000025 7 000004 Flags f Length 268 Ref Field Type ET 1 1 TRACK AN 1 268 2 5 RT AN 1 1 3 3 5 PERSISTENT ID AN 2 16 EF4ABS31C8FBFOQ21 4 5 TRACK NUM nab TENA gar 5 5 TRACK ID ZDE Ia 4203 6 5 NAME AN 25 120 You Pulled Me Through oO sa Bw 120 7 Sonne alle FB 145 4 peat Us Pa Je HS OESTE FB 149 4 7763606 9 5 BIT RATE DEI JE 255 10 5 SAMPLE RATE PD 155 3 44100 11 5 YEAR 2D 158 4 2008 12 5 NORMALIZATION PD 162 3 4645 13 35 DISC NUMBER cl laa elal H14 5 ALBUM ARTIST AN 168 41 Jennifer Hudson A1 41 15 5 RELERSE DRTE AN 209 20 16 f RELEASE YYYY AN 209 4 2008 18 Y RELEASE MM AN 214 2 09 20 Y RELEASE DD AN 217 2 29 22 Y RELEASE HH
73. 00000010 05 BIT RATE PIC 00000011 05 SAMPLE RATE PIC 00000012 05 YEAR PIC 00000013 BS NORMALIZATION PIC B0000014 BS DISC NUMBER PIC 00000015 05 ALBUM ARTIST PIC 00000016 05 RELEASE DATE PIC 088000017 05 DATE ADDED PIC 00000018 05 DATE MODIFIED PIC 00000019 xk End of Data Xxx BINARY BINARY BINARY PACKED DECIMAL PACKED DECIMAL XXXXU0OODDDDDDO XXX arme ame pa pa pe pe pa e pe pe pa pe om om 5000000000000 NNNA C G CD G9 OD QD QD 9 2 GGGmGQ tU amp O amp UuO OGG il Line ALt 0 0 0 Figure 127 SELCOPYi Browse Input Copybook 2015 01 19 11 28 28 Training Manual 134 Option 5 File Copy Reformat FCOPY Create Output Copybook Create Output Copybook Move 05 field ARTIST following 01 TRACK and change PIC X 070 to PIC X 020 Move 05 field ALBUM following 05 ARTIST and change PIC X 070 to PIC X 024 Move 05 field TRACK NUM following 05 ALBUM Move 05 field NAME following 05 TRACK NUM Delete all other lines following 05 NAME Type CREATE ZZSP1CPC on the command line but do NOT press ENTER Make a mental note that total record length defined by the copybook is 167 i e the sum of all the field lengths 20424 34120 Type C in the prefix area of line 1 of the file then press ENTER to create the new member SELCURBTZi1 MUERTES SELECTEREN SAME ZST TIE m File Edit Actions Options Utilities Window SwapList Help wS wR x Command cre zzspicpc scroll cst A ea a e e
74. 000011 29 001 000012 EM PERSISTENT ID amp 015 000013 EM TRACK NUM 9 003 000014 iM TRACK ID 9 004 000015 De NAME KI 120 000016 Type the HOME H0 command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Line 1 e 5i S E L E UE EE yy al Figure 32 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 37 Option 1 Text Edit Moving a Box Block 2 Moving a Box Block 2 Place your cursor at column 28 of the first copied line We will move the marked box to this location Press the BoxFuncs key Shift F8 Type M in the option field and press ENTER e The marked box block will be moved SELCTOPY 1 TEST1 SELCOPYI CMX Jeras s Size 141 REESS 354 m File Edit Actions Options Utilities Window SwapList Help w5 wR m Command _ SEPBLUSSESE 4 1 4 2 4
75. 00010 268 3962B35D1647DE7SEGGH209GI 11l Be Waiting 00000011 268 S3D8necaFDC280217780801209IO0ne and Only A 268 32502515DEB53501001 210ALovesong 268 3E374BE6EE7C86B1D81A210CSomeone Like You 268 3D4EB4EBF4651EF2001B210El Found a Boy Bonus Track 00000015 268 3CEC92B1BA3204ADAD01C210GAdele 21 A Track By Track Interview 000000165 T1 1Alabama Shakes 00000017 71 2Boys 84838 Girls 80000018 268 S36D4C2CTBRHTEO159300R8416IHold On 00000019 268 3E241B09CC251C38600B417AI Found You 00000020 268 3E74C16BCB319870C00C417CHang Loose 00000021 268 3214ED5D95B84533C00D417ERise to the Sun 00000022 268 30E421AFCD141D22D00E417GYou Ain t Alone 00000023 268 3FF47FB9EQ5DE896700F417IGoin to the Party 00000024 268 35D46C681552440BF00G4158AHeartbreaker 00000025 268 Wine dd SAC ee eee ante 5 8838 A Line 1 ALt 0 0 2 Figure 87 SELCOPYi SDE Sample Dataset 2 2015 01 19 11 28 28 Training Manual 90 Option 2 Data Edit SDE Automatic Record Type Association for Direct Copybook Overlay Automatic Record Type Association for Direct Copybook Overlay Exit unformatted browse of Sample Dataset 2 then re edit specifying Structure Copybook overlay using sample copybook 2 which contains 01 LEVEL entries for each of the 3 record types Specify the Structure Copybook overlay Activate the option by entering a in the left margin field Type userpfx SELCTRN SAM11 in the Dsn field to specify the PDS library containing the supplied COBOL PL1 copybook
76. 00012 05 NAME 120 000013 TOTAL TIME 9 007 BINARY 000014 FILE 5TZE 9 009 BINARY 000015 BIT RATE PIC 9 004 BINARY 000016 SAMPLE RATE PIC 9 005 PACKED DECIMAL 000017 YEAR PIC 9 004 000018 NORMALIZATION PIC 59 005 PACKED DECIMAL 000019 DISC NUMBER PIC 93 003 000020 ALBUM ARTIST PIC 041 000021 RELEASE DATE 000022 Of RELEASE YYYY PIC 004 000023 Of FILLER PIC 001 000024 07 RELEASE MM PIC 002 000025 G7 FILLER PIC x 001 si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO 12 ResetBox Line 1 AMES j Recl 80 Fmt F Figure 21 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 24 Option 1 Text Edit UNDO REDO UNDO REDO SELCOPYi supports multi level UNDO and REDO of changes made during your Text Edit sessions UNDO REDO is file independent meaning you can be editing and changing many files within your SELCOPYi session each of which may have their changes separately undone redone To demonstrate this feature first use the features described earlier to insert delete replicate split and join lines of text in our sample COBOL copybook then e Press Function Key F22 Shift F10 repeatedly to UNDO each of the changes 1 at a time e Press Function Key F23 Shift F11 repeatedly to REDO each of the undone changes The UNDO REDO feature is unaffected by the SAVE command Type HELP UNDOING for full information on how to configure this
77. 00028 800038 CSF3F7F4 EOETCIEE 89928540 40404040 40404040 40404040 40404040 40404040 40404040 84859385 40404040 40404040 40404040 40404040 40404040 40404040 40404040 40404040 DeEAD5O1 FOC1C184 Figure 56 SELCOPYi SDE HEXD 2015 01 19 11 28 28 40404040 40404040 40404040 40404040 40404040 ALt 0 40404000 Reel 40404040 40404040 404040F2 TAFOFOTA HEEE P4 ws a FecaeF1c4 58540D3 40 40 40 40 40 40 40 40 40 40 40 40 40 bBbhbhhhhbhhbhbhbhlh IS b a a h 40404040 Training Manual 62 Option 2 Data Edit SDE Formatted Multi Record VFMT Display Mode Formatted Multi Record VFMT Display Mode Type VFMT to return to the default multi record formatted display mode SELCOPY i USER123 SELCTRN ZZSTiDAT using USER123 SELCTRN SAM1 ZZSTICH File Edit Actions Options Utilities Window SwapList Help wS wR gt Command o Record type TRACK Fixed 407 Offset 0 Data elements 18 PRE RSE SIA TRACK NUM TRACK ID NAME 2 3 4 H5 AN 1 16 ZD 10 3 AN 24 120 done posi E DEN A ELLE LLL ES74BE6EE7CS6B ET Someone Like You D4EB4EBF4651EF 01412 I Found a Boy Bonus Track CEC92B1BAZ3204A Adele 21 A Track By Track Interu bBbpacec TBa7EO15 Hold On EgS41BOS3CCO51CS3 T Found uou Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Boys amp H38 Girls Be Mine I Ain t the Same On Your Way Heavy Chevy Converted Speed Up the Sound of Loneliness
78. 0008863 The Civil Vars lt egggga6d The Sundays lt 888808855 Thin Lizzy 90006866 Trains 88888867 Tur in Brakes lt 10000965 vaz 10000969 798 U2 amp B B King PE DBNANE TSNRHE DBID OBID COLCOUNT EDPROC UR 96608076 716 Vhitesnake lt TESTi SELCi6RS 473 5 3 60000071 728 Whitney Houston lt TEST1 SELCTRNR 473 3 2 880080872 738 2Pac amp Dr Dre lt TESTi SELCiCNU 473 id 16 98000073 EK End of Data ek FS RF IND F6 RCHANGE si InsLine s2 DelLine s3 DupLine sd Options s5 ZoonW 16 UNDO s511 REDO T 5 gt Re 34 Viens 1 2014 09 15 15 42 52 Alt 6 6 6 Figure 178 SELCOPYi DB2 Figure 32 2015 01 19 11 28 28 Training Manual 187 Option 12 DB2 REDIT Example 2 REDIT Example 2 e A separate edit window will display only the ALBUM rows for ARTIST IDz490 Type primary command CHANGE ALL 490 480 3 then exit and save changes File Edit Actions Options Utilities Vindow SwapList Help WS WR Aj Edit table TESTI SELCTRN_ARTIST in tablespace TEST1 5ELCTRNR Scroll csr Row 47 of 72 Table TEST1 SELCTRN_ARTIST ELLAS ELGLLELES 90000049 90000059 66666651 96660852 666608535 00000054 60000055 10000055 10000057 10090055 909008959 10000055 66660861 66666662 96666663 90000064 10000055 10000965 66660867 109000565 96660869 66600676 60000071 90000072 99800875 _ FS RFIND Line 6 ID NAME me SHINT URRCHRR 8 Scroll Csr GL qum 1 12 of 12 488 Ray Lamontagne lt 498 Ray Lahontagnec IBZ CBLA
79. 0014 3924DD5148CDEF39F00H421ESubterranean Homesick Blues 00015 A5DCEE01334C978100H427ANot Dark Yet 00016 77122BAF414692C100H218El Wish I Were Blind 00017 581FSF3BFE2255DA00H222EDry Lightning 00018 4BA23CA33D449358000H224IThe Brokenhearted 00019 12B58956F463EF6S500H229ELoose Change 00020 021F64833305EB3300H232EMy Oklahoma Home 00021 BY108A3D385675A3600H238IBlinded By the Light 00022 DCESESAC177CSDS52GGH236CIF I Should Fall Behind 00023 7TOSE6GBSESOD7T61F400H240IThe Long Division 00024 10FS6FS5F12AAFT6200H243CLoving Me 4 Me 00025 809FDBGE1ECCOADSFO0H247EWarning Sign 00026 1E42597T09ETE552400H415EHow Does a Duck Know 00027 2bESTRCSFOFEDOO32080H27TS8ETransformation 00028 DAGFBDE6949EB562DFOOH280IJanuary Rain 00029 E172577BODGEFSD4GGH283ASilver Lining 00030 46CD09047022D58A200H2586ACrashing Down 00031 58ro020r25ED2F19BCO0H2558EEmpty 00032 FCS44197TCA33747100H291EDelayed Devotion 00033 58232305C8FBBF92700H2936GI Want The World 00034 OBASOB44BO5165DB00H296GBetween Two Lungs 00035 SFAESEFSFB53B3CSE88H413RO0ne of the Boys 00036 2AFD30DS6BE2562B00H299IScraped 00037 4BC56ESB1677TD896600H303EWho Did You Think I Was Live 00038 5T13F8RHBRF2422R8DBOGHS3O07GBetween a Laugh and a Tear 00039 230FFC8GDC91FSCAGGH310ADead or Alive 00040 254664C17E6213FP600H312IBack TALE Line 14 ALt 0 0 Figure 139 FSU Edit Hit Member 2015 01 19 11 28 28 Training Manual 147 Option 6 File Search Update Copy Reformat FSU Adjusting Report Table View Adjusting Re
80. 00815 88888814 66660015 66666016 96686817 90000015 66666019 96660626 66660621 96666622 66666625 90000024 60090025 66666626 96660627 66666625 66666629 66666636 96666631 __Fi HELP Line 6 e Enter R in the Action gt field to start Related Table edit ctions Options Utilities Vindow SwapList Help LS UR Edit table TEST1 SELCTRN_ARTIST in tablespace TEST1 5ELCTRNR Top of 73 11 SELCTRN RRTIST ID NAME ii 2 SHINT URRCHRR 8 4 4 1 4 2 i 3 4 4 i 5 4 6 1 Ak Top of Data ek 78 Bob Dylant TT Scrol esr DB2 has reported a DELETE rule violation SQLCODE 532 Relationship ALBUNRL Delete rule Restrict Parent 2 TEST1 SELCTRN RRTIST Dependent TEST1 SELCTRN RLBUH A DELETE operation attempted to delete a specified row and all dependent rows in dependent tables but this relationship s DELETE rule prevented it Action gt R CANCEL Cancel the edit session EXIT Return to the edit session REDIT Edit the related table Foreign Key Parent Dependent Colum colum colum value 696061 ID RRTIST ID 7a 888882 End of Data k 288 John Mellencampc Tourney lt Judas Priest lt Kosheen lt Scroll Csr Scroll Csr 1 12 of 12 H B Test Help Scroll Csr PE DBNANE TSNRHE DBID OBID COLCOUNT EDPROC UR TESTi SELCi6RS 473 5 3 TEST1 SELCTRNR 473 3 2 TESTi SELCiCNU 473 id 16 F2 SPLIT F4 4 INDOW FS Select F6 Deselect FS SVAP Fi2 CRETRIEU s
81. 013 lt Scroll Csr 60000014 600900915 60000015 60000017 60000015 66666619 96966626 96660621 96986622 i PE DBNRHE TSHRHE DBID OBID COLCOUNT EDPROC UR 96660625 i TESTi SELCI6AS 473 5 3 60000024 Guns N Roses lt TESTi SELCTRNR 473 3 2 60000025 Jennifer Hudson lt TESTi 9 SELCICNU 473 14 16 100000026 Jessie I lt 96980627 66666625 66666629 298 Journey lt 66666036 388 Judas Priest lt 66660031 318 Kosheent _ F17HELP F2 SPLIT F4 UINDOV FS5 Select F6 Deselect FS SVAP Fi2 CRETRIEV S2 EXPAND sS 200h S18 UNDO s11 REDO Alt 6 8 4 e 73 2014 09 15 15 35 19 Figure 160 SELCOPYi DB2 Figure 14 2015 01 19 11 28 28 Training Manual 169 Option 12 DB2 Related Table Edit Window 1 Related Table Edit Window 1 A separate edit window will display only the ALBUM rows for Alanis Morrisette ARTIST ID 40 To explore the album Jagged Little Pill enter RE in the prefix area File Edit Actions Options Utilities Window SuapList Help 5 Un Aj Edit table TESTI SELCTRN_ARTIST in tablespace TEST1 SELCTRNR Top of 73 Table TEST1 SELCTRN_ARTIST m NAHE me SMINT PORUM Scroll Csr Gus gu LS e i a a oe 86660606 ee Top of Data eee Beoooao E Adele lt 66660062 Alabama Shakes lt 90088803 Alabama 3 lt aoaaaaad Alanis Morissettec 00090905 0000006 S2 CBLA Edit related table TEST1 SELCTRN_ALBUN in tablespace TEST1 SELCI6AS n 60090007 Scroll Csr 008805 Top of 2 96666869 Table TESTi SELCTRN RLBUM Dependent of TEST1
82. 06 ee Top of Data oe 66666601 18 Adele lt 00009902 28 Alabama Shakes lt 160000003 38 Alabama 3 60090004 48 Alanis Morissettec 00000905 10090005 66666007 Bruce Spr ingsteen lt EET Bruce Springsteen amp The Sessions Band lt 10090909 Burt Bacharach amp Elvis Costello lt 888888168 118 Christina Aguilera lt 66660011 128 Christina Aguilera amp Dave Navarro lt 60090012 i Coldp lay lt B Text Help 66660615 Crash Test Dunmies lt Scroll Csr eaae d is Damien Rice lt 88888015 David Gray lt 69660016 1 Deep Purple lt 60000017 188 Del Amitri lt 96980815 198 Duffy lt 96608019 266 DI Fresh lt 66666626 218 Embrace lt 66600621 228 Florence The Machine lt 96686622 238 Gretchen Vilson lt PE DBNRME TSNRME DBID OBID COLCOUNT EDPROC UR 96986625 248 Guns N Roses lt TESTi SELC1GAS 473 5 10090024 258 Jennifer Hudson lt TESTi SELCTRNR 473 zi 2 96966625 Jessie J lt TEST1 SELCiCNU 473 14 16 66600026 John Hayer lt 66666627 John Nellencamp lt Views 1 99660625 66666629 96960836 66666031 328 Led Zeppelin lt FS RF IND F6 RCHRNGE si I i ne s2 De lLine s3 DupL ine s pt ions s5 Zoonw 16 UNDO s11 REDO Se Line 6 Col Alt 6 65 6 TL es euws 2014 89 15 15 41 52 Figure 175 SELCOPYi DB2 Figure 29 2015 01 19 11 28 28 Training Manual 184 Option 12 DB2 DB2 Help Pages DB2 Help Pages Further DB2 specific information is available by pressing the HELP key F1 File Edit Actions
83. 1 Not the Doctor lt 66666612 Vake Up lt 66666615 56 You Oughta Know F1 HELP F2 SPLIT Fd4 UINDOU F12 CRETRIEU e Line Alt 9 051 CET tec 1 8 2614 8918 Figure 163 SELCOPYi DB2 Figure 17 2015 01 19 11 28 28 Training Manual 172 Option 12 DB2 The SELECT dialog The SELECT dialog We ll select column PERSISTENT ID first followed by TRACK NUM and NAME e Set option Perm Temp to TEMP e Set option Show unselected fields at the end to N e Enter S to select each of the required columns e Enter 1 in Seq field for PERSISTENT ID to ensure it s selected first If not explicitly ordered by entering a number in the Seq field other fields will be selected in the order they appear in the selection table You can enter standard edit line commands M and A in the numeric prefix area on the right to re order the selection table rows Press F3 to exit the dialog Your DB2 table view will be updated according to your selections File Edit Actions Options Utilities Window SuapList Help 45 un Al Edit table TESTI SELCTRN_ARTIST in tablespace TEST1 SELCTRNR H Scroll Csr Top of 73 Scroll Csr Table TEST1 SELCTRN_ARTIST ID NAME lay Fields for a Record Type me Command SHINT VARCHAR 76 ZZS5GSELD 4 amp 4 1 i 2 Structure Name TBR88187 TESTi SELCTRN TRACK 90000000 Top of Data ek Record Type SELCTRN TRACK 96666861 18 Adele lt Field Name t Name filter e g 43 x 96980862 28
84. 15 01 19 11 28 28 Training Manual 95 Option 2 Data Edit SDE Specifying Copybook Libraries Specifying Copybook Libraries Select option 1 to specify the dataset name s of the libraries containing your COBOL PL1 copybooks using an editable table e Insert a new line into the Copybook Library table by typing I into the table prefix area 000001 e Type userpfx SELCTRN SAM11 into inserted table row 1 e Press F3 to return to the SDO main panel From File Help JR x Command gt Eng gt G sir ZZSGSDOL Ceeate Structure Copybook Library List 1 Row Copubook Library Dataset name SO nae oo Deon oo O A OOO A CERCA daga DSERI23 SELCTRH SfRMt 000002 k k End of Data kx Figure 92 SELCOPYi SDE Copybook Libraries Panel 2015 01 19 11 28 28 Training Manual 96 Option 2 Data Edit SDE Specifying Record Type Details Specifying Record Type Details Select option 2 to specify the source copybook member name identification criteria and other optional details for each record type Define the ARTIST record type as follows 1 Insert a new line into the table by typing I into the table prefix area 000001 2 Type ZZST2CPC ZZST2CPP for PL1 installations into the Copybook Library Member field of inserted table row 1 3 The Type field will automatically be set to PRI indicating a primary record type requiring explicit record type identification criteria You may accept this default Press F1 with cursor
85. 19 11 28 28 Training Manual 103 Option 2 Data Edit SDE Creating an SDO defining Segmented Record Types Creating an SDO defining Segmented Record Types Files with segmented record types should be mapped by a SELCOPYi Structured Data Object SDO generated from one or more copybooks The sample 3 segmented SDO member name ZZST3 should be created using the 29 1 panel in exactly the same way as for non segmented sample 2 except that 1 The ARTIST record type is defined as Type DEF DEF record types must be specified without identification criteria 2 The ALBUM record type is defined as Type SEC Identification criteria is required 3 The TRACK record type is defined as Type SEC Identification criteria is required d B E e STRUCTURE from COBOL PL1 copubook s m File Help wS wR Command gt Oro CSF ZZSGSDOR Add a table row then press PF2 to specify its record identification criteria Create Structure Define Record Tupes 3 Rows Copybook Type Start Record Tupe Name O1 Lev Record Lang Libraru Level Offset Member gt Seaqowaa n5 ao aaa aaa e et eee ee lt lt eee 9809081 ZZ2STZCPC D TH IT SI j COBOL BBBg8se2 ZZSTZCPC SEC I ACBUM COBOL gagaaB3 22sST2CPC SEC 1 TRACK COBOL B00004 tk End of Data kx Figure 99 SELCOPYi SDO Create Segmented Structure If created in the foreground a message similar to the following should appear on completion ZZSD4031 Segmented Structure USER123
86. 2 EXPAND s5 200h 16 UNDO s11 REDO Alt 2 2 6 LE Views 1 2614 69 15 Figure 171 SELCOPYi DB2 Figure 25 2015 01 19 11 28 28 Training Manual 180 Option 12 DB2 Releasing locks on Dependent Tables Releasing locks on Dependent Tables If locks on dependent tables are held by DB2 then they must be released before continuing Enter 2 to Rollback outstanding changes Scholl Csr Top of 3 Scroll Csr Table TESTi SELCTRN RRTIST ID NAME 8 m wt SHINT VARCHAR 76 Scroll Csr EY AAA AA Jo po os fm eros or mueres 221200112 60000000 Top of Data ek R 53 6666 6666 6009 9666 6666 6666 6666 o edit the 9666 select an opti 6666 0009 ges 0000 B Text Help EE 2 oustanding changes Scroll Csr 9666 6666 3 Cancel the edit 6666 9000 0000 6006 6000 6666 66666622 Florence The Machine lt PE OBNANE TSNARHE DBID OBID COLCOUNT EDPROC UR 00000023 Gretchen Vilsont TESTI SELCI6AS 473 00000024 Guns N Roses lt TESTi SELCTRNR 473 3 2 66666625 Jennifer Hudson lt SELC1CNU 473 14 16 660066026 Jessie J lt 808008027 John Hayer lt 90009025 John Hellencampc 99000629 Journey lt 000900030 Judas Priest lt 66660031 Kosheent Uiews 1 Figure 172 SELCOPYi DB2 Figure 26 2015 01 19 11 28 28 Training Manual 181 Option 12 DB2 Edit Dependent Table 1 Edit Dependent Table 1 The ALBUM table is edited displaying only rows matching the foreign key for the artist Bob Dylan ARTIST
87. 20 gt ae ie em ra Lerma pres gt SSA SO BG I SO pim m Cr md B0000001 CIE CB12DD7r14D51828C 01 2083 Rolling In the Deep B0000001 2698 3 2648A25633D0D15404 90802 2085 Rumour Has It B0000001 ll 39815923C6D2E6830 03 2087 Turning Tables B0000001 LS YDOOSFF 752074C18 D04 2089 Don t You Remember B0000001 yA AED7T39D5S57T4AA4CS gas 2091 Set Fire to the Rain B0000001 260 3 ERSBSBEETEBRSIEREPBIS gas 2093 He Won t Go B0000001 Zh B798C2RBORFB2571 gar 2095 Take It ALL B0000001 SES 3 962B35D154TDETSE 008 2097 I ll Be Waiting EEE lt WSASCEFEDC28021 70 903 20959 One and Ont Size gt 7 P 3275 Pemt v Files 1 vil Figure 100 SELCOPYi SDO Browse Edit using a Segmented SDO Notes By default the prefix area indicates the physical record number to which each segment is attached e Type PREFix LOGical to display indiviudal segment numbers in the prefix area Type PREFix Physical to reset the prefix to display physical record numbers Type Help PREFix for full information The LOCATE command is sensitive to the PREFIX setting PHYSICAL LOGICAL when used to locate an absolute record segment number 2015 01 19 11 28 28 Training Manual 105 Option 2 Data Edit SDE Navigating Segmented Datasets Navigating Segmented Datasets Whether in formatted VFMT FMT or unformatted CHAR UNFMT HEXD display modes all logical segments are displayed individually To display the data in its raw state you must edit browse the dataset
88. 2012 FILE 000060 Medit 4user X RBC TEST2013 FILE 000061 Medit ausera ABEC DA ES E 000082 000083 All SELCOPYi display windows may then be moved resized maximised 000084 minimised and restored in a fashion similar to those on your PC 000085 000086 This is achieved by clicking the window borders title Bar 000087 am o 000088 Clicking means move cursor then hit ENTER 000089 Try setting your Mouse to do this si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s6 BoxFuncs s10 UNDO s11 REDO s12 ResetBox E Line 0 EE Alt 0 0 2 giz8e li32 alisd Ee DATUR Fmt Files 3 Figure 23 SELCOPYi Focus Window Note that changes to data made in one view will immediately be reflected in all other views of the same data Furthermore changes made in one view may be UNDOne REDOone in any other view of the same file 2015 01 19 11 28 28 Training Manual 28 Option 1 Text Edit Marked Line and Box Block features Marked Line and Box Block features Lines of data may be deleted copied or moved within the same file using the familiar line commands supported by the standard ISPF Editor Also lines of data may be copied or moved between different files using a very similar CUT PASTE feature In addition SELCOPYi provides features to manipulate a marked block of data within an edited file There are two types of marked blocks 1 A Line Block consists of one or more complete lines of text The top bottom edges
89. 23 Figure 5 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 9 Windowed Display System WindowList WL Command WindowList WL Command Other ways to switch window focus 1 Place your cursor on any visible part of a window then press ENTER 2 Type the WINDOWLIST WL primary command to display a list of open windows Place your cursor on the title of a window then press ENTER File Edit Actions Options Utilities Vindow SuapList Help WS UR nimany Option Menu H File SwapList Vindow Help QuickRef Conmand gt Scroll Csr Scroll Csr Text Edit Entry Panel File Help Command gt indow List m lly qualified name of a ZZSGEDIT UCIVMAIN SELCOPY i for TSO 3 38 Bui ld 2614696d1265 OpSys Note that the Member PDS PDSE EDTUHRIN or contains Wildcard Name HTHUHRIN Text Edit 71 ed quotes being Vo lume VINVIPOG Primary Option Menu VINVIPOG1 Text Edit Entry Panel Act ion Wildcards X percent Z Edit R PDS PDSE library and Read 0 Browse HFS Options loged data set Not Z Undefined HFS records terminated by End Of Line characters Fised HFS records are of Fixed Length Record Length 8 G gt default Undefined 32752 Fixed 50 ctable list of files will EOL Characters STO EOL user string 2 byte charhex e specified volume Profile Macro Use Default ng the Enter key Use Specified Macro Macro Name PROFILE Do not use a Profile Macro ad all records into
90. 28 Alabama Shakes lt 900900904 36 Alabama 3 lt 10090905 48 Alanis Morissette lt 66660006 58 Alex Harvey lt 160000007 58 AC DCX 96990008 8 Bruce Spr ingsteen lt 00000009 98 Bruce Springsteen amp The Sessions Band lt 96980016 196 Burt Bacharach amp Elvis Costello lt 99000011 110 Christ ina Aguilera lt 96980812 128 Christina Aguilera amp Dave Navarro lt B Text Help 88888613 Scroll Csr 6006001 4 69668015 60000015 60090017 60000015 969860019 666660626 66606621 96966622 i PE DBNANE TSNANE DBID OBID COLCOUNT EDPROC UR 96966625 i TESTi SELCI6AS 473 5 3 00000024 TEST1 SELCTRNR 473 3 2 60000025 i TESTi SELCiCNU 473 14 16 66666626 96080827 y select 66666625 96986629 96666036 96980831 FS RF IND F6 RCHANGE si InsLin s2 DelLine i tions sS Zoonmw 16 UNDO s11 REDO 5e F4 HE 26 Line 6 A 2 250 Size 73 5 es Views 1 2614 69 15 Figure 170 SELCOPYi DB2 Figure 24 2015 01 19 11 28 28 Training Manual 179 Option 1 2 DB2 The DB2 Save SQL Error dialog The DB2 Save SQL Error dialog provides a detailed explanation of the SQL error and identifies the parent and dependent column names The DB2 Save SQL Error dialog It also gives you the oppurtunity to correct the violation using the Related Table Edit REDIT feature File Edit A Table TE LEE R 532 000000902 10000003 90000004 90000005 96860866 66660667 90000005 10000909 66666016 60000011 66666812 966
91. 2841 2843 2845 3205 3207 3209 09 CO 0 49 CO 9 09 0 GA 0 0 C0 0 hoo TO FO TO TO FO TO FO TO FO FO TO FO A otrnmrnrnmrnrnrseeem E E UG E UD JUI GO E LO AJ UT CO e Emt F rA Serel ik Csr NAME 5 AN 24 120 no o 1i Burn Mistreated Mistreated 2 Dreamer Decei Beyond the Re Exciter Running Wild Sinner The Ripper The Green Man Diamonds and Victim of Cha Genocide Tyrant Rock Forever Delivering th Hell Bent for Starbreaker Since I ve Be Stairway to H 89 Option 2 Data Edit SDE Working with Multiple Record Types Working with Multiple Record Types Files with multiple record types may be mapped by 1 Multiple COBOL or PL1 copybooks 2 A single copybook with multiple 01 LEVEL entries each defining a separate record type 3 A SELCOPYi Structured Data Object SDO which may be generated from one or more copybooks using the Structure option from the Primary Option Menu 9 The second sample dataset contains the same information as the first but is comprised of three distinct record types 1 ARTIST 2 ALBUM 3 TRACK To reproduce the following screen shot browse the sample dataset in its raw state i e without applying a copybook structure overlay Use the Data Edit 22 panel to Specify the Data File Type userpfx SELCTRN ZZST2DAT in the Name field where userpfx is your own user prefix If wildcards are specified then a dataset list will b
92. 3 create structure USER123 SELCTRN SDO ZZST2 replace 00014 title SELCOPYZ1 Training gt Sampe z 00015 descr Training Material Sample Record Collection Structure 00016 Multiple Record Types ARTIST ALBUM TRACK 00017 lib 00018 00019 rect 00020 primary 00021 name ARTIST 00022 level 1 00023 source cobol ZZST2CPC 00024 offset 8 00025 use if RT 1 000265 00027 rec Figure 96 SELCOPYi SDO Generated Batch Job 2015 01 19 11 28 28 Training Manual 100 Option 2 Data Edit SDE Browse Edit using a generated SDO Browse Edit using a generated SDO Specify the Data File Type userpfx SELCTRN ZZST2DAT in the Name field where userpfx is your own user prefix Specify the Structure Copybook overlay Activate the option by entering a in the left margin field Type userpfx SELCTRN SDO in the Dsn field to specify the PDS library containing the generated Structured Data Object SDO Type ZZST2 in the Member field Check the Type option for SDO Press ENTER to edit the sample dataset File Command Structure Replace Help E wS wR E Command gt Scroll gt Csr ZZSGSDEO Cines 1 21 Op 25 PDS PDSE member Sequential YSAM or HFS path Name gt USER123 SELCTRN ZzZzST2DRT Member gt Volume gt If dataset is uncataloged Action 4 Browse Data Edit Full Auxiliary AUX File MERA Insert Update Delete Edit Full Read Only DISP SHR _ Edit In Place Update only Edit Ful
93. 3307BE777 When I Look To The Sky BOF4DDD8C25311E8 Ordinary EOE 1454248109232 Calling ALL Angels Radio Version 1164825C5AD2CC49 Blue Hour SpesepBoOF34 Average Man Long Distance Self Help Falling Down Stone Thrown Clear Blue Air Pain Killer Summer Rain Full Of Stars i tack G o P p Pr apgggSGGOGGGOOGGOGGGGGHPBEPOG Me 0 4 Ul S ONE ie FO 0 i Co UL n TO au 500000000000 00000000000 000000000000 270700487110 D i mopmtm mT B 2 E 5 D E B Cc E inmcaoccccoccdcc If HeumDoiuct crm uro Oc oO oGulomgmmmim co me bne Two 20000 M0 NOOO maotcuiumuommm 1800 O 110 CS i AJ UT J UT iTmucgimt ud ogGcogGoccccooccdGoccccGoccdcocccctdccc c EmtzF m Figure 60 SELCOPYi SDE LOCATE record 2015 01 19 11 28 28 Training Manual 66 Option 2 Data Edit SDE Selecting Ordering Visible Fields Selecting Ordering Visible Fields Type SELect followed by a comma separated list of fields in order to restrict the display to those fields of particular interest e Fields may be referred to either by their name or by their field reference number Type either of the following commands to produce the results displayed below SEL TRACK NUM ALBUM ARTIST NAME SEL eric daa SELUCDESYST USER123 SELCTRN ZZSTiDAT using USER123 SELCTRN SAM1I ZZST1iC amp Fale made mee Options Utilities Window SwapList Help wS wR Ex Command gt bes GEE Record type TRACK Fixed 407 Offset 0
94. 35D1647DE75E00H209GI 11l Be Waiting B0000011 268 S3D8R6CGFDC28021770801209I0ne and Only 00000012 268 32502515DEB53501001 210ALovesong 00000013 268 3E374BE6EErC86B1D01A210CSomeone Like You 0000014 268 3D4EB4EBF4651EF2001B210El Found a Boy Bonus Track 00000015 268 3CEC92B1BA3204A0A01C210GAdele 21 A Track By Track Interview 080000016 71 1Rlabama Shakes gaogaaaoir T1 2Boys 84838 Girls 80000018 268 Sb5D4C2CTBRrEO15983080R4156IHold On 80000019 265 3E241B09CC251C38600B417AI Found You 00000020 265 3Er4C16BCB319870C00C417CHang Loose 808000021 268 3214ED5D95B84533C00D417ERise to the Sun 00000022 268 30E421AFCD141D22D00E417GYou Ain t Alone 00000023 268 3FF47FB9E05DES96700F417IGO0in to the Party 00000024 259 35D46C681552440BF00G418AHeartbreaker Line ALt 0 0 0 Figure 111 SELCOPYi Browse Input File 2015 01 19 11 28 28 Training Manual 118 Option 5 File Copy Reformat FCOPY Specifying Start Record Number of Records to Copy Specifying Start Record Number of Records to Copy e Press F3 to return to the File Copy panel e In the Record Selection section activate the Start option by entering a in the left margin field e Enter the start record number 16 in the Start field Ensure that the Record Key RBA selectable option to the right is set to Record This switch indicates the type of Start value provided Start value is a record number Record Value may be specified using 1234 or X 1234 notation Start value is a VSAM KS
95. 4 minimised and restored in a fashion similar to those on your PC 000085 000086 This is achieved by clicking the window borders title Bar 0000857 ar x buttons 000088 Clicking means move cursor then hit ENTER 000089 Try setting your Mouse to do this 000090 Grab the window border with the first click move cursor to a new 000091 location second click reshapes the window Try it nou 000092 000093 Also try dragging using the scrolling keys F F8 and F10 F11 000094 To drag at 5 x speed just hold down the shift key 000095 000096 000097 Having found your perfect window size shape position for a 000098 particular file you may wish to Save its characteristics 000099 allowing Restore in this and future sessions 000100 000101 Use the yellow wS and wR buttons in the main menu bar or 000102 the following primary commands 000103 lt Wink Save Save current window size pos Same as uS button si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s68 BoxFuncs s10 UNDO si DO 12 Reset Box Line 9 Alt 0 0 1 31 2 2015 01 19 11 28 28 Training Manual 26 Option 1 Text Edit Multiple Windowed Views 2 Multiple Windowed Views 2 Now imagine you re editing a large program source file and are focused on a point of interest You then need to look at other parts of the file but don t want to lose your place To return to your original location you could use the prefix
96. 47 454 Offset 0 Data elements 13 Record 00000009 IT HE x Length 454 Field SS SgpS Se seo SR So pe oS Se SSS Sgn SSS gO PS Sg pS SS Sea SS Spe E zDsn USER123 SELCTRN ZZSTSDRT zMember TRACKS zRecNo 14 ZHitNo al zLrecl 407 zHits 1 zRecord 3924DD5148CDEF39F00H421ESubterranean Homesick Blues AS 120 C C Y Y Y C0 CO TAN 180 Bob Dylan 181 240 The Essential Bob Dylan 241 300 oy fal 2001 301 360 Beganpob Dylan 2000 10 31T00 EET 407 00 0022012 08 02T14 08 3622012 08 02T14 13 202 Figure 138 FSU Search Report Zoomed 2015 01 19 11 28 28 Training Manual 146 Option 6 File Search Update Copy Reformat FSU Using F6 to edit the Hit File Record Using F6 to edit the Hit File Record From the report table view you may place your cursor on any Hit record then press F6 to edit the hit file The edit view will be automatically scrolled in order to place the hit record at the top of the screen This feature may be adjusted using the Settings gt List 20 5 panel to select the required action Option Action o 0 0 0 Edit Text Editor Edit SDEU Data Editor Update in place more eo The screen below shows the display after pressing F6 from the table view with the cursor on the first hit from member TRACK008 SELCOPY i USER123 SELCTRN 2Z2STSDAT TRACKOOS 40r F PDS m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Scroll gt Csr Ct nnn nn a an an nn a a a nn ta a a Bn eo it 0
97. 6 Burt Bacharach amp Elvis Costello lt 98000011 Christina Aqui lera lt 66666612 Christina Aguilera amp Dave Navarro lt B Text Help 60000013 Coldp lay lt Scroll Csr 90099014 140 Crash Test Dunmies lt 60009015 Damien Rice lt 66600016 David Gray lt 66660617 Deep Purple lt 66660815 Del Amitri lt 666666819 Duffy 96980626 DJ Fresh lt 96666621 218 Enbrace lt 96666622 Florence The Machine lt PE DBNANE TSNRHE DBID OBID COLCOUNT EDPROC UR 86660625 Gretchen Vilson lt TESTi SELCI6AS 473 6 3 60000024 Guns N Roses lt TESTi SELCTRNR 473 3 2 00009925 Jennifer Hudson lt TESTi SELC1CNU 473 14 16 66666626 Jessie J lt 69600627 John nayer lt 66660028 John Hellencamp lt 96666629 Tourney lt 96666636 Judas Priest lt 66666031 Kosheen lt FS RF IND F6 RCHANGE si InsLine s2 DelLine 5e Line 6 2 3 Recl 8d Figure 169 SELCOPYi DB2 Figure 23 2015 01 19 11 28 28 Training Manual 178 Option 12 DB2 The E edit line command The E edit line command Enter E in the prefix area to display the DB2 Save SQL Error dialog File Edit Actions Options Utilities Window SuspList Help 5 Um IB2 CBLAJ Edit table TESTI SELCTRN_ARTIST in tablespace TEST1 SELCTRNR H Command 5 22503461 SAVE inserts 6 deletes 8 updates 8 SOL errors i for DB2 object Scroll Csr dar ja me 3MINT VARCHAR 78 Scroll Csr A SaaS LLL LLL E leds ine de 90000000 Hk Top of Data r ES 70 Bob Dylanc 96666662 18 Adele lt 000900903
98. 68 SELCOPYi SDE FIND 1 2015 01 19 11 28 28 Training Manual Using FIND EXCLUDE and ONLY commands using SwapList Help wS wR Fixed 407 Offset 0 Data elements 18 NAME 5 AN 24 120 pS SO o O SES O Rolling In the Deep Rumour Has It Turning Tables Don t You Remember Set Fire to the Rain He Won t Go Take It ALL I ll Be Waiting One and Only Lovesong Someone Like You I Found a Boy Bonus Adele 21 A Track B Hord Gir TOEgGund yew Hang Loose Rise to the Sun You Ain t Alone Goin to the Party GEBRAbresker Boys amp H38 Girls Be Mine I Ain t the Same USER123 SELCTRN SAM1 rai At iy fe Scroll csr ARTIST 6 AN 144 76 lt 1 Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama 72 Option 2 Data Edit SDE Restricting the Search to a Specific Field The search may be restricted to a specific field e g F ALABAMA 5 Restricting the Search to a Specific Field If fields are to be referred to by name then they must be specified in brackets e g F ALABAMA NAME If none are specified then the search will be restricted to those fields specified by the most recent SELECT command provided one has been issued Otherwise all fields will be searched in their default order Command gt Record tupe gaoaooess 00000654 D0000655 D0000655 DO0O00056
99. 7 Option 2 Data Edit SDE Specifying Simple FILTER Selection Criteria Specifying Simple FILTER Selection Criteria Enter 20 in the Limit field to restrict the number of records selected e Enter l in the Type field to specify that selected records should be included in the load Enter 348 into the Position column of table row 1 e Enter 4 into the Length column Enter gt greater than into the ROp Relational Operator column Alternatively enter blank to get a list of available operators from which you may make your selection by placing the cursor and pressing ENTER Enter 0000 into the Value column For simple case insensitive character strings there is no need to add quotes this will be done automatically You may specify the string using C ABCD notation if case sensitivity is required Hex strings may be specified using X 1234 notation Replicate table entry line 1 by typing R into the table prefix area 000001 The AND OR column will automatically set to AND Enter less than into the ROp Relational Operator column of inserted table row 2 e Enter 1980 into the Value column SELCOPY i Quick S io Criteria x m File Help wS wR E Command Scnovt Csr ZsBFLETO Limit gt 20 No limit Type gt I I INCLUDE X EXCLUDE PFi Help Quick FILTER Selection Criteria 2 Rows AND Position Length ROp Value Character strings must be quoted OR ete E ooo tate Soogwao CH e TY ook oo ooo
100. 70C00C417CHang Loose KEK End of Data oo Alt 0 0 0 Figure 116 SELCOPYi Browse Output File F20 2015 01 19 11 28 28 Training Manual 123 Option 5 File Copy Reformat FCOPY Using a FILTER to Select Records for Copy Using a FILTER to Select Records for Copy You may wish to select records for copy based on specific selection criteria For example to copy only the first 7 records that contain 3 in record position 1 and the string BLUES anywhere in the record Update the Output File Type userpfx SELCTRN ZZST2DAT ESDS2 in the DSN Path field e In the Record Selection section activate the Filter option by entering a in the left margin field Enter Q Quick Filter in the Filter field e The Start and For fields may be used to restrict records eligible for selection by the filter but for our example these options should be deactivated SELCOURTX1 Fils Cong m File Help JCL Command wS wR E Command gt mI Ob CSF 22SGFCO0 Lines 1 21 of 21 Input PDS PDSE Library Sequential VSAM DSN mask or HFS path mask DSN Path Mask USER123 SELCTRN 22ST2DAT Member Mask gt All mask matches will be copied Volume Mask gt press PFS to view deselect matches Output PDS PDSE Library Sequential YSAM DSN or HFS path DSN Path gt USER123 SELCTRN ZZST2DRT ESDS2 Member gt _ Replace existing members Yolume gt If output file is uncataloged Strip Pad Char eg If copying fixed lt gt var length records R
101. 7Y4C16BCB319870C 4173 Hang Loose 214ED5D95B84533C 7S Rise to the Sun DE421AFCD141D22D You Ain t Alone FF47FBS9EQSDE8967 Goin to the Party 5D46C681552440BF Heartbreaker C5AFE7T7 3282485624 Bous amp H38 Girls goooooo2see SD4BS913F78CEEES Be Mine gaooaooaoses SED2337A412 I Ain t the Same 0000024 77AI4SBESAGBD On Your Way 0000025 BD48544197975CAB Heavy Chevy OESDSOBEFG6SSFBS3D Converted 3949008434520082 Speed Up the Sound o FCECEBS84DS7FADDOB Woke Up This Morning 10FEE2A0203CFS89B U Don t Dans 2 Tekno YCBYFDEOADBE1SAD Bourgeoisie Blues 417934474BD283DC Ain t Goin to Goa D7YYEDISILECOTDEA Mao Tse Tung Said Feicse4DDCDDESF3 Hypo Full of Love T 24788B78C28571DC9 Wis debel la o Trelin fe B6787C 1neennane The Night TREE ot mt GaocoGoooGcooocood mrrnmrnmrnmnmrnmnmnamnabbbbbbhbbr Tip pee RR e H H H Hh jH j jla TO O TO 0 e RR Re CO D D 00 00 0 0 NN JUL Q P UD J UT GO P UD P UD AJ UT C P9 UD J ro ES ES Figure 72 SELCOPYi SDE ONLY 1 2015 01 19 11 28 28 Training Manual SAM1 Scroll Csr of type ARTIST 6 AN 144 70 ESO ha Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama NOD 09 09 0 9 9 Q0 0 2 Y 76 Option 2 Data Edit SDE Searching Numeric Data Type Fields Searching Numeric Data Type Fields e Numeric fields may also be searched w
102. 8 OTE 05 xCO7O 000009 3 05 001 000010 97 05 070 000011 oc o5 001 000012 016 000013 TRACK N U ale 05 9 003 000014 TRACK I DES 05 9 004 000015 NAME 120 05 4 120 000016 Type the HOME H0 command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 Reset Box Line 1 Col 1 Alt 4 4 9 Size 141 Recl 32752 Fmt Figure 36 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 41 Option 1 Text Edit Incremental Sequence Numbers 1 Incremental Sequence Numbers 1 We can easily replace the data in the marked box with a sequence number For our example we ll start the sequence at 100 and increase by 20 for each new line Press the BoxFuncs key Shift F8 Type S in the option field and press ENTER SELCOPY i Text Edit Line Box Block File Help w5 wR m Command Scrolls C
103. 9 End of File kk FS V inflar F6 U inRes Fr Drag U F Drag D Fi6 Drag L F11 Drag R S3 Vidth 26 sd Vidtht26 sS Depth 26 s6 Depth 26 s7 Drag UxS s8 Drag DxS 16 Drag Lu5 11 Drag Ru5 Col 1 Alt 6 6 6 z Fmt F Files 2 Figure 15 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 17 Windowed Display System Maximise Minimise 2 Maximise Minimise 2 In maximised state the maximise button is replaced by the restore button Note that there are now two close x buttons displayed one above the other The bottom button will close the individual window while the top one will close the entire SELCOPYi application Smee as it Figure 16 SELCOPYi Min Max Close Buttons Minimised windows are displayed at the bottom left of the desktop File Edit Actions Options Utilities Window SuapList Help 45 un rimary Option Menu File SwapList Vindow Help QuickRef Conmand gt Text Edit Entry Panel File Help Command gt Scroll gt Csr ZZ5GEDIT Lines 1 26 of 26 PDS PDSE member Sequential USAR or HFS path Name gt TESTI SELCTRN SAML Member gt 225T1CPC Volume m If dataset is uncataloged Action 4 Edit Records All records are loaded in available storage Read Only Edit DISP SHR Preserve data Use SET FILEID before SAVE Browse Records Records are loaded dropped when scrolled HFS Opt ions Z Undefined HFS records terminated by End Of Line characters _ Fixed HFS records are of Fixed Length
104. ACK Start Record Z Start at Top of File Z Start at focus record Z Start at supplied user label 2FIRST End Record Z End at End of F ile End at supplied user label gt zLRST t Hasimum output records 66660816 96600017 96660015 66666819 66666626 66666621 96660622 66666625 96600624 66666625 96666626 Output CSU Text File Dsn Path gt TESTi SELCOPYI CSU Volume Append to existing Output 90000000 Top of Data ek Scroll cst HFS Opt ions EOL Characters gt NL Scroll Csr PtH Scroll Csr Top of 73 Specify CSU Source Dest inat ion Scroll Csr Lines 1 21 of 21 Type OPTIONS for translation and other options Leave blank for a selection list Scroll Csr 6 no limit PDS E member Sequential USAN dataset or HFS path Member PILL If dataset is uncataloged OBID COLCOUNT EDPROC UR 5 3 NL CR LF CRLF 3 2 14 16 90099027 66660626 66660629 66600636 99000631 FS CHx Line 6 90000961 66666062 90990903 90900904 90990995 10090005 aoaocaoa 90090905 90000009 90990010 66660011 66660612 90090013 F6 0PTIONS Alt 6 8 8 Figure 165 SELCOPYi DB2 Figure 19 2015 01 19 11 28 28 DIEFS361405A4799 B2EACES32929E35F C63A3524D537595D B26EEC33174DCC68 S276C65D2939EE5B T4E398087479A309 DESTECESESIBBACF AF135361B353E265 FFOBD7A1107553D1 RF16D9813B5582CDd 6d1596AD5BS75F1E CR6RSd8RCDSS6RS6 7CAES1 7165567550 52 EXPAND se UwOut w o 100 Se W
105. AFO8B93888AEESTODOF3SOSAEveryday I Have the Blues Live TRACKS 14 924DD5148CDEF39F00H421ESubterranean Homesick Blues TRACKOOS 65 FD4B886E2CS85D53CFOO0H3698a8Gus s Blues Intro KK End of Data xXx Figure 140 FSU Report with Tailored SELECT 2015 01 19 11 28 28 Training Manual 148 Option 6 File Search Update Copy Reformat FSU Selecting Library Members for Search Update Selecting Library Members for Search Update At the Search Update front panel if input refers to a library and the Member Mask field is either left blank or includes wildcard charcaters then by default all member mask matches will be processed without the need to confirm via a member selection list However you may press the SELECT key F5 to access the member selection list when required Initially all members matching the mask will be selected Manual selection for individual members is made by removing adding S in the Sel column SELCOPY i Select Input Members m File Edit Actions Options Utilities Window SwapList Help Command gt ZZ5GFSU2 Select members to be Library DSH USERTZI Member Mask gt w5 wR Seale SIT included F5 Select All F6 Deselect ALL SELCTRN ZZSTSDRT Use primary commands FIND ALL MORE LESS to condense member list 25 Rows Sel Member LastMod Created Cursize Inisize User Alias Of Lo lt 1 gt lt gt lt gt gt lt gt 4 t 5 S TRACKOO1 2013 02 21 16 47 2013 02 21
106. Alabama Shakes lt Perm Temp TEMP Show unselected fields at the end N YN 00000003 38 Alabama 3 lt Select record type fields 16 Rows 900900004 48 Alanis horissette 5 H Seq Vidth Name Type Start Length Picture Data type 10090905 m 10090905 AA RLBUH ID BN 5 SHALL INT 661 600606067 Command es TRRCK NUH BN 18 SHALL INT 862 10000005 NAME AN 15 VARCHAR 003 96960009 Table TEST SELCTRN_ALBUH TRRCK ID 140 5 SHALL INT B g 96906016 ARTIST_IO ID PERSISTENT ID RN 145 CHRRRC TER 865 60000011 5 m TOTRL TIME 154 INTEGER 666 66606012 SMINT SHINT FILE 5I2E 171 BIGINT ao 00000013 AS reek BIT RRTE 152 INTEGER 665 Scroll Csr 66008614 60086600 t Top of Data SANPLE_RATE 159 DECIMAL 669 60000015 aaoacaoi 46 40 YEAR 195 SHALL INT 616 60000015 aacacao2 46 59 NORMAL IZATION 2808 DECIMAL 911 60000017 00000003 DISC NUMBER 266 SHALL INT 612 96980815 AA ALBUN_ARTIST 211 VARCHAR 613 6000001 9 Conmand RELEASE _DATE 296 TIHESTRHP bid 66666626 DATE_ADDED 325 TIMESTAMP 615 96960621 Table TEST1 SE DRTE HODIFIED AN 354 TIMES TANP 616 00000022 ALBUN ata ek 617 COLCOUNT EDPROC VA 000900923 0000024 SHI 3 2 89960025 Kana t gt Y i i1 i 2 i 3 i 4 i 5 i 16 89960026 88980080 Hik Top of Data kk 00868027 aooeaaoi 58 1 All I Really Vant lt a 99980028 00000002 99960029 89986003 80888038 0000604 808880351 ETE ERE 13 00011041 tp MI ImIMI CEE m 2 a of o 2 You Oughta Knows 3 Perfect 4 Hand In
107. BUN ARTIST PIC di 600616 RELEASE DATE PIC 606017 DATE ADDED PIC 888618 DRTE HODIFIED PIC x 020 800019 End of File k Figure 8 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual ELI Scroll Csr Scroll Csr Lines 1 26 of 26 Member Z25TiCPC vailable storage EID before SAVE when scrolled ters 752 Fixed 66 2 byte char hex Moving Windows 11 Windowed Display System Moving Windows 2 Moving Windows 2 Move the cursor anywhere into the window Title Bar then press ENTER The window title bar and borders will be hilighted in reverse video This indicates that the window is in move resize pending state Move the cursor elsewhere on the SELCOPYi Desktop then press ENTER again The window will be moved to your desired location 5ize 18 EJ INMI E Command Scrolls Csr lt 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 Scroll Csr ETT 61 TRACK 808882 PERSISTENT ID PIC 016 808883 TRACK NUM PIC 9 083 EM TRACK ID PIC alod Scroll csr 898605 NAHE PIC X 128 Lines 1 26 of 26 808886 ARTIST PIC X 878 EH ALBUM PIC x a7a Hember gt 225 Ti cPC 808685 TOTRL TIME PIC 9 007 BINARY EE FILE SIZE PIC 9 999 BINARY 890616 BIT RATE PIC 9 004 BINARY 888811 SAMPLE RATE PIC 9 005 PRCKED DECIHMRL vailable storage 808612 YERR PIC alog EID before SAVE 808613 NORMAL IZATION PIC 59 005 PACKED DECINAL when scrol
108. CK NUM m 3 003 000014 TRRCK ID g 004 000015 NRME N 120 000016 Type the HOME H0 command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Line 1 Alt 1 1 53 C SELCOPY i Figure 29 SELCOPYi Min Max Close Buttons 2015 01 19 11 28 28 Training Manual 34 Option 1 Text Edit Deleting a Box Block 2 Deleting a Box Block 2 Press the BoxFuncs key Shift F8 e The Line Box Block Options panel will be displayed SELCOPY i Text Edit Line Box Block File Help S wh E Command Seroll s CSF ZZSTBO XO Lines 1 20 of 20 a Mark Diagonal Corner of a Box block Mark Top Bottom Edge of a Line block Reset Marked Line Box block Copy i e Insert marked Line Box block at the cursor position Copy and Keep marked block active Move marked block Overlay text at cursor with contents of
109. COPY i Allocate new Output File m Define Help Dataset gt USER123 SELCTRN ZZST41DRT FCOPY1 Model USER123 SELCTRN 22ST1iDAT Volume CBLM15 MaxYol gt 1 Unit 3390 Retention period 0 90 9993 SEQ SEQ PDS PDSE Expiry date uuuuddd S C allocation DCB Information Allocation Unit TRACKS Organisation PS Primary gt 2 Record Format gt FB Storage gt CBLDFLT Secondary gt 2 Record Length gt 407 Management gt CBLDFLT Directory Blocks Blocksizes 27676 Help Figure 104 SELCOPYi Allocate new Non VSAM file 2015 01 19 11 28 28 Training Manual 111 Option 5 File Copy Reformat FCOPY Copying PDS PDSE Library members Copying PDS PDSE Library members Specify the nput File Type userpfx SELCTRN ZZST5DAT in the DSN Path Mask field where userpfx is your own user prefix Type TRACKO2 in the Member Mask field Specify the Output File Type userpfx SELCTRN ZZST5DAT FCOPY1 in the DSN Path field e Press ENTER to continue SELCDEYTII gt Fil m File Help JCL Command gt zzsaGFcoa Input PDS PDSE DSN Path Mask gt Member Mask gt Volume Mask gt Output PDS PDSE DSN Path gt Member gt Volume gt Strip Pad Char gt Record Selection Start gt FOR a Filter g File gt Options Reformat using structure copybook layouts _ Append to existing Output Select records to copy Command wS wR x Scrolls Csr Lines 2 29 of 21 Library Sequential YSAM DSN mask or HFS path
110. COPYi Focus Window 2015 01 19 11 28 28 Training Manual 39 Option 1 Text Edit Overlaying a Box Block 2 Overlaying a Box Block 2 Press the BoxFuncs key Shift F8 SELCOPY i Text Edit Line Box Block File Help uS wR E Command Ere tse STIS ZZSTBOXO Lines 1 20 of 20 E R Mark Diagonal Corner of a Box block Mark Top Bottom Edge of a Line block Reset Marked Line Box block Copy i e Insert marked Line Box block at the cursor position Copy and Keep marked block active Move marked block Overlay text at cursor with contents of marked block Delete marked block C Copu marked block to the clipboard M Move marked block to the clipboard Paste data from the clipboard Insert sequence numbers into marked box Delete word at cursor or blanks up to next word En SEPA ER JOANA er u Uf pa e x F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEY s2 ExXPAND Figure 35 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 40 Option 1 Text Edit Overlaying a Box Block 3 Overlaying a Box Block 3 Type O in the option field and press ENTER e The marked box block will overlay the original data SELEUPY I TEST SELCOPTE ERA S TESTA Size 141 Alt 4 4 9 m File Edit Actions Options Utilities Window SwapList Help S wh m Command _ Scroll Est 000001 000002 000003 gt le Be o 000004 000005 This is your HOME file or personal Command Centre 000006 000007 JO 05 001 00000
111. Command gt cc Tb SEE ZzSGFSUS Cines o nre Find string gt soul E 1 Max number of hits per file member 0 gt A11 Scope gt CHARS CHARS WORD PREFIX SUFFIX Start column a B gt A11 columns End column a gt Start column only start record gt 1 Number of records O O gt ALL Relational operator gt EQ arin NESTEA tela ETA EEN View report gt yes Display FSU FIND report output Condense member list gt Yes Include only members containing hit s Figure 143 FSU Member Selection FIND 2015 01 19 11 28 28 Training Manual 151 Option 6 File Search Update Copy Reformat FSU Condensed Member Selection List Condensed Member Selection List SeLCOP Tis EIE HSERTIZS3S SELCESH TITIBIB RPUT using HSEBI 23 SELEFSIZTITITIBTS E m File Edit Actions Options Utilities Window SwapList Help wS wR Ex Command gt xyes gra s CSF XXX Top of Data xx Record tupe Command Fixed 177 Offset 0 Data elements 4 Timestamp Command BES sopaoS Sto aS R cote SSOP SS gp SSS OSS ope SSeS SS ope St lo Soopers aS cago c als piel EU EU SERT SEISPDBPHE E SIRE TRACKG881 TRACKO Record type Summary Variable 51 52 Offset 0 Data elements 14 RunType RecordsTot FilesTot Hits RecordsHit FilesHit RemapErrs SS SSS E A Sy 4 8 B deu rc FIND 214 4 4 4 4 8 Record tupe Hit Variable 47 454 Offset 0 Data elements 13 zMember zRecord O SE OSO SS OSOS a POCA IG EXC aC SSA OSO YE EN CT ecd SS OS e i TRACK
112. Compute Bridgend Ltd ge Training Manual SELCOPY i Release 3 30 File Edit Actions Options Utilities Vindow SwapList Help WS UR ibrary List USER123 SELCTRN SAH Primary Option Menu View Refresh Back Forward FOB Text File SwapList Vindow Help QuickRef Conmand gt Conmand gt Scroll gt Csr Library gt USER123 S5ELCTRN SAML 225GPRIN Lines 1 21 of 22 hemnber CurSize Last Z25Ti CPC 18 20124114 Sett ings Set SELCOPY i opt ions User USER123 Text Edit EditView small text type files Version 3 36 USER123 S5ELCTRN SAML 225 Ti CP Data Edit Edit Browse potentially large data files Date 261465725 Command List List Volumes V TOCS Datasets Members etc Time 11 27 57 AA AA 90 Home Edit and execute point and shoot commands OpSys z 05 1 11 0 600001 Declare Copy Reformat File Copy with optional copybook reformat System ADCD 986662 61 TRACK SearchUpdate File Search Update Copy Reformat Un Users 205111 960065 85 PERSISTENT_ID Compare 600004 TRACK NUM Utilities USERI23 5 32752 SEQ 5 ize 3d5 Alt 6 631 900905 TRACK_ID Structure 900005 NAME Filter 5 6 960687 ARTIST Print 0600001 USER125 SELCOPYI CHX eek 7 837 2014 85 22 10 13 28 USER123 860065 ALBUM DB2 666662 960689 TOTAL_TINE Training 660083 lt 11 USER123 5ELCTRN SAML List Training samples library 960616 Pelee s cee Vindow List 660064 ledit USER123 5ELCTRN SAML ZZ5T1CPP Training Sample PLA Copybook fH 8680011 BIT RRTE Exit 666005 ledit USERI23 5ELCTRN SAMI ZZ5TiCPC Training Sample C
113. DE ONLY 3 2015 01 19 11 28 28 Training Manual 78 Option 2 Data Edit SDE Searching for INVALID Data Searching for INVALID Data The keyword INVALID may also be specified to search for fields containing data that is invalid according to its defined data type e g X ABCD in a packed decimal field Type the following commands to produce the results displayed below SEL 411 413 H HEX ON ONLY INVALID 711 213 SELCOPY i USER123 SELCTRN ZZ2STiDAT using USER123 SELCTRN SAM1 m File Edit Actions Options Utilities Window SwapList Help wS wR Command Scroll gt Record type TRACK Fixed 407 Offset 0 Data elements 18 SAMPLE RATE NORMALIZATION PERSISTENT ID TRACKENUN TRACK ID 11 13 PD 294 3 PD 301 3 lt gt lt gt aoosonsos ok keel BCE177B1DB2B983A 400 999 CCFCFFFC ogaoaoaoossi RR Ko k k 139 GEC 80000703 ae 6600 FFCCCC aoc 6723238 000076569 kkkkkk 43444409 itt asl acc 434444092 000009566 O IIDESFSOF 000 FFCFFCFFC aoc 99468650 80001007 4923 093 42C m umu mo mo WO m ooo uo O 000 NT mo rmm mo S75 ono emn m pmrnm NT NTN mo SNS NIN AMA m O mom emn 4 F C 6 a F a 2 OTO ONO ONO ONGO cm mmm cGmo eTe ONO eT 004 00 OOO WOH mo E 4 E 4 5 F 5 F Cc 5 Cc Cc 3 1 F 1 A C 1 B Cc 5 F 5 B Cc Es Cc Cc 3 cn cn oOo ALt 0 0 Figure 75 SELCOPYi SDE ONLY 4 2015 01 19 11 28 28 Training Manual 79 Option 2 Data E
114. DS key or partial key Value may be specified using xxxx xxxx C xxx or X 1234 i e Activate the For option by entering a in the left margin field Enter the number of records to copy 5 in the For field e Press ENTER to continue SELCOPY7i File Copy m File Help JCL Command wS wR E Command gt Scroll gt Csr zzsaGFcoa Cines 1 21 0f 21 Input PDS PDSE Library Sequential VSAM DSN mask or HFS path mask DSN Path Mask USER123 SELCTRN 22ST2DAT Member Mask gt All mask matches will be copied Volume Mask gt press PFS to vView deselect matches Output PDS PDSE Library Sequential VSAM DSN or HFS path DSN Path FUSER Ss SeEEERRN 22 obese OAs Shot Member gt _ Replace existing members Volume gt If output file is uncataloged Strip Pad Char enge EE If copying fixed var length records Record Selection For each input file copy only selected records Start 16 T Z Record _ Key _ RBA n Fx For 5 records gt Filter Q Select records to copy F File G Quick gt PF6 Edit Filter File Member gt Options _ Reformat using structure copyubook layouts _ Recurse HFS Sub directories _ Append to existing Output _ Ignore HFS fileid case Figure 112 SELCOPYi Start Record For 2015 01 19 11 28 28 Training Manual 119 Option 5 File Copy Reformat FCOPY Choose New Output File Access Method Choose New Output File Access Method e The Dataset Organisation input field will au
115. Edit SDE Controlling Table Headings LAYOUT Command Type LAYout to display the current structure details in a separate list window e Select the Text menu bar item or type TEXT to place the information in a text edit document window which may be saved in the usual fashion e From the LAYOUT window press F3 to return to the edit browse view SELCOPY i Layout from USER123 SELCTRN SAMA1 m view Refresh Back Forward FDB Text Help T Command Scroll Csr Picture RefNo Start End 1 407 1 16 ure 19 20 24 144 214 284 288 ege 294 297 301 304 307 348 368 388 m 3 o ls ACK IER DSqEPiEDD TRACK NUM TRACK ID NAME ARTIST ALBUM TOTAL TIME ETLE SSTZE Bi RAE SAMPLE RATE YEAR NORMALIZATION DISC NUMBER ALBUM ARTIST RELEASE DATE DATE ADDED DATE MODIFIED e e Er t Pe Se Val Se Nal S GGG b ur 5ccoc RAugm T T 5 E 5 gt ES 5 E 5 5 5 5 5 5 5 E E 5 XXX X 00 00 00 00 00 00 2 2X 2X 00 00 X mm D UD UD UD UD UD UD 7 0 UD 7 QOQOGOQOQ Gpmp G TO F0 fO Js C2 C2 C CO C C3 C3 AE ALTO C2 C2 i GGGErEccGGGGGGGGGGGGdQG TU rere 00 UT Hs UT Ts D I eec B OO wu mN e Cu 0 I mr un s iC mo e PREBBBBBBE Ls 0 09 0 0 09 0 TO Po TO Fo TO To Co m 400000000 JAS SN WON W e N 2 Q0 ro ro ru E Figure 58 SELCOPYi SDE VFMT 2015 01 19 11 28 28 Training Manual 64 Option 2 Data Edit SDE LAYOUT Command Scrolling the Display to a specific fi
116. F 000000000000 0000000000000 DIDIHODIZ 00Fe amp F0mDE a a ae e e a a a 8 a a a aao a GocGGGGcccoGGOO 00000000000000 PPPPPOOOOOOO0O0 Ww W N e O D O NMN w N e O Q0 241 uD AIO m es e o uo 1 Js e G oo oo G N i3 006 000 O O O O O O O O O O OO OOO Pp I I POPPPEBEBEBEBEBEBABEB TO TO TO TO TO TO TO T0 TO ro ro rm rrr meulie 0 AJ C RO C9 o y PXUIP UP uU bP DDD Ne H N Du I EN ES O Figure 73 SELCOPYi SDE ONLY 2 2015 01 19 11 28 28 Training Manual 77 Option 2 Data Edit SDE Using a Relational Operator EQ NE GT GE LT LE Using a Relational Operator EQ NE GT GE LT LE A relational operator defaulting to EQ may also be specified before the search value Supported operators are as follow Type the following commands to produce the results displayed below illustrating record selection based on the content of the binary numeric field B T RATE SEL BIT RATE ONLY GT 300 BIT RATE SELCOPY Zi USER123 SELCTRN ZZSTiDAT using USER123 SELCTRN SAM1I ZZST1iC amp m File Edit Actions Options Utilities Window SwapList Help wS wR Command Scroll Csr Record type TRACK Fixed 407 Offset 0 Data elements 18 PERSISTENT ID TRACK NUM TRACK ID NAME 2 3 S 2D 17 3 AN 24 120 lt gt 4 4 4 5 006 There s Gonna Be Som 004 Live Wire gos Babe I m Gonna Leave ooi Black Dog go Tea For One Figure 74 SELCOPYi S
117. FCFFFFFCFFFFF 264812563341 00000003 9815923C6D2E6830 FFFFFFFCFCFCFFFF 44444444444444444444 9815923364256830 oooooooooooooooo0000 00000004 7TDOOS3FF752074C18 FCFFFCCFFFFFFCFF 9898894444444444444444 7400366752074318 4542590000000000000000 80990005 AED739D8574AA4CS CCCFFFCFFFFCCFCF 46884D88944444444444444 15473348 11435 03850919500000000000000 om DC 44444444444444444444 44 33 FF 33 oooooooooooooooooo00 1 6 F 5 w h 000000065 44444444444444444444444 ooooooooooooooooonoon0000 Figure 50 SELCOPYi SDE HEX ON 2015 01 19 11 28 28 Training Manual 57 Option 2 Data Edit SDE Formatted Single Record MAP FMT Display Mode Formatted Single Record MAP FMT Display Mode Type MAP or FMT to set formatted single record display mode Press F7 F8 to scroll the display up down in order to view further fields within the same record e Press F10 F11 to scroll the display to the previous next record Use the SHOW S command to control various aspects of the display Type Help Show for full information Use the OFFSET OFST command to control the format of the field offset column Type Help OFST for full information Use the GROUP G command to control display of group fields Type Help Group for full information Type HEX to toggle hexadecimal display on off USER123 SELCTRN ZZSTIDAT using USER123 SELCTRN SAM1 ZZSTICH m File Edit Actions Options Utilities Window SwapList Help wS wR Comman
118. H4 8 AN 24 120 AN 1 16 FB 284 4 adalat m a A i E Rolling In the Deep CB1i2DD7r14D51828C 222093 Rumour Has It 26 633D15404 2232656 Turning Tables 250000 Don t You Remember 243200 Set Fire to the Rain 242973 He Won t Go 278040 Take It ALL 228293 I ll Be Waiting 96 241351 N o e N gt I amI ND IALITI CO 00 munoor SA25 gaea O3SFF 739D SBCE Scen B35D 50000000000 deles P Gu Q0 AIO UI SOME eG One and Only Lovesong Adele 21 Hold On I Found You Someone Like You I Found a Boy Bonus A Track B DSAGCSFDC2802177 BEBgE5RTEBEBESEBLTE ESTABEGEE7YCS6B1D D4EB4EBF4651EF20 CECS92B1IBAS2O4AGA 604C2C7BA7E01593 E241B09CC251C386 348226 316240 235240 Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Boys amp H38 Girls Be Mine T Ain neal Sate 3 3 E 001 gas 00s 004 00s oos go gos gos 010 E ETE 013 001 goes gos 004 gas gos go gos gos 0106 1 Oyn DNT al D al Cc E D maocumrorti B5mmmm rnmco I Figure 66 SELCOPYi SDE VFMT 2015 01 19 11 28 28 Training Manual 70 Option 2 Data Edit SDE The SELECT panel The SELECT panel e The SELECT panel provides an interactive alternative to typing both the SELECT and COLWIDTH primary commands During Data Edit Browse the SELECT panel may be started for the focus record type using any of the following methods Type SELECT SEL f
119. I Found a Boy Adele 21 AT Hold On D pounce Tou Hang Loose Rise to the Su You Ain t Alon Goin to the P Heartbreaker Boys amp 38 Gir 137 Option 5 File Copy Reformat FCOPY Updating the Output Copybook 1 Updating the Output Copybook 1 Press F3 to return to the File Reformat panel e Press F23 Shift F11 to browse the output copybook Type GO E to switch from browse mode to text edit SELCOPY i Browse USER123 SELCTRN SAM1 22SP1CPC m File Edit Actions Options Utilities Window SwapList Help 5 x Command go e SCROLL CSF Press PF4 for Utilities menu including point shoot options Record tupe UnMapped Fixed 880 Offset 0 Data elements 1 UnMapped I I EG I I I AIG Ha IG I ig et SS a B0000001 01 TRACK 5 agaoaagaadgz 05 ARTIST PIC xX 020 B0000003 85 ALBUM PIC X 024 B0000004 85 TRACK NUM PIC 39003 B000000s 0S NAME PIC X 120 00000006 t nd of Data KKJ Line Alt 0 0 0 Figure 131 SELCOPYi Browse Output Copybook 2015 01 19 11 28 28 Training Manual 138 Option 5 File Copy Reformat FCOPY Updating the Output Copybook 2 Updating the Output Copybook 2 Update 05 field ARTIST changing PIC X 020 to PIC X 010 Update 05 field ALBUM changing PIC X 024 to PIC X 010 Update 05 field NAME changing PIC X 120 to PIC X 050 Make a mental note that total record length defined by the copybook is now73 i e the sum of all the field lengths 1041043450 Press F3 and save your change
120. IDon t You Remember AED739D8574AA4C5O0E209ASet Fire to the Rain E 7TS5S5BCEi1CF5CDEA TOO0FB8eOSCHe Won t Go E6E7YISCLABDAFBES7100G20O9ETake It ALL 362B35D1547DE7SE0 OSGI ll Be Waiting DSABCSFDC28021770 3I0ne and Only S58 25 Sie BS Sie ee BALovesong E374BEBEE7YCS6B1D0 GCSomeone Like You D4EB4EBF494651EF200 OEI Found a Boy Bonus Track 0000013 CECILBIBAS204A0A0 OGAdele 21 A Track By Track Interview 80000014 ebpacecvBa7EO15330 00000015 E241B09CC251C3860 B0000016 E7r4C16BCB319870C0 FAI Found You 17CHang Loose DE421AFCD141D22DO FF47FB9EOSDES9670 5D46C681552440BF CS5s4FE7 r92248562 8D4BS5913F78CEEE B044D8ED2337A41 6E44D77A948E8A6 17GYou Ain t Alone j to the Party iSAHeartbreaker 18CBoys amp H38 Girls SEBe Mine 8GI Ain t the Same 8I0n T Way 18 a AL 1 aL 1 s E BEP IUE 17ERise to the Sun a a a a 1 1 1 Fmt F Figure 52 SELCOPYi SDE CHAR 2015 01 19 11 28 28 Training Manual 59 R Option 2 Data Edit SDE MAP FMT Line Command MAP FMT Line Command e You may also use MAP or FMT as a line command typed in the prefix area to display the marked line in formatted single record mode e Alternatively press F17 Shift F5 to open a separate window displaying the focus record in formatted single record zoomed mode e Note that on a standard 80 column screen SELCOPYi operates in window maximised mode so that the new window will entirely obscure the original display On a wide
121. JB2LCBLR Table Information for TESTi SELCTRN RLBUM Pirie Supe ist Window Help Qu Back Forward HomeLink Close Source Text Help Command Command Scroll Csr MEANS Parent tables of table TEST1 SELCTRN_ALBUM File Help Command 2252L666 Parent Table Foreign Foreign Key of Parent of Parent List DB2 Objects Parent Colum Storage groups Name Databases Table spaces Table Name TESTi SELCTRN RRTIST BRTIST ID Tables Constraint RLBUHMRi Views Delete Rule Restrict Aliases Enforced Yes Indexes Synonyms Types Dependent child tables of table TESTi SELCTRN_ALBUN Conmand gt Use Fd UINDOU 2252PRIM Child table Foreign Key in Child sett in cue deeem DB2 50L Table Name TESTi SELCTRN TRRCK ALBUN_ID Edit Constraint TRACKRi Browse Delete Rule Restrict Create Enforced Yes Drop List Rudit Object Traini Use command 00 00 E EE E SE ine 142 of 170 Col 1 of 7S Files TEST1 D2614261 11529575 HTHL TE INFO F3 BACK FS TEXT F6 SOURCE F UP F8z S4 FORVARD T ez Col Alt 1676 1970 6 Size 1976 Recl 382 es 2 TED 2014 89 18 Figure 151 SELCOPYi DB2 Figure 05 2015 01 19 11 28 28 Training Manual 160 Option 12 DB2 DB2 Table Edit DB2 Table Edit e n the prefix area for table SELCTRN TRACK enter the line ccommand E to start the DB2 Edit Table dialog Since E is the default line command you can actually just place your cursor anywhere on the line and press ENTER or select it by doub
122. KE u E 17 rbd EI MCap 18 Option Text Edit 19 Function keys shortcuts ard conventence Te atures ic scp 5 accio Ui eid t n TU Pd Obi dude Op ba ee p dieit 20 Inserting Deleting Replicating Splitting amd Joining lies anion ctos cte nter repre se Rente crine 21 f eu Line Editar iii 22 Displaying HEX Sl DOS cipe tton eq etd uua etin once usi eer re t eres Lus DE M LE Ld 23 Non Display Character onerosa naa 24 UNDO REDO FR 25 Mutio WWIRGOINGG MES a a id 26 WS Windowed Views 2 ss 27 TE WW ACIES REI EUR ida os 28 Maikegd bibend Box Block feBlt ll DS io codi rut sortes detener ba Vive Toma tac soon ep aA e tegere series vas tactica 29 Copying a Line sie snc mE 30 Copy late ine LNE 1 0 21 stt c EUM 31 Copyinga Line BIGER 9 ics sista EE 32 Copying Ele BIG Cl M ERE 39 Deed qa BOX BIOCK iet acetate tuu ui rsead ds e eere tud deep E axi te ebd eri E E 34 Deletinga BOX BIO qe 35 Deleting A Box BIOCK 3 ee test erm 36 A BOX BIOGR A MER M TT 37 MAI Box BIO sree E 38 Ovena BOK BIOK UN ERR OOo TNT 39 Overlaying a BOX BIOCK m 40 OWerlaying a BOx BIOCK dM Cm 41 incremental Sequence Number lcd 42 incremental Sequence Numbers es scouos iecore attri io ie ti A A RETE i 43 AOUSIING sequence Numbers loa Lu ELO C
123. LCOPYi Select Input Members 2015 01 19 11 28 28 Training Manual 114 Option 5 File Copy Reformat FCOPY Allocate New Output Library Allocate New Output Library Press F3 to return to the File Copy panel once all selections have been made then press ENTER to continue with the copy You will then be prompted to allocate your new output library SELCOPY Z i Allocate new Output File m Define Help Dataset gt USER123 SELCTRN ZZSTS5DRT FCOPY1 Model USER123 SELCTRN ZZSTS5DRT Volume CBLM14 MaxYol gt 1 Unit 3390 Retention period 0 0 9999 PDSE SEQ PDS PDSE Expiry date yyyuddd Spi Allocation DCB Information Allocation Unit TRACKS Organisation PO Primary gt 2 Record Format gt FB Storage CBLDFLT Secondary gt 2 Record Length gt 407 Management gt CBLDFLT Directory Blocks gt 2 Blocksize 32560 Allocate Jatas e o FCOPY1 Figure 108 SELCOPYi Allocate New Output Library 2015 01 19 11 28 28 Training Manual 115 Option 5 File Copy Reformat FCOPY PDS Copy Statistics PDS Copy Statistics e A summary message and the PDS Copy Statistics list are displayed once the copy process has completed e For each member processed the Action column will contain one of the following copies e member was copied to the output library Replaced The member replaced an existing version in the output library NoRepl The member already existed in the output library and the Replace p existing members optio
124. LP HILITE for more information on this feature In addition SELCOPYi provides the ability to control color hilighting of all occurrences of one or more user defined strings Use primary command SCOLOR to assign a color to all occurrences of a defined string Use primary command LCOLOR to assign a color to the whole of each line that contains a defined string To demonstrate we ll edit another of the sample files that was created during the Setup Training Material section e Select option 1 from the Primary Options Menu to open the Text Edit panel then enter the name of the sample file Type userpfx SELCTRN ZZST2DAT in the Dsn field Press ENTER to edit the sample sequential file This file represents a recorded music collection comprising Artist Album and Track records e Navigate to the artist U2 by typing the primary command FIND 1U2 1 e Type the primary command SCOLOR World YELLOW This will hilight all occurrences of the string World case sensitive in yellow e Type the primary command SCOL Live RED USC This will hilight all occurrences of the string Live case sensitive in underscored red Place your cursor at column 1 of any visible line then press the MrkBox key Shift F5 The single character box block will be hilighted Type the primary command BOX LCOLOR 1 GREEN REV This will hilight all Artist lines character 1 at column 1 in green reverse video Type the pr
125. Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd 73 Option 2 Data Edit SDE Restricting the Search to a List of Fields Restricting the Search to a List of Fields e The search may be restricted to a list of comma separated fields e g F ALABAMA 5 6 Again if fields are to be referred to by name then they must be specified in brackets e g F ALABAMA NAME ARTIST FI Command Record type googaooaooi goeoooaoa 808000003 00000004 Figure 70 SELCOPYi USERS le Tait Actions Options Utilities Window SwapList Help Fixed 407 Offset 0 Data elements 18 TRACK RERSTSTENTSIE 2 AN 1 16 Sa a e E Aa om aire CB12DD714D51828C 26484A255633D15404 3815923C6D2E6830 YDOU3SFF752074C18 AED739D8574AA4C5 E7YSSBCE1CFSCDEA 6798C2ABOAFB2571 962B35D1647DE7SE DSAGCSFDC2802177 SHE SN ales bay el ale e ls eds ESTABEGEE7TCS86B1D D4EB4EBF4651EF20 CEC92B1BAS ADA 204 EaI ETC 198 345 41D 2c7BaA Bascc 16BCB D5D35 1AFCD EBS OSDESSE67 SD46C681S5S2440BF CS4FE779224856e24 SD4BS913F78CEEES zl 2337A412 LEF SDE FIND 3 SELCTRN ZZST1DAT TRACK NUM TRACK ID 3 sale cbe HE Restricting the Search to a Range of Fields using USER123 wS wR NAME 5 AN 24 120 1 5 Rolling In the Deep Rumour Has It Turning Tables Don t You Remember Set Fire to the Rain He Won t Go Take It ALL I ll Be Waiting One and Only Lovesong So
126. MAL 000017 j YEAR ZEN 9 004 000018 3 NORMALIZATION em 59 005 PACKED DECIMAL 000019 DISC NUMBER man 9 003 000020 RLBUM RRTIST 4 x 041 000021 1 line s not displayed 000022 Of RELERSE YYYY 4 004 000023 07 FILLER 4 001 000024 DrPREPERSESHM x 002 si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8zBoxFuncs s10 UNDO s11 REDO s12 ResetBox E Line 0 ur Alt 0 071 5ize 99 Recl 80 Emb kE Files 2 Views 2 Figure 25 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 30 Option 1 Text Edit Copying a Line Block 2 Copying a Line Block 2 Ulsa HOME on the command line and press ENTER SELCOPY i TEST1 SELCOPYI CMS J2fa2 Y S Alt 0 0 1 m File Edit Actions Options Utilities HEERE GEHE Sr w5 wR Commands Scrall gt Ese lt 1 2 3 4 4 7 000001 xx TEST1 SELCOPYI CMX xxx L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 a 000007 Type the HOME HO command or select Option 4 from the Primary 000008 Option Menu 24 to return directly to this file at any time during 000009 your SELCOPYi session 000010 000011 What is the purpose of my HOME file 000012 TSO ISPF and internal SELCOPYi primary commands may obviously be 000013 issued from any SELCOPYi command line But since the same or similar 000014 command sequences are executed regularlu
127. MINT VARCHAR 70 GSSs SSS NE A SaaS Sa y 96960047 486 Ray Lamont agne lt da 499 Ray Lahontagnec aBaaaads 588 Ray LaMontagne amp the Pariah Dogs lt 00090959 518 Ray LaMontagne amp The Pariah Dogs lt 60006051 528 Raycharles Lamont agne lt 96980852 538 Raycharles Latontagne lt 60000953 548 Rebecca Fergusont 00000054 558 Roachford lt 888808855 568 Robert Plant amp Alison Krauss lt 90006856 10000957 60000055 96980859 aBaaaa5o 88888861 90006862 00000063 000900064 99000065 10000055 Trains 88888867 Turin Brakes lt EE u2 10000969 U2 amp B B King 66900076 710 Vhitesnake lt 60000071 728 Vhitney Houston lt 60000072 736 2Pac amp Dr Dre lt 00000073 ek End of Data er 588 Sonique lt 618 Soul Asylum 628 Stevie Nicks lt Stone Temple Pilots lt The Civil Vars lt The Sundays lt Thin Lizzy lt _ FS RF IND F6 RCHANGE si InsLine tions gt 1Ze 72 od S ET s5 Zoonw Figure 180 SELCOPYi DB2 Figure 34 2015 01 19 11 28 28 Training Manual REDIT Example 3 Scroll Csr Scroll Csr 1 12 of 12 B Text Help Scroll Csr PE DBNANE TSNRHE DBID OBID COLCOUNT EDPROC UR E 3 TESTi TESTi TESTi SELC16AS 473 SELCTRNR 473 3 2 SELC1CNU 473 14 16 EC 16 UNDO s11 REDO 2014 09 15 15 46 50 189
128. Modify record data length Work with Segmented Records 2015 01 19 11 28 28 Training Manual 54 Option 2 Data Edit SDE The SDE Edit Browse Entry Panel The SDE Edit Browse Entry Panel The SDE panel may be started using any of the following methods e Select option 2 from the SELCOPYi Primary Option Menu e At any primary command prompt type 2 At any primary command prompt type SDE From any dataset library or HFS path list window use the SD line command i Structured Data Browse YEdit File Command Structure Replace Help wS wR Command Scroll Csr ZZSGSDEO Lines 1 21 of 21 PDS PDSE member Sequential VSAM or HFS path Name gt USER 23 SELCTRN 2ZST1DAT Member gt If dataset is uncataloged liary AUX File Only DISP SHR Only EXEC 11 AUNI Insert Update Delete i Ll Read _ Edit ll Read amp Auxiliary Update only Copybook overlay Dsn USERISS SELCTRN SA0Mi Tupe Diese _fAData Ea TAE Member ZZSTACPC Record Selection Stant Record _ Key _ RBA yo For a H records Filter Q Filter selected records F File Q Quick PF amp zEdit Filter File Member Additional Options _ Enter to display HFS and Profile options Figure 48 SELCOPYi Data Edit SDE Panel 22 To follow the demonstration use the panel to edit the sample dataset using the supplied COBOL or PL1 copybook Specify the Data File Type userpfx SELCTRN ZZST1DAT
129. NA MU ie iUd 44 Ajusta Sequence NUDE Se tine arsenal idee uim dia cet 45 Adjusting sequence NUImbGES Gs iacocasecuuct reset stbut erroe con cota 46 Using the BOX Primary Command Misicin eene a ENAA ES EAEE Eae NEEN ascii sia MR edd 47 Using the BOX Primary Command 2 acci borea ra a a ae Eae nae A 48 Using ihe THIEEBOX Primary Command Mis coninsrtat aaa 49 Using te EIlLEBOX PSY Command 2 cccse evereasaceseccsyct nino rt ot s EEA earn 50 Using aer IBEBSOX Primary Command 9 a ca Sed se titt esca lacada 51 SICKEST MR o IUE IO ou etr 52 Option 2 Data Edit SDE e id iiia 54 Tine SDE Bal Browse ENUY Paneles ets co bust d pte Hs anon cad cea ead erat aia Du UE Ud 55 Editing Sample DataSet T erre tercer torio eO OON ESSE EPHIEQUTHITISTAFEERSNE e ES ces qM ASI ATH s 56 Bree to E 57 Display HEX Dala ien bia erectos seiten ib eater leia ab aa 57 Formatted Single Record MAP FMT Display MOCGB caos cua y ena vet utr o Y nEcY NY uL Er OEI N spi EY ERa O 58 Unformatted Multi Hecord CHAR Display MOGdG i ia 59 PUA MT Ln Gita VARIN isis ct acco aust Cid Prater qoc be Mod pe mapecesvarsutderystease cee iet rese I e estote tss Pes tasse i Debs eee Lc e Lade 60 Unformatted Single Record UINEMT Display MOG Gases secs race scitum toro oto ru ei a ea 61 Hex Dump AEXD Display Mode its ice 62 Formatted Multi Record VEMTY Display Mode sissies rattia rd 63 Controlling Table Heading Eissens ana e E EERUEO S R ROS ad 63 LAYOUT COMIN
130. O EEE TE E E A E E T E P T AENA E E 64 Scrolling the Display to a Specitic Mel reco rai a N E 65 Locating aa a A I M a errr c quM dci 65 2015 01 19 11 28 28 Training Manual Contents Option 2 Data Edit SDE Locating a Record e E 66 Selecting Ordering Visible Fildes 2s aio en e E a etm ii iia 67 Preventing Fields trom Scrolling Off screen FIOLU orient tea 68 Adding All Previously Unselected Fields to the Display ceo ntis pterea tease noeh ida 69 Adjusting Field Display oH MIN Ss aei cd Pas eoa ae cece cene share ndo patre ronca its ces 70 iliiciHzeo e T rA Usno FIND EXCLUDE and ONE CORTOS NS a cao risotto ass 72 Searchingyer Data FIND P does ses sts veh talento loe cele ted tec doo lic ds do tpe gta Peu cused cass 72 Restricting he Seateito r lecio iem nm 73 Ereslriclibgite eate to a USTO RSS ss iati tema derart iron beet to EAE ee Ra niet dde asii 74 Restricting the Search to a Range of Fields cesiones a Ace Aue 74 Excluding Records Based on Field Content EXGLUDEB X 5 2 iniu is oett te tete a aa iiias 75 Excluding Records Based on Field aa COPA eM P TEETH ETE 76 Searching Numeric Data Type FIBI aco rase etra dee PR ic fat do adco ru ere espe creto ei Te Using a Relational Operator EQINE GTIGEILTILE mr 78 Searching tor INVALID Data LL eS 79 Using DO EE OMIM ANAS wena y sae ects tas E 80 MIMI FED a2 ess Em 80 Selecting aly recordsatiected cim
131. OBOL Copybook M 666612 SANPLE_RATE 996066 966615 YEAR Use Fd UINDOU 660667 000008 Edit sample training data file using Sample COBOL copybook iti Use z 666069 lt sd Edit USER123 SELCTRN 225T1DAT M 666616 using cobol USER123 SELCTRN SRH1 225 T1 CPC 666611 998081 RACK 000002 65 PERSISTENT ID PERSISTENT ID TRRACK NUM TRRCK ID NAME 000003 TRRCK NUM 2 15 14 4S aaoaad TRRCK ID 2D 17 35 ZD 20 4 RN 242126 999005 NAHE Sasa SSS lt gt aooe D e erno o 996086 ARTIST 66666061 CB12DD714D51525C Rolling In the Deep aaoan ALBUM 86606062 2646A256530154d00 Rumour Has It 988085 TOTAL TINE 86666665 9815925C6D2E6336 Turning Tables 998089 FILE SIZE 60000004 7DOGSFF7S2874dC15 Don t You Remember 696016 BIT RATE 60000065 RED 3SDSOS 7dRRdCS5 Set Fire to the Rain 600011 SRHPLE RRTE 60000005 ETSSBCEiCFSCDER He Von t Go 6666012 YEAR 86606007 6 SSC2RBORFB2571 Take It R11 8880135 NORMALIZATION 66666608 962B35D1647DE75E I ll Be Vait ing Fis InsLine Fid DelLine FiS DupLine F16 RCTION Fi MrkBos FiS HrkLine Fi9 SPLTJOIN F26 BoxFuncs F22 UNDO F23 REDO F24 ResetBox z Line 1 Alt 6 851 5 ize 3d5 tec 3275 Fnit zu 5 Uijews d 2614 65 23 11 33 05 Figure xx SELCOPYi Cover shot 8 Merthyr Mawr Road Bridgend Wales UK CF31 3NH Tel 44 1656 65 2222 Fax 44 1656 65 2227 CBL Web Site www cbl com This document may be downloaded from www cbl com documentation php tab zos amp anc zoss320 CBL Ref z cd sman t330 SELCOPYi_3 30_Training_Manual pdf
132. OD1 AO2159C7Y8BD2DB0800A428IHey gt Soul Sister TRACKOO3 DESS5ETS8FD678857T88080C340RSoulmate TRACKOO4 47E5BE872D4779C900D175ESoulmate TRACKGSS 5524E0900D7B3C7900E143GSoul Stripper XXX End of Data Xx Figure 144 FSU FIND Report with LIMIT 1 Exit F3 from the report if requested will return to the FIND panel where you may execute further search operations to progressively condense the member list Exit F3 from the FIND panel will return to the condensed member selection list Should you wish to reset the condensed list then just overtype the Member Mask input field and press ENTER SELCOPY i Selec Memb m File Edit Actions Options Utilities Window SwapList Help wS wR x Command gt scroll gt Geir ZZSGFSU2 Select members to be included in the operation PF6 Select Deselect ALL Library DSN USER123 SELCTRN ZZST5DRT Member Mask Use primary commands FIND ALL MORE LESS to condense member list 4 Rows Sel Member LastMod Created Cursize Inisize User Alias Of co R i t amp o 5 TRACKO801 2013 02 21 16 47 2013 02 21 38 98 USER123 TRACKOO03 2013 02 21 16 47 2013 02 21 3 90 USER123 TRACKOO4 2013 02 21 16 47 2013 02 21 89 89 USER123 TRACKOGS 2013 02 21 16 47 2013 02 21 50 80 USER123 xx End of Data xxx AAAA 1 Figure 145 FSU Condensed Member Selection List 2015 01 19 11 28 28 Training Manual 152 Option 6 File Search Update Copy Reformat FSU Condensed Member Search Re
133. Records Open the file with exclusive SPFEDIT ENQ and load all records into available storage for full text edit capabilities Read Only Edit DISP SHR Open the file with shared SPFEDIT ENQ and load all records into available storage before releasing the ENQ View supports full test edit capabilities Attempts to save changes will fail with message 225E045E However use of File menu bar option Save AS Will allow Save of the in storage data as a different fileid Alternatively SET FILEID or any other text edit SET commands that manipulate the fileid assigned to in storage records may be used prior to SAVE If the new fileid is an as yet unallocated data set then the relevant Allocate Non USRH or Define USAN KSDS ESDS RRDS LDS dialog panel will be opened as appropriate File CBL CBL F3 BACK FS TEXT F6 SOURCE F UP FS DOUN Sd FORVARD SERES 5ize 6 Views 1 Figure 6 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 10 Windowed Display System Moving Windows Press F3 to close the HELP window At the Text Edit Entry Panel enter the name of a sample file Type userpfx SELCTRN SAM11 in the Dsn field to specify the PDS library containing the supplied COBOL copybook Type ZZST1CPC in the Member field e Press ENTER to edit the sample COBOL copybook File Edit Actions Options Utilities Window SuspList Help lc un Primary Option Menu File SwapList Vindow Help QuickRef Conmand gt Text Edit
134. Replace existing members Volume gt If output file is uncataloged Strip Pad Char Torla i elms If copying fixed lt gt war length records Record Selection For each input file copu onlu selected records Start ar Z Record Key RBA p For a records Filter Q Select records to copy F File Q Quick PF6 Edit Filter File gt Member gt Options 4 Reformat using structure copyubook layouts _ Recurse HFS Sub directories _ Append to existing Output _ Ignore HFS fileid case Figure 125 SELCOPYi Reformat 1 2015 01 19 11 28 28 Training Manual 132 Option 5 File Copy Reformat FCOPY Specify Input Copybook Specify Input Copybook Press ENTER to proceed to the File Reformat panel e Specify the Input Structure Copybook File Type userpfx SELCTRN SAM1 in the Dsn field to specify the PDS library containing the supplied COBOL PL1 copybook If wildcards are specified then a dataset list will be displayed from which you can make a selection Type ZZST1CPC in the Member field for COBOL installations Type ZZST1CPP in the Member field for PL1 installations If wildcards are specified then a member list will be displayed from which you can make a selection Check the Type option for Cobol or PL1 as appropriate for your installation SELCOPY i File Reformat x m File Help JCL Command wS wR E gt Command gt acrnoub xcbS zzsGFCOGO Lines 1 21 of 24 PFi0 Browse Input Dataset PF22 Browse Inpu
135. S WR Al Edit table TESTI SELCTRN_ARTIST in tablespace TEST1 SELCTRNR Top of 73 Table TEST1 SELCTRN_ARTIST ID NRHE 2 ti SHINT URRCHRR 78 4 4 1 4 2 4 3 i 4 i 5 i 5 i 909090999 Hk Top of Data kk CEECEE E Adele lt 90680062 Alabama Shakes lt 00000003 Alabama 34 EEE errs Alanis Mor issette lt 96908005 96000066 86006067 Baaacaas 99680089 00000019 0000011 00000012 96006013 00000014 96000015 96006016 86000017 99000018 ETT ES 99908028 96008021 860068022 96006023 BaBaaa2d 86806825 99008026 86000027 00000025 99806029 96000030 88880031 Scroll Csr 1 12 of 12 jace TESTi SELCIORS Scroll Csr Top of 2 Table TEST1 SELCTRN_ALBUM Dependent of TESTi SELCTRN RRTIST Constraint ALBUMR1 R RRTIST ID ID NRME E modo SHINT SMINT URRCHRR S8 lt gt lt gt 60000888 Hik Top of Data kk 66666001 48 Alanis Morissette The Collect iong 99999882 58 Jagged Little Pill lt 80000883 Al Edit related table TEST1 SELCTRN_ALBUN in tables Ca pp 4 747 4 8 i 6 Edit related table TESTI SELCTRN_TRACK in tablespace TEST1 SELCICNU Scroll Csr Top of 1 Table TESTi SELCTRN TRRCK Dependent of TESTi SELCTRN RLBUM Constraint TRRCKRi R RLBUM ID TRRCK NUM NAME m ShINT lt 4 gt 86666086 icr ae of Data ek 2 43 SHINT VARCHAR 129 45 4 i 4 2 4 3 4 4 i 5 i 69660061 90990992
136. S7 gooooess 80000659 D0000660 DO0000661 gooaooeea D0000663 00000664 G m m ui imocgcoGGcoccod USER123 SELCETRAH File Edit Actions Options Utilities Window SwapList Help Fixed 407 Offset 0 Data elements 18 TRACK NUM TRACK ID TRACK PAB Sn SIN Sasi He AN 1 16 1 SS SNS vassobpespasion B FAS 6D14F PEEF623 YD828FF66DE1BOS3D Ansi Ella El BBCEBSASSBDBS475 POJAS E Temel ol HeD gisizigmisizigg zm cists Ferv5ccesv5psrae SFi18nDFEOR2GDSCAB 1C830C54551DA904B 3A8D35D8E4E94317 AF1B4500D8892FES C56E5DADS 83 TO e ITI Qn ITI C0 CD S ITI CO AS Jmm e mw n oo DN zPemrnmrnococo Jlr Figure 69 SELCOPYi SDE FIND 2 2015 01 19 11 28 28 ZZST1DAT 3 ZD 17 3 mx 00i 000000000000 PRRRRRODODOS I0 P PG GU 0 0 AI J Training Manual using wS wR NAME H5 AN 24 120 NS SSL SS SS aay Sweet Home I Ain t the One Crossroads Saturday Night Spe Free Bird Undubbe Searching Introduction By AL I Ain t the One A Travellin Man Searchin Alterna Simple Man Gimme Three Steps Whiskey Rock A Rolle The Needle and the S Call Me the Breeze Gimme Back Mu Bullet Cuwwt Aone fa ab ama Crossroads Alternat Tuesday s Gone Gimme Three Steps Free Bird Call Me the T for Texas Breeze Blue Yo FmtzF USERS SELCTRI 1 SAM1 I Scrol tTa Csr ARTIST 6 AN 144 70 4 1 Lunurd Lunurd Lunurd Lunurd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd Lynyrd
137. SELCTRN SDO ZZST3 created with 1 primary base segment type s and 2 secondary type s Maximum segment length 268 minimum segment length 71 2015 01 19 11 28 28 Training Manual 104 Option 2 Data Edit SDE Browse Edit using a Segmented SDO Browse Edit using a Segmented SDO At the SDE Browse Edit panel Specify the Data File Type userpfx SELCTRN ZZST3DAT in the Name field where userpfx is your own user prefix e Specify the Structure Copybook overlay Activate the option by entering a in the left margin field Type userpfx SELCTRN SDO in the Dsn field to specify the PDS library containing the generated Structured Data Object SDO Type ZZST3 in the Member field Check the Type option for SDO Press ENTER to edit the sample dataset SELCOPY 1 Browse USER123 SELCTRN 22ST3DAT using USER123 SELETRN SDO Z228ST3 m File Edit Actions Options Utilities Window SwapList Help wS wR H Command gt SG ire 5 sm Base D ARTIST Fixed 71 Offset 0 Data elements 3 Length RT ARTIST 2 3 AN 1 1 AN 2 70 gt Cnr nn E rn is is nw hr nn nn a Ed tt B0000001 qt Adele Segment ALBUM Fixed 7T1 Offset 0 Data elements 3 Length RT ALBUM 2 3 AN 1 1 AN 2 78 gt SSR Sopa ee Stl oS Sopa SoHo SS O Se SS See SS O po ee Shoe SSA SS gS Baaoaoaagaa1t IRE Faal Segment TRACK Fixed 258 Offset 0 Data elements 53 Length RT PERSISTENT ID TRACK NUM TRACK ID NAME 2 3 4 5 6 AN 1 1 AN 2 16 mlb Glial Ais ZD 21 4 ANT 25 1
138. SISTENT_ID gt 966019 lt SELCTRN_TRACK gt 6 n0 Limit Scroll Csr 666626 lt SELCTRN_TRACK SEQ_NUNBER 2 gt 666621 lt TRACK_NUN gt 2 lt TRACK_NUN gt 900022 lt NANE gt You Oughta Know NAME gt ial USAN dataset or HFS path 666625 lt PERSISTENT_ID gt 2EACES32929B38F lt PERSISTENT_ID gt Member PILL 909024 lt SELCTRN_TRACK gt 666625 lt SELCTRN_TRACK SEQ_NUMBER 3 gt 966626 lt TRACK_NUM gt 3 lt TRACK_NUM gt Opt ions 966627 lt NANE gt Perfect lt NANE gt acters gt NL NL CR LF CRLF 666625 lt PERSISTENT_ID gt C63A3B240637598D lt PERSISTENT_ID gt OBID COLCOUNT EDPROC UR 666629 lt SELCTRN_TRACK gt 3 3 966636 lt SELCTRN_TRACK SEQ_NUMBER 4 gt 888831 X TRRCK NUM d TRRCK NUR 8888032 lt NAME gt Hand In My Pocket lt NAME gt 966633 lt PERSISTENT_ID gt B26EEC331 740CC66 lt PERSISTENT_ID gt 666634 X SELCTRN TRACK 966035 lt SELCTRN_TRACK SEQ_NUMBER 5 gt 966636 X TRRCK NUM S TRRCK NUM 666637 lt NAME gt Right Through You lt NAME gt 000035 lt PERSISTENT_ID gt 5276C65D2939EE3B lt PERSISTENT_ID gt 888039 lt SELCTRN_TRACK gt 9090049 lt SELCTRN_TRACK SEO_NUNBER 6 gt 600041 lt TRACK_NUN gt 6 lt TRACK_NUN gt 909042 lt NANE gt Forg ivenc NRHE 600043 lt PERSISTENT_ID gt 74E395057479A309 lt PERSISTENT_ID gt 606000013 7CAES1716550755D 13 You Oughta KnouK si InsLine s2 DelLine s3 DupLine sd ACTION sS HhrkBos s6 H rkLine s SPLTJOIN s BoxFuncs si6 UNDO s11 REDO s12 ResetBox e
139. SOLCODE 532 90000015 Relationship TRRCKR Delete rule Restrict 99600019 Parent TESTi SELCTRN RLBUM 80600820 Dependent TEST1 SELCTRN_TRACK 80600821 80800822 A DELETE operation attempted to delete a specified row and all dependent TSNRME DBID OBID COLCOUNT EDPROC UR 00909923 rows in dependent tables but this relationship s DELETE rule prevented it SELCIGAS 473 8 3 99680024 SELCTRNR 473 3 2 808600825 Action m CANCEL Cancel the edit session SELCiCNU 473 14 16 88800826 EXIT Return to the edit session 99800827 REDIT Edit the related table 80800828 Foreign Key 996800829 Parent Dependent Colum 996800036 colum colum value 88880851 nod n 990601 ID RLBUM ID 156 808002 eek End of Data kk _ F1 HELP F2 SPLIT F4 UINDOU F5 Select Fe6 Deselect F9 SURP Fi2 CRETRIEU s2 EXPAND s5 200h s18 UNDO s11 REDO Line 6 Alt 2 2 6 S izes 2 2 2014 09 15 15 40 55 Figure 173 SELCOPYi DB2 Figure 27 2015 01 19 11 28 28 Training Manual 182 Option 12 DB2 Edit Dependent Table 2 Edit Dependent Table 2 The TRACK table is edited displaying only rows matching the foreign key for the album The Essential Bob Dylan ALBUM IDz 150 Enter D in the prefix area of the first line to delete all rows Press F3 to exit and save No constraint rule is broken so the save will succeed without drama File Edit Actions Options Utilities Vindow SwapList Help WS UR 2 Aj Edit related table TEST1 SELCTRN_TRACK in tablespace TEST1 SELCICNU AIR Scr
140. SSS gS SS Spe Oo Sho Sop Soo ae Baoaoagaaz Tio es Faal Record type TRACK Fixed 268 Offset 0 Data elements 53 Length RT PERSISTENT ID TRACK NUM TRACK ID NAME 2 3 4 5 6 SDEUTUS lt CHE SEructuUred Brou ZEOIE HEIIIti menu Modify record tupe identification criteri Record Use Use Use Tupe Always Never When ARTIST En ALBUM RT 2 TRACK 00000011 268 3 DSABCEFDC2802177 009 2099 One and Onl Fmt PViews 1 Figure 89 SELCOPYi SDE Explicit Record Identification Record Identification criteria defined for direct copybook overlay will persist throughout the SELCOPYi session but will need to be restablished beyond that A SELCOPYi Structured Data Object SDO permanebtly consolidates the information defined by one or more copybooks potentially defining multiple record types along with the Record Identification criteria for each An SDO is stored in a dataset typically a library member and provides significant performance improvement over direct copybook overlay for all SELCOPYi Structured Data components that are capabale of record formatting e g Browse Edit File Search File Reformat File Compare 2015 01 19 11 28 28 Training Manual 92 Option 2 Data Edit SDE Locating NEXT PREV record by Record Type Locating NEXT PREV record by Record Type e In both formatted multiple record VFMT and formatted single record FMT MAP display modes the NEXT N and PREV P primary commands may be used to navigate to records bas
141. STECESESIMBACF BF138361B3B3E265 FFO9D7A1107353D1 AF16D961 35562CD4 5415968D5BS575F1E CR6RSdaRCDS36R96 TCAES1 7168807550 so UuDut 3 R c 1 352 R11 I Really Vant lt You Oughta Knowc Perfect lt Hand In My Pocket lt Right Through You lt Forg iven lt You Learn Head Over Feet Hary Jane lt Ironic amp Not the Doctor lt Vake Up lt You Oughta KNoK 2614 6915 Training Manual OBID COLCOUNT EDPROC VA 5 3 16 176 Option 12 DB2 Sample XMLGEN output Sample XMLGEN output Press the OPTION key F6 if you wish to review other available XMLGEN options otherwise just press ENTER to generate your Extended Markup Language document File Edit Actions Options Utilities Vindow SwapList Help WS WR Command LE Scroll Csr 88aaei lt 600002 lt 999903 lt SELCOPY i 3 36 C 2013 Compute Bridgend Ltd UK 44 1656 65222 000004 lt Scroll Csr 99099095 lt MHLGEN 666666 lt 909097 lt Operating system 2 05 1 11 8 paaga lt Scroll Csr 90089 lt System id ADCD Lines 1 26 of 26 680018 lt nslation and other options 888011 lt Created by TEST 2014 09 18 15 38 45 98888012 lt 666613 lt gt 6600014 lt INPUT FILE TEST1 SELCTRN_TRACK FORMAT TBAGG167 TEST1 SELCTRN_TRACK gt 600015 lt SELCTRN_TRACK SEQ_NUNBER 1 gt 900016 X TRRCK NUM 1 lt TRACK_NUM gt 600017 lt NAME gt A11 I Really Vant lt NAME gt 666615 lt PERSISTENT_ID gt D1EFS3614D05A4790 lt PER
142. Size 1078 F1 HELP F2 SPLIT F4 4 INDOW FS9 SURP F12 CRETRIEU 2014 09 15 Figure 156 SELCOPYi DB2 Figure 10 2015 01 19 11 28 28 Training Manual 165 Option 12 DB2 Using FIND CHANGE Using FIND CHANGE Press F3 to exit the WHERE dialog and edit the selected rows Type FIND LIVE to hilite the square bracketed versions of the string e Type CHANGE ALL LIVE Live to update them all to use round brackets Note that the CHANGE command requires that the string Live is enclosed in quotes whereas Live needn t be That is because round brackets have a special meaning when used in FIND CHANGE command syntax type HELP CHANGE for more info e Press F3 to exit and save changes File Edit Actions Options Utilities Window SuspList Help 45 Un IB2 CBLAJ Edit table TEST1 SELCTRN_TRACK in tablespace TEST1 5ELCICNU m Command change all Live ive Scroll Csr Top of 73 Scroll Csr Table TESTI SELCTRN_TRACK 1 39 of 39 RLBUH ID TRACK NUM NAHE H Re 3nINT SMINT URRCHRR 128 opt ional AA AA gt oo demo A EA AAA AAA de 9 90000000 Top of Data ek pagpag 520 Barracuda Live lt 66666662 578 Neon Live amp 00000003 570 Stop This Train Live lt aaaaaaad 578 In Your Atmosphere Live 4 96690005 578 Daughters Livej lt 00090905 570 Free Fallin Livej lt 96960007 578 Everyday I Have the Blues Livej lt aoaoaoas 578 Vait Until Tomorrow Live amp 96666669 578 Uho Did You Think I Vas Live am
143. T ny 242975 96666622 Be Nine lt FILE_SIZE BIGINT ny 8566635 66666625 I Ain t the Sam lt BIT_RATE IN ny 256 60000024 On Your Vay lt SANPLE_RATE nr 44166 00000025 Heavy Chevy lt YEAR nv 2611 66666626 Converted lt NORMALIZATION ny 9255 96666627 Speed Up the Sound of Loneliness lt DISC NUMBER ny 1 66686625 Voke Up This Mornings ALBUM_ARTIST VARCHAR 50 ny Adele lt 96986629 U Don t Dans 2 Tekno lt ae 66 Bourgeoisie Blues lt mic a Ain t Goin to Goal RELERSE DRTE TIMESTAMP ny 2611 61 21 65 66 66 909060 DATE_ADDED TIHESTRHP ny 2012 65 62 11 30 36 000000 DATE_MODIFIED TIMESTAMP nY 2011 65 19 12 30 16 000000 TESTI SELCTRN TRACK 66600636 66660631 ad OI UJ Fo hno IO A nr FS V inas F6 VinRes F Drag U F8 Drag D Fib Drag L Fii Drag R si 16 s3 Vidth 26 sd Vidtht26 sS Depth 268 s6 Depth 28 s7 Drag Ux5 s Drag Dx5 si8 Drag Ls5 511 Drag RxsS Alt 6 6 6 5 ize 1676 352 Fit U S 2 2014 09 15 15 31 39 Figure 154 SELCOPYi DB2 Figure 08 2015 01 19 11 28 28 Training Manual 163 Option 12 DB2 Editing selected table rows Editing selected table rows e Press F3 to exit the edit session and return to the Table Edit dialog e Table rows may be selected for browse edit using an SQL WHERE clause Either type the clause directly into the enterable field e g Where NAME LK Blues OR NAME LK Soul or invoke the WHERE dialog by entering in the field File Edit Actions Options Utilities Vindow Sua
144. TRN Z225T2DAT ESDS2 5 SDS m File Edit Actions Options Utilities Window SwapList Help uS wR x Command gt Scroll Csr Press PF4 for Utilities menu including point shoot options Record type UnMapped Variable 80 2658 Offset 0 Data elements 1 Length UnMapped BSS Spe S SS HOSS ag pS SS SAS OS Sg pS OO GS SS Ogre Ss EOS Say pee SS OO Sq gs ciesc e OoS D0000001 268 STCBTFD20RDBEi19R8DOGE211GBourgeoisie Blues 00000002 268 3079FFQO6C1S5S01FB9600D797I Roman Wall Blues 0000003 268 3BDEED324BEE2DD30100B438ADown Payment Blues gaamgaogaaa 268 3924DD5148CDEF39F00H421ESubterranean Homesick Blues gaeaogaaaaos 268 32AF08B93888AEESTOOF3OSAEveryday I Have the Blues Live 88000006 268 3FD4B86E2C95D53CFOBH3569AGuUS s Blues Intro gaoegogaaaore 268 30C9E4EBOFF13BF8800B3T r0CKilling the Blues look End of Data Xx Line 0 Col Alt 0 0 0 Figure 120 SELCOPYi Browse Output File 2015 01 19 11 28 28 Training Manual 127 Option 5 File Copy Reformat FCOPY Specifying brackets in the FILTER expression Specifying brackets in the FILTER expression Multiple AND OR conditions may be defined through the filter definition panel but complex bracketed expressions may only be specified by manually modifying the FCOPY command generated by the panel For example to select records based on the following complex filter criteria where position 1 3 and record contains BLUES anywhere or record contains ROCK N ROLL anywhere or record contains SOUL
145. Take It ALIX 90009905 1 11 Be Vait ing lt 00000009 One and OnlyX 96900016 Lovesong lt 66666611 Someone Like You lt 66660612 I Found a Boy Bonus Track lt 60000013 Adele 21 A Track By Track Interviews 60000014 Hold on lt 69080815 I Found Yous 66960016 Hang Loose lt 66660017 Rise to the Sun lt 60090015 You Ain t Alone lt 66660019 Goin to the Party lt 69000626 Heart breaker lt 66666621 Boys amp Girls 66666622 Be Nine lt 00000023 I Ain t the Samec 99980024 On Your Vay lt 90000025 Heavy Chevy lt 66666626 Converted lt 66660627 Speed Up the Sound of Loneliness lt 66666625 Voke Up This Mornings ns 00090929 U Don t Dans 2 Tekno lt File 66669936 Bourgeoisie Blues lt t Prime Key 66666631 Ain t Goin to Goal AA Oo e uwtort amp Gupbo uooeutw Use Specified Macro Macro Name SDEPROF Do not use a Profile Macro FS RF IND F6 RCHANGE X si InsLine i 16 UNDO S11 REDO 2614 69 15 15 30 53 Figure 153 SELCOPYi DB2 Figure 07 2015 01 19 11 28 28 Training Manual 162 Option 12 DB2 The Zoom Window The Zoom Window With your cursor anywhere on a particular row press the ZoomW key Shift F5 to open a separate window displaying the selected row in zoomed format e Additional DB2 specific column attribute information is displayed in a zoomed view Type primary command HELP COLATTR H COLA for more details on the content of these columns Any number of zoomed view windows ma
146. UNDO s11 REDO 12 ResetBox Line 1 j Recl 80 Fmt F j Figure 18 SELCOPYi POM Window 2015 01 19 11 28 28 Training Manual 20 Option 1 Text Edit Inserting Deleting Replicating Splitting and Joining lines Inserting Deleting Replicating Splitting and Joining lines By defult a scale line is provided at the top of the screen that remains permanently visible as you scroll down te file e Type SCALE OFF to remove it and SCALE ON to restore it You will notice a difference from the standard ISPF editor when you type I in the prefix area of line 1 to insert a new line Whereas the standard ISPF editor will allow you to type data on the inserted line then press ENTER to automatically insert another line the SELCOPYi Text Editor simply inserts a single line Type Inn where nn is a number in the normal was to insert multiple lines at once While you may of course use any of the standard line commands if you prefer SELCOPYi provides some convenient default Function Key definitions Instead of having to move the cursor into the prefix area then enter I just press F13 Shift F1 to insert new lines Instead of having to move the cursor into the prefix area then enter D just press F14 Shift F2 to delete the current line Instead of having to move the cursor into the prefix area then enter R just press F15 Shift F3 to replicate the current line To split a line so that text following the the cursor is
147. UZ2 Select members to be included in the operation Library DSN USER123 SELCTRN ZZSTS5DRT Member Mask gt Use primary commands FIND ALL MORE LESS to condense member list 25 Sel Member LastMod Created Cursize Inisize User Alias Of uS wR Scroll Csr PF6 Select Deselect lt gt q t 4 4 t 5 lt gt lt gt 4 t 5 1 row s excluded caT 2 ET 2552 1 row s excluded TRACKOO4 TRACKDOS TRRCKO805 TRRCKGOO07 TRACKOOS TRACKOOD9 TRACKO10 TRACKO11 TRRCK812 TRACKO13 TRACKOD14 TRRCKOZ15 TRACKOD16 TRACKO17 2015 01 19 11 28 28 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 0221 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 Figure 142 FSU Member Selection ALL MORE LESS 97 47 47 47 47 47 47 47 47 47 47 97 47 47 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 2013 02 21 row s excluded Training Manual USERIZ3 USER123 USER123 USER123 USER123 USER123 USER123 USER123 USER123 USER123 USER123 USER123 USER123 USER123 150 Option 6 File Search Update Copy Reformat FSU Condensing Selected Members using FIND Condensing Selected Members using FIND The FIND panel is displayed when primary command FIND F is executed from a member selection list and may
148. aaaoaaoaaoaos 80000010 00000011 00000012 00000013 00000014 88000015 T Length md ro Length Line Browse TRACK USERL23S SELCTRN m File Edit Actions Options Utilities Window SwapList Help XXX Top of Data xxx ARTIST RT 2 AN gt 1 z RT 2 ANT TEA gt 3 3 3 3 3 3 3 3 3 3 3 3 3 Figure 88 SELCOPYi SDE Automatic Record Type Id 2015 01 19 11 28 28 Alt 0 0 0 ARTIST 3 AN 2 70 ZZSTZDAT using wS wR scr Fixed 71 Offset 0 Data elements 3 USERLZ3 SELCTRN sAM1 22357 2Ce out Gar 4 2 3 4 5 Adele Fdal PERSISTENT ID 3 AN 2 16 RSet tae es oe gr ae ae CB12DDr14D51828C 2648n25533D15404 9815923C6D2E6830 YDOO3SFFrs2074C18 AEDT39D857r4AA4C5 ETr5S5BCE1CFSCDEAF 6798C2Z2ABGAFB2571 962B35D1647DE7S5E DSABCSFDC2802177 2502515DEB535010 ESTABEBEETCGBB1D D4EB4EBF4651EF 20 CEC92B1BA3204ADA Fixed 268 Offset 0 Data elements 53 TRACK NUM TRACK ID NAME 4 ZD 18 3 nm 001 002 003 aga gas 006 Bor gas 009 010 011 Stale 613 Training Manual 5 6 ZD 21 4 AN 25 128 lt gt 4 t 1 2083 Rolling In 2085 Rumour Has 2087 Turning Tab 2089 Don t You R 2091 Set Fire to 2093 He Won t Go 2095 Take It ALL 2097 I ll Be Wai 2099 One and Onl 2101 Lovesong 2103 Someone Lik Mel e la 2107 Adele 21 po gt 2 the Deep TE les emember the Rain BH u e You ou Bonus A Tr
149. able Browse Table immed List colums Drop Table Edit Table Default Edit Table immed Table Information List Related Create Synonym List Synonyms Create SELCOPY batch Create Trigger List Triggers Create View List Views Create Index List Indexes Zoom Single row view SELCTRN RLBUM TESTI T SELCTRN RRTIST TESTI T SELCTRN_TRACK TESTI T TEST1 TEST TESTi Col 1 of 623 Training Manual Scroll Csr TSNRME DBID OBID COLCOUNT EDPROC UR SELCI6AS 473 SELCTRNR 473 3 2 SELC1CNU 473 id 16 158 Option 12 DB2 DB2 Table Information 2 DB2 Table Information 2 An HTML document window will display detailed information about the selected DB2 table Underlined text denotes a hyperlink to other significant parts of the document Use the TAB key to move the cursor immediately to the next previous hyperlink With your cursor on a link press ENTER to make the jump Press F3 repeatedly to return from any number of nested hyperlink jumps File Edit Actions Options Utilities Vindow SwapList Help WS UR File SwapList Vindow Help Qu Command IB2LCBLA Table Information for TEST1 SELCTRN_ALBUN Back Forward HomeLink Close Source Text Help Command Scroll Csr Table TEST1 SELCTRN RLBUH Type Base table In Database TEST Tablespace SELCI6AS IBZ CBLAI List Object 0 File Help Command gt 2252L666 List DB2 Objects Jable columns Primary key colums Storage groups
150. ack B 91 Option 2 Data Edit SDE Record Identification Criteria for Direct Copybook Overlay Record Identification Criteria for Direct Copybook Overlay Where it is not possible to automatically infer the correct record type assocation from the record length record identification must be explicitly specified As formatting is provided directly by our sample COBOL or PL1 copybook then in order to specify record identification we must use either of the following methods Press F16 Shift F4 to display the Utilities Menu then 1 Select option 6 Modify record type Identification criteria 2 In the Use When column for the ALBUM table entry type any of following equally valid expressions 0 RT 2 9 subsir record 1 1 2 0 left record 1 2 3 Press ENTER to register the update 4 Press F3 repeatedly to return to the browse edit view Type any of the following primary commands 1 USE ALBUM WHEN RT 2 2 USE ALBUM SUBSTR RECORD 1 1 2 3 USE ALBUM LEFT RECORD 1 2 SELCOPY i Browse USER123 SELCTRN 22ST2DAT using USER123 SELCTRN SAM1 22ST2Cx m File Edit Actions Options Utilities Window SwapList Help wS wR Ex Command gt Scroll gt CST Record tupe ARTIST Fixed 71 Offset 0 Data elements 3 Length RT ARTIST 2 3 AN 1 1 AN 2 70 gt A B0000001 qu ek Adele Record type ALBUM Fixed 71 Offset 0 Data elements 3 Length RT ALBUM 2 3 AN 1 1 AN 2 70 gt SSR Sgpe Seog oe So ype SSS SS Saye
151. aooa6 eaaoaoaoa 96686605 100000009 66666616 66666611 88000612 Scroll Csr COUNT EDPROC UR 3 2 16 FS RF IND Line 6 F6 RCHANGE EAH 66660069 FFGBD TR11D7553Di 66660616 AF16D90136802C04 66666611 Sd1596ADSBS75F1E 00000612 CR6RSdaRCDSS6R96 66660615 TCREGO17165580755D si InsLine Figure 166 SELCOPYi DB2 Figure 20 2015 01 19 11 28 28 s2 Delline s3 DupLine 9 Mary Jane lt 18 Ironic amp 11 Not the Doctor lt 12 Vake Up lt 13 You Oughta KNoK s4 0pt ions s5 200nM Fit Views 4 Training Manual 16 UNDO s11 REDO 2614 69 15 152355227 175 Option 12 DB2 The XMLGEN dialog Exit the generated CSV then type the primary command XMLGEN XML with no parameters to start the XML dialog The XMLGEN dialog e Select option Start at Top of File e Select option End at End of File Enter an Output CSV Text File name of your choice e g lt userid gt SELCOPYI XML PILL File Edit Actions Options Utilities Vindow SwapList Help WS WR Ee a table TEST1 SELCIRN_ARTIST in tablespace REPERI H Scroll Csr Top of 73 Scroll Csr Scroll Csr Table TEST1 SELCTRN_ARTIST ID NAME 2 tH SHINT VARCHAR 76 t 80080000 Top of Data ek CEECEE 18 Adele lt 96600062 26 Alabama Shakes lt 80600603 38 Alabama 3 lt 00000004 48 Alanis Morissett 69000665 O 66600666 Table 4 j1 4 AML Generation Specify RAL Source Dest ination File Conmand Help Conmand gt
152. as browsing and editing DB2 tables SELCOPYi provides tools to e issue DB2 commands execute SQL e list DB2 objects with extended functionality e create DB2 object Tables Indexes etc using wizard style dialogs to generate SQL Focusing on table edit during this section you will learn about e Setting up sample DB2 Tables Display of DB2 Table detailed Information INFO DB2 Table Edit e Editing selected table rows using the WHERE dialog e Editing Related Tables REDIT e Generating CSV or XML from selected table rows columns e Handling Relational Constraint Errors 2015 01 19 11 28 28 Training Manual 154 Option 12 DB2 Setting up sample DB2 Tables Setting up sample DB2 Tables SELCOPYi will create some sample DB2 Tables for you Note The feature to generate personal copies of the training tables will be formally introduced with SELCOPYi 3 20 at PTF level RS32007 To check your current software level type the primary command ABOUT In the meantime an email containing a REXX macro that will generate your sample tables is available from CBL on request support cbl com Note also that the DB2 Relational Table Edit REDIT facility that features heavily in this section was introduced with SELCOPYi 3 20 at PTF level RS32006 The table data will be copied from your own SELCOPYi sample datasets See chapter Setup Training Material and represents a simple recorded music collection The sample d
153. atabase comprises a hierarchy of Artist Album and Track table rows To create your own personal tables allowing you to follow the training manual in real time first select option 12 from the main SELCOPYi Primary Options Menu to display the DB2 Primary Options Menu as shown below If necessary fill in the name of the DB2 Subsystem and your SQLID in the enterable fields A further optional check box may be selected to request that SELCOPY i DB2 auditing should occur Audit of DB2 table edit views is managed separately and is not affected by this check box setting If Create Audit File is selected an audit log file will be allocated immediately before attempting to connect to the DB2 subsystem and closed when the connection is dropped File Edit Actions Options Utilities Vindow SwapList Help Wo uR rimary Option Menu File SwapList Vindow Help QuickRef Conmand gt Scroll Csr 223GPRIM Lines 1 22 of 22 Settings Set SELCOPY i options User Text Edit Edit View small text type files Version Data Edit Edit Browse potentially large data files Date 2014 09 15 List List Volumes UTOCs Datasets Members etc Time 09 34 25 Home Edit Execute point and shoot commands OpSys z 05 1 11 6 Copy Reformat File Copy with copybook reformat option System ADCO SearchUpdate File Search Update Copy Reformat Un User 205111 Compare File Library Compare Utilities Utilities Inc SELCOPY debug XHL CSU gen etc Structure Create structure from copybooks etc Filter Crea
154. ated tables provides some handy background and tips File Edit Actions Options Utilities Vindow SwapList Help AJ Edit table TESTI SELCTRN_ARTIST in tables Table TEST1 SELCTRN_ARTIST ID NAME mue SHINT VARCHAR 78 Gen e GEG SALO LIiZLO LELLGULL GAIA GIGUR LAG 90000000 Hk Top of Data er 60000061 18 Adele lt 100000002 28 Alabama Shakes lt 000900903 38 Alabama 3 lt 60090004 48 Alanis Morissette lt 10090905 58 Alex Harvey lt 100000006 68 RC DCX 60000007 8 Bruce Springsteenc 60000005 36 Bruce Springsteen amp The Sessions Band lt 96986869 166 Burt Bacharach amp Elvis Costello lt 96986016 118 Christina Aguilera lt 60000011 128 Christina Aquilera amp Dave Navarro lt 96960812 66986615 60000014 60000615 60000015 60090017 60000015 196 Duffy lt 96660819 266 DJ Fresh lt 66666626 218 Embracec 99900021 228 Florence The Machine lt 98966622 2538 Gretchen Vilson lt 96966625 246 Guns N Roses lt 96960624 258 Jennifer Hudson lt 96660625 268 Jessie I lt 96666626 66666027 288 John Nellencamp lt 00000025 298 Journey lt 00090929 388 Judas Priest lt 000000309 318 Kosheent 96980831 328 Led Zeppelin lt __F3 BACK FS TEXT F6z50UR Line 6 Alt 6 6 6 5 Figure 177 SELCOPYi DB2 Figure 31 2015 01 19 11 28 28 IB2 Table Browse and Edit Back Forward HomeLink Close Source Text Help Conmand gt Scroll Csr Editing or browsing related tables SELCOPY i has specific support for editing tables which have relationshi
155. ce the results displayed below SEL 3 HOLD 5 ALBUM ARTIST Held fields are hilighted in a different colour Ns Help COLour for full information USER123 SELCTRN ZZSTiDAT using USER123 SELCTRN SAM1 ZZST1iC RT le AIT Actions Options Utilities Window SwapList Help wS wR Command gt Scroll Csr Record type TRACK Fixed 407 Offset 0 Data elements 18 TRACK NUM NAME 3 AS 0000001 Rolling In the Deep pocos Rumour Has It 00000003 Turning Tables EH Don t You Remember Set Fire to the Rain He Won t Go Take It ALL I ll Be Waiting One and Only Lovesong Someone Like You I Found a Boy Bonus Track Adele 81 A Track By Track Interview Hold On I Found You Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Boys amp H38 Girls Be Mine T AIMEE the dans CAR ETE E a Recl 407 Fmt F Figure 63 SELCOPYi SDE SELECT 3 2015 01 19 11 28 28 Training Manual 68 Option 2 Data Edit SDE Adding All Previously Unselected Fields to the Display Adding All Previously Unselected Fields to the Display By adding the pseudo field asterisk to the end of the SELECT command all previously unselected fields will be included in their default order Type the following command then scroll right to produce the results displayed below SEL 3 H 5 ALBUM ARTIST USER123 SELCTRN ZZST1DAT using USER123 SELCTRN SAM1CZZST1C m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Scroll
156. ck Delete marked block C Copy marked block to the clipboard M Move marked block to the clipboard Paste data from the clipboard Ein REDE Sas WC le a Insert sequence numbers into marked box Delete word at cursor or blanks up to next word F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEV s2 EXPRND Figure 27 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 32 Option 1 Text Edit Copying a Line Block 4 Copying a Line Block 4 Type C in the option field and press ENTER e The marked block of lines will be copied into your HOME file SELCORPY i TESTI 5EEECUPTI EMA setae V Seu Size 141 A oe ie m File Edit Actions Options Utilities Window SwapList Help w5 wR Command _ Scrolls Est Lo o 1 q 2 q Y ql q 000001 xx TEST1 SELCOPYI CMK xk L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 035 RT PIE 001 000008 B3 ARTIST BIEN BI OT 000009 05 Pic al pel 000010 o5 PIC 070 000011 o5 PIC N 0011 000012 DO RERSTSTENT LO PIESACUTB TE 000013 05 TRACK NUM PIE S003 000014 Q5 TRACK ID Plt AUDI 000015 Q5 NAME PIC 120 000016 Type the HOME H0 command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primar
157. ction criteria e g select on timestamp size userid etc combinations to members selected by one or more previous searches e Specify an output file to which all input records will be copied regardless of whether record data has been changed Apply a filter in order to restrict search update copy to records matching specific selction criteria e Search and optionally update uncataloged data sets by generic volume id e Specify the start record for search update copy operations Restrict the number of records read for search update copy operations Restrict the search update operation to specific columns within the file records Apply a structure copybook overlay to format input file records Optionally restrict search update to records assigned to specific record types and specific fields withing those record types e For Formatted File Search Update optionally specify an output file and output structure copybook to reformat input record fields i e alter field data type re order and or delete fields Update character data using different length search and update CHANGE strings e Control use of blank padding or blank absorption when character search and update CHANGE strings are of different length Note that the CHANGE operation will fail if the length of the updated record is greater than the file s maximum record length Following File Search Update Copy Remap execution report output is generated in a structured forma
158. d gt Scroll Csr Record type TRACK Fixed 407 Offset 0 Data elements i8 Record 00000001 Length 407 Ref Fi 4 4 2 3 4 5 1 J CcBi2DD7r14DS5S1828C ooi 2083 Rolling In the Deep HHHH new Adele 21 wel Sar du la 2223093 Falla tal 30508306 BIT RATE EE SAMPLE RATE aa YERR NORMALIZATION SC NUMBER UM ARTIST DED 6 7 HS 9 dtititititibidtitit B BHHHHHHHB yum b wmn eg 000050 wh PPEDONGh PNRPeR RRB mr mo FmtzF Figure 51 SELCOPYi SDE MAP FMT 2015 01 19 11 28 28 Training Manual 58 Option 2 Data Edit SDE Unformatted Multi Record CHAR Display Mode Unformatted Multi Record CHAR Display Mode Type CHAR to set unformatted multi record display mode e For non segmented structures this display is the equivalent of removing the structure e For segmented structures each line represents an individual segment in its raw state with the prefix area indicating the physcial record to which it belongs Type HEX to toggle hexadecimal display on off USER123 SELCTRN ZZST1IDAT using USER123 SELCTRN SAM1 ZZST1iC Edit Actions Options Utilities Window SwapList Help wS wR Sac cer Record type UnMapped Fixed 407 Offset 0 Data elements 1 UnMapped OR mee oe re ee SS E OS SA O SNA SOS AI eel CB12DD714D51828C004A208CRolling In the Deep 2642425633D1540400B20S8SERumour Has It 3815923C6D2E683000C208GTurning Tables 7DOO3FF752074C1800D208
159. d5 Alt 6 6 6 s 2 2 2614 69 15 15 39 45 Figure 168 SELCOPYi DB2 Figure 22 2015 01 19 11 28 28 Training Manual 177 Option 12 DB2 Handling Relational Constraint Errors Handling Relational Constraint Errors Next as an excerise we ll delete the artist Bob Dylan from our music collection Use F3 to exit as far as the ARTIST table e Enter D in the prefix area or press the DelLine key Shift F2 to delete the Bob Dylan ID 70 row e Press F3 to exit and save or type primary command SAVE Because of the table s relational constraints DB2 prevents an ARTIST row from being deleted while any ALBUM rows exist with the same foreign key In this case SELCOPYi reinserts the deleted row at the top of the screen The row is flagged with R 532 in the prefix area indicating the SQLCODE encountered by the SAVE File Edit Actions Options Utilities Window SuspList Help 1 un Al Edit table TEST1 SELCTRN_ARTISI in tablespace TE511 5ELCTRNR H Command wm 22503461 SAVE inserts 8 deletes 0 updates 8 SQL errors 1 for DB2 object Scroll Csr TEST1 SELCTRN RRTIST ID NAME i og SMINT URRCHRR 8 Scroll Csr A A Er pnm rrr SPP A 90000000 Top of Data ek R 532 76 Bob Dylanc 090000002 18 Adele lt 100000903 Alabama Shakes lt 90000004 Alabama 34 00009905 Alanis Hor issette lt 96900006 Alex Harvey lt 100000907 RC DCX 66660008 Bruce Spr ingsteen lt 96000009 Bruce Springsteen amp The Sessions Band lt 9660661
160. dit The SELCOPY4 structured data editor SDE supports BROVSE and EDIT of DB2 tables and views Full reference information for structured edit is in SELCOPY i Structured Data Editor SDE Contents and there is also an SDE section in the comprehensive SELCOPY i Quick Reference document The following topics provide introductory information about working with DB2 data in structured edit Starting a DB2 table edit or browse session How DB2 subsystem connections are managed Limiting the number of rows loaded Defining a structure to use with DB2 tables How DB2 rows are saved Dealing with save errors Auditing edit sessions Editing or browsing related tables Useful commands Comparing D62 table edit with dataset edit Starting a DB2 table edit or browse session The EDIT and BROUSE primary commands with the DB2 subsystem parameter start a DB2 table edit or browse session For example the command browse db2 cbla sysibm systab les Will open a structured browse view and load all the rows of the table SYSIBH SYSTRBELES for subsystem CELA into storage A temporary structure will be generated using the DB2 catalog to define the columns and their data types These primary commands have many optional parameters and it is m of 9 Col 1 of 7S File CBL CBLI536 HTML J S4 FORVARD 2014 89 18 15 41 52 Training Manual 185 Option 12 DB2 Related Tables Help Related Tables Help The hyperlink for Editing or browsing rel
161. dit SDE Using CHANGE commands Using CHANGE commands Type the following commands to produce the results displayed below SEL TRACK NUM NAME HOLD ALBUM ARTIST C amp 38 amp Note Semi colon is the default command separator character In order to use the separator character as a legitimate part of a command string we must suspend its normal handling This can be done by either 1 Updating the separator character in the Settings panel issuing the command then resetting the separator character This is cumbersome and upsetting 2 As in the above example let SELCOPYi automatically suspend separator handling for the duration of a single command simply by prefixing that command with semi colon i e the prevailing separator character Press F5 RFIND to search for the next occurrence Press F6 RCHANGE to change it Or add the ALL parameter to the CHANGE command to change all occurrences Type Help ehenge for full information SELCOPY i USER123 SELCTRN ZZSTIDAT using USER123 SELCTRN SAM1 ZZSTiC File Edit Actions Options Utilities Window SwapList Help wS wR Command zx pec Record type TRACK Fixed 407 Of fset 0 Data elements 18 TRACK NUM NAME ALBUM ARTIST H5 7 6 AN 24 120 AN 214 70 AN 144 70 ML SS DASS SSS LLL SS See SSS ELLE Rolling In the Deep Adele Rumour Has It Adele Turning Tables Adele Don t You Remember Adele Set Fire to the Rain Adele He Won t Go Adele Take It ALL Adele I
162. e 1070 PRPOOGOG 7 L 3 3 3 3 3 3 JE CD Kn CU 00 C Ut m G ro m m a o Gr mr O mam um 23 O ITI G 2 Ul C TIHTI AJ P0 C2 ITI D 2 UT 0 n J SAMOA Z5B5BHHHHH mhhbhbhbhlll O 3 Ls 4 0010 MD bumen Figure 53 SELCOPYi SDE MAP Line Command R R at 0 dtitititititititdtit zi zi 8d ed d sarda USER123 SELCTRN ZZSTAIDAT using USER1I23S SELCTRN SAM1 CZZST1iC File Edit actions Options Utilities Window SwapList Help wS wR ommand gt Sema SA ecord type TRACK Fixed 407 Offset 0 Data elements 18 ecord gt 00000011 Length 407 Fi An A A A 4 t 5 P Ss ESTABEG6EETCSG6B1D m 011 Li 2103 N Someone Like You 20 ARTIST Adele ALBUM ET al TOTAL TIME 285240 ISDBSEZXSISE 958995243 BIT RATE SAMPLE RATE YEAR NORMALIZATION BEEBEE IHIH D M0 NN mmm Dd 00000 PRED OW 2015 01 19 11 28 28 Training Manual 60 Option 2 Data Edit SDE Unformatted Single Record UNFMT Display Mode Figure 54 SELCOPYi SDE ZOOM Unformatted Single Record UNFMT Display Mode Type UNFMT to set unformatted single record display mode Type HEX to toggle hexadecimal display on off Press F7 F8 to scroll along the record Press F10 F11 to scroll the display to the previous next record SELCOPY i USER123 SELCTRN ZZSTiDAT using USER123 SELCTRN SAM1 ZZSTI1CH m File Edit Actions Options Utilities Window SwapList Help wS wR Command siatie SA Record type UnMapped Fixed 407 Offset
163. e displayed from which you can make a selection Specify the Action Activate option Browse Data by entering a Deactivate the Structure Copybook overlay Uncheck the option by removing the a This option is provided so that you may deactivate reactivate structure formatting without needing to remove retype the dataset member name Press ENTER to edit the sample dataset Type RECLEN to switch on off the display of record length column which displays each individual record s length in front of the data You will notice that e Record 1 is length 71 and contains 1 in position 1 indicating it is an ARTIST record e Record 2 is also length 71 but contains 2 in position 1 indicating it is an ALBUM record Records 3 15 are length 268 and contain 3 in position 1 indicating they are TRACK records SELCOPY i Browse USER123 SELCTRN 225T2DAT 5 m File Edit Actions Options Utilities Window SwapList Help wS wR x Command gt Scroll ESP Record type UnMapped Variable 80 2658 Offset 0 Data elements 1 Length UnMapped is Cll 00000001 Y1 iAdele 00000002 Del esl 00000003 268 3CB12DD714D51828C00A208CRolling In the Deep 00000004 268 32648A25633D1540400B205ERumour Has It gaaagogaags 268 39815923C6D2E683000C208GTurning Tables 268 37DO003FF7Y52074C1800D208IDon t You Remember 268 3AED739D8574AA4C500E209ASet Fire to the Rain 00000008 268 3ETSS5BCE1CFSCDEA7 TDOF209CHe Won t Go B0000009 268 36r98C2ABUAFB257100G209ETake It ALL 000
164. e mode Use Keep Locks None Share Update Exclusive Miscellaneous Opt ions Z Create Audit File Do not protect Prime Key Macro Name SDEPROF 2614 69 15 15 31 54 164 Option 12 DB2 Using the WHERE dialog Using the WHERE dialog The WHERE dialog allows you to enter one or more row selection conditions against each of the listed table columns As an excersise we ll select all TRACK rows that have the string Live either in round or square brackets We ll also make the selection case insensitive Once we ve selected the rows we ll standardise by changing all the square bracketed versions to use round brackets e Place your cursor in the Op Relational Operator input field for table column NAME then enter and press ENTER to display a list of valid operators e Select LK Like from the list by placing the cursor and pressing ENTER Alternatively just enter LK directly into the Op field e Tab to the Value input field then enter Live There is no need to put the value in quotes SELCOPYi will add them for you e Tab again to the VO Value Option input field then enter Select A Any Case to indicate case insensitivity Use the Back Tab key to get to the numeric prefix area then enter R to replicate the dialog table row for NAME Now we can enter a second condition based on the contents of this DB2 table column e On the duplicate line change the Con Connector field from AND to
165. ecord Selection For each input file copu onlu selected records Start EE Z Record Key _ RBA EE For gt Be records Z Fllter Q Select records to copy F File Q Quick PF6 Edit Filter File Member gt Options Reformat using structurezcopubook layouts _ Recurse HFS Sub directories _ Append to existing Output Ignore HFS fileid case Figure 117 SELCOPYi Specify Quick Fllter 2015 01 19 11 28 28 Training Manual 124 Option 5 File Copy Reformat FCOPY Specifying Simple FILTER Selection Criteria Specifying Simple FILTER Selection Criteria Enter 7 in the Limit field to restrict the number of records selected e Enter l in the Type field to specify that selected records should be included in the copy process Enter 1 into the Position column of table row 1 this is the default e Enter 1 into the Length column e Enter equals into the ROp Relational Operator column this is the default Alternatively enter blank to get a list of available operators from which you may make your selection by placing the cursor and pressing ENTER e Enter 3 into the Value column Replicate table entry line 1 by typing R into the table prefix area 000001 The AND OR column will automatically set to AND Enter 1 into the Position column of inserted table row 2 this is the default Enter 0 into the Length column of inserted table row 2 this is the default A length value of zero has a special meaning indica
166. ect only records of the focus record type Use V to additionally select records of the focus shadow line record type Use V to deselect records of the focus record type i eSELCTRN Z22ST2DAT using f cm SIL Tait Actions Sotions Utilities Window SwapList Help wS wR m E gt Command Scroll gt Csr Record type ARTIST Fixed 71 Offset 0 Data elements 3 Length RT ARTIST 2 3 AN 1 1 AN 2 70 gt SS ES COE Cra lesa Cis EIC a ec uic SS RI p oaaoaooooo1i Tipe Goi l Adele Ve 1 line s suppressed record type ALBUM 0oooooo03 13 line s suppressed record tupe TRACK 80000016 Tick sel Alabama Shakes 0000007 1 line s suppressed record type ALBUM 00000018 18 line s suppressed record tupe TRACK B00000 30 rae Alabama 3 000000341 1 line s suppressed record type ALBUM oooooo3a 12 line s suppressed record type TRACK goooooaa Tie el Alanis Morissette 00000045 1 line s suppressed record type ALBUM 00000046E 1 line s suppressed record tupe TRACK gooopgg4a 1 line s suppressed record tupe ALBUM moeasnnOdB 2 13 line s suppressed record type TLRAHGK e e eem goooooei ri X Alex Harve ogooooogBe T iral suppressed record tupe ALBUM GOG0006S 2 9 l
167. ed on their record type e Type NEXT ARTIST to scroll to the next record of the type ARTIST e Type N to scroll to the next record of the same type as the focus record e Type N to scroll to the next record of a different type from focus record e Type Help NEXT for full information e It s often handy to set a PF key temporarily for the browse edit session e g to set F5 F6 to jump to the previous next ARTIST record type the following primary commands e PF 5 PREV ARTIST PF 6 NEXT ARTIST 2015 01 19 11 28 28 Training Manual 93 Option 2 Data Edit SDE Selecting Visible Record Types Selecting Visible Record Types Since SELCOPYi is capable of displaying multiple record types simultaneously in Formatted Multi Record VFMT Display Mode it is handy to be able to select precisely which record types are visible at any given time Records of any unselected record type are represented by shadow lines just like excluded records This feature is controlled by the SHADOW primary command Record types may be selected deselected using either 1 The VIEW V V V primary command e g To select only TRACK records type 0 V TRACK To reselect all record types type V To select only ARTIST and ALBUM records type 0 V ARTIST ALBUM To deselect ARTIST and ALBUM records type 0 V ARTIST ALBUM To additionally select ALBUM and TRACK records type 0 V ALBUM TRACK 2 The V V or V line commands Use V to sel
168. eformat Execute Reformat You will be prompted to create you new output file which should be allocated as record length 167 fixed e A summary message will be displayed on completion Press F20 Shift F8 to browse the output file in formatted mode SELCOPY i Browse USER123 SELCTRN 22ST1iDAT FCOPY2 using m File Edit Actions Options Utilities Window SwapList Help Command gt Use CHAR MAP FMT UNFMT to switch view mode Record type TRACK Fixed 167 Offset 0 Data elements 5 ARTIST ALBUM TRACK NUM 2 3 AN 1 20 AN 21 24 a a ESOO O SP AO Adele al Adele zl Adele ea Adele zT Adele 2i Adele 21 Adele zl Adele gut Adele zT Adele Adele Adele Adele Alabama Alabama Alabama Alabama Alabama Alabama Alabama 00000001 gagaooaoz 00000003 00000004 80000085 00000006 0000007 00000008 00000009 00000010 00000011 00000012 00000013 00000014 00000015 00000016 00000017 000000185 00000019 00000020 0000021 Alabama 00000022 Alabama e Line 0 Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes Shakes erehe 00 004 CO P9 CO P2 ES CD uD 00 24 1 1I I UNE Fmt F Figure 130 SELCOPYi Browse Formatted Output 2015 01 19 11 28 28 Training Manual USER123 SELCTRN SAM1x wS wR SCFOLLCA CSE Press PF4 for Utilities menu AN 48 120 e a Rolling In the Rumour Has It Turning Tables Don t You Reme Set Fire to th He Won t Go Take It ALL I ll Be Waitin One and Only Lovesong Someone Like Y
169. eld record Locating a Field Use the LOCATE command to scroll a formatted either multi or single record display to a specific field LOCATE may be abbreviated to L Field names may be abbreviated e The field may be referred to either by its name or by its field reference number e g using the supplied sample COBOL copybook the following commands are functionally equivalent L SAMP eL i11 The result of issuing either of these commands from a VFMT display is shown below The parameters FIRST LAST NEXT or PREV may optionally be added to the command with NEXT being the default i Edit USER123 SELCTRN ZZST1iDAT using USER123 SELCTRN SAM1i ZZST1iC m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt UA O A Record type TRACK Fixed 407 Offset 0 Data elements 18 SAMPLE RATE YEAR NORMALIZATION DISC NUMBER ALBUM ARTIST H11 Hoe 13 14 15 PD 294 3 ZD 297 4 PD 301 3 zD 304 3 AN 307 41 gt q 4 A A A o o 0000001 44100 2011 5151 Adele pocoaaa2 44100 7474 Adele 00000003 44100 6529 Adele 00000004 44100 Adele 44100 Adele Adele Adele Adele Adele Adele Adele Adele Adele Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama pa Di Di ET Di Di Di Di Di Di Di Di Di Di Di Di Di SIRE Di Di Di Di Di 2 500000000000 000000000000 0000000000000 000000000O PEEBBBBBBBBGBBBBBBBBBBBB 2 al 2 1 E al al 2 E B E
170. ented decremented for each line Base DEC DECimal or HEXadecimal Start Value Number inserted on 1st line Increment 3 number adjustment to 2nd and subsequent lines Leading Zeros YES Use above specified start value Use the first line existing value as start value Adjust every each existing value by the increment number Pl F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEY s2 EXPAND Figure 39 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 44 Option 1 Text Edit Adjusting Sequence Numbers 2 Adjusting Sequence Numbers 2 Press ENTER to update the values A YE TESTTISSEEEUPTI EHR Fee te V Size 141 Alt 12 12 6 m File Edit Actions Options Utilities Window SwapList Help S wh m Command _ Scrolls Csr 000001 000002 000003 A e L E e RN ater 000004 000005 This is your HOME file or personal Command Centre 000006 000007 RT 000008 ARTIST 000009 000010 000011 000012 PERSESTENT LD 000013 TRACK NUM 000014 TRACK ID 307 000015 NAME A 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes
171. eq to control the order of visible fields e Enter a number in the Width to control the column width of a field e Selected fields that are not given an explicit Sequence number will be displayed in the order they appear in the panel table e The panel table may be manipulated using standard line commands entered into the numeric suffix area on the right hand side of each table row Table rows may be moved or excluded but not deleted e Use primary command SELALL on function key F5 by default to select all unexcluded fields e Use primary command DESELALL on function key F6 by default to deselect all unexcluded fields e Use primary command RESET without parameters to reset to blank all enterable columns or add the column name to reset each individual column e g RES H e Selecting Y in the Show unselected fields at the end option is the equivalent of adding to the end of the SELECT command as discussed earlier e If option PERM is selected then the select colwidth combination will saved in the applied structure SDO If mapping direct from a COBOL PL1 copybook then you will be prompted to create a structure or continue without saving Panel input will be obeyed on normal F3 exit The EXECUTE EXEC primary command on function key F16 by default may be used to obey input without exiting the panel This is partiularly useful when running in windowed display mode on a large dynamic screen where both the SELECT pa
172. equenced numbers incremented decremented for each line Bases vee DECimal or HEXadecimal Start Value 100 Number inserted on 1st line Increment 20 number adjustment to 2nd and subsequent lines Leading Zeros YES Use above specified start value Use the first line existing value as start value Adjust every each existing value by the increment number F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEV s2 EXPAND Figure 38 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 43 Option 1 Text Edit Adjusting Sequence Numbers 1 Adjusting Sequence Numbers 1 We can also use the same panel to adjust the existing numbers in a box block As an excericse we ll add 3 to each of the original existing numbers e First press the UNDO key Shift F10 to restore the previous values Press the BoxFuncs key Shift F8 Type S in the option field and press ENTER e Enter 3 in the Increment field e Select option Adjust every existing value by the increment number SELCOPY i e Numbers in Marked Box x m File Command Help uS wR fx Command Scroll BETA ZZSTBXSQ Lines 1 20 of 20 222 0 Cane Use this panel to inert or modify a numeric column defined by a marked Box block in a Text Edit view Use the MrkBox key default is Shift F5 to mark the corners of a box block before entering this panel The box corners define the start end line and columns to receive the sequenced numbers increm
173. equently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Line 1 Col Alt 3 3 1 Si cl 32 752 E eal eet Figure 41 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 46 Option 1 Text Edit Using the BOX Primary Command 1 Using the BOX Primary Command 1 Next we ll use the BOX primary command to change all occurences of minus to sharp within the COBOL field names only Mark the data block as shown below e On the command line type BOX CHANGE ALL 7 Press ENTER to make the change SELCOPY i TEST1 SELCOPYI CMx m File Edit Actions Options Utilities TREE TETI qi w5 wR m Command box c all Seroll gt Csr 4 1 4 2 4 3 4 4 4 5 4 p 4 7 000001 xx TEST1 SELCOPVI CMM ok L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 001 000008 ARTIS 070 000009 001 000010 070 000011 001 000012 SISTER 016 000013 Ur 9 003 000014 RACK ID 9004 000015 NAME 4 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi se
174. er Access MCU Gis vet ues ire aan EQ exces d Sa ced LENS DA SEQ Sea DOR a Ca eh ude treu iba Fu NEAR eg ad 120 Define New VSAM Output El 121 Copy eI REIS I TET D E EE aa 122 Browse the OuiputFIG EOL ERIT TI I IL E a mm 123 Using a FILTER to Select Records TOT CODY acies serta tos tinta ros er 124 Spacityirigesimple EFIETER Selecten Cited eana RON ce oae a a AA E A 125 Filtered Gopy Summary Message sennen ei topa e Eaa 126 BLOWS SOUT UT FIG e 127 Specihyingibrackets Im the FIL MER EPSON iuo uit uo aiii lies 128 Generate FEGOPY primary command ss rore ette pe acts tes a ca tescdacin bres bed oe Qu Pace Eres dicta nodes Rud tabs 129 Modify Executs Generated FCOPY primary CORITIBITO concepta canoe cirea terran itinere aec eph essc ce SE 130 Browse Output from Generated Command WINGO Wises sauce cuna sa rieron so auk that ilatina 131 FAGIONM GL iacens cce odo qeti quud ac dE LM I E EMI ME 132 Specii Input COO VBDDI oderit dated utl cM MED M IM IL IM Du corer IE IE 193 2015 01 19 11 28 28 ii Training Manual Contents Option 5 File Copy Reformat FCOPY Use INPUT Copybook as Models ei 134 EAN M EE 135 Specify OUH GODDOOIC xis oac tr resos rta te contes sido cin reinar cU IPIS Poveda roo 136 Execute TSIM UN s ocior iSo eap issus ae tepidis ia 137 Misco nigra meds oec spp ES 138 Updating tne Output GCODyDOOK qr 139 Force Recompile
175. field will already be correct The Lang field will already be correct Press F6 ZOOM to access the form screen o 0 N O a A CO In the E field type any of following equally valid expressions RT 2 0 substr record 1 y1 2 0 left record 1 2 10 Press F3 to return to the record types definition table panel Define the TRACK record type as follows 1 Replicate table entry line 2 by typing R into the table prefix area 000002 2 Type TRACK into the Record Type Name field table row 2 3 Press F6 ZOOM to access the form screen 4 In the a field type any of following equally valid expressions RT 3 0 substr record 1 1 3 0 left record 1 z 3 SELLUPY 7 eate STRUCTURE from PL1 copyubook s m File Help wS wR x Command gt la IS TGSI ZZSGSDOR Add a table row then press PF2 to specify its record identification criteria Create Structure Define Record Tupes 3 Rows Copybook Type Start Record Type Name D1 Lew Record Lang Libraru Level Offset Member d cL P US MEE PT M OU EE ere iy Ue ee ele ede M IM M ES E PR 000001 zzsT2CPC PRI 1 ARTIST COBOL 000002 22S5T2CPC PRI 1 ALBUM B COBOL 000003 zzsT2CPC PRI 1 TRACK 8 COBOL 000004 X End of Data kx Figure 95 SELCOPYi SDO Define Record Types 2 2015 01 19 11 28 28 Training Manual 99 Option 2 Data Edit SDE Generating the SDO Generating the SDO e Press F3 to return to the record types definition table panel e Press F3 again to
176. file Hacro _ F17HELP F2 SPLIT F4 4 INDOW FS9 SURP Fi2 CRETRIEU s2 EXPAND Line 1 Alt 1676 1676 6 Size 1678 Recl 58 eus 2 2614 6915 15 25 15 Figure 152 SELCOPYi DB2 Figure 06 2015 01 19 11 28 28 Training Manual 161 Option 12 DB2 DB2 Table Edit 2 DB2 Table Edit 2 e Ensure that none of the Row Column Selection Options are set then press ENTER to edit the TRACK table e The table will be displayed in default multi row format Scroll up down using F7 8 to view and edit further rows Scroll left right using F10 F11 to view and edit further columns Type the INFO primary command to display detailed information about the currently edited DB2 table All the power of the SELCOPYi Data Editor is now at your finger tips e g to open another separately scrollable view of te same table just type the primary command WIN NEW or WW File Edit Actions Options Utilities Window SuapList Help 5 un Aj Edit table TESTi SELCTRN_TRACK in tablespace TEST1 SELCICNU H Scroll Csr Top of 1976 Scroll Csr Table TEST1 SELCTRN TRACK 1 39 of 39 RLBUM ID TRRCK NUM NAME Hu 15 lt 4 ated any ee a ee 4 d 5 i B amp 3 i 8 4 9 2 ZUM CMT URRCHRR 1268 opt ional 90000000 Top of Data r 99600801 16 Rolling In the Deep lt 99600002 Rumour Has It lt 96690003 Turning Tables lt 90000004 Don t You Remember lt 00090905 Set Fire to the Rain lt 160000905 He Von t Go lt 100000007
177. for full information The status of a segment being either PRIMARY or SECONDARY will not be altered by an IDENTIFY process To alter an individual segment s PRIMARY SECONDARY status use The STP line command to make the selected record a PRIMARY segment The STS line command to make the selected record a SECONDARY segment Inserting Deleting Primary Base Segments Insert of a primary base segment will cause a new physical record to be created in the file Delete of a primary base segment will cause all its secondary segments to become attached to the previous primary segment Beware that this may result in the creation of a physical record that exceeds the file s defined maximum Modifying Segment Lengths e The length of a segment may be altered in the following ways In multi segment VFMT CHAR modes 1 Type RECLEN ON to display the Length segment prefix column 2 Overtype the current Length value for any individual segment In single segment FMT MAP UNFMT HEXD modes 0 Overtype the current Length value Using the shift left right line commands nn or nn to shift left nn or nn to shift right Using the SHIFT primary command Using the CHANGE primary command 2015 01 19 11 28 28 Training Manual 107 Option 5 File Copy Reformat FCOPY The SELCOPY i File Copy Reformat utility FCOPY copies records from one or more input file to a single output file or to one or more member
178. for table sqlid SELCTRN ARTIST The EI and BI Browse Immediate line commands bypass the dialogs that allow you to specify row selection and other edit browse options making them suitable only for tables small enough to be loaded completely into available storage File Edit Actions Options Utilities Vindow SuapList Help Wo WR Primary Option Menu File SwapList Vindow Help QuickRef Conmand gt SLAJ List Object Option Menu File Help command Scroll Csr 2252L666 Lines 1 12 of 12 List DB2 Objects Storage groups Triggers Databases 11 Global temporary tables Table spaces Sequences Tab les Roles Views Trusted contexts Aliases Colums Indexes Volumes Synonyms Table space parts Types IBZ CBLA List Tables View Refresh Back Forward FOB Text Help Command Command Scroll Csr Use Fd VINDOV 2252PRIN 2252L TAB DB2 Table list Sett ing DB2 Name SELCTRNS SQL Creator TESTI Edit DBName gt Browse TSName gt Create Drop NAHE CREATOR TYPE DBNAME TSNANE DBID OBID COLCOUNT EDPROC VA List SELCTRN RLBUHM TESTI T TESTi SELCi6RS 4735 S 3 Rudit i SELCTRN RRTIST TESTi T TESTi SELCTRNR 473 S 2 Objects SELCTRN TRRCK TESTI T TESTi SELCICNU 473 14 16 Trainin Use command 00 00PUIOo _ F17HELP F2 SPLIT F4 4 INDOW FI SUAP Fi2 CRETRIEV s2 EXPAND S5 ZOOMLIST Line 6 Col 1 Alt 1 1 08 512 E 352 Fil ETSI 2614 6915 15 34 55 Figure 158 SELCOPYi DB2 Figure 12 2015 01 19 11 28 28 Training Manual 167
179. g In the Deep Rumour Has It Turning Tables Don t You Remember Set Fire to the Rain He Won t Go Take It ALL I ll Be Waiting One and Only Lovesong Someone Like You I Found a Boy Bonus Track Adele 21 A Track By Track Interv Hord Onm Rowing rou Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Boys amp H38 Girls Be Mine I Ain t the Same Fmt F 56 Option 2 Data Edit SDE Display Modes Display Modes Display HEX Data Type HEX ON to set hexadecimal display on Type HEX OFF to set hexadecimal display off Type HEX to toggle hexadecimal display on off Type Help HEX for full information Notes 1 Where sample commands are provided uppercase denotes the minimum abbreviation 2 To use any SDE command from a non SDE browse edit command prompt you must prefix the command with SD e g SD Help HEX 3 From an SDE browse edit command prompt the SD prefix is unnecessary e g Help HEX SELCOPY i USER123 SELCTRN ZZST1IDAT using USER123 SELCTRN SAM1 ZZST1CB m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Scroll Csr Record type TRACK Fixed 407 Offset 0 Data elements 18 PERSISTENTES DD TRACK NUM TRACK ID NAME 2 3 4 HS AN 1 16 AN 24 120 SO O JOST TT Dil SSS DHT ODR Sa 0000001 CB12DD714D51828C 2 Rolling In the Deep CCFFCCFFFCFFFFFC 09998984C0940884C0889444444444444444 3212447 3283 8504557000000000000000 51 00000002 2648n25633D15404 FFF
180. he All I Really Vant lt You Oughta Knows Perfect lt Hand In My Pocket lt Right Through You lt Forg iven amp You Learns Head Over Feet lt nary Jane lt Ironic amp Not the Doctor lt Vake Up lt You Oughta Knows 2614 69 15 15 Training Manual 174 Option 12 DB2 Sample CSVGEN output Press the OPTION key F6 if you wish to review other available CSVGEN options otherwise just press ENTER to generate your Comma Separated Variable document File Edit Actions Options Utilities Vindow SuapList Help WS WR Sample CSVGEN output Edit table TEST1 SELCTRN_ARTIST in tablespace TEST1 S5ELCTRNR zs Scholl Csr 22505691 CSUGEN has written 1d records of record type SELCTRN TRRCK to dataset TESTi SELCOPYI CSU PILL from 13 records in dataset TEST1 SELCTRN_TRACK Untapped uiu a men p iere pee 1 1 PERSISTENT ID TRACK_NUN NAME DiEFSSB14DS5R4798 1 Rl11 I Really Vant B2ERCES32929B3GF 2 You Oughta Know CO3A3B24D537595D 3 Perfect B26EEC33174DCC60 4 Hand In My Pocket S276C65D2959EESB 5 Right Through You 74E395057479A309 6 Forgiven D6S7TECESBS9G64CF 7 You Learn AFI38361B3B3E2665 6 Head Over Feet FFaBD 7R11D7853D1 9 Hary Jane AF16096136662C04 16 Ironic 641998RDSBOo7SF1E 11 Not the Doctor 866668135 CR6RS4O8RCDS36896 12 Jake Up 86060814 7CAES1716550755D 13 You Oughta Know 90000015 End of Data ek 60000001 96686662 66666665 eo8808088d 66666665 aaao
181. he Volume Mask field should be left blank in this case otherwise the dataset list will be restricted to files residing on matching volumes only e Specify the Output File Type userpfx SELCTRN ZZST1DAT FCOPY1 in the DSN Path field If wildcards are specified then a dataset list will be displayed from which you can make a selection If the name name entered is for a dataset that does not yet exist then you will be prompted to create it The Member field should be left blank otherwise the dataset list will be restricted to PDS PDSE libraries only The Volume field should be left blank Press ENTER to continue 2015 01 19 11 28 28 Training Manual 109 Option 5 File Copy Reformat FCOPY Choose New Output File Access Method Choose New Output File Access Method e If the output file does not yet exist you will be prompted to create it and given the choice of the access method to be used The Dataset Organisation input field will automatically be primed to match the input file N for a Non VSAM standard sequential file in this case Permitted options are F allocate a new PDS PDSE library allocate a new standard sequential Non VSAM file ko F define a new VSAM KSDS e F define a new VSAM ESDS Ro define a new VSAM RRDS e Press ENTER or select the OK button to continue SELCOPY i le Copu m File Help JCL Command wS wR Command gt Scroll gt Csr zzsaGFCcOO Lines 1 of 21 In Allocate new Output File
182. hift F2 to restore from a saved location Note Window location save restore Shift F1 F2 is supported for Text Edit and Data Edit windows Menu and panel windows are automatically restored to their previous location 2015 01 19 11 28 28 Training Manual 16 Windowed Display System Maximise Minimise Maximise Minimise At the right edge of each window s title bar you will find the minimise maximise and close x buttons To press any of these buttons simply place your cursor on it and hit ENTER p Csr E Figure 14 SELCOPYi Min Max Close Buttons Note that as soon you maximise any window then all windows will display in maximised state SELCOPY4 TESTI SELCTRN SAMi 2 CPC 5 ize 15 Alt 6 6 6 H m File Edit Actions Options Utili S uk E Command gt Scroll cso E A o i 3 i 4 i 5 pp pp o pa 4 10 i 11 i 12 tenn on to 00661 860082 PERSISTENT ID PIC X 616 900093 TRACK NUM PIC 9 003 900004 TRACK ID PIC 9 004 900665 NRHE PIC 128 800666 ARTIST PIC 74 800067 ALBUN PIC x 078 900095 TOTAL TINE PIC 9 667 BINARY 8808089 FILE SIZE PIC 9 669 BINARY 600018 BIT RATE PIC 9 664 BINARY 880011 SRHPLE RATE PIC 9 665 PACKED DECIMAL 8880012 YERR PIC 9 884 888013 NORMAL IZATION PIC 59 005 PACKED DECIMAL 888814 DISC NUMBER PIC 9 003 666015 RLBUH RRTIST PIC x di 860016 RELERSE DRTE PIC X 828 800017 DATE ADDED PIC X 020 EESE DRTE HODIF IED PIC x 620 60061
183. ibwsihg amp generated SIG si rita 101 luli debi Emm 102 Moediivinig Record Lengl Six EE 102 Working witbsSedmehted Records a 22 22 cseces eE a te ciel cite nec Hie pas EE E EE EEE es autas cesa 103 Greating an SDO delining Segmented RBecord TVpes 5 docete sestertia a di 104 Brewse Edibusig a Segimetiied S DO ades tr erent kee UN Pe CR CD io errr cert rrr rr EM Rud ctus 105 Navigatlina segmento Data coe 106 Modliving Segmented DataSet dida 107 inserting Deleting Primary Base S COMMS cae iuris llana talado arab dice 107 Modifying Segment Org lis oco cu tercer rr ene S EPHE Eve PAS FIT E EEA O aE EO EA co at 107 Option S File Gopy Relormat ECOPY ica ini 108 The Fil Capy Relormat FOOP Y Panel eones mia Qu PIE Fev RUE SY E FUSF ERU HE TER PEU SES QT ITE Ce EDAF Ned ea FD c ep DAY comin 109 copying a standard Sedusntial Dalai MERERI ELO 109 Ghoose New Output Elle Access Mod cisco as 110 Allocate New Qu tput Alesana arar 111 Copying PB S PESETIDIarV members oil ia ba 112 DE OCtINPUl Datasets LIS Bes e Cm 113 Selectnput MSM X 114 Allocate New Oum t LIDNAN espira MH 115 PDS COPY Silueta liceos 116 Record Selecione T E crete et rire crt ED LCS IM EI eee 117 Browse IlpHb FilGic cersicac 2 sececentcearsecutecercecesetesatiaxcctusactievcadetssducascet A Ee EEE EI AEEA EEEa 118 Specifying Stari Record Number of Records To GOD eiui oice essct ias 119 Choose New OuIDUI Ell
184. ided both of the following are true 1 The list entry is selected 2 The list entry is not excluded List entries may be selected deselected as follows 1 Individually by entering or removing S from the Sel column 2 On mass by pressing F5 F6 which will select deselect all entries Note Excluded entries are not affected by pressing F5 F6 List entries may be included excluded as follows 1 By entering X and other related line commands into the numeric area at the right hand side as if working in an edit environment 2 Using the ALL MORE and LESS primary commands with an associated selection criteria expression ALL with no parameters will re include all list entries LESS with no parameters will exclude all list entries Excluded entries are represented in the display by shadow lines Type primary command HIDE to suppress display of shadow lines and RESET HIDE RES H to redisplay them Examples To include only members whose last modified date is in the range 2010 05 01 to 2010 12 12 type all LastMod 2010 05 01 amp LastMod 2011 To exclude all members whose current size is zero records type less CurSize 0 To reinclude all excluded members whose last modified userid is USER123 or begins with USER321 type more user user123 user gt amp gt user321 SELEUPRY 1 naput Members m File Edit Actions Options Utilities Window SwapList Help Command less Cursize gt 90 or Cursize 10 ZZzSGFS
185. ieved by clicking the window borders title Bar 000057 or re DUTEONS 000088 Clicking means move cursor then hit ENTER 000089 Try setting your Mouse to do this FSzllinMax F6 WinRes F Drag U F8zDrag D F10 Drag L F11 Drag R si1 uS s2 wR s3 Width 20 s4 Width 20 s5 Depth 20 s6 Depth 20 s Drag Ux5 s8 Drag Dx5 s10 Drag Lx5 s11 Drag Rx3 Line 0 Alt 0 0 1 als Reclz32752 Figure 22 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 27 Option 1 Text Edit The WW Primary Command The WW Primary Command Particularly useful when running in windowed display mode the WW command will perform likes WIN NEW but will also clone the original window s width and depth In addition WW allows you to add a command to be executed in the new view e g Type the primary command WW ONLY 1 to open a new view displaying only lines with a less than sign in columns 1 File Edit Actions Options Utilities Window SwapList Help w5 wR TEST1 SELCTRN SAM1 225T2C Primary Option Menu cake so 0 0 oh CMA 2 mu Command Seran S E SE ZZSE185I 14 occurrences of string lt were found 000000 x x x Top of File xk 000001 20 line s not displayed 000021 Mtso lista 000022 15 line s not displayed 000037 Balloc f NEULIB new da Xuser NEU LIB 000038 9 line s not displayed 000047 Blvol Zx RESx SELCOPYi integrated List VOLumes command 000048 11 line s not displayed 000059 edit 4user ABC TEST
186. imary command BOX LCOL 2 PINK REV This will hilight all Album lines character 2 at column 1 in pink reverse video SELLURY ZI TESTI SELECTA 222 T2DAT 268 V SEQ m File Edit Actions Options Utilities Window SwapList Command 001235 001235 Mid P Es 001237 3182F55884715RBF800R391GZoo Station 001238 327CEBBRS12RCC23900B391IEven Better Than the Real Thing 001238 354528D35982D49887000C3928R 0ne 001240 311E528F4AF497A2700D392CUntil the End of the World 001241 347CCBA406035ED8800E392ElJho s Gonna Ride Your Wild Horses 001242 327TDCOBOBD31FFCSFOOF392G50 Cruel 001243 3F7984982COEFER9587006392IThe Fly 001244 3BFBA673892AD848800H393AMysterious Ways 001245 355717TFO0FD3507458001393CTryin to Throw Your Arms Around the World 001246 3857153198BE50439011393EUltra Violet Light My Way 001247 3DB813F471DFDB98801A393GAcrobat 001248 388BS8FDF3BDR1B8E401B393ILove Is Blindness Ones How To Dismantle An Atomic Bomb 001250 3 C66E9CASCOB4B1E00C202CSometimes You Can t Make It On Your Own 001251 AREA ae a 001252 383585D7E59D35434008394RHelter Skelter Live 001253 3FESDDB3A884D8D358R00B394CVan Diemen s Land Live 001254 3O0S8CSE3E984BEBSESO00C 394EDesire 001255 39299D556D20866D400D394GHawkmoon 269 001256 3CFSFF6577S558B7OFOOES94IALL Along the Watchtower Live 001257 354F42C194714C42800F395RI Still Haven t Found What I m Looking For Live 001258 3B027F204E710749300H395ESilver and Gold Live 001259 3A8947AC2DE3DB952001395GPride In
187. in the Name field where userpfx is your own user prefix If wildcards are specified then a dataset list will be displayed from which you can make a selection ae Member field may be left blank but regardless will be ignored when the Name field refers to a non PDS ataset If wildcards are specified then a member list will be displayed from which you can make a selection Specify the Action Activate option Edit Full by entering a in the left margin field e Specify the Structure Copybook overlay Activate the option by entering a in the left margin field This option is provided so that you may deactivate reactivate structure formatting without needing to remove retype the dataset member name Type userpfx SELCTRN SAM1 in the Dsn field to specify the PDS library containing the supplied COBOL PL1 copybook If wildcards are specified then a dataset list will be displayed from which you can make a selection Type ZZST1CPC in the Member field for COBOL installations Type ZZST1CPP in the Member field for PL1 installations If wildcards are specified then a member list will be displayed from which you can make a selection Check the Type option for Cobol or PL1 as appropriate for your installation Press ENTER to edit the sample dataset Note The following sample commands and screen shots depict use of the COBOL copybook 2015 01 19 11 28 28 Training Manual 55 Option 2 Data Edit SDE Editing Sample Dataset 1 Edit
188. indowed Display System Switching focus between open windows Switching focus between open windows The focus window is indicated by a blue reverse video title bar Other windows have a white reverse video title bar Shown as black in these screen shots Only the command line and input fields of the focus window are enterable e Press the WINDOW key default is F4 to switch focus to the next window The Primary Options window should now overlay the others as shown below e Type minus sign on the command line then press the WINDOW key to switch focus to the previous window File Edit Actions Options Utilities Vindow SwapList Help WS WR File SwapList Vindow Help QuickRef Command m Scroll Csr Scroll Csr 2Z25GPRIN Lines 1 22 of 22 Sett ings Set SELCOPY i opt ions User Text Edit EditView small text type files Version fully qualified name of a Data Edit Edit Browse potentially large data files Date 2014 0904 r Note that the Member List List Volumes UTOCs Datasets hembers etc Time 15 34 42 ry or contains wildcard Home Edit Execute point and shoot commands opsys fied quotes being Copy Reformat File Copy with copybook reformat option System Search Update File Search Update Copy Reformat UM User 205111 Compare File Library Compare Utilities if wildcards X percent Utilities Inc SELCOPY debug XHLACSU gen etc a PDS PDSE library and Structure Create structure from copybooks etc Filter Create record selectio
189. ine s suppressed record tupe T gaoaoooo e i s AC DC 00000073 1 line s suppressed record tupe A 00000074 10 line s suppressed record tupe T 00000084 1 line s suppressed record tupe A 00000085 15 line s suppressed record tupe T 00000100 1 line s suppressed record type A Se Line 4 Col i BELT RN Size gt ces Rect Antv Figure 90 SELCOPYi SDE Select Visible Record Types Note In Formatted VFMT FMT Display Modes some primary commands are record type specific i e they act on records of one type only and are sensitive to the focus record type i e the record type of the record at the cursor or at the top of screen if the cursor is on the command line e g the following commands are record type sensitive FIND CHANGE EXCLUDE and ONLY LOCATE ALL WHERE MORE and LESS To avoid ambiguity when issuing any of these commands you may wish to either 1 Select a single record type using the VIEW command 2 Temporarily suspend record type formatting using the CHAR command 2015 01 19 11 28 28 Training Manual 94 Option 2 Data Edit SDE Creating a Structured Data Object SDO Creating a Structured Data Object SDO An SDO may be generated from COBOL PL1 copybooks using any of the following methods e Select option 9 Structure from the SELCOPYi Primary Option Menu then select option 1 Copybook e At any primary command prompt t
190. ing Sample Dataset 1 e The first sample dataset represents a music collection with each Track described by a separate logical record e The initial view of the data is presented in formatted multi record table display mode e Press F10 F11 to scroll the display left right in order to view further data fields Command gt Record tupe 80000001 80000002 80000003 980000004 googoocogs 88000006 gaooeaooaoo 8o000008 000 Go Go 00 G ui imocGoocococoodc 000000000000 0000000000000 00000000000000 Hejeofjefofofefofofefefofefefo UMN E EEE P PP PPP wwe cdnn h uneg 2 USERT2O SECCTRANA File Edit Actions Options Utilities Window SwapList Help Fixed 407 Offset 0 Data elements 18 TRACK RERSTSTENTSIE 2 AN 1 16 Sa a e E Aa om aire CB12DD714D51828C 26484A255633D15404 3815923C6D2E6830 YDOU3SFF752074C18 AED739D8574AA4C5 E7YSSBCE1CFSCDEA 6798C2ABOAFB2571 962B35D1647DE7SE DSAGCSFDC2802177 SHE SN ales bay el ale e ls eds ESTABEGEE7TCS86B1D D4EB4EBF4651EF20 CEC92B1BAS ADA 204 EaI ETC 198 345 41D 2c7BaA Bascc 16BCB D5D35 1AFCD EBS OSDESSE67 SD46C681S5S2440BF CS4FE779224856e24 SD4BS913F78CEEES BE044D8 2337rA412 EE Figure 49 SELCOPYi SDE Table View 2015 01 19 11 28 28 2Z2ST1IDAT TRACK NUM TRACK ID 3 DEI O ES Training Manual USERT23 SELCTRAN SAMI wS wR using ZZSTiCE Scroll Car NAME 5 AN 24 120 SS Sp l ona yes SSeS SSS a o SSS Rollin
191. inserted as a new line press the SPLTJOIN key F19 Shift F7 Place your cursor at the end of a line then use the same key to join on text from the next line e Use the PFSHOWSTYLE PFS primary command to control the way Function Keys F13 F24 are displayed at the bottom of the screen Type HELP PFS for more information on how to get F13 to display as s1 indicating Shift F1 etc as shown in the following screen shots This feature is also available via the Settings Function Keys 20 8 panel 2015 01 19 11 28 28 Training Manual 21 Option 1 Text Edit Selective Line Editing Selective Line Editing e SELCOPYi supports the primary command ONLY O as a shortcut to EXCLUDE FIND e Type ONLY X 46 to display only the lines containing letter X in column 46 In the standard ISPF editor you would need to type two commands 1 X ALL to exclude all lines 2 FIND ALL X 46 to show only the required lines Type the primary command HIDE to remove the display of shadow lines representing excludied records Type RES HIDE or SHAD ON to redisplay shadow lines Type ALL or RES to redisplay excluded lines SELENA TESTI SELECTA SAS TZ crol 80 F PDS m File Edit Actions Options Utilities Window SwapList Help Command ZZSE185I 44 occurrences of string X were found 000000 x x x Top of File xk 000001 1 line s not displayed 000002 PIE 001 000003 PIE 070 000004 1 line s not displayed 000005 PTE 001 000006 EXE
192. ip the Grain Winter Birds Gossip the Grain Meg White Gossip the Grain Hey Me Hey Mama Gossip the Grain Henry Nearly Killed Gossip the Grain A Falling Through Gossip the Grain Gossip In the Grain Gossip the Grain 000 a 8 a a a a gaooosti gaoaooss 0000597 D000600 gaooeas gaoorvaos gaoorvss a ae e a 0000000 RP Bae mh 0000796 goooo s 00000798 goooo ss po0000s00 for ww rm rm w 0000000000000 EG M i ooooi o07 71 End of Data FmtzF Figure 81 SELCOPYi SDE ALL 2 2015 01 19 11 28 28 Training Manual 85 Option 2 Data Edit SDE Increasing the size of the Command Input Area Increasing the size of the Command Input Area Complex expressions may require more space to type than is available on a single commmand line Type CLN to show an eae dialog allowing you increase the number of command lines visible for the current display window SELCOPY i USER123 SELCTRN ZZST1iDAT using USER123 SELCTRN SAM1 File Edit Actions Options Utilities Window SwapList Help wS wR Command Scroll gt Record type TRACK Fixed 407 Offset 0 Data elements 18 BIT RATE TRACK NUM NAME ALBUM ARTIST 10 3 5 7 6 FB 292 2 ZD 17 3 AN 84 180 AN 281i1a4 70 AN 144 70 le E a a aa a a oaa aa a a gt aa to 006 There s Gonna Be Som Dirt Deeds Done Dir AC DC Command Line gt a AC DC Led Zeppe Prompt 00000605 00000708 1 ositi T p or Bottom 00000795 4 e 0796 Visible Yes or No goeooo 37 Pate
193. ist Help wS wR Command gt SCFOLLA CSF lt 1 2 3 4 5 6 7 000001 lt sd FCOPY 000002 000004 880005 800003 USER123 SELCTRN ZZST2DRT 000005 USER123 SELCTRN ZZST2DRT ESDS3 gaaoaogar 880008 Filter 000009 000010 include record B00011 where 00012 000013 gagoia4 0880015 880016 O80017 880018 Figure 122 SELCOPYi Generated Command 2015 01 19 11 28 28 substr record substr record lt lt c Blues substr record lt lt Rock ni Roll substr record ES OU ES NN N PN N EN SS ES 5 ES x Ss x ps EN CECE CEE BEET ATA KK OK ALt 0 0 0 Training Manual 129 Option 5 File Copy Reformat FCOPY Modify Execute Generated FCOPY primary command Modify Execute Generated FCOPY primary command Brackets may now be added to the filter expression as required Although the filter expression is fairly free format care must be taked to maintain a backslash Y character in the right most position of any newly added lines the backslash character indicates that the command is continued on the following line This is typically achieved by replicating then modifying existing lines rather than inserting new ones The modified FCOPY command may then be executed simply by placing your cursor on the first line of the command beginning with the less than sign then pressing the ACTION key which by default is F16 Shift F4
194. ithout needing to be concerned about the underlying data type i e zoned decimal packed decimal binary or floating point e g ONLY 1 TRACK NUM Type HIDE to suppress display of shadow records Type RES HIDE or SHAD ON resume display of shadow records USER123 SELCTRN ZZST1iDAT using USER123 SELCTRN SE m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Record type TRACK Fixed 407 Offset 0 Data elements 18 PERSISTEMT ID TRACK NUM TRACK ID NAME He 3 4 5 AN 1 16 AN 24 120 4 4 45 4 4 4 5 CB18DD714D51828C aja 83 Rolling In the Deep 6D4C2C7BA7ED1593 On ALL I Really Want Ez lis Bells ck N Roll Train rty Deeds Done Dir s A Long Way To T ghway To Hell c FuUWOLT mme rulul MODOD mmiuodn mmen 6 D a Be Qu mr e m OGO0 Uu wW maommaruo DODSCEZFD 62ED978238DO9CFE BERISEBSEBSTESHISE 3A2C9735E5Ar6418 244EFSD1S8EBOFFEA RaSFSDB YOAR5SFSS3FO 4B1E571BFAF437F2 00000187 F4FD7EGEABEISBOSG 00000188 67383B3AA37BF798 80000190 BB3105139E23669e 080000192 FSAG2AIFSEBSO9SEO 00000196 53AIS7TAL1BEDESEFF E140BAAS2SEDASDS FDDFSSDSSFBBOGDS BSBEASeCSS8843DB4 Down k N Roll Damnat owin In the Wind Bob Dylan Shelter from the Sto Bob Dylan Red Headed Woman Bruce i Dead Man Walkin Bruce Devils amp H38 Dust Bruce Human Touch Bruce Better Days Bruce The Ghost of Tom Joa Bruce Racing In the Street Bruce The Wrestler Bruce Leavin Train Bruce Recl 407 Fmt
195. l Read Only amp Auxiliary Structure Copybook overlay Dsn gt USER123 SELCTRN SDO Member Z2ST2 Type Z SD _ RData Gobel PL1 Record Selection Start gt ar Z Record _ Key _ RBA For gt 8 H records Filter E Filter selected records F File Q Quick PF6 Edit Filter Fire gt USERI 29 SELCOPYI EUT Member TRACKR Additional Options Enter to display HFS and Profile options Figure 97 SELCOPYi SDO Browse Edit using an SDO 2015 01 19 11 28 28 Training Manual 101 Option 2 Data Edit SDE Modifying Data Modifying Data n Edit mode individual record data may be modified by Overtyping inserting or deleting data in character or hex Executing a CHANGE command n Full Edit mode records may be inserted and deleted by Typing the INSERT primary command e g to insert a new ALBUM record 0 Type ALBUM 0 The new record will be inserted following the focus record In multi record VFMT CHAR display modes focus is defined by the cursor position Using the DELETE primary command e Additionally in formatted VFMT or unformatted CHAR multi record display modes records may be inserted and deleted using the standard line commands Inn to insert records Dnn DD DD to delete records Mnn MM MM to move records Modifications may be individually undone redone using F22 F23 normally Shift F10 F11 which are set to execute the UNDO REDO primary commands Consecutive modifica
196. le clicking with your mouse The DB2 Table edit dialog will appear with the selected table name already filled in File Edit Actions Options Utilities Window SuspList Help 45 Un imanv Option Menu IBZ CBLAJ Edit Object File SwapList Vindow Help File Run Command Help Conmand gt Command m Scroll Csr 2252ED1T Lines 1 39 of 39 IB2 CBLAJ List Object File Help DB2 Object Command gt Owner TES Ti optional 22521000 Name SELCTRN TRACK List DB2 Objects Storage groups RowColumm Selection Options Databases From gt Start row within the result set Table spaces For gt Number of Rows to be edited Tables Views Select gt Aliases Vhere gt Indexes Order By gt Synonyms Types COMMIT Options Z Commit on SAVE with no errors Command Commit on SAVE Use F4 VINDOU 2252PRI Commit on exit from edit session Use z command Sett Load Opt ions Explicit Table Lock DB2 _ Skip locked rows Z None SOL 7 Execute Commit following load Share mode Edit Exclusive mode Brow Crea Concurrency Isolation Options Use Keep Locks Drop Z Use DB2 Default Isolation level List Uncommitted Read least restrict ive Rudi Cursor Stability Obje Read Stability Exc lus ive Trai Repeatable Read most restrict ive 00 00 amp Ut o Initial Display Format Niscellaneous Opt ions Table Single Z Create Audit File Do not protect Prime Key Profile Macro Use Default Use Specified Macro Name gt SDEPROF Do not use a Pro
197. lecting only records affected by CHANGE Selecting only records affected by CHANGE After applying the above CHANGE to all records you may wish to display only the changed records To do this type ALL Changed e Help ALL for full information USER123 SELCTRN Z22ST1ADAT USER123 SELCTRN wS wR using SsSAmi l dm Lc Actions Options Utilities Window SwapList Help Command gt ZZSDi1781 158 lines TRACK NUM 3 zb 17 3 lt a 001 ooe 00s 004 gos EH HH BH BE GG GG MN 0000000000 Bee ehh a ea cd ea a r 0 6 6 6 6 6 6 6 0 0 vvvvV YY G o m a a a a a a a a a a a a a a a a a a os as 10 hal LE 13 13 Di os Di Di oe ae as as 04 ol Figure 77 SELCOPYi SDE ALL CHANGED 2015 01 19 11 28 28 of record tupe TRACK NAME H5 AN 24 120 A IA Hold On I Found You Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Bous amp Girls Be Mine I Ain t the Same On Your Way Heavy Chevy Rainy Day Women 12 The Rising Devils amp Dust Black Cowboys Long Time Comin Atlantic Gacy Old Dan Tucker Open ALL Night Pay Me My Money Down Eyes be the Prize selected by all c ALBUM 7 AN 214 70 1 gt Bous Girls Boys Girls Bous Girls Bous Girls Boys Girls Boys Girls Boys Girls Boys Girls Boys Girls Boys Girls Boys Girls Boys amp Girls The Essential Bob Dy Bruce Springsteen Devils amp Dust
198. led 900614 DISC NUMBER PIC aleez 600615 ALBUN ARTIST PIC X 84i 888616 RELERSE DRTE PIC x 626 ters 808617 DRTE RDDED PIC X 828 800018 DRTE HODIFIED PIC x 020 752 Fixed 88 800019 k End of File Hkk 2 byte charex Figure 9 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 12 Windowed Display System Dragging Windows File Edit Actions Options Utilities Vindow SwapList Help WS UR Primary Option Menu File SwapList Vindow Help QuickRef Conmand gt Text Edit Entry Panel File Help Command 225GEDIT PDS PDSE member Sequential VSAM or HFS path Name TESTI SELCTRN SAML Volume If dataset is uncataloged Action Edit Records Read Only Edit DISP SHR Browse Records TES T1 SELCTRN SAMI 225 T1 CPC Command 8 F PDSE Dragging Windows Scroll Csr Lines 1 28 of 28 Member 225T1CPC All records are loaded in available storage Preserve data Use SET FILEID before SAVE Records are loaded dropped when scrolled Alt 6 6 6 Scroll Csr 4 1 4 2 4 3 pp donne Bonen donne Panne denen 900961 660662 900903 BELL 690665 0000065 666667 690805 666669 600616 660611 660612 6666015 606014 666015 6666016 660617 660816 9000019 End of 61 TRACK 5 PERSISTENT ID TRACK NUM TRRCK ID NAME ARTIST ALBUM TOTRL TIME FILE SIZE BIT RATE SRHPLE RRTE YERR NORMAL IZATION DISC NUMBER RLBUH RRTIST RELERSE DRTE DRTE RDDED DRTE
199. les etc Training Setup SELCOPY i Training Material Vindow List Display active windows select with cursor to switch focus Exit Exit SELCOPY i eee XT td uo uogoOeReut mM o Use Fd VINDOU to switch between SELCOPYi display windows Use command optional fastpath e g 73 4 to access this menu sub opt ions F1 HELP F2 SPLIT F4 UINDOU F9 SURP Fi2 CRETRIEU s2 ExXPAND Alt 6 8 8 d Views 1 2614 69 64 16 15 25 Figure 2 SELCOPYi POM Window 2015 01 19 11 28 28 Training Manual 6 Windowed Display System Menu Panel Windows Menu Panel Windows Select option 1 to open the Text Edit panel in a separate window File Edit Actions Options Utilities Window SuapList Help Primary Option Menu File SwapList Vindow Help QuickRef Command Text Edit Entry Panel File Help Command gt Scroll Csr 225GEDIT Lines 1 26 of 26 PDS PDSE member Sequential VSAM or HFS path Name gt nenber Volume If dataset is uncataloged Action Z Edit Records All records are loaded in available storage Read Only Edit DISP SHR Preserve data Use SET FILEID before SAVE Browse Records Records are loaded dropped when scrolled HFS Opt ions Undefined HFS records terminated by End Of Line characters _ Fixed HFS records are of Fixed Length Record Length gt 6 b gt default Undefined 32752 Fixed 86 EOL Characters 510 EOL user string 2 byte char hesn Profile Macro Use Default Use Specified Macro Mac
200. lu selected records Start gt EE Z Record Key _ RBA i FoRS a H records Filter Q Select records to copy F File Q Quick PF6 Edit Filter File gt Member gt Options _ Reformat using structure copybook layouts _ Recurse HFS Sub directories _ Append to existing Output _ Ignore HFS fileid case Figure 102 SELCOPYi File Copy Reformat FCOPY Panel 5 To follow the demonstration use the panel to make a complete copy of supplied sample dataset 1 Specify the nput File Type userpfx SELCTRN ZZST1DAT in the DSN Path Mask field where userpfx is your own user prefix If wildcards are specified then a dataset list will be displayed from which you can select one or more files for processing Inititially ALL files are selected but you may press F5 F6 to toggle back and forth between all files being selected or deselected Further selection deselection may be made by manually overtyping the Se column for each individual entry Where PDS PDSE datasets are to be processed a futher member selection list may be accessed by placing the cursor on the library name and pressing ENTER Within the dataset list the member mask field may be overtyped to refine member selection invidually for each library Press F3 to return to the FCOPY panel once all input selections have been confirmed The Member Mask field should be left blank in this case otherwise the dataset list will be restricted to PDS PDSE libraries only T
201. mary command Additionally in formatted VFMT or unformatted CHAR multi segment display modes both PRIMARY and SECONDARY segments may be inserted deleted and moved using the standard line commands Inn to insert segments Dnn DD DD to delete segments Mnn MM MM to move segments Note that secondary segments may be detached and reattached to different primary segments using move operations Modifications may be individually undone redone using F22 F23 normally Shift F10 F11 which are set to execute the UNDO REDO primary commands Consecutive modifications may be undone by pressing F22 repeatedly Consecutive modifications may be redone by pressing F23 repeatedly The UNDOING primary command controls the following aspects 1 Whether the UNDO REDO facility is activated 2 The number of modification levels maintained 3 The maximum amount of storage allocated Type Query UNDOING to determine your current settings Modifications to fields referenced by segment identification criteria will result in the segment prefix area being flagged with ID gt This indicates that the modification will potentially cause the segment type to re assigned Immediate re assignment does not take place automatically This is deliberate since the user may be in the midst of several changes Re assignment of segment type may be explicitly requested using The ID line command The IDentify primary command Type Help IDentify
202. meone Like vou I Found a Boy Bonus Adele 21 A Track B Hord Onm Rowing sou Hang Loose Rise to the Sun You Ain t Alone Goin to the Party Heartbreaker Boys amp H38 Girls Be Mine I Ain t the Same 1 Emt P e A range of fields may also be specified by separating the start and end field with a colon e g FALABAMA 2 6 e Again if any field is to be referred to by name then they must be specified in brackets e g F ALABAMA 2 ARTIST Type Help Change for full information 2015 01 19 11 28 28 Training Manual SELCTRN SAM1I ZZST1C Scroll csr ARTIST 6 AN 144 70 SSS Stns SS Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Adele Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Alabama Files 1 74 Option 2 Data Edit SDE Excluding Records Based on Field Content EXCLUDE X Excluding Records Based on Field Content EXCLUDE X e The EXCLUDE command takes the same parameters as FIND e g X ALL ALABAMA 5 6 3 SELCTRN ZZSTiDAT using USER123 SELCTRN SAM1 Utilities Window SwapList Help wS wR Scroll Csr type TRACK containing string alabama were 4 H5 6 zD 20 4 AN 24 120 AN 144 70 ure e coco pco OOo Sere SSG COL oec cr es CBi2DD7r14D51828C Rolling In the Deep Adele 26428425633D15404 Rumour Has It Adele 3815923C6D2E6830 Turning Tables Adele YvDOOSFF 752074C18 Don t You Remember Adele AED739D8574AA4C5 Set Fire
203. mitted A selectable list of files will be presented if wildcards percent or asterisk are entered or dataset is a PDS PDSE library and member is left blank Volume Specifies a volume serial id mask for an uncataloged data set Not applicable to HFS files If an entry exists in this field then the selectable list of files will be generated from a list of UTOC entries for the specified volume Action Identifies the action taken by the panel on pressing the lt Enter gt key Mutually exclusive options are as follow I Edit Records Open the file with exclusive SPFEDIT ENQ and load all records into available storage for full text edit capabilities Read Only Edit DISP SHR Open the file with shared SPFEDIT ENQ and load all records into available storage before releasing the ENO View supports full text edit capabilities Attempts to save changes will fail with message ZZ3E845E However use of File menu bar option Save Rs will allow save of the in storage data as a different fileid Alternatively SET FILEID or any other text edit SET commands that manipulate the fileid assigned to in storage records may be used prior to SAVE If the new fileid is an as yet unallocated data set then the relevant Allocate Non VSAN or Define USAN KSDS ESDS RRDS LDS dialog panel will be opened as appropriate ine 22 of 149 Coli of 78 File CBL CBLI530 HIMLIzzsipted Sd FORVARD 2014 89 84 16 15 25 Training Manual 8 W
204. mpile each time the reformat process is executed Alternatively type the primary command SD DROP copybook name e Enter Y in the Recompile field for the Output Copybook Press ENTER to repeat the reformat using the updated copybook SELCOPY i File Reformat m File Help JCL Command wS wR Command gt SCROLL CSF 22SGFCO0 Lines 1 21 of 21 PFi10 Browse Input Dataset PF22 Browse Input Copubook Input Structure Copybook overlay Recompile gt N Dsn gt USER123 SELCTRN SaM1 Member 22ST1CPC Tupe SDO RData GORDIE PFii Browse Output Dataset PF23 Browse Output Copybook Output StructuresCopybook overlay Recompile Y Dsn gt USER123 SELCTRN SAM1 Member Z2SP1CPC Tupe SDO RData c aaa le PED Help PF1 2 Execute ENTER 3 Back PF3 rh a APREIS Figure 133 SELCOPYi Recompile YES 2015 01 19 11 28 28 Training Manual 140 Option 5 File Copy Reformat FCOPY Force Recompile of Updated Output Copybook 2 Force Recompile of Updated Output Copybook 2 Press F20 Shift F8 to browse the output file in formatted mode e Note that the LGTH gt flag appears in the prefix area for each record This is expected alerting you that the output record the original fixed length 167 does not match the new version of the mapped record type length 73 SELCOPYi Browse USER123 SELCTRH ZZSTi1DAT FCOPY2 using USER123 SELCTRN SAM1x m File Edit Actions Options Utilities Window SwapList Help wS wR Command
205. n filter Print Print Dataset DB2 Vork with DB2 brouwse edit tables etc taloged data set Not T Training Setup SELCOPY i Training Material UL Vindow List Display active windows select with cursor to switch focus X Exit Exit SELCOPY i lectable List of files will the specified volume ph pu pu Nr Go 0 Or XO Uu no Use Fd VINDOU to switch between SELCOPY i display windows Use command optional fastpath e g 73 4 to access this menu sub options sing the lt Enter gt key I Edit Records Open the file with exclusive SPFEDIT ENQ and load all records into available storage for full text edit capabilities Read Only Edit DISP SHR Open the file with shared SPFEDIT ENQ and load all records into available storage before releasing the ENQ Uiew supports full test edit capabilities Attempts to save changes will fail with message ZZ3EO45E However use of File menu bar option Save Rs will allow save of the in storage data as a different fileid Alternatively SET FILEID or any other text edit SET commands that manipulate the fileid assigned to in storage records may be used prior to SAVE If the new fileid is an as yet unallocated data set then the relevant Allocate Non USRH or Define USAN KSDS ESDS RRDS LDS dialog panel will be opened as appropriate ine 22 of 149 Coll of 73 COL CBLIS36 HTML zzSi pteb F1 HELP F2 SPLIT F4 4 INDOW F3 5URP Fi2 CRETRIEV s2 EXPAND Te Line 9 Alt 6 856 Views 1 2014 0904 16 15
206. n was not selected You may type the TEXT primary command or select the Text menu bar item to create a temporary text edit document containing the statistics information SELCOPY i FSU PDS S 5 ua wS wR x Command gt SED ES Member Action AliasOf Truncated RemapError TRACKO20 Copied TRACK823 Copied following messi s were Summary COPY Y record Member Figure 109 SELCOPYi PDS Copy Statistics 2015 01 19 11 28 28 Training Manual 116 Option 5 File Copy Reformat FCOPY Record Selection Record Selection Specify the nput File Type userpfx SELCTRN ZZST2DAT in the DSN Path Mask field where userpfx is your own user prefix e Specify the Output File Type userpfx SELCTRN ZZST2DAT ESDS1 in the DSN Path field SELLEOBRBT I File Copu x m File Help JCL Command uS wR Ex Command gt red eral Lee CSF zzsaFCOG Lines el 21 Input PDS PDSE Library Sequential VSAM DSN mask or HFS path mask DSN Path Mask USER123 SELCTRN ZZST2DRT Member Mask All mask matches will be copied Volume Mask press PFS to view deselect matches Output PDS PDSE Library Sequential YSAM DSN or HFS path DSN Path gt USER123 SELCTRN ZZST2DRT ESDS1 T Member gt Replace existing members Volume gt If output file is uncataloged Strip Pad Char pgs EE If copying fixed var length records Record Selection For each input file copu onlu selected records Start ar Z Record _ Key RBA
207. nel and the Data Edit window to which it will appliy are simultaneously visible 2015 01 19 11 28 28 Training Manual 71 Option 2 Data Edit SDE Using FIND EXCLUDE and ONLY commands Searching for Data FIND F Type the following commands to produce the results displayed below e SEL eL1 F HEART Press F5 RFIND to search for the next occurrence USERI23 SELCTRN ZZ2STIDAT m File Edit Actions Options Utilities Window Command gt Record type TRACK PERSTISTENT DD TRACK NUM TRACK ID He 3 4 AN 1 16 ZD 20 4 Hao poo loo dm CBi2DD714D51828C 2648425633D15404 ooo ro Gi e 1 wy 000 To P Guido mu ornm e uro imu dor tc Omop ir MMPODADR Imm a o o0 NNDO wW me uioo ui HP 000000000000 0 p m m HP o 000000000000 000000000000 000000000000 000000000000 000000000000 Sealers EG1593 51C386 19870C BS4533C BE421AFCD141D22D FF47FB9IEDSDESI6 5D46C681552440BF CS4FE779224856e4 8D4B5913F7SCEEES BoO44D 2337A412 g 80000013 o ro i m LOr ro D m Jm o ro b n D HP is AJ 00000000000000 GOGrrrFFOOGOGRG W e a MR O D 00 Y UN a Ww gooooois 80000017 80000018 nmen e 0N N OD T Omib P n mmummocprmcugTTt DO OUGUTITOoocH PImmmooO oO umoppbhmmomccodtuuo 00 00 00 0 J J J 4 Y O1 O O O O D D D D 10 C0 0 00 JUI GO e LO J UT CO i UD AJ UT 0 LO AJ UT QD i 10 y UN dd ddr MNM m m n rer rr rr y PRRRRRRRRRRRRERROCODODOO LEX ES Figure
208. o Select Records on Load Using a FILTER to Select Records on Load You may wish to select records based on specific criteria during initial load of the file into the SELCOPYi Structured Data Editor For example to load only the first 20 records that contain a value in position 348 the year component of RELEASE DATE e that is greater than 0000 but less than 1980 Choose the Quick Filter feature from the SDE Edit Browse Entry Panel 2 Activate the Filter option by entering a in the left margin field Enter Q to select Quick filter Type FILT or press F6 to define or modify the filter selection criteria SELCOPY i Structured Data Browse YEdit File Command Structure Replace Help wS wR Command scroll Csr ZZSGSDEO Linas 1 21 of 21 PDS PDSE member Sequential VSAM or HFS path Name USER eS SELCTRN ZzST1DAT Member Volume If dataset is uncataloged Action Browse Data _ Edi ll Auxi Edit Full ert Update Delete di Ll Read Edit In Place _ Edi Ll Read liary AUX File Only DISP SHR Only amp Auxiliary Structure Copybook Den gt USERTe3 Member ZZSTI1CPC Tupe Eu FE ESSE Record Selection Start Z Record _ Key RBA For gt a Filter Q Filter selected records F File Q Quick PFE Edit Filter File gt Member gt Additional Options _ Enter to display HFS and Profile options Figure 84 SELCOPYi SDE Quick Fllter 1 2015 01 19 11 28 28 Training Manual 8
209. o the Sun You Ain t Alone Goin to the Heartbreaker Boys amp Girls t D an ro Pe J o j I He v 0000009 800000168 aoooooii ogaoooooia CHAG gt gt 0000014 gooooois gooooois foro FO FO TO FO FO TO TO FO TO FO FO PRRRRRRRRRRRER mmu ooo iac uc Man d Alabama Alabama Alabama Alabama Alabama Alabama Fmt F 00000 0000 GEGE ih in ih if N gt a a a a a a a a a a a a a a a a a a a a a a f Do Qo o Co o Co o o umi CC CO OCCOOGOCGOPH P HP POOGOGOGOGOGGGOOC 1 uo 0 Y MN o TO e CO FO e GO 0 0 4r ur B WME Y ooo 333333373 leon n annn nn Figure 78 SELCOPYi SDE CHANGE 2 2015 01 19 11 28 28 Training Manual 82 Option 2 Data Edit SDE CHANGEing Numeric Data Type Fields CHANGEing Numeric Data Type Fields Next we ll demonstrate CHANGE of a numeric data type field using a relational operator Type the following command to change all values greater than or equal to 10 in the TRACK NUM field only to 999 C ALL GE 10 999 3 USER123 SELCTRN ZZST1iDAT using USER123 SELCTRN SAb m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Seralt gt ZZSD212I 310 out of 310 occurrences were changed in 310 out of 1070 records of type TRACK TRACK NUM NAME ALBUM ARTIST 5 7 6 AN 24 120 AN 214 70 AN 144 70 A pcccs a Rolling In the Deep Adele Rumour Has It Adele
210. oS Sy 1974 02 01T00 00 002 1974 02 01T00 00 002 1974 02 01T00 00 TOG 00 0 00 0 00 ae aao Re wu NN on P w aI 00000000000 900000 Gooooc 0000000 joo 3909 500000000000 NNNNNNNNNNA 8 oo oaoz 00 00 00Z oo oo 00Z 00 00 00Z 07 00 00Z 03 00 00Z Data sx HEPHHHHHH 90 G N AD UD D UD D D D D UD a a a a a ae a ad a NNNNNNNNNNNNN e C UD UD UD UO UD UD LO D UD D D D UD Imi AA POESIE 2JP PGGGGOGGGGGOGGOGGOO mOPHPHHHPHHEHBPH HEHB pmPb Ib LR e ER ost os nu PER e o o o d e T TI o gcGcooGcoocGcoocooocoocc UulPHPH bHHEHHHBPH PHHBPHHEBPlH AAA AAA AAA AA AAA AA Peer 210001000 EN SDE Quick Filter 3 2015 01 19 11 28 28 SELCTRN Z2Z2ST 1i1DAT EGS NERO He AN 1 16 Wc ccc SR Oe Ss AD104CAC30071918 ETE Soros B64042E34A5647B38 a827C471776C1CB8 632197A321A2F00F a c E 1 E B 4 a 1 4 00 4s UN 00 Ow TO 0 0 CO FO 0 CU 0 iD P BmH EIGO Sa bBnmmdam se is a D T F B 2 6 3 gt 3SB1ASSFDDSE 918SDB3E305 SEASSECF4SE ACSS86839D38 SERIBRSERIS BA E ca 66 BA D 38 32 D4 68 ES SF 8s EE 39D1B79801900 Deor ocoocTiuomoumgurnp maomtimprnd4Adgo mpoom Pu NOOB0ubomu o Training Manual using Fixed 407 Offset 0 Data elements 18 TRACK NUM TRACK ID 3 mum GL Ted I o P GoGGGGGGGGGOGGOOOGGGOODCOO GGbp bp Bp BOGOOGOOGGGOGGGRO Br ect o uou bor eod 4 zD 20 4 s cacao
211. of a Line Block are marked using the MrkLine key Shift F6 by default 2 A Box Block consists of one or more columns within one or more lines of text The diagonal corners of a Box Block are marked using the MrkBox key Shift F5 by default A marked block is unmarked using the ResetBox key Shift F12 by default Marked blocks of data may be Deleted Moved or copied to SELCOPYi s clipboard Moved or copied to another location within the same or any other edited file Overlayed on top of data at another location within the same or any other edited file Filled with a single propogated character or left adjusted string Used to restrict the scope of many primary commands such as CHANGE Used to define a column of incrementing sequence numbers or to adjust existing numbers To demonstrate some of these features Edit the sample copybook as before Type ONLY PIC 41 SELCOPY i TEST1 SELCTRN SRaM1 ZZST2CPC Bo F PDSE Size Alt 0 0 1 m File Edit Actions Options Utilities Window SwapList Help m Command SeraLl gt Cer ZZSE185I 53 occurrences of string PIC were found 000000 x x x Top of File x x 000001 1 line s not displayed 000002 an 001 000003 070 000004 1 line s not displayed 000005 an 001 000006 070 000007 1 line s not disp 000008 000009 PERSISTENT ID 000010 TRACK NUM 000011 TRACK ID 000012 NAME 000013 TOTAL TIME BINARY 000014 FILE SIZE BINARY 000015 BIT RRTE B BINARY
212. oll Csr Command Top of 36 Table TESTi SELCTRN TRACK Dependent of TESTi SELCTRN RLBUM Constraint TRACKRi R Table TESTi SELCTR ALBUM ID TRACK NUM NAHE ID NAH ttt 2 15 tH 2 SMINT SMINT VARCHAR 120 SMINT VAR 4 Kee t gt 4 1 4 2 4 3 4 4 4 5 4 1 99090000 er Top of Data eek 96000088 Hk Top of dk m 156 1 Blowin In the Vind R 532 78 Bob 69060002 150 Shelter from the Storm 88888882 T 96908063 156 Don t Think Twice It s ALL Right lt 00000003 A 009009064 150 Hurr icane lt Beaaaoad Command aecesaas 158 The Times They Are A Changin lt 99000005 00000065 158 Gotta Serve Somebody lt 96909006 Table T aeoecoo 158 It Ain t He Babe lt 86006067 00009065 150 Groom s Still Vaiting At the Altar lt 0000005 96008069 158 Maggie s Farm 96008069 96008018 156 Jokerman lt 00000019 00000611 156 Everything Is Broken lt 88880011 aeeoeeoo acG06012 158 It s All Over Now Baby Blue lt 90000012 R 532 00909013 158 Hr Tambourine Hanc 60000013 G00006002 BORG0014 150 Blind Villie McTell lt Scroll Csr 00000014 60000015 156 Subterranean Homesick Blues lt 96606615 966060016 156 Not Dark Yet lt 96660816 66666617 156 Nake You Feel My Love lt 888808817 88888018 i158 Like a Rolling Stone lt 8888080818 90000019 158 Positively dth Street lt 96980819 96906620 150 Dignity Alternate Uersion amp 00000020 96966621 156 I Vant You lt 96980621 66666622 156 Thing
213. ope o Ocho EE EISE Oo Cs om oer ote 00001 348 4 gt 9000 800002 AND 348 4 lt 1980 BO000O3S End of Data x x Figure 85 SELCOPYi SDE Quick Filter 2 2015 01 19 11 28 28 Training Manual 88 Option 2 Data Edit SDE Activating Deactivating a FILTER e Press F3 to return to the SDE Edit Browse Entry Panel Press ENTER to edit the sample file using the active filter To activate deactivate the filter simply check uncheck the Filter option Activating Deactivating a FILTER A saved filter may be activated by specifying filter type F and entering the saved filter dataset member name To define a saved filter either 1 Select the Filter option 210 from the SELCOPYi Primary Option Menu 2 At the SDE Edit Browse Entry Panel specifying filter type F enter the saved filter dataset member name then press F6 or type FILTer A saved filter may define selection criteria referring to the values of named formatted fields Formatted selection criteria are individually specified for each defined record type Command 0000000 Record tupe Go PPPRPOOOO 800008 800008 800008 600008 800008 800008 800008 800008 800008 800008 9000008 9000068 gooaooa 800008 800008 00000 00000 800008 800008 8000068 800008 m BRE 00 POWUOVTOMNSONMFOWVOVOM SOME Ma Figure 86 SELCOPYi A E AO AE e E x Top of Data TRACK RELEASE DATE 16 AN 348 20 SPSS Se Sele oe aye
214. orking with Multiple Record Types 0 Creating a Structured Data Object SDO 0 Modifying Data 0 Working with Segmented Records Second Edition 2013 01 31 Option 5 File Copy Reformat 0 The File Copy Reformat FCOPY Panel 0 Copying a Standard Sequential Dataset 0 Copying PDS PDSE Library members 0 Record Selection 0 Specifying Start Record Number of Records to Copy 0 Browse the Output File F1 1 0 Using a FILTER to Select Records for Copy 0 Browse Output File 0 Specifying brackets in the FILTER expression 0 Generate FCOPY primary command 0 Modify Execute Generated FCOPY primary command 0 Reformat 9 Create Output Copybook 0 Updating the Output Copybook 0 Force Recompile of Updated Output Copybook 0 Running File Copy Reformat in Batch Third Edition 2013 02 27 Option 6 File Search Update 0 The File Search update FSU Panel 0 Searching a PDS PDSE Library 9 Search Report Output Standard 80 column Screen Width 0 Displaying Additional Hit Information Fields 0 Using F6 to edit the Hit File Record Adjusting Report Table View 0 Selecting Library Members for Search Update 0 Condensing Selected Members by Timestamp Size Userid Condensing Selected Members using FIND 0 Condensed Member Selection List 0 Condensed Member Search Results 2015 01 19 11 28 28 Training Manual Summary of Changes Fourth Edition 2013 10 09 Updated to reflect SELCOPYi Rel 3 20 revised Function Key defaults Fifth Edition
215. ox block containing COBOL variable data lengths wil be hilighted Place your at column 20 of the first copied line We will overlay the marked box onto this location SELCOPY i TEST1 SELCOPYI CMX Jere EE Size 141 ALT 331 m File Edit Actions Options Utilities Window SwapList Help w5 wR m Command SEPBLUSSESE 4 1 4 2 4 8g 4 4 4 B5 4 B 4 T 000001 TEST1 SELCOPYI CMX xxx L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 RT 000008 ARTIST 000009 000010 000011 000012 PERSESTENT T0 000013 TRACK NUM 000014 TRACK ID 304 000015 NAME x MO 000016 Type the HOME H0 command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Hitz3s35y i C SELCOPYi Figure 34 SEL
216. p 66660616 578 Come Vhen I Call Live amp p0B09011 570 Gravity Live lt 99000812 578 Good Love Is On the Vay Livej lt 88888013 578 Out of My Mind Live 60009014 578 Vultures Livej lt aoaaoan15 578 Bold As Love Live lt 66668616 578 Vaiting On the Vorld to Change Live amp 96600017 578 Slow Dancing In a Burning Room Live amp 888886018 570 Why Georgia Live lt 66660019 578 The Heart of Life Live 99000020 578 I Don t Need No Doctor Live amp CHG gt 578 I Don t Trust Myself Vith Loving You 96666622 570 Belief Live lt 88888823 578 I m Gonna Find Another You Livej lt 00000024 640 Don t Stop Believin Live lt CHG gt 6468 Separate Vays Worlds Apart Live lt 96660626 646 After the Fall Live amp 66660027 548 Lovin Touchin Squeezin Livej lt 88880828 648 Faithfully Live lt ns 66666629 646 Who s Crying Now Live amp File 66666036 646 Any Vay You Vant It Live lt t Prime Key 96600631 640 Lights Livej lt _ Use Specified Macro Hacro Name SDEPROF Do not use a Profile Macro FS RF IND F6 RCHANGE si InsLine s2 DelLine s3 DupLi tions s5 200nW s18 UNDO s11 REDO 5e Line 6 Alt 1 131 5 ize 7s 352 Fnit U es Views 1 2614 69 16 15 34 27 Figure 157 SELCOPYi DB2 Figure 11 2015 01 19 11 28 28 Training Manual 166 Option 12 DB2 Editing Related Tables REDIT Editing Related Tables REDIT e At the List Tables window enter EI Edit Immediate in the prefix area
217. pList Help rimary Option Menu File SwapList Vindow Help Conmand gt IBZICBLAI List Object File Help Command 2252L666 List DB2 Objects Storage groups Databases Table spaces Tab les Views Aliases Indexes Synonyms Types Command Use Fd VINDOU 2252PRI Sett DB2 SQL Edit Brow Crea Drop List Rudi Obje Trai Use command 00 00 UIS F2 SPLIT Fa VINDOU FS SVAP Alt 6 6 6 Size 1070 _ FI HELP Line 6 Recl 352 Figure 155 SELCOPYi DB2 Figure 09 2015 01 19 11 28 28 Edit Object File Run Command Help Conmand gt 2252ED1T DB2 Object Owner Name TEST SELCTRN TRACK Row Colum Selection Options Scroll Csr Lines 1 39 of 39 optional From Start row within the result set For gt Select gt Vhere gt 2 Number of Rows to be edited E Order By gt COMMIT Opt ions Commit on SAVE with no errors Commit on SAVE Commit on exit from edit session Load Opt ions Skip locked rows 7 Execute Commit following load Concurrency Isolation Opt ions 4 Use DB2 Default Isolation level Uncommitted Read least restrictive Cursor Stability Read Stability Repeatable Read most restrict ive Initial Display Format Table _ Single Profile Macro Use Default Use Specif ied Hacro Do not use a Profile Macro Fi2 CRETRIEU s2 EXPAND 2 Fnit zu Files 1 Views 1 Training Manual Explicit Table Lock Z None Share mode Exclusiv
218. part of the SELCOPY Product Suite system and programs or of this document is to be made without prior written authority from Compute Bridgend Ltd At the time of publication this document is believed to be correct Where the program product differs from that stated herein Compute Bridgend Ltd reserve the right to revise either the program or its documentation at their discretion CBL do not warrant that upward compatibility will be maintained for any use made of this program product to perform any operation in a manner not documented within the user manual The following generic terms are used throughout this document to indicate all available versions and releases of IBM mainframe operating systems MVS z OS OS 390 MVS ESA MVS XA MVS SP OS VSE z VSE VSE ESA VSE SP DOS CMS z VM VM ESA VM XA VM SP All All MVS VSE and CMS operating systems 2015 01 19 11 28 28 Training Manual 1 Summary of Changes The SELCOPYi Training material and documentation were introduced for Release 3 10 in PTF RS00021 First Edition 2012 12 14 Option 2 Data Edit 0 The SDE Edit Browse Entry Panel 0 Display Modes 0 LAYOUT Command 0 Scrolling the Display to a specific field record 0 Selecting Ordering Visible Fields 0 Adjusting Field Display Column widths 0 Using FIND EXCLUDE and ONLY commands Using CHANGE commands 0 Filtering records using ALL WHERE MORE LESS commands 0 Using a FILTER to Select Records on Load W
219. port Table View If you wish to display suppressed fields while in table view you may use the SELECT primary command as depicted below Note that by default the SELECT command operates on the focus record type i e the record at the top of the screen or at the cursor if it is placed in the file area To avoid this complication add FROM HIT to your usual SELECT primary command e g select zMember zRecNo hold zRecord from Hit EELCUPSXI EMIT HSERTIZ3 SELCFSI TAIBOSTIB RPT usino USERBTI23 SELCFSU TIOSTITE g m File Edit Actions Options Utilities Window SwapList Help wS wR E Command sel zMember zRecNo hold zRecord scrall gt Csr Record type Command Fixed 315 Offset 0 Data elements 4 Timestamp Command OR OR SP SO SO I PO O SOS OSOS A OO POS PSSS caca AO OSO SS PECES CS 2013 02 25 10 37 16 FSU input USER123 SELCTRN ZZST5DRT TRACKDO1 TRACKOO2 T Record type Summary Variable 51 52 Offset 0 Data elements 14 RunTupe RecordsTot FilesTot Hits RecordsHit FilesHit RemapErrs A LC p a ur Cei FIND 1070 25 8 8 5 18 Record type Hit Variable 47 454 Offset 0 Data elements 13 zMember zRecNo zRecord BELL Sop SSS ee Se EE TRACKODO2 12 BEED324BEE2DD030100B4358ADown Payment Blues TRACKO82 75 BCS8EA4EBOFFi13BF888080B37TO0CKilling the Blues TRACK 83 390 EF3024088704CFFS500C405GWalking In the Shadow of the Blues TRACKaO804 5 O79FFO6C1SO1FBS96G0D797I Roman Wall Blues TRACKODOS 3 YCB7FDZ2GADBE19ADGGE211GBourgeoisie Blues TRACKOOD6 39 2
220. ps defined by referential integrity RI constraints An RI constraint establishes a parent dependent relationship between tuo tables by means of a foreign key A foreign key is a set of columns in the dependent table which correspond to a unique key in the parent table When an RI constraint exists certain types of change to the tables involved are not permitted Breaking these rules leads to an RI error of one of the following types I Missing parent Key SQLCODE 538 This happens when an insert or update of a row in a dependent table has a foreign key which does not represent an exising row in the parent table In other words you cannot make orphans by insert ing or updating foreign keys in the dependent table Parent key update error SQLCODE 7531 This happens when an update of a row in a parent table changes a key which is a foreign key in a dependent table and has dependent rows in that table In other words you cannot make orphans by changing parent keys RI delete rule violation SQLCODE 532 Vhen the RI constaint was defined With a delete rule of RESTRICT or NO RCTION this error will happen when deleting a row in the parent table which has dependent rows in the dependent table In other words for this type of RI constraint deletes must be done from the bottom up The RE prefix command and REDIT primary command can be used in a number of ways with tables related by RI constraints List all parent and dependent relationships for the c
221. r 225GEDIT Lines 1 26 of 26 PDS PDSE member Sequential VSAM or HFS path Name TESTI SELCTRN SAML Nember gt 225T1CPC Uo lume If dataset is uncataloged Action 4 Edit Records All records are loaded in available storage Read Only Edit DISP SHR Preserve data Use SET FILEID before SAVE Browse Records Records are loaded dropped when scrolled TEST1 SELCTRN SRH1 225 T1CPC o8 F PDSE 5 ize 16 Alt 5 0 0 j Conmand Scrolls Csr eae aaa SSS a a a a r U AEE A ruis 666661 61 TRACK 660862 PERSISTENT ID PIC 16 660665 TRACK NUM PIC 9 663 900004 TRACK ID PIC 9 004 606085 NAHE PIC X 128 606086 ARTIST PIC 070 606087 ALBUM PIC x 876 666085 TOTRL TIME PIC 9 667 BINARY 690869 FILE SIZE PIC 9 009 BINARY 666616 BIT RATE PIC 9 004 BINARY 660611 SRHPLE RRTE PIC 9 005 PRCKED DECIHRL 666012 YEAR PIC 9 004 6066015 NORMAL IZATION PIC 59 665 PACKED DECIMAL 600014 DISC NUNBER PIC 9 003 6666015 RLBUH RRTIST PIC X 841 660816 RELERSE DRTE PIC x 020 660617 DATE ADDED PIC 620 660816 DATE MOD IF IED PIC 626 000019 End of File F5 U inhas F6 U inRes F7 Drag U F Drag D Fi8 Drag L Fii Drag R si ws s3 Uidth 28 sd Vidtht26 sS Depth 28 Ss6 Depth 26 s7 Drag UxS s Drag Dx5 si6 Drag L 5 sii Drag Rx5 e Line 1 Col 1 R1t 6 6076 5ize 15 Fmt F Files 2 p 2014 89 84 16 Figure 11 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 14 Windowed Display System Resizing Windows 2
222. records Filter Q Filter selected records F File Q Quick PF6 Edit Filter File Member gt Extended File Search Update Copy Remap Tasks Enter to display a list of extended FSU utility tasks Figure 136 FSU File Search Update FSU Panel 25 To follow the demonstration use the panel to search the supplied sample library for a the character string blues case insensitive e Specify the Input Library Type userpfx SELCTRN ZZST5DAT in the DSN Path Mask field where userpfx is your own user prefix The Member Mask field may be left blank in order to search all members of the input library Alternatively type or a member mask of your choice The Volume Mask field should be left blank in this case otherwise the input dataset list will be restricted to files residing on matching volumes only Specify the Search Options Enter EQ in the Relational Operator Op field Type blues in the String field 0 For simple case insensitive character strings there is no need to add quotes this will be done automatically You may specify the string using C ABCD notation if case sensitivity is required 0 Hex strings may be specified using X 1234 notation Enter 0 in the Limit field in order to display all hits in each member Alternatively enter 1 to display the first hit only Press ENTER to run the search For operations lasting more than a second a progress window will be displayed with the repor
223. ro Name PROFILE Do not use a Profile Macro F1 HELP F2 SPLIT Fa VINDOU F3 5URP Fi2 CRETRIEU s2 EXPAND Alt 6 6 6 3 ize 8 2014 09 04 16 15 25 Figure 3 SELCOPYi Text Edit Panel Window 2015 01 19 11 28 28 Training Manual 7 Windowed Display System Help HTML Windows Help HTML Windows Press Function Key F1 to open the context sensitive Help in a further separate window Help HTML documents are automatically positioned to display right justified on the screen File Edit Actions Options Utilities Vindow SwapList Help File SwapList Vindow Help Qu Command Text Edit Entry Panel File Help Conmmand gt 225GEDIT PDS PDSE member Sequenti Name Volume I Ret ion Z Edit Records Read Only Edit DISP S Browse Records HFS Options Z Undefined HFS record _ Fixed HFS record Record Length EOL Characters STD Profile Macro Use Default Use Specified Macro T Do not use a Profile n FS TEXT F UP F3 BACK Line 6 FG SOURCE Alt 6 6 6 3 ize 68 Figure 4 SELCOPYi Help Window 2015 01 19 11 28 28 FS DOUN Back Forward HomeLink Close Source Text Help Command Scroll Csr Name Hember An absolute or relative HFS Path name or the fully qualified name of a sequential data set or PDS PDSE library member Note that the Member field is ignored if Name field is not a library or contains wildcard characters Dataset names must be fully qualified quotes being unnecessary but per
224. rom the command line Type SEL in the prefix area Press the Options key default is F16 then select option 8 SELCOPY i Select Display Fields for a Record Tupe m File Edit Actions Options Utilities Window SwapList Help w5 wh Command gt Se cle Tere s Ej s Lb Structure Name USER123 SELCTRN SRM1 ZZSTA1CPC Record Tupe TRACK Perm Temp MER Show unselected fields at the end N Y N Select record tupe fields 1r H Seq Width Name Type Start Length Picture Data type E elie SEIS ae ein 1 16 X 016 CHARACTER TRACK NUM ir 003 ZONED TRACK ID 20 ZONED NAME 24 CHARACTER ARTIST 144 CHARACTER ALBUM 214 CHARACTER CA ell 264 FIXED PALS sie 266 FIXED BIT RATE zo FIXED SAMPLE RATE 294 DECIMAL YEAR Fa zm ZONED NORMALIZATION PD 301 DECIMAL DISC NUMBER ZD 304 ZONED ALBUM ARTIST AN 307 CHARACTER RELEASE DATE AN 346 CHARACTER DATE ADDED AN 358 CHRRRCTER DATE MODIFIED AN 366 CHARACTER Xxx A aooo enl I mm nm call LIL m 3 o o h c t TBI HEEL E BERE L C ooo X XXXL 0 UD LO LO LO D 2 amp 2 2X UD LO 00000 gt 0000000rOo S000P0040410 000 E de NA m me mue al al al A 3 3 3 3 3 3 z z 3 3 3 3 3 3 3 5 a F5 5ELALL F6 DESELALL F16 EXECUTE F22 UND0 F23 REDO Figure 67 SELCOPYi SDE SELECT panel e Enter S in the S column to make a field visible e Enter H in the H column to HOLD a field e Enter a number in the S
225. rsonal Command Centre 000006 000007 001 000008 ARTIS 070 000009 RT 001 000010 ALBUM 070 000011 RT 001 CHG gt PERSISTENT ID 4 016 CHG gt SACK NUM S 003 CHG gt SACK ID 9 004 000015 YA 4 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly to this file at any time during 000018 your SELCOPYi session 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 ResetBox Covet Alt 4 4 8 piled Recl 32732 KC e L E e l ea Figure 44 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 49 Option 1 Text Edit Using the FILLBOX Primary Command 2 Using the FILLBOX Primary Command 2 Press ENTER to set the values SELCOR Yio Hz RS RT TE ENA m File Edit Actions Options Utilities Window SwapList Help Command _ 000001 000002 000003 gt m LE W yy al 000004 000005 This is your HOME file or personal Command Centre 000006 000007 B 05 x 001
226. s TRACKOOZ OC9E4EBOFF13BF8800B370CKilling the Blues TRACKGSS EF3024088704CFF500C405GWalking In the Shadow of the Blues TRACKODO4 O T9FF06C1501FB96080D 797TIROman Wall Blues TRACKOOS TCBTFD280RDBEi19R8DOGE211GBourgeoisie Blues TRACKODE6 Z2AFODSBIISSBSAEESTODOF3SOSAEveruday I Have the Blues Live TRACKODS 924DD5148CDEF39F00H421ESubterranean Homesick Blues TRACKOGS FD4B86E2C95D53CFOOH369AGus s Blues Intro XXX End of Data Iiis Fmt Figure 137 FSU Search Report 2015 01 19 11 28 28 Training Manual 145 Option 6 File Search Update Copy Reformat FSU Displaying Additional Hit Information Fields Displaying Additional Hit Information Fields To view additional information fields that are normally suppressed from view on a narrow screen place the cursor on the hit record of interest then press the ZOOMW key F17 Shift F5 The chosen hit record will be displayed individually in a separate single record zoomed format window with the following additional fields made visible The library dataset name The hit record number The hit record number within the file member The logical record length of the hit record The number search value occurrences within this hit record Press F3 to return to the table view SELEUPRYTXIC COEHIE ES EE ra RS d EUER e 5 Fen 0080 21 o EE usina LES ze n SELEFSU e ene m File Edit Actions Options Utilities Window SwapList Help wS wR x Command gt SCROLL CSF Record type Hit Variable
227. s ZZSTBOXO Lines 1 20 of 20 2 Mark Diagonal Corner of a Box block Mark Top Bottom Edge of a Line block Reset Marked Line Box block Copy i e Insert marked Line Box block at the cursor position Copy and Keep marked block active Move marked block Overlay text at cursor with contents of marked block Delete marked block C Copy marked block to the clipboard M Move marked block to the clipboard Paste data from the clipboard Insert sequence numbers into marked box Delete word at cursor or blanks up to next word Eun EEG EXC TEC eu pem Lye F1 HELP F2 SPLIT F4 WINDOW F9 SWAP F12 CRETRIEV s2 EXPAND Figure 37 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 42 Option 1 Text Edit Incremental Sequence Numbers 2 Incremental Sequence Numbers 2 e Enter DEC in the Base field to select decimal sequence numbers e Enter 100 in the Start Value field e Enter 20 in the Increment field e Enter YES in the Leading Zeros field e Select option Use above specified start value Press ENTER to update the values SELCOPY i m File Command Help yS wR m Command Scroll Csr ZZSTBXSQ Lines 1 20 of 20 Use this panel to inert or modify a numeric column defined by a marked Box block in a Text Edit view Use the MrkBox keu default is Shift F5 to mark the corners of a box block before entering this panel The box corners define the start end line and columns to receive the s
228. s Have Changed lt 66666622 66666625 156 Just Like a Voman lt ID OBID COLCOUNT EDPROC UR 96666625 90000024 150 nississippi amp 473 5 3 00000024 90000025 158 Rainy Day Vomen 142 amp 354 473 2 60009025 00000026 156 Thunder On the Mountains 473 16 96966626 96666627 156 All Along the Vatchtower lt 66660027 99900025 156 Uhen the Deal Goes Down lt AA 96980825 99906629 156 Lay Lady Lay lt 96666629 96006036 158 Beyond Here Lies Nothin lt 96666636 96666631 150 If Not for You lt 66680831 10 10 0 0 1 100 qo amp amp Uutott FS RFIND F6 RCHANGE X si InsLine X s2 DelLine s3 DupLine sd 0ptions s5 Zo0mMW 16 UNDO S11 REDO Line 6 Alt 6 6 6 2ize 56 AS Uiews 3 2014 09 15 15 41 19 Figure 174 SELCOPYi DB2 Figure 28 2015 01 19 11 28 28 Training Manual 183 Option 12 DB2 Edit Dependent Table 3 Edit Dependent Table 3 Back in the ALBUM table you will then be able to delete The Essential Bob Dylan save and exit without errors Back in the ARTIST table you will then be able to delete Bob Dylan and save without errors File Edit Actions Options Utilities Vindow SuspList Help lo Un IB2 CBLAJ Edit table TEST1 SELCTRN_ARTIST in tablespace TEST1 SELCTRNR H Command w 22503461 SAVE inserts 8 deletes 1 updates 6 SQL errors 6 for DB2 object Scroll Csr TEST1 SELCTRN_ARTIST 22303471 Commit changes issued 2 E SMINT ssim chain Scroll Csr denm t io ecce eri Lei Iii aee e e aei eii emis esc desde ew iE 666660
229. s before returning to the File Reformat panel SELCOPYi USER123 SELCTRN SAM1 22SP1CPC a S Size 5 m File Edit Actions Options Utilities Window SwapList Help wS wR x Command gt Sero DL Csr SN SS SS a IC SS SS SYL CALCUL SS Boa Top of File x X x 000001 01 TRACK 00002 Q5 ARTIST PIC B00003 05 ALBUM PIC 000004 05 TRACK NUM PIC 880005 O85 NAME PIC 000006 K K End of File X X CBLEDIT Do ui ant to 5 5 USER SELCTRN CPC Line 0 Col 2l b ALI AR IHES S1 Recl 50 Fmt F Figure 132 SELCOPYi Update Output Copybook 2015 01 19 11 28 28 Training Manual 139 Option 5 File Copy Reformat FCOPY Force Recompile of Updated Output Copybook 1 Force Recompile of Updated Output Copybook 1 If your structure copybook file id refers to a COBOL PL1 or ADATA source file not an SDO then a compile step must be performed in order to turn the source copybook into SELCOPYi s own internal structure SDO format A temporary SDO will be created lasting the duration of the SELCOPYi session making subsequent reference to the same copybook during the session much faster by bypassing the compile stage If however as in our case the output copybook or any of its included components should be modified during the session then a recompile of the source will normally be required For performance reasons Recompile gt N meaning no recompile should occur is the default Specify Recompile gt Y to force a copybook reco
230. s of a PDS PDSE library Input and output access methods record format and geometry may be mixed without restriction and the copy process may be executed either online or in batch The output may be specified as a single PDS PDSE library member e a PDS PDSE library DSN multiple member names implied by the input a flat sequential datset e a VSAM KSDS ESDS RRDS VRDS e a Hierarchical File Ststem HFS ZFS file The input may similary be specified with multiple input files defined using wildcards within each of the following file name components e Dataset name e HFS path file name not directory e PDS PDSE Member name e Volume name Access method record format and geometry for multiple input file may also be mixed without restriction Records may be selectively copied by specifying any combination of the following which are applied to each input file e Start record number e Start record key or partial key VSAM KSDS files only e Start relative byte address RBA VSAM ESDS KSDS files Number of records to process Record selection criteria FILTER Records may be reformatted as they are copied by specifying an input and output structure copybook Specification of an input structure also enables record selection based on record type and or the content of fields defined by the structure Additionally although not recommended for high volume output copy to a VSAM KSDS may optionally be performed for records ou
231. screen operating in windowed mode the new window will open top right justified with the intention that both the table view and single record view are simultaneously visible e Significantly for windowed mode multiple Zoomed windows may be opened for different records with the ability to move and resize each window as desired USER123 SELCTRN ZZSTiDAT using USER12 3 SELCTRN SAM1I ZZST1iC ERIT Tait Actions Options Utilities Window SwapList Help ommand gt Sean ecord type UnMapped Fixed 407 Offset 0 Data elements 1 CB12DD714D51828C00A208CRolling In the Deep 3A25633D1540400B20S8SERumour Has It CeesGTurning Tables IDon t You Remember Set Fire to the Rain He Won t Go Take It ALL I ll Be Waiting One and Only Lovesong CS6B CSomeone Like You 4EBF4651EF2001B210El Found a Boy Bonus Track C9I2B1BA3204AD0AD01C210GAdele 21 A Track By Track Interview 4cecvBa7TEO159300n416IHold On a uec Found You 000000 ou me euim ou Tnm muimopi o To MO0r Dr0 0 uro omui or t0 GOD O DP Im wur mroop u Ge um oo PPAWNDORW OG Imm uioc DHOMOD 5 5 Cc a 6 C E E AI rm i nT rnmgo 300 gap OGE OOF D0G OOH oar EIU oin TO f TO fo TO TO fu TO a a a a a a 1 1 O O CJ D 10 10 uD ub 0 4 1 a D 2 A a E E a 5 3 B 6 2 4 B ODAi17TERise to the Sun GYou Ain t Alone IGoin to the Party AHeartbresker CBoys amp H38 Girls EBe Mine GI Ain t the Same IOn Your Way AHeau ch Siz
232. ss ENTER to continue with the copy process e A summary message detailing the number of records selected etc will be displayed once the copy process has completed SELCOPY i File Copy m File Help JCL Command wS wR Command gt SopobDb S Spp ZZSD4851 FCOPY Summary COPY 7 record s selected of 1072 read from 1 file s Remap Errors 8 1 0 Errors DSN ZPath Mask USER123 SELCTRN 22ST2DAT Member Mask gt All mask matches will be copied Volume Mask gt press PFS to vView deselect matches Output PDS PDSE Library Sequential YSAM DSN or HFS path DSN Path gt USER123 SELCTRN ZZST2DRT ESDS2 Member gt _ Replace existing members Yolume gt If output file is uncataloged Strip Pad Char edge MASER If copying fixed lt gt var length records Record Selection For each input file copy only selected records Start gt Z Record Key RBA Eo a records X Filter gt g Select records to copy F File Q Quick PF6 Edit Filter File gt Member gt Options _ Reformat using structure copybook layouts _ Recurse HFS Sub directories _ Append to existing Output _ Ignore HFS fileid case Figure 119 SELCOPYi Filtered Copy Summary Message 2015 01 19 11 28 28 Training Manual 126 Option 5 File Copy Reformat FCOPY Browse Output File Browse Output File When you press F20 Shift F8 to browse the output file you should expect to see the following SELCOPY i Browse USERI23 SELC
233. ssion 000019 000020 What is the purpose of my HOME file 000021 TSO ISPF and internal SELCOPYi primary commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO si2 ResetBox Line 1 Col 1 Bits353 1 Size 14 Recl 32752 ewe E SICUT T A Figure 42 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 47 Option 1 Text Edit Using the BOX Primary Command 2 Using the BOX Primary Command 2 This technique saves you setting up setting BOUNDS and line names in the prefix area before issuing your CHANGE command PELCIPY TESTTISEECUPTI EHR Jeral V JEY Size 141 Alt 4 4 5 m File Edit Actions Options Utilities Window SwapList Help x Command Scroll gt Csr ZZSEO20I 3 ned eanan on 3 line s 000001 SE 000002 000003 N 000004 000005 This is your HOME file or personal Command Centre 000006 000007 001 000008 ARTIS 070 000009 001 000010 ALBUN x 070 000011 001 CHG j x 016 C 9 003 CHG RACKHID 9 004 000015 JAME 120 000016 Type the HOME HO command or select Option 4 from the Primary 000017 Option Menu 4 to return directly
234. st within the secondary segment data within the data of any previously mapped segment belonging to the same record or specifically within the primary segment data The third sample dataset contains the same information as the second but each physical record is comprised of three distinct segment types e A single PRIMARY BASE ARTIST segment followed by e a number of SECONDARY ALBUM segments each one followed by e a number of SECONDARY TRACK segments To reproduce the following screen shot browse the sample dataset in its raw state Use the Data Edit 22 panel to Specify the Data File Type userpfx SELCTRN ZZST3DAT in the Name field where userpfx is your own user prefix Deactivate the Structure Copybook overlay Uncheck the option by removing the Browse USER123 SELCTRN Z2Z2STSDAT V File AIT Actions Options Utilities Window SwapList m ws wR Command Scroll Csr Record type UnMapped Variable 0 32752 Offset 0 Data elements 1 UnMapped SS OS OO O ror rec mee mf A O SOS eee yo mer IS iAdele 1Alabama Shakes iAlabama 3 Bruce Springsteen 1Bruce Springsteen amp 38 3 The Sessions Band iBurt Bacharach amp 383 Elvis Costello iChristina Aguilera iChristinma Aguilera amp 383 Dave Navarro 80000013 iColdplauy 80000014 iCrash Test Dummies SERES iDamien Rice iDavid Grau lorence The Machine retchen Wilson Roses ennifer Hudson Figure 98 SELCOPYi SDE Sample Dataset 3 2015 01
235. sults Condensed Member Search Results Exit F3 will return to the main FSU panel where you can run the original search for the string blues using your condensed member list Expected results are displayed below SEECDPY ECVE HUSERBI23 SELCFSH T112217 RBPT using USEBTI23 SELCFSH T112212 g m File Edit Actions Options Utilities Window SwapList Help wS wR x Command gt scroll Csr KKK Top of Data kx Record type Command Fixed 126 Offset 0 Data elements 4 Timestamp Command BS Se SS Sa SS Sg eS SS Spe SS SS Se cos SS SS SS SS ess SSS Spe n SS las Sen Re Se cores cores pesca c 2013 02 25 11 22 12 FSU input USER123 SELCTRN ZZSTSDAT TRACK O1 TRACKOGS3 T Record type Summary Variable 51 52 Offset 0 Data elements 14 RunTupe RecordsTot FilesTot Hits RecordsHit FilesHit RemapErrs EI uu LM LE UU I I T FIND dem 4 El a 3 a Record tupe Hit Variable 47 454 Offset 0 Data elements 13 zMember zRecord doceo dgceegpececeueee gpoleeceeccspgecccmwecccgnccepececeqploecmececgpmecedummecceapceccn TRACKGSS EF30248088704CFF5880C485GUalking In the Shadow of the Blues TRACKOD4 OTS98FFO6C1501FB9600D T97TIROman Wall Blues TRACKOOS TCB7YFD20ADBE19ADO0E211GBourgeoisie Blues XXX End of Data x Figure 146 FSU Condensed Member Search Results 2015 01 19 11 28 28 Training Manual 153 Option 12 DB2 DB2 support is included as a standard component of the SELCOPYi program i e it is not a separately licensable product As well
236. t Copybook Input Structure Copybook overlay Recompile gt N Dsn gt USER123 SELCTRN SAM1 Member 22STiCPC Type SDO RData RUD iol EM INN PFii Browse Output Dataset PF23 Browse Output Copybook Output StructuresCopybook overlay Recompile gt N Dsn gt Member gt Type es D RData Z COBOL PEL 1 Help PF1 2 Execute ENTER 3 Back PF3 AECE SA Figure 126 SELCOPYi Input Copybook 2015 01 19 11 28 28 Training Manual 133 Option 5 File Copy Reformat FCOPY Use Input Copybook as Model Use Input Copybook as Model We ll now create an output copybook using a selection of the fields from the input copybook but in a different order and with some of the fields shortened Press F22 Shift F10 to browse the input copybook You should see that it has 18 records as below assuming COBOL installation Type GO E to switch from browse mode to text edit SELCOPY i Browse USER123 SELCTRN SAM1 22ST1CPC gt m File Edit Actions Options Utilities Window SwapList Help wS wR Command gt Scroll Csr Press PF4 for Utilities menu including point shoot options Record type UnMapped Fixed 880 Offset 0 Data elements 1 UnMapped IS A SOS LS O SS I ESO OSOS SO OSA SS POS ra gaaomgaoaaot 01 TRACK gaaoaoaogaa2 05 PERSISTENT ID PIC gaaaagaas BS TRACK NUM PIC 00000004 05 TRACK ID PIC 88000005 BS NAME PIC gaaoaoogaas 05 ARTIST PIC gaaoagaogaar BS ALBUM PIC 000000085 OS TOTAL TIME PIC gamgaagaagas BESBETEEZSIZE PIC
237. t in the background continually updating at one second intervals Long running processes may interrupted by pressing the Attention key 2015 01 19 11 28 28 Training Manual 144 Option 6 File Search Update Copy Reformat FSU Search Report Output Standard 80 column Screen Width Search Report Output Standard 80 column Screen Width Following execution the structured report output file is displayed as a formatted table view with search matches displayed under the heading Record type Hit e The first record Record type Command displays the following fields RecordsTo fece mE RecordsHit FilesHit HUSER123 SELCFSUI TA183TI15 RPT using USERBTI23 SELCFSHI T1B3T1b5 BH m File Edit Actions Options Utilities Window SwapList Help wS wR x Command gt Scroll Csr Record type Command Fixed 315 Offset 0 Data elements 4 Timestamp Command SSDS GPSS Sahoo Soop EOS ORS Ss OOS con pea POS FR PO SG peo OS SSS OSS gp SSE OSS cog pe SOO SO SG pO SS 2013 02 25 10 37 16 FSU input USER123 SELCTRN ZZSTSDAT TRACK G1 TRACKOO2 T Record type Summary Variable 51 52 Offset 0 Data elements 14 RunType RecordsTot FilesTot Hits RecordsHit FilesHit RemapErrs lt gt 4 5 lt gt lt gt lt gt lt gt lt gt FIND 1070 29 3 3 5 18 Record tupe Hit Variable 47 454 Offset 0 Data elements 13 zMember zRecord a a a a a a sSSer sSsr TRACKOOZ BEED324BEE2DD301006435ADown Payment Blue
238. t of key sequence A handly aspect of the File Copy Reformat utility is the ability to peek at the relevant files directly from the panel Shift F7 t Shift F8 to browse the Output Data file Shift F10 to browse the Input Copybook Shift F11 to browse the Output Copybook e F19 e F20 e F22 e F23 o browse the Input Data file peu Pm 2015 01 19 11 28 28 Training Manual 108 Option 5 File Copy Reformat FCOPY The File Copy Reformat FCOPY Panel The File Copy Reformat FCOPY Panel The FCOPY panel may be started using any of the following methods e Select option 5 from the SELCOPYi somay Option Menu e At any primary command prompt type e At any primary command prompt type FCOPY FC From any dataset library or HFS path list window use the C line command Copying a Standard Sequential Dataset SELCORYZ1 le Copu x m File Help JCL Command uS wR Ex Command gt scroll CSF zzsaFCOG Eines 2 21 0t921 Input PDS PDSE Library Sequential VSAM DSN mask or HFS path mask DSN Path Mask USER123 SELCTRN ZZST1DRT Member Mask gt All mask matches will be copied Volume Mask gt press PFS to view deselect matches Output PDS PDSE Library Sequential YSAM DSN or HFS path DSN Path USER TS SS EEES DAT ECO Member gt _ Replace existing members Volume gt If output file is uncataloged Strip Pad Char Heil ME If copying fixed var length records Record Selection For each input file copu on
239. t suitable for presentation to the user in an SDE window view During execution a progress window is displayed which allows the user to interrupt processing at any point using the Attention key 2015 01 19 11 28 28 Training Manual 143 Option 6 File Search Update Copy Reformat FSU The File Search Update FSU Panel The File Search Update FSU Panel The FSU panel may be started using any of the following methods e Select option 6 from the SELCOPYi Primary Option Menu e At any primary command prompt type 6 e At any primary command prompt type FSU From any dataset library or HFS path list window use the F line command Searching a PDS PDSE Library SELCOPYYi FSU Basic x m File Help JCL Command uS wR M Command gt scroll CSF zzsaGrsug Lines 1 21 0 921 PDS PDSE Library Sequential VSAM DSN mask or HFS path mask DSN Path Mask USER123 SELCTRN 22STSDAT Member Mask gt All mask matches will be searched Yolume Mask gt press PFS to view modify selection list HFS Options _ Recurse Sub directories Ignore fileid case Search Options FIND command applied to selected input records Op EQ Relational operator Enter for list String gt blues ar Limit gt a Bounds gt 1 Start Column O End Column G gt Start Column only As gt 4 Unrestricted Word _ Prefix ies UE Record Selection For each input file search only selected records Start gt Z Record _ Key _ RBA ed For a H
240. t the screen to update a few times and for a number of messages to appear and disappear File Edit Actions Options Utilities Window SuspList Help 45 Un Primary Option Menu File SwapList Window Help QuickRef Conmand gt Setup SELCOPYi DB2 CBLA Training Material File Help Command Scroll Csr 2252TRNG Lines 1 22 of 22 The SELCOPY i Training Manual is available online at WJ cb l con pdf SELCOPY i Tra in ing anual Re1328 pdf Sample DB2 tables for use during SELCOPY i Training will be created for you Please supply a name in the enterable field below or leave blank to use your current SOLID as the database name The database will be created with default settings if necessary Press ENTER to continue or F3 to cancel the setup procedure Scroll Csr N 1 14 of id Database m Default is your current SOLID 7 List List DB2 Objects Current SOLID 5 Audit Audit Trail functions DB2 Version 3 Objects Manage DB2 Objects T Training Setup DB2 Training Material Create Audit File F1 HELP F2 SPLIT Fa VINDOU FS SVAP F12 CRETRIEU 5e Alt 6 6 6 382 Fmt 2614 6918 15 23 42 Figure 148 SELCOPYi DB2 Figure 02 Eventually provided no serious errors occur you should expect to see the following message box SELCOPY i DB2 Training Initial Setup Complete x The DB2 Training Material sample database and tables have been successfully created Press PF3 to view the tables in a list window The SELCOPY i Training Manual is
241. te record selection filter Print Print Dataset DB2 Vork with DB2 browse edit tables etc Training Vindow List 1562 Primary Option Menu Exit File Help Command Scroll Csr Use Fd VINDOU 2252PRIM Lines 1 14 of 14 fee XF lt br Doy A y nro Use command Sett ings Set DB2 options User TESTI DB2 Execute DB2 Commands Version 3 36 SOL Execute SOL Conmands Date 2014 09 18 Edit Edit Tables and Views Time 89 35 49 Browse Browse Tables and Views pSys z OS 1 11 6 Create Create DB2 Objects Drop Drop DB2 Objects DB2 SubSystem gt CBLA List List DB2 Objects Current SOLID TESTA Rudit Rudit Trail funct ions DB2 Version 9 1 68 Objects Manage DB2 Objects Training Setup DB2 Training Material Create Audit File 10 0 30 MA UJ FO P 0 _ Fi HELP F2 SPLIT F4 4 INDOW F9 SVAP Fi2 CRETRIEV s2 EXPAND Line 6 Alt 6 4 8 R c 1 382 Views 1 2614 6916 15 23 42 Figure 147 SELCOPYi DB2 Figure 01 2015 01 19 11 28 28 Training Manual 155 Option 12 DB2 Setting up sample DB2 Tables 2 Setting up sample DB2 Tables 2 e Select option T Setup DB2 Training Material A new panel will be displayed as shown below Enter the name of a DB2 Database in which you wish to create the sample tables This option defaults to your current SQLID If the database does not already exist then it will be created using DB2 defaults and CCSID EBCDIC Press ENTER to start the setup procedure While the setup is running you can expec
242. ting the length of data from the start position to end of the record e Enter lt lt contains into the ROp Relational Operator column of inserted table row 2 Enter blues into the Value column For simple case insensitive character strings there is no need to add quotes this will be done automatically You may specify the string using C ABCD notation if case sensitivity is required Hex strings may be specified using X 1234 notation SELCOPYYTI QUIER 5 m File Help wS wR Command gt cedem Csr ZZzSGFLTQ PFi Help PF3 Continue PF22 23 UNDOREDO Xmas Y O0zNo limit Type gt I I INCLUDE X EXCLUDE Quick FILTER Selection Criteria 2 Rows AND Position Length ROp Value OR ROO E ARS SA OS IN RSS PS SS PROS I NG pit C320 eir peas 080001 al 1 3 000002 AND 1 O lt lt blues BODOOS kkk End of Data XxXxX Figure 118 SELCOPYi Quick Filter 2015 01 19 11 28 28 Training Manual 125 Option 5 File Copy Reformat FCOPY Filtered Copy Summary Message Filtered Copy Summary Message e Press F3 to return to the File Copy dialog Press F6 FILTER should you wish to review modify your filter selection criteria Press ENTER to continue with the copy process You will be prompted to create your new output file once again You should choose to create another ESDS entering the name of the ESDS created in the previous example as a model e Press F3 to return to the File Copy dialog again then pre
243. tions may be undone by pressing F22 repeatedly Consecutive modifications may be redone by pressing F23 repeatedly The UNDOING primary command controls the following aspects 1 Whether the UNDO REDO facility is activated 2 The number of modification levels maintained 3 The maximum amount of storage allocated Type Query UNDOING to determine your current settings Type Help UNDOING for full information Modifying Record Lengths n Full Edit mode the length of a variable length record may be altered in the following ways In multi record VFMT CHAR modes 1 Type RECLEN ON to display the Length record prefix column 2 Overtype the current Length value for any individual record In single record FMT MAP UNFMT HEXD modes Overtype the current Length value Using the shift left right line commands nn or nn to shift left nn or nn to shift right Note Record length modification may occur only where the right BOUNDS setting is higher than the individual record s length Using the SHIFT primary command Type Help SHIft for full information Using the CHANGE primary command in particular when the DATA parameter is specified with different length search and replace values Type Help Change for full information 2015 01 19 11 28 28 Training Manual 102 Option 2 Data Edit SDE Modifying Record Lengths Working with Segmented Records Records may be organised in such a way that the
244. tomatically be primed to match the input file N for a Non VSAM standard sequential file in this case But we wish to create a VSAM ESDS so enter E instead e Press ENTER to continue SELCOPY Zi File Copy m File Help JCL Command Command gt Z2ZSGFCO0 In Allocate new Output File Required dataset USER1 SELCTRN ZZ the datas organisation Library Partitioned Non SAM Sequential Organis Figure 113 SELCOPYi SDE LOCATE field 2015 01 19 11 28 28 Training Manual E EI Csr Lol mip Tal Si does not 120 Option 5 File Copy Reformat FCOPY Define New VSAM Output File Define New VSAM Output File e The Define ESDS dialog will be displayed next allowing you to enter various details for your new file Initial values will NOT be primed using the input file as a model since in this case it is not of a compatible type You may overtype any of the values displayed in green and or enter an alternative model dataset then press ENTER to call up its details Enter the value 268 in the Avg rec len field Enter the value 268 in the Max rec len field e Select the Define button to create the file note that pressing ENTER will place the cursor on the Define button A message box will appear confirming the new file has been created SELCOPY i Allocate new Output File File Edit Actions Options Utilities Window SwapList Help wS wR Luster Name USER123 SELCTRN ZZST2DRT ESDS1 Tupe Model gt Reuse
245. uce the results below e SELECT 10 3 5 H 7 6 ALL BIT RATE gt 300 SELCOPY i US t SELCTRN Z2ZSTiDAT using USER123 SELCTRN SAM1I 0ZZST1iC Tit P wS wR Command all bit rate 300 Scrotlt gt Csr Record type TRACK Fixed 407 Offset 0 Data elements 18 BIT RATE TRACK NUM NAME ALBUM ARTIST H5 7 6 AN 24 120 AN 214 70 AN 144 70 eS pS Sho a Seem SS othe SS SSS SS escapes ccc There s Gonna Be Som Dirty Deeds Done Dir AC DC Live Wire High Voltage AC DC Babe I m Gonna Leave Led Zeppelin I Led Zeppe 000065600 Black Dog Led Zeppelin IV Led Zeppe gaoaoaooeaos xz T Tea For One Presence Led Zeppe Recl 407 Fmt F Figure 80 SELCOPYi SDE ALL 1 2015 01 19 11 28 28 Training Manual 84 Option 2 Data Edit SDE Using Multiple Selection Criteria Using Multiple Selection Criteria Selection criteria expressions may specify multiple conditions ALL BIT RATE gt 300 OR 10 lt 100 j Jus using USER123 SELCTRN SAM1 Fa Eit Actions Options wS wR Command all bit rate gt 300 3 ScmoUb zn Record type TRACK Fixed 4 set BIT RATE TRACK NUM hoes Seo AN 214 70 AN 144 70 f t PA SI fe RK IS There s Gonna Be Som Dirty Deeds Done Dir AC DC Live Wire High Voltage AC DC Babe I m Gonna Leave Led Zeppelin I Led Zeppe Black Dog Led Zeppelin IV Tea For One Presence Wish You Were Here Wish You Were Here You Are the Best Thi Gossip I the Grain Let It Be Me Gossip the Grain Sarah Gossip the Grain I Still Care for You Goss
246. updated using a form 2 In the m field type any of following equally valid expressions RT 1 9 substr record 1 1 1 0 left record 1 1 Longer expressions may be entered via a text edit window by pressing F14 EXPAND 3 Press F3 to return to the record types definition table panel S CUF Y m File H Command gt ZZSGSDOR roel elp wS wR SCEOLLA CSF Cinesi Io ofr 19 Member gt Zu oe Gee Copybook Member Name Level gt al Starting Level Number e g 01 05 Name gt ARTIST EE Record Tupe Name Normally defined bu 1 Level Name Type gt PRI Default Primary or Secondary Language COBOL Compiler Language Offset gt a Offset within record at which to start mapping Id gt RTz 1 Use PF2 to expand Record identification criteria Press PF3 to return to the record types list table Figure 94 SELCOPYi SDE Define Record Type Identification Criteria 2015 01 19 11 28 28 Training Manual 98 Option 2 Data Edit SDE Specifying Additional Record Types Specifying Additional Record Types Define the ALBUM record type as follows 1 Replicate table entry line 1 by typing R into the table prefix area 000001 2 The Copybook Library Member field will already be correct as all of our sample record types are defined by the same copybook The Type field will already be correct The Start Level field will already be correct Type ALBUM into the Record Type Name field table row 2 The Record Offset
247. urrent table Edit or browse the parent row or dependent rows of the focus row for any RI constraint Rfter an RI error when saving changes edit the parent row or dependent rows of the row which had the error Useful commands Some commands are specifically for DB2 table edit The following overview is not exhaustive but highlights some of the features 25 of E of 7S File CBL CBL ine 225 S4 FORVRRD 2014 89 18 15 41 52 Training Manual 186 Option 12 DB2 REDIT Example 1 REDIT Example 1 In the ARTIST table scroll down to Ray Lamontagne ID 480 and notice we also have an entry for Ray LaMontagne ID 2490 We ll consolidate these two then remove ID 490 e Enter RE in the prefix area for artist ID 490 Row 47 of 72 Scroll Csr Table TEST1 S5ELCTRN_ARTIST ID NAME mm SHINT URRCHRR 8 Scroll Csr om ERU um A A ni A A a 12 96660047 456 Ray Lamontagne lt 498 Ray LaMontagne lt eoo868d9 88 Ray LaMontagne amp the Pariah Dogs lt aeoaoo5o 18 Ray LaMontagne amp The Pariah Dogs lt 88888851 28 Raycharles Lamontagne lt 90006052 538 Raycharles Lahontagnec 00090953 548 Rebecca Ferguson lt 60090054 558 Roachford lt 00000955 568 Robert Plant amp Alison Krauss lt 888808856 578 Sam Cooke lt 90000057 588 Seth Lakemant eeaeeess _ 598 Simon amp Garfunkel lt 90000059 588 Sonique lt B Text Help 96900066 618 Soul Asylum Scroll Csr 96660861 626 Stevie Nicks lt 10090962 Stone Temple Pilots lt 9
248. usu uiuunt tti areenan SEa e RA Ea bete NNa poo a 156 Setting up sample DB2 Tables tt 157 DBZ ADEMEN AO aea e e E E EEA DM M DI MM teeter EE EAEN 158 o E E TE 159 DB2 Table NOR I rener E E E AE T r REEN E E 160 BEBE ap E a MI MiB E E M dm M 161 Mr n 162 TING LOOM WINGO Winter ses eee even 163 Editing Belectec table TOWS i orca a tecillo 164 Usma the WHERE IalOD noto noi aio iria 165 Usmo IND CHANGE cirie TT 166 Editing Related Tables REDIMI ierse 167 The RE IMGs COM MAME LT 168 The Related Tables ist EEUU 169 Related cle Edit Window Eo Em 170 Related T able Edit WINgOW Mi tas reco A71 Generating CSV or XML from selected table rows columns sessessseessesseeeeeee eene enne nnne nnne nnne nennen 172 umzHzierpi oer 173 Tiesto SEN A id I Ei unc e Ic t SE E UE DUI eeteren 174 Sample ON EIN OUP OU MNT 175 TING AMEGEN ipe PE 176 Sample XMEGIENI SUID oie eee eee incu to naa onto carol 177 Handing Relational Gonstrall ii FOIS csse coast dias omega temer EP peto een oi 178 The E Cabe COMMAND arce iras 179 Me DEP Save OL ENa dll rss dica ute o elias 180 Releasing locks om Dependent TablBs acci ias diia rave 181 Edit Dependent Table li dd aisl 182 Edit Dependent Tabla ERE 183 Edit Dependent Table k aer oseese esenea sii ida 184 pice de EET 185 Related Tables Heus T 186 REDM
249. y are split into a number of logical segments each segment being mapped by a unique structure COBOL group or PL1 major minor structure Segmented records begin with a single primary base segment immediately followed by any number of non overlapping secondary segments secondary segment may have the same or different segment record type RTO mapping as other secondary segments in the record e g Record 1 4 Ho 4 ooo Ho q Primary 1 Secondary 1 Secondary 1 Secondary 1 Secondary 1 4 Ho 4 ooo ooo Ho Record 2 4 R R Ho Primary 1 Secondary 1 Secondary 2 Secondary 2 ooo Ho Record 3 Ho 4 HO Primary_2 Secondary_1 Secondary_4 q fo qoe Record 4 4 Ho 4 Ho o Primary 1 Secondary 1 Secondary 2 Secondary 3 T q q q The record data must contain ID fields that identify which segment mapping is to be used to format individual segments of the record ID fields that identify a primary segment mapping must exist within the primary segment data ID fields that identify a secondary segment mapping may exi
250. y be opened at the same time then moved resized as desired making visual comparison of multiple rows beautifully simple File Edit Actions Options Utilities Window SuapList Help cs um Aj Edit table TEST1 SELCTRN_TRACK 1 in tablespace TEST1 SELCICNU H Scroll Csr Top of 1670 Scroll Csr Table TESTi SELCTRN TRRCK 1 39 of 39 RLBUM ID TRACK NUM NAME Li H2 35 3nINT SHINT VARCHAR 126 opt ional EY om qmm eee nee eee rere pr o e n m ijo 090000000 HHH Top of Data ek 96960861 16 Rolling In the Deep lt 69000662 Rumour Has It lt 66666665 Turning Tables lt Baaoaaad Don t You Remenber lt 00000005 Set Fire to the Rain lt 99008086 He Von t Go lt IB2Z CBLA Edit table TEST1 SELCTRN_IRACK 2 in tablespace TEST1 SELC1 100009007 Take It AL1 lt Command Scroll Csr 96980805 I ll Be Vait ing lt Table 96660009 One and Only lt 96606616 Lovesong lt Row 96000665 Flags f Length 267 S LCode 8 60000611 Someone Like You lt 99600012 I Found a Boy Bonus Track lt Ref Colum Type eb pte jee I a 00000013 Adele 21 A Track By Track Interview 1 RLBUH ID ShINT f 18 60000014 Hold n4 TRRCK NUM ShINT 5 96980815 I Found You lt NAHE URRCHRR 126 Set Fire to the Rains 66986616 Hang Loose lt 31 66 66666617 Rise to the sunt blc 96 66966615 You Ain t Alone lt gr 126 60000019 Goin to the Party lt TRACK_ID SMINT 2091 96680626 Heartbreaker PERSISTENT ID CH 16 1 BED 39DS574RRdC5 96666621 Boys Girls lt TOTAL TIHE IN
251. y commands may obviously be 000022 issued from any SELCOPYi command line But since the same or similar 000023 command sequences are executed regularly frequently it becomes 000024 very convenient and efficient to store these commands along with 000025 meaningful comments in an easy to maintain plain text file si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN s8 BoxFuncs s10 UNDO s11 REDO s12 Reset Box Line 1 Col 1 Alt 1 1 3 Size 141 Rec l 32732 FmtzV gt eit E L A WEEE snes Figure 28 SELCOPYi Focus Window 2015 01 19 11 28 28 Training Manual 33 Option 1 Text Edit Deleting a Box Block 1 Deleting a Box Block 1 Place your cursor at column 29 of the first copied line then press the MrkBox key Shift F5 e The first box corner will be hilighted Place your cursor at column 43 of the last copied line then press the Shift F5 e The box block will be hilighted SEEEBPTIZiI TESTI SELCOPYI EHX 32 32 Y SEO Size 141 AE A m File Edit Actions Options Utilities Window SwapList Help w5 wR Command gt Scroll gt Csr lt 1 2 3 4 f 000001 xx TEST1 SELCOPYI CMX xx L 001 2014 07 30 14 39 49 000002 000003 ls 000004 000005 This is your HOME file or personal Command Centre 000006 000007 RT 001 000008 ARTIST 070 000009 001 000010 070 000011 001 000012 PERSISTENT EB m x 016 000013 TRA
252. y entering number or by PF key Scroll Csr gt gt 1 12 of 12 888088888 HHE Field Select ion 69000861 1 Select Exclude Order visible field names PF1 00000002 00000003 Record Informat ion 60000004 2 Configure display of row length SOL Code and flags PF2 00000005 96600006 Exit utilities menu without action PF3 INED 60090907 Scroll Csr 90000905 Shadow line opt ions Top of 2 66660069 Configure display of SHADOVed records PF4 RLBUHR1 R 66686616 90000011 Field options 99900012 Configure display of Var Length and Nullable fields PFS 00090013 Delete focus field RLBUM ID value PF6 o Scroll Csr 60000014 60000915 Vindow opt ions Baaaoaoi6 Open single record z00M view in new window PF 60000017 60000015 21 C6LAJ Edit related table TESTI SELCTRN_TRACK in tablespace TEST1 SELCICNU 8 66666619 Scrolls Csr 96966626 Top of 13 66666621 Table TESTi SELCTRN TRRCK Dependent of TEST1 SELCTRN_ZALBUN Constraint TRRCKRi R 96680622 ALBUN_IOD TRRCK NUM NAME ID OBID COLCOUNT EDPROC UR 96660625 m H2 S45 473 S 3 66686624 ShINT SAINT VARCHAR 126 473 2 96600625 A a te tle 16 00000026 90000000 H Top of Data ek 86800027 00009061 58 All I Really Vant lt RE 00000025 90000002 You Oughta Know 96660629 10090903 Perfect lt 66666036 60000004 Hand In My Pocket lt 66606631 96696665 Right Through You lt 66666066 Forg iven amp 69000067 You Learn 66600065 Head Over Feet lt 9996009 hary Jane lt 96900016 Ironic amp 6666661
253. you should be aware of as well as some additional features that you may enjoy using e Select option 1 to open the Text Edit panel At the Text Edit Entry Panel enter the name of a sample file that was created for you during the Setup Training Material section Type dU PD SELCTRN SAM1 in the Dsn field to specify the PDS library containing the sample COBOL copyboo Type ZZST2CPC in the Member field Press ENTER to edit the library member SELCOPY i TEST1 SELCTRN SRaM1 ZZST2CPC BO F PDS 51 Alt 0 0 0 x m File Edit Actions Options Utilities Window SwapList Help x Cannan Scroll Cer 4 1 4 2 4 3 4 4 4 5 4 B5 4 T 000001 01 ARTIST 000002 UJ RT 001 000003 Q5 ARTIST 070 000004 01 ALBUM 000005 05 RT 001 000006 05 ALBUM 070 000007 01 TRACK 000008 O5 RT 001 000009 da PERSTSTENT SLO 016 000010 05 TRRCK NUM 9 003 000011 05 TRACK ID 9 004 000012 05 NAME 120 000013 TOTAL TTRE 9 007 BINRRY 000014 FILE 5TZE 9 009 BINARY 000015 BIT RATE g 004 BINRRY 000016 SAMPLE RATE 9 005 PRCKED DECIMRL 000017 YEAR 9 004 000018 NORMALIZATION PIC 59 005 PRCKED DECIMRL 000019 DISC NUMBER 9 003 000020 RLBUM RRTIST PIC 041 000021 RELEASE DATE a 000022 Of HEPRRSE TIYT PIC 004 000023 Of RULLER PIC X 001 000024 Or RELEASE MM PIC 002 000025 G7 FILLER PIC x 001 si InsLine s2 DelLine s3 DupLine s4 ACTION sSzMrkBox s6 MrkLine sf SPLTJOIN S8 BoxFuncs s10
254. ype 9 1 e At any primary command prompt type SDO The following example will use the panel to generate an SDO from the ZZST2CPC sample 2 COBOL copybook containing three record types along with their respective record identification criteria Specify the Structure File to Create Type userpfx SELCTRN SDO in the Dsn field where userpfx is your own user prefix Type ZZST2 in the Member field Optionally Specify a Title Activate the option by entering a in the left margin field Type a short up to 30 characters title e g SELCOPYi Training Sample 2 Optionally Specify a Description Activate the option by entering a in the left margin field Type a longer up to 124 characters description e g Training Material Sample Record Collection Structure Multiple Record Types ARTIST ALBUM TRACK gt LUPYY 1 5 ELIG UR Trom GUGU m File Help wS wR Command gt CIS wr 22SGSD01 Lines 1 20 of 20 PFi Help 1 Library Specify source copubook libraries 2 Record tupe Add Delete record types from COBOL PL1 copybooks 3 Replace COBOL Replacing options 4 Create Create Structure SDO in the foreground 5 Batch Create Batch Job Structure File to Create Edit PDS PDSE member Dsn gt USER123 SELCTRN SDO Member Z2ST2 Ae gt SELCOPYZi Training Sampe 2 Z Description Training Material Sample Record Collection Structure Multiple Record Tupes ARTIST ALBUM TRACK Figure 91 SELCOPYi SDE Main Panel 1 20
Download Pdf Manuals
Related Search
Related Contents
Murphy Selectronic Micro-Controller Series 1500 User's Manual User Instruction Manual Precast Concrete Beam Horizontal Lifeline Weider WEEVBE3301 User's Manual VIBRADOR DE CONCRETO Le 17 mars 2015 - XO Construction V7 Pico 2 DVB-T Tuner for Apple devices with Lightning Connector complete Application Note TB6560-3N User Manual - myhobby-CNC CEMENTO INACESA ESPECIAL Copyright © All rights reserved.
Failed to retrieve file