Presentation is loading. Please wait.

Presentation is loading. Please wait.

ADABAS V82 Jim Poole 2010 Adabas V82 by Jim Poole.

Similar presentations


Presentation on theme: "ADABAS V82 Jim Poole 2010 Adabas V82 by Jim Poole."— Presentation transcript:

1 ADABAS V82 Jim Poole 2010 Adabas V82 by Jim Poole

2 2 TOPICS (V8.2.2) 01. COMPATIBILITIES 02. CONVERSION 03. LOWER CASE FIELD NAMES 04. REMOVING UNIQUE DESCRIPTOR FLAG 05. SMF RECORDS 06. ADASAV FILE RANGE (FILE=,FMOVE=) 07. NEW AC EXTENTS 08 DATE/TIME EDIT MASKS DT= 09. TIME ZONE SUPPORT TZ= 10. DST DAYLIGHT SAVINGS INDICATOR 11. SYSTEM FIELDS 12. LOGICAL REMOVAL OF DESCRIPTORS 13. LOGICAL REMOVAL OF FIELDS 14. ADADBS MODFCB FILEREADONLY 15. ADADBS ONLINVERT FNDEF option 16. SVC PERFORMANCE 17. ADARES PLCOPY more plogs 18. ADARUN LOGWARN 19. ADADBS ADDPLOG,DELPLOG 20. ADARES REGENERATE/BACKOUT 21. ADARUN NPLOG/NWORK1 22. WORK I,II,III USE Adabas V82 by Jim Poole

3 3 TOPICS (V8.2.2) 23. ADASEL NEW FEATURES 24. ADAZIN (NEW) MAINT AND SVC INFO 25. ADARUN SRLOG, PLOG SPANNED RECORDS 26. ADARUN PREFSTDD 27. ADADBS FUNCTIONS. FILE LOCK NOT REQUIRED 28. REVIEW OF IN PARALLEL 29. INFOBUFFERSIZE,DEVENTLOG 30. ADARUN LOGVOLIO 31. CLOG DSECT UPDATED FOR Sx ALGORITHM 32. ADAREP PPT 33. ADAREP XML 34. ADAREP CHANGES 35. DDPRINT CHANGES 36. ADARUN V64BIT 37. ADARUN LARGEPAGE 38. ACBX 64 BIT SUPPORT 39. LOB ENHANCEMENTS 40. OP CMD NWCONNECT FOR ENTIRE NETWORK 41. ADAWRK TRANSACTION NUMBERS 42. SHARED HOLD STATUS 43. SMGT CHANGE 44. RI COMMAND CHANGES Adabas V82 by Jim Poole

4 4 01. COMPATIBILITIES WORKS WITH ALL CURRENT V8 SAG PRODUCTS WCP V6.2.1 NAT V4.2.5 SQL V2.4.1 PRD V4.5.2 PAC V2.6.1 AVI V8.1.2 ACE V6.6.4 COR V8.1.2 ? Earlier Versions / ? Other Products ? CA-APAS compatible, apply Z51047 NON-SAGPRODUCTS ADASTRIP >5.0.2P new release CA-APAS exploit features Q SVC, AOS (LATER) EXCEPTIONS PREDICT NEW FEATURES UNKNOWN Adabas V82 by Jim Poole

5 5 01. COMPATIBILITIES (ADASAV) YES: RESTORE/RESTONL FILES=/FMOVE V81 to V82 NO: RESTORE/RESTONL FILES=/FMOVE V82 to V81 (V82 LOADLIB) Adabas V82 by Jim Poole

6 6 02. CONVERSION NOTE 1: V82 SVC IS UP/DOWN COMPATIBLE. V81 SVC IS NOT NOTE 2: V82 AOS IS UP/DOWN COMPATIBLE. V81 AOS IS NOT NOTE 3: V81 ADALINKS ARE UP/DOWN COMPATIBLE NOTE 4: Zapped CA-APAS IS NOT DOWN COMPATIBLE STEPS: 1.INFRASTRUCTURE TO V82: SVC, AOS, CA-APAS 2.CONVERT DATABASES (STANDARD ADACNV) (PLOGS not needed) 1.CONVERT ADALINKS (BATCH, CICS, ETC) Adabas V82 by Jim Poole

7 7 03. LOWER CASE FIELD NAMES 926 field names ( 26 * 36 – 10 )3214 field names ( 52 * 62 – 10 ) PRIOR V82 V82 ADACMP FNDEF='01,AA,10,A,DE,UQ' ADACMP FNDEF='01,Aa,10,A' ADACMP FNDEF='01,aa,10,A' ADACMP FNDEF='01,aA,10,A' WHEREVER FNDEF’s ARE USED (ADACMP, ADADBS, ADAINV Field Description Table I I I I Level I Name I Length I Format I I------I I I 1 I AA I 10 I A I 1 I Aa I 10 I A I 1 I aa I 10 I A I 1 I aA I 10 I A I ADAREP / AOS ADARUN MSGCONSL=UPPER ADARUN MSGDRUCK=MIXED ADARUN MSGPRINT=MIXED ! ADARUNS ! Adabas V82 by Jim Poole

8 8 04,05,06 QUICKIES: NOUQ, SMF, ADASAV FILE Range 04. REMOVING UNIQUE DESCRIPTOR FLAG ADADBS CHANGE FILE=42,FIELD='AA',OPTION=NOUQ (not available in AOS) 05. SMF RECORDS ADARUN SMF=NO/YES (SMF89,SMFDETAIL,SMFINTERVAL,SMFRECNO,SMFSUBSYS) 06. ADASAV FILE RANGE (FILE=,FMOVE=) ADASAV FILE= Adabas V82 by Jim Poole

9 9 07. NEW AC EXTENTS “NEW AC EXTENTS WILL ATTEMPT TO BE CONTIGUOUS” AC 43 DAT UNUSED 0 DAT911 V81 ADAREP AC 43 DAT AC 43 DAT UNUSED 0 DAT911 V81: ADD 1000 RECORDS, RUN ADAREP AC 43 DAT UNUSED 0 DAT911 V82: RELOAD FILE, ADD 1000 RECORDS, RUN ADAREP DOES NOT WORK WITH ADADBS/AOS (STARTRABN=) Adabas V82 by Jim Poole

10 DATE/TIME EDIT MASKS DT= Default Edit Mask or Programming Edit Mask for Adabas Fields. PART OF DB FDT (DFLT) OR CHANGE IN DIRECT CALL FB FORMAT/LEN NAME B P U Description DATE Z'YYYYMMDD' TIME Z'HHIISS' DATETIME Z'YYYYMMDDHHIISS' TIMESTAMP Z'YYYYMMDDHHIISSXXXXXX' NATTIME NATURAL T FORMAT (.1 SECS SINCE YEAR ZERO) NATDATE NATURAL D FORMAT DAYS SINCE YEAR ZERO) UNIXTIME FOR UNIX (SINCE ) XTIMESTAMP FOR UNIX (SINCE ) CURRENT FORMATS Adabas V82 by Jim Poole

11 DATE/TIME EDIT MASKS DT= TO CREATE: ADACMP FNDEF='01,D1,20,U,DT=E(TIMESTAMP)' ADACMP FNDEF='01,D2,14,U,DT=E(DATETIME)' ADACMP FNDEF='01,D3,06,B,DT=E(DATETIME)' ADADBS NEWFIELD FILE=42, FNDEF='01,Z3,20,U,DT=E(TIMESTAMP)' STORED IN UTC (UNIVERSAL TIME CODE) FORMAT (GMT) NOTE: PREDICT 4.6 DOES NOT SUPPORT! Adabas V82 by Jim Poole

12 DATE/TIME EDIT MASKS DT= DATE/TIME IN PROGRAM :06: '01,D1,20,U,DT=E(TIMESTAMP)' PROGRAM FB=RETURNS RB= D D1,08,U,E(DATE) D1,06,U,E(TIME) D1,14,U,E(DATETIME) D1,13,U,E(NATTIME) D1,07,U,E(NATDATE) D1,10,U,E(UNIXTIME) D1,18,U,E(XTIMESTAMP) Adabas V82 by Jim Poole

13 DATE/TIME EDIT MASKS DT= 1.TO USE EDIT MASKS IN FB, FIELD MUST BE DEFINED WITH DT= 3. FOR FULL DETAIL, SEE NEW MANUAL: "Date-Time Edit Masks Reference“ NOTE: Conversions Between Date-Time Representations (READ / UPDATE) 2. TRUNCATION/FILLING MAY OCCUR BETWEEN MASKS EG. '01,D2,14,U,DT=E(DATETIME)‘ FB=D2,20,U,E(TIMESTAMP). RB= ELSE RspCode 41 Adabas V82 by Jim Poole

14 DATE/TIME EDIT MASKS DT= TO ADD/REMOVE IF '01,D1,20,U,DT=E(TIMESTAMP)‘ REMOVE WITH: ADADBS CHANGE FILE=43,FNDEF='01,D1,20,U' IF '01,D1,20,U‘ ADD WITH: ADADBS CHANGE FILE=43, FNDEF='01,D1,20,U,DT=E(TIMESTAMP)' 1. CANNOT CHANGE FROM ONE EDIT MASK TO ANOTHER 2. MASK MUST HAVE CORRECT FORMAT/LENGTH. ELSE RspCode 55 Adabas V82 by Jim Poole

15 TIME ZONE SUPPORT TZ= “ENHANCE EDIT MASK ON DT= FIELDS” UTC/GMT ADABAS LOCAL TIME NUC DATETIME TIMESTAMP NATTIME UNIXTIME XTIMESTAMP FDT OPTION FOR TZ= FIELDS Adabas V82 by Jim Poole

16 TIME ZONE SUPPORT TZ= ZONEINFO or OLSON DATABASE America/Chicago, AMECHICA,, US/Central America/Denver, AMEDENVE, America/Shiprock, Navajo US/Mountain America/Los_Angeles, AMELOSAN,, US/Pacific America/New_York, AMENEWYO,, US/Eastern SEE ADABAS SOURCE (TZINFO) America/Indiana/Indianapolis, AMEININD,, America/Fort_Wayne America America/Indiana/Knox, AMEINKNO,, America/Knox_IN US/Indiana-Starke America/Indiana/Marengo, AMEINMAR,, America/Indiana/Petersburg, AMEINPET,, America/Indiana/Tell_City, AMEINTEL,, America/Indiana/Vevay, AMEINVEV,, America/Indiana/Vincennes, AMEINVIN,, America/Indiana/Winamac, AMEINWIN,, Adabas V82 by Jim Poole

17 TIME ZONE SUPPORT TZ= //STEPLIB DD //TZINFO DD DISP=SHR,DSN=TZ.LOADLIB //DDCARD DD* ADARUN MSGDRUCK=MIXED ADANUC / ADACMP JCL REQUIREMENTS RECORD-BUFFER= TZ='America/New_York' USER OP en COMMAND NOTE: TIME ZONES ARE CASE SENSITIVE NOTE: USE OF QUOTES Adabas V82 by Jim Poole

18 TIME ZONE SUPPORT TZ= (examples) ADACMP TZ=‘America/Indiana/Vevay ' ADACMP FNDEF= ADACMP FNDEF='01,D2,14,U,DT=E(DATETIME),TZ‘ ADACMP FNDEF= ADACMP ( 0 RECORDS or X RECORDS (note length,format,DT mask) ADADBS NEWFIELD FILE=43, FNDEF='01,D4,11,P,DT=E(TIMESTAMP),TZ' ADADBS NEWFIELD (NO //TZINFO, NO TZ= needed) NOTE: PREDICT 4.6 DOES NOT SUPPORT! Adabas V82 by Jim Poole

19 TIME ZONE SUPPORT TZ= (ADAREP (DT=) Field Description Table I I I I Level I Name I Length I Format I Options I I I I I------I I I I I I I 1 I D1 I 14 I U I DT=E(DATE) 1 I D2 I 14 I U I DT=E(DATETIME),TZ 1 I D3 I 14 I U I DT=E(DATETIME) Adabas V82 by Jim Poole

20 TIME ZONE SUPPORT TZ= D2,14,U,DT=E(DATETIME),TZ UTC/GMT YYYYMMDDHHMMSS OPen RB with L1 RB=C2,8,U,E(TIME) TZ='America/Chicago‘ TZ='America/New_York‘ TZ='America/Los_Angeles‘ (NOTE LOWER CASE) Adabas V82 by Jim Poole

21 TIME ZONE SUPPORT TZ= (Response Codes) Accessing a field option TZ but no time zone was specified in the user session. Issue the OP command with TZ= Rc 55 sub 30 Time zone not found in ADAZON directory. Rc 50 sub 31 Date-time edit mask (E(date-time-mask)) notation is only permitted for a field defined with a date-time edit mask.. Rc 41 sub 30 Adabas V82 by Jim Poole

22 TIME ZONE SUPPORT TZ= (Final Thoughts) 1. There is no default timezone for a file. OPen is required (with TZ=) 2. Natural Implementation? 3. Change in timezones, change in file. 4. TZ flag can only be added/removed if File empty: ADADBS CHANGE FILE=43,FNDEF='01,D2,14,U,DT=E(DATETIME)‘ ADADBS CHANGE FILE=43,FNDEF='01,D2,14,U,DT=E(DATETIME),TZ' 6. CPU Overhead. 5. UQE Open’d with TZ is not deleted if TNAE exceeded. Adabas V82 by Jim Poole

23 23 CPU DT= vs TZ DO 400K L1’s against A. Field B. Field with DT= C. Field with DT=, TZ (no IO, no overlap) RUN A B C 7%. Increase in CPU for field access Adabas V82 by Jim Poole

24 DST DAYLIGHT SAVINGS INDICATOR ADACMP COMPRESS, DECOMPRESS FOR TZ FIELDS ADACMP TZ='America/New_York',DST “The two-byte daylight savings indicator directly follows the date-time value in uncompressed input and specifies the hexadecimal value of the daylight saving time offset from standard time in seconds.” X’0000’ OR X’0E10’ (DECIMAL 3600) Adabas V82 by Jim Poole

25 SYSTEM FIELDS Create Adabas fields on a file that are automatically updated by Adabas with respect to inserts (N1,N2) and updates (A1). Note that deletes (E1) are not recorded (if the record is deleted then so is the Adabas system field). CONCEPT AN ADABAS FIELD BUT ONLY THE NUC CAN UPDATE IT Adabas V82 by Jim Poole

26 SYSTEM FIELDS (RULES) 1. IF USER TRIES TO UPDATE, NOTHING. (NO RESPONSE CODE) 2.ADABAS UPDATES CONTENTS WHEN COMMAND (N1,N2,A1) IS EXECUTED, NOT AT ET 3.IF THE UPDATES ARE BACKED OUT (TIMEOUT,BT), CONTENTS ARE BACKED OUT. 4. FIELDS ARE DEFINED AS 'SY' IN THE FDT AND ADAREP. 5. A CR FLAG INDICATES FIELD IS ONLY CHANGED WHEN ADDED. 6. NON-CR SY FIELDS RECORD BOTH UPDATES AND INSERTS. Adabas V82 by Jim Poole

27 SYSTEM FIELDS (RULES) 7. NON-CR SY FIELDS MUST BE DEFINED AS MU. (NOT A PE) 8. CR SY FIELDS CAN NOT BE DEFINED AS MU 9. SY FIELDS CAN BE DESCRIPTORS, PART OF DESCRIPTORS, ETC. 10. NON-CR SY FIELDS ARE MAINTAINED IN THE MU IN LIFO FASHION. 11. OCCURANCE 1 IS THE MOST RECENT UPDATE. 12. AS EACH UPDATE OCCURS, THE OTHER VALUES ARE MOVED TO N THE MAX NUMBER OF MU OCCURANCES IS DETERMINED BY SYFMAXUV. MAX=20 (IN FCB) Adabas V82 by Jim Poole

28 SYSTEM FIELDS (TYPES OF) JOBNAME 8-BYTE JOBNAME OF USER THAT DID A1,N1,N2. OPUSER 8-BYTE ETID (FROM ADDS1 OF OP COMMAND) SESSIONID 28-BYTE UQE ID SESSIONUSER LAST 8 BYTES OF 28B UQE ID (EG. TERM-ID OR CICS TRANID) TIME * UTC (GMT) OF A1,N1,N2. * TIME CAN USE DT= and TZ attributes Adabas V82 by Jim Poole

29 SYSTEM FIELDS (CREATING) ADACMP FNDEF='01,C1,08,A,CR,SY=JOBNAME' ADACMP FNDEF='01,C2,14,U,CR,SY=TIME,DT=E(DATETIME)' ADACMP FNDEF='01,S1,08,A,MU,SY=JOBNAME' ADACMP FNDEF='01,S2,14,U,MU,SY=TIME,DT=E(DATETIME)' * ADACMP FNDEF='01,S3,08,A,MU,SY=OPUSER' ADACMP FNDEF='01,S4,28,A,MU,SY=SESSIONID' ADACMP FNDEF='01,S5,08,A,MU,SY=SESSIONUSER' ADACMP FNDEF='01,S6,20,U,MU,SY=TIME,DT=E(TIMESTAMP)' ADACMP FNDEF='01,S7,13,U,MU,SY=TIME,DT=E(NATTIME)' ADACMP FNDEF='01,S8,08,U,MU,SY=TIME,DT=E(DATE)' *ADACMP FNDEF='01,XX,20,U,MU,SY=TIME,DT=E(TIMESTAMP),TZ' ADACMP COMPRESS or ADADBS NEWFIELD FNDEF ADALOD ADALOD SYFMAXUV=1 (dlft=1, RANGE: 1 – 20 ) Adabas V82 by Jim Poole

30 SYSTEM FIELDS (ADAREP) MAX-ISN formatted =1,377 System Field Max = 1 : : : System Fields Yes : : : Level I Name I Length I Format I Options I------I I I I C1 I 8 I A I SY=JOBNAME,CR 1 I C2 I 14 I U I DT=E(DATETIME) I I I I SY=TIME,CR 1 I S1 I 8 I A I MU,SY=JOBNAME 1 I S2 I 14 I U I MU,DT=E(DATETIME) I I I I SY=TIME 1 I S3 I 8 I A I MU,SY=OPUSER 1 I S4 I 28 I A I MU,SY=SESSIONID 1 I S5 I 8 I A I MU,SY=SESSIONUSER 1 I S6 I 20 I U I MU,DT=E(TIMESTAMP) I I I I SY=TIME 1 I S7 I 13 I U I MU,DT=E(NATTIME) I I I I SY=TIME 1 I S8 I 8 I U I MU,DT=E(DATE),SY=TIME Adabas V82 by Jim Poole

31 SYSTEM FIELDS C1 CR,JOBNAME C2 CR,DATETIME S1 JOBNAME S2 DATETIME S5 SESSIONUSER S6 TIMESTAMP S7 NATTIME S8 DATE FLD TYPE TESTJOB TESTJOB1 CICSPRG CIC34512 TSU A1 (UPDATE) TESTJOB TESTJOB TSU N1 (STORE) Adabas V82 by Jim Poole

32 SYSTEM FIELDS ADADBS MODFCB SYFMAXUV= (NOTE: OCCURANCES NOT REDUCED UNTIL UPDATE OCCURS) CHANGING THE MU OCCURANCES HOW TO REMOVE A SYSTEM FIELD? 1.ADACMP DECOMPRESS 2.ADACMP COMPRESS 3.LOAD (PLOG/REGENERATE SOLUTIONS) Adabas V82 by Jim Poole

33 SYSTEM FIELDS (final notes) 1.IF UPDATE WITH NO DATA CHANGE, SY FIELDS STILL UPDATED 2. IF UPDATE A SY FIELD ONLY, SY FIELDS STILL UPDATED 3. LOGICAL FIELD DELETE (DELFN) STOPS SY FIELD UPDATES 4. PREDICT 4.6 DOES NOT SUPPORT! Adabas V82 by Jim Poole

34 LOGICAL REMOVAL OF DESCRIPTORS MARK DESCRIPTORS FOR EVENTUAL REMOVAL BUT QUICK BACKOUT PLAN “REMOVE A DESCRIPTOR FROM APPLICATION USE” WHY DESCRIPTOR INVERTED LIST CONTINUES TO BE UPDATED FINE PRINT Adabas V82 by Jim Poole

35 LOGICAL REMOVAL OF DESCRIPTORS (Example) A. ADADBS DELDE FILE=16,DESCRIPTOR=AE B. READ LOGICAL BY AE (OR FIND) RSP.CODE 39 (not documented) C. UPDATE FIELD AE D. ADADBS UNDELDE FILE=16,DESCRIPTOR=AE E. READ LOGICAL OR FIND USES UPDATED VALUE Adabas V82 by Jim Poole

36 LOGICAL REMOVAL OF DESCRIPTORS (Example) F File maintenance L Logically delete/undel descriptr 2 I AE I 20 I A I DE,DL ADAREP FDT ADADBS DELDE FILE=16,DESCRIPTOR=AE ADADBS UNDELDE FILE=16,DESCRIPTOR=AE ADADBS AOS Adabas V82 by Jim Poole

37 LOGICAL REMOVAL OF FIELDS “REMOVE A FIELD FROM APPLICATION USE (Rsp Code 41)” WHY? ADADBS DELFN FILE=16,FIELDLIST='AE‘ ADADBS DELFN FILE=99,FIELDLIST='AA,AB,AC‘ ADADBS UNDELFN FILE=16,FIELDLIST='AC' Eg. 4 I AC I 20 I A I NU I I I I IDELETED FIELD I ADAREP: F File maintenance C Define/modify FDT F Delete field from FDT G Undelete field from FDT AOS Adabas V82 by Jim Poole

38 LOGICAL REMOVAL OF FIELDS (notes) a.CANNOT REMOVE A DESCRIPTOR OR A PARENT FIELD FOR A DESCRIPTOR b. IF FIELD IS A GROUP, ALL FIELDS MARKED AS DELETED c.IF FIELD WITHIN A GROUP, FORMAT-BUFFER=grpname WILL STILL RETURN FIELD d. IF FIELD IS A SYSTEM FIELD, ADABAS DOES NOT UPDATE FIELD Adabas V82 by Jim Poole

39 FILE READONLY. ADADBS MODFCB FILE=42,FILEREADONLY=YES (or NO) AOS: F File maintenance M Modify file parameters Filereadonly OFF ADAREP: READONLY-MODE No USER: Rsp Code 17 Sub 17 Adabas V82 by Jim Poole

40 40 15,16,17: ONLINVERT FNDEF, SVC Performance, PLCOPY 15. ADADBS ONLINVERT FILE=201,FNDEF='01,NT,7,A,NU' (Available in AOS) 16. IMPROVED SVC PERFORMANCE UNDER V ADARES PLCOPY CALLS UEX(2 OR 12) IF MORE PLOGS TO COPY Adabas V82 by Jim Poole

41 ADARUN LOGWARN ADARUN LOGWARN = 0 – (DFLT = 0 ) ADANP :41:00 CAUTION: DDPLOGR1 NOT YET COPIED ADANP :41:19 CAUTION: DDPLOGR1 NOT YET COPIED ADANP :41:39 CAUTION: DDPLOGR1 NOT YET COPIED ADANP :41:59 CAUTION: DDPLOGR1 NOT YET COPIED ADANP :42:16 PLOG WARNING NO LONGER IN EFFECT Eg. LOGWARN=20 Adabas V82 by Jim Poole

42 ADADBS ADDPLOG,DELPLOG //DDPLOGR1 DD DISP=SHR,DSN=AD.P.ADA169.PLOG1 //DDPLOGR2 DD DISP=SHR,DSN=AD.P.ADA169.PLOG2 //DDPLOGR3 DD DISP=SHR,DSN=AD.P.ADA169.PLOG3 //DDPLOGR4 DD DISP=SHR,DSN=AD.P.ADA169.PLOG4 //DDPLOGR5 DD DISP=SHR,DSN=AD.P.ADA169.PLOG5 //DDPLOGR6 DD DISP=SHR,DSN=AD.P.ADA169.PLOG6 //DDCARD DD * : : : ADARUN NPLOG=2 Eg. NUC JCL AS PLOGS ARE NEEDED (OR NOT): ADADBS ADDPLOG NUMBER=3 Or ADADBS ADDPLOG NUMBER=3 (not tested) O Session opercoms A Allocate/Deallocate CLOG/PLOG AOS: Adabas V82 by Jim Poole

43 ADARES REGENERATE/BACKOUT RECORD COUNTS I File Number I Data Record Updates I I I I I 1 I 4 I I 43 I I Eg. ADARES REGENERATE Adabas V82 by Jim Poole

44 44 DEFAULT FOR WORK AND PLOGS: 1 BLOCK 1 IO 21. ADARUN NPLOG/NWORK1 V82 OPTION: 1 IO FOR X BLOCKS A. HIGH UPDATE JOB(S) B. UPDATES DURING ADASAV SAVE C. ONLINE INVERTS, ONLINE ORDS D. CONCURRENT Sx (FIND) PROCESSING E. COMBINATIONS OF THE ABOVE POTENTIAL WORK/PLOG PERFORMANCE BOTTLENECKS OLD SOLUTIONS: WORK.CACHE / BLOCKSIZE SPLIT.WORK / MULTIPLE WORK(S) Adabas V82 by Jim Poole

45 45 ADARUN NPLOGBUFFERS = 1 - 2,147,483,687 ADARUN NWORK1BUFFERS = 1 - 2,147,483, ADARUN NPLOG/NWORK1 (ADARUN) 1. DEFAULT = 1 (1 IO PER BLOCK) 2. REQUIRES LFIOP /= 0 3. IF ADARUN V64BIT=YES Then ABOVE 2G BAR 4. MEMORY SPACE = buffer.count X blocksize Adabas V82 by Jim Poole

46 ADARUN NPLOG/NWORK1 (Example) Eg. ADARUN = 1 PLOG PROTECTION BLOCKS 2,962 PLOG PROTECTION I/OS 2,962 WORK1 PROTECTION BLOCKS 2,927 WORK1 PROTECTION I/OS 2,927 : : : AREA ADARUN PARM HIGH-WATER-MARK : : : PLOG-IO B NPLOGB= 1 1 (100 %) WRK1-IO B NWORK1= 1 1 (100 %) SHUTDOWN DDPRINT: DRES AOS DSTAT Adabas V82 by Jim Poole

47 ADARUN NPLOG/NWORK1 (Example) Eg. NPLOGBUFFERS=100 NWORK1BUFFERS=100 PLOG PROTECTION BLOCKS 37,922 PLOG PROTECTION I/OS 22,846 WORK1 PROTECTION BLOCKS 37,843 WORK1 PROTECTION I/OS 22,733 : : : AREA ADARUN PARM HIGH-WATER-MARK : : : PLOG-IO B NPLOGB= ( 37 %) WRK1-IO B NWORK1= ( 38 %) SHUTDOWN DDPRINT: 40% FEWER IO’S 572K PER WORK OR PLOG BUFFER AREA (3390) Adabas V82 by Jim Poole

48 ADARUN NPLOG/NWORK1 (Performance) TEST: BATCH JOB DURATION (HIGH UPDATE)  BUF=1  BUF=40  BUF=10 Adabas V82 by Jim Poole

49 WORK I,II,III USE DDPRINT SHUTDOWN, DRES, AOS AREA ADARUN PARM HIGH-WATER-MARK WORK PART1 LP = ( 0 %) WORK PART2 LWKP2= ( 0 %) WORK PART3 -- = ( 0 %) ( WORK1 WRAP STILL AT 25%?) Adabas V82 by Jim Poole

50 ADASEL NEW FEATURES //DDKARTE DD * TEST test syntax but do not execute (must be first line) FDTINPUT Use an alternate FDT to read records (in case of file changes) see manual for detail SET GLOBALS specify before 1st SELECT, can repeat this line Many new options for spanned records and various SEL errors (read manual) Adabas V82 by Jim Poole

51 ADAZIN (NEW) MAINT AND SVC INFO “ZAP AND SM INFO FOR LOADLIB, SVC INFO (see old AOS function)” 1. //DDZIN DD DSN=loadlib 2. STEPLIB or JOBLIB 3. LPA or LINKLIST INPUT LOADLIB: ADAZIN - ALL MODULES, ALL SVC’S ADAZIN MOD=‘mod1,mod2,mod3’ - SPECIFIC MODS, CAN REPEAT ADAZIN MODRANGE=‘mod1,mod2’ - RANGE ADAZIN NOMOD - NO MODULES ADAZIN NUMMODS=x - LIMIT TO X MODULES ADAZIN SVC=svc1,svc2,svc3 - SPECIFIC SVC’S ADAZIN NOSVC - NO SVC’S ADAZIN SVCRANGE=svca,svcb - RANGE DDKARTE: Adabas V82 by Jim Poole

52 ADAZIN (NEW) MAINT AND SVC INFO (Eg.) ADANC1 Date , Version 8.2, SM 2 Zaps AN AN AN ADASAV Date , Version 8.2, SM 2 Zaps AU AU AU AU SVC 237 SVCMVS Date , Version 8.1, SM 4 SVCCLU Date , Version 8.1, SM 4 SVC 238 SVCMVS Date , Version 8.2, SM 2 Zaps AO SVCCLU Date , Version 8.2, SM 2 Zaps AI SAFSVC Date , Version 8.2, SM 2 DDKARTE: ADAZIN MOD='ADANC1,ADASAV' DDDRUCK: Adabas V82 by Jim Poole

53 ADARUN SRLOG, PLOG SPANNED RECORDS (review) PLOG ALWAYS CONTAINS PRIMARY RECORD (BI / AI) PLOG ONLY CONTAINS SECONDARY RECS IF UPDATED PLOG PRIMARYSECONDARY-1SECONDARY-2 UPD: BI/AI PRI BI/AI SEC2 PRIMARYSECONDARY-1SECONDARY-2 UPD: BI/AI PRI BI/AI SEC1 UPD: PRIMARYSECONDARY-1SECONDARY-2 BI/AI PRI Adabas V82 by Jim Poole

54 ADARUN SRLOG, PLOG SPANNED RECORDS (V82) ADARUN SRLOG= ALL / UPD / PART (NOT IN ADADBS,AOS) (not tested) ALL -entire spanned record written to PLOG UPD -(dflt) only modified spanned segments written PART -all segments up to and including modified segment are written From manual (Operations, ADARUN SRLOG): “Standalone secondary spanned records encountered in the PLOG will be rejected from further processing. A warning message is issued. Likewise, decompression of a partial field at the end of a spanned record will be skipped. All fields up to the partial field will be decompressed and the remaining fields on the spanned record are not available. “ Adabas V82 by Jim Poole

55 ADARUN PREFSTDD “WRITE MULTIFETCH STATS ON CLOSE COMMAND” LIMITED USE: ONLY FOR BATCH JOBS USING ADAMLF (recommend MLF in Program) //MYNAME * SYSOUT or LRECL>=80 RECFM=FB //DDCARD DD * ADARUN PREFETCH=YES ADARUN PREFETCH=YES,PREFSBL=15000,PREFNREC=100 ADARUN PREFSTDD=MYNAME *LIMITED TO 7 CHAR. NAME JCL: Adabas V82 by Jim Poole

56 ADARUN PREFSTDD (Eg.) ADAML ADAML1 + ADAML1 + A D A M L F S T A T I S T I C S ADAML1 + ADAML1 + Percentage of PREFTBL used : ADAML1 + Number of calls to ADAMLF : 1918 ADAML1 + Number of cmds to ADABAS : 56 ADAML1 + Number of cmds returned from ADAMLF : 1875 ADAML1 + Number of over reads : 2 ADAML1 + ADAML //MYNAME Adabas V82 by Jim Poole

57 ADADBS FUNCTIONS. FILE LOCK NOT REQUIRED ALLOCATE/DEALLOCATE DSREUSE/ISNREUSE RELEASE RENAME REVIEW USER FILE USE ==> FROM MANUAL “ADADBS”: “The ADADBS DSREUSE, ISNREUSE, NEWFIELD, RELEASE DE, and RENAME utility functions do not need to lock the file for their use; these functions can perform their processing in parallel with active users. This means that you do not need to set a file in read- only status (FILEREADONLY=YES) if you will be performing these other ADADBS functions only.” Adabas V82 by Jim Poole

58 REVIEW OF IN PARALLEL FUNCTION AOS ACC/UPD user DBS ACC/UPD user ALLOCATEFAILS DEALLOCATEFAILS DSREUSEin parallelworks ISNREUSEin parallelworks RELEASEin parallelworks RENAMEFAILSworks CHANGE LENGTHFAILS MODFCB ASSOPFACFAILSworks MODFCB DATAPFACFAILSworks MODFCB MAXDS,NI,UI,ACFAILSworks MODFCB MAXRECLFAILSworks MODFCB PGMREFRESHFAILSworks NEWFIELDin parallelworks MUPEXFAILS RECORD SPANNINGFAILS Adabas V82 by Jim Poole

59 REVIEW OF IN PARALLEL (NEW TO V82) FUNCTION AOS ACC/UPD user DBS ACC/UPD user CHANGE OPTION=NOUQN/Aworks DELDE,UNDELDEFAILS DELFN,UNDELFNFAILS MODFCB FILEREADONLYFAILS MODFCB SYFMAXUVN/Aworks Adabas V82 by Jim Poole

60 INFOBUFFERSIZE,DEVENTLOG “V822 HANDLES RSP.CODE 145 ONLY” THE PROBLEM: Eg. USER A HAS RETURN OPTION (CO1=R or NATURAL WH=OFF) 1.REQUESTS RECORD X ON HOLD 2.RECEIVE RESPONSE CODE WHO IS HOLDING RECORD? (LONG SCAN OF HOLD QUEUE) WHO WAS HOLDING RECORD? Adabas V82 by Jim Poole

61 INFOBUFFERSIZE,DEVENTLOG SOLUTION DDCARD: ADARUN INFOBUFFERSIZE=0 *NOT USED ADARUN INFOBUFFERSIZE=1024-2G *RANGE ADARUN INFOBUFFERSIZE= *EXAMPLE AFTER 10,000 EACH ENTRY IS ABOUT bytes EG. INFOBUFFERSIZE=50000 * 50K EQUALS ABOUT 390 ENTRIES Adabas V82 by Jim Poole

62 INFOBUFFERSIZE,DEVENTLOG (Display) ADADBS ADADBS DEVENTLOG AOS A Session monitoring L Display event log buffer Adabas V82 by Jim Poole

63 INFOBUFFERSIZE,DEVENTLOG (Eg.) ADADBS DEVENTLOG: E V E N T L O G ================= :05:11 RSP-145 occurred for FNR=241 / ISN=2 --- User who received the RSP-145: UID='TSU38882', ETID=' ', Job=$ZM6WH X'0002FEBE F66B80E3E2E4…' --- User who was holding the data record: UID='TSU38880', ETID=' ', Job=RZM6WH, NUCID=0 X'0002FEBE F66D00E3E2E4…‘ :05:20 RSP-145 occurred for FNR=241 / ISN=3 --- User who received the RSP-145: UID='TSU38882', ETID=' ', Job=$ZM6WH X'0002FEBE F66B80E3E2E4F3F…' --- User who was holding the data record: UID='TSU38880', ETID=' ', Job=RZM6WH, NUCID=0 X'0002FEBE F66D00E3E2E4F3F8…' Adabas V82 by Jim Poole

64 INFOBUFFERSIZE,DEVENTLOG (Program) “USER CAN READ EVENTLOG FOR FOR THEIR UQE (ONLY)” 1,AA,2,B,FI Event type=X ,AB,2,B,FI Event sub type=X ,AC,2,B,FI DBID 1,AD,2,B,FI NUCID 1,AE,4,B,FI File Number 1,AF,2,B,FI Response Code=145 1,AG,2,B,FI Subcode=X ,AH,8,B,FI ISN 1,AT,8,B,FI Time of Event (STCK value) 1,AI,8,A,FI Job Name of affected user 1,AJ,28,A,FI,NV User ID of affected user 1,AK,8,A,FI ET ID of affected user 1,AM,8,A,FI Job Name of the causer 1,AN,28,A,FI,NV User ID of the causer 1,AO,8,A,FI ET ID of the causer EVENTLOG FDT: CMD: L2 ISN: 0 FNR: -4 X’FFFC’  COMMAND REQS (ACBX) Adabas V82 by Jim Poole

65 INFOBUFFERSIZE,DEVENTLOG (Notes) a. CLOGLAYOUT=8 NEW RECORD TYPE X’000D’ FOR RC 145 (not tested) b. PERFORMANCE COST OF? None observed RAN TESTS WITH: 1M L4’S COP1=R EVENTLOG=0 EVENTLOG=10,000 EVENTLOG=1,000,000 Adabas V82 by Jim Poole

66 ADARUN LOGVOLIO ADARUN LOGIO=YES 1B FLAG: ASSO/DATA/WORK READ/WRITE 4B RABN (not tested) V8.1 ADARUN LOGIO=YES ADARUN LOGVOLIO=YES *REQUIRES LOGIO=YES 1B FLAG: ASSO/DATA/WORK READ/WRITE 4B RABN 6B VOLSER V8.2 Adabas V82 by Jim Poole

67 CLOG DSECT UPDATED FOR Sx ALGORITHM LORSTYPE DS XL1 TYPE OF SEARCH/SEARCH ALGORITHM LORQ01 EQU X'01' ALGORITHM-1 LORQ02 EQU X'02' ALGORITHM-2 LORQ03 EQU X'03' ALGORITHM-3 LORQ04 EQU X'04' ALGORITHM-4 LORQ05 EQU X'05' MIXED SEARCH (DE-+ NON-DE) LORQ05 EQU X'05' NON-DE-SEARCH V822 LORQ80 EQU X'80' NON-DE-SEARCH LORQ06 EQU X'06' MIXED SEARCH (DE-+ NON-DE) V822 ADABAS SOURCE LIB LOREC (CLOGLAYOUT=5) Adabas V82 by Jim Poole

68 CLOG DSECT UPDATED FOR Sx ALGORITHM LOX1STYP DS XL1 +15 TYPE OF SEARCH/SEARCH ALGORITHM LOX1Q01 EQU X'01' ALGORITHM-1 LOX1Q02 EQU X'02' ALGORITHM-2 LOX1Q03 EQU X'03' ALGORITHM-3 LOX1Q04 EQU X'04' ALGORITHM-4 LOX1Q05 EQU X'05' MIXED SEARCH (DE-+ NON-DE) LOX1Q05 EQU X'05' NON-DE-SEARCH V822 LOX1Q80 EQU X'80' NON-DE-SEARCH LOX1Q06 EQU X'06' MIXED SEARCH (DE-+ NON-DE) V822 ADABAS SOURCE LIB LORECX (CLOGLAYOUT=8) *FOR BOTH, SEE CA-APAS SEARCH-ALGORITHM ?? WHERE IS ALGORITHM 7 ?? ANSWER: PER SAG, ROLLED IN WITH ALGORITHM 1 !! Adabas V82 by Jim Poole

69 ADAREP PPT ******************* * * Contents of PPT * :31:47 * ******************* PPT RABN Range = 1325 to 1356 PPT RABN = 1325 NUCID = 0000 Session Status = NUCLEUS ACTIVE OR FAILED (WORK NONEMPTY) PLOG(S) NOT YET COPIED Number of entries = 3 Last Session number = 003D Last PLOG block written = 245 NOT INITIALIZED Next block number = 0 PPT Entry number = 1 Dataset = /AD/P/ADA169/WORK/ Dataset Type = DDWORK1 PPT Entry number = 2 Dataset = /AD/P/ADA169/PLOG1/ Dataset Type = DDPLOGR1 PPT Entry number = 3 Dataset = /AD/P/ADA169/PLOG2/ Dataset Type = DDPLOGR2 (Default) OPTION: ADAREP NOPPT Adabas V82 by Jim Poole

70 ADAREP XML REPORT OUTPUT='XML' :59:11 etc OPTION: ADAREP OUTPUT='XML' //DDXMLR1 : (SEE MANUAL FOR CODE-PAGE,ASCII, ETC) JCL: //DDXMLR1 *ADAREP OUTPUT VB LRECL=512 //DDXMLR1 *CPLIST OUTPUT VB LRECL=512 Adabas V82 by Jim Poole

71 ADAREP CHANGES (Review) PPT SECTION (IF NOPPT NOT SPECIFIED) FROM TOP TO BOTTOM * Contents of Database 169 ***************************** File Name Loaded TOP-ISN MAX-ISN EXTENTS N U A AC2 D 1 CHECKPOINT TRIGGER EMPLOYEES Adabas V82 by Jim Poole

72 ADAREP CHANGES (Review) FROM TOP TO BOTTOM * File Space Allocations * ************************** File Name Alloc.: NI UI AC AC2 Data/Cyl Unused: 1 CHECKPOINT / /0 5 TRIGGER / /1 Adabas V82 by Jim Poole

73 ADAREP CHANGES (Review) FILE DETAIL MAX-ISN formatted = 6,889 : : : READONLY-MODE No System Fields No FDT (see details elsewhere in presentation) 1.LOWER CASE FIELD NAMES 2.DT DATE.TIME INDICATOR 3.TZ TIME ZONE 4.SYSTEM FIELDS 5.LOGICALLY DELETED DESCRIPTORS 6.LOGICALLY DELETED FIELDS Adabas V82 by Jim Poole

74 DDPRINT CHANGES (Review) FROM TOP TO BOTTOM PLOG PROTECTION BLOCKS 9 PLOG PROTECTION I/OS 9 WORK1 PROTECTION BLOCKS 13 WORK1 PROTECTION I/OS 13 Adabas V82 by Jim Poole

75 DDPRINT CHANGES (Review) THE ACTUAL H I G H - W A T E R - M A R K S FOR THE MAJOR POOLS (EXCEPT BUFFERPOOL) AREA ADARUN PARM HIGH-WATER-MARK AB -POOL NAB= ( 0 %) CQ -POOL NC = ( 0 %) DUQ -POOL LDE= ( 0 %) FI -POOL LFP= ( 0 %) HQ -POOL NH = ( 0 %) PLOG-IO B NPLOGB= 1 1 (100 %) SC -POOL LCP= ( 0 %) TBI -POOL LI = ( 0 %) TBS -POOL LQ = ( 0 %) UQ -POOL NU = ( 0 %) UQF -POOL NU = ( 0 %) WRK1-IO B NWORK1= 1 1 (100 %) WORK-POOL LWP= ( 1 %) WORK PART1 LP = ( 0 %) WORK PART2 LWKP2= ( 0 %) WORK PART3 -- = ( 0 %) XID -POOL XID= ( 0 %) Adabas V82 by Jim Poole

76 76 36,37. ADARUN V64BIT, ADARUN LARGEPAGE ADARUN V64BIT=YES *DFLT=NO ABOVE 2G BAR: LFIOP= NPLOGBUFFERS= NWORK1BUFFERS= ADARUN LARGEPAGE=YES *DFLT=NO USE 1MB PAGES (REQUIRES V64BIT=YES) NO PERFORMANCE GAIN (MEMORY UTILIZATION) (tested) Adabas V82 by Jim Poole

77 NOT STUDIED NOR TESTED FEATURES 38. ACBX 64 BIT SUPPORT (STILL NOT ACBX FOR MULTIFETCH) 39. LOB ENHANCEMENTS 40. OP CMD NWCONNECT FOR ENTIRE NETWORK 41. ADAWRK TRANSACTION NUMBERS 42. SHARED HOLD STATUS (REQUIRES DIRECT CALLS) 43. SMGT CHANGE Adabas V82 by Jim Poole

78 RI COMMAND CHANGES. THE RI COMMAND NO LONGER RELEASES THE ISN(S) UNCONDITIONALLY. IF THE AFFECTED ISN(S) HAVE BEEN UPDATED, THEN A RESPONSE CODE IS RETURNED: ISN =0 RC 2 SUB 5 ISN /=0 RC 113 SUB 5 Adabas V82 by Jim Poole

79 79 DAS ENDE Adabas V82 by Jim Poole


Download ppt "ADABAS V82 Jim Poole 2010 Adabas V82 by Jim Poole."

Similar presentations


Ads by Google