SlideShare une entreprise Scribd logo
1  sur  129
Cross-platform Batch Reports Waldo Library Western Michigan University
Objectives ,[object Object],[object Object]
Bonus!!!!! Source code for BLOB access  and a  table+column schema listing included in the handout.
Brief Bio
Brief Bio ,[object Object]
Brief Bio ,[object Object],[object Object]
Brief Bio ,[object Object],[object Object],[object Object]
Brief Bio ,[object Object],[object Object],[object Object],[object Object]
Brief Bio ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why We Did This
Why We Did This ,[object Object]
Why We Did This ,[object Object],[object Object]
Why We Did This ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why We Did This ,[object Object],[object Object],[object Object]
Why We Did This ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cross-Platform Batch Reports Overview of Process (Handout page 4) Unix
cron Cross-Platform Batch Reports Overview of Process Unix
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
When to Choose SQL, PL/SQL, or Perl ,[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl identify what the report generates
When to Choose SQL, PL/SQL, or Perl include Word format settings
When to Choose SQL, PL/SQL, or Perl define output columns
When to Choose SQL, PL/SQL, or Perl these two columns are for sorting only
When to Choose SQL, PL/SQL, or Perl The call to FISCYRSETUP creates a temporary table, for the duration of this report, that contains the name and start date for the current and previous year. This is used in a number of reports to automatically reference fiscal year data.
When to Choose SQL, PL/SQL, or Perl Set up title and some report parameters. Want output in a file.
When to Choose SQL, PL/SQL, or Perl Run the query to create the report. Clean up when done.
When to Choose SQL, PL/SQL, or Perl ,[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl start off with some comments… output limitation…
When to Choose SQL, PL/SQL, or Perl important reminder
When to Choose SQL, PL/SQL, or Perl note the order by
When to Choose SQL, PL/SQL, or Perl variables must be declared
When to Choose SQL, PL/SQL, or Perl fields from the table
When to Choose SQL, PL/SQL, or Perl you have control of looping through results
When to Choose SQL, PL/SQL, or Perl What is a  BLOB ? It stands for  B inary  L arge  Ob ject. More simply put, it is a collection of bytes that can contain both printable and unprintable characters. This is how MARC data is stored under Voyager.
When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57  Seqnum: 1  Recseg: BLOB Part A BibID: 57  Seqnum: 2  Recseg: BLOB Part B
When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57  Seqnum: 1  Recseg: BLOB Part A BibID: 57  Seqnum: 2  Recseg: BLOB Part B The BLOB is put together in  reverse order, because we can depend on Seqnum #1 being the last one that way.
When to Choose SQL, PL/SQL, or Perl get data from the header, then get each tag’s data as we loop through the directory structure
When to Choose SQL, PL/SQL, or Perl do some formatting...
When to Choose SQL, PL/SQL, or Perl print formatted tag data… finish looping and end the program
When to Choose SQL, PL/SQL, or Perl Without the closing “ / ”, your PL/SQL code will NOT run!
When to Choose SQL, PL/SQL, or Perl ,[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl ,[object Object],[object Object],[object Object]
When to Choose SQL, PL/SQL, or Perl start off with some comments
When to Choose SQL, PL/SQL, or Perl You’ll need to have DBI and DBD for Oracle set up on your Unix box.
When to Choose SQL, PL/SQL, or Perl set up some variables
When to Choose SQL, PL/SQL, or Perl need to be able to talk to the database
When to Choose SQL, PL/SQL, or Perl Get all the table names. In my experience, I was unable to use the reserved word “ distinct ” in the query. Thus the extract code to dedupe the results.
When to Choose SQL, PL/SQL, or Perl need to know how many columns per table to aid in output formatting
When to Choose SQL, PL/SQL, or Perl set up and initiate output
When to Choose SQL, PL/SQL, or Perl get the report’s data
When to Choose SQL, PL/SQL, or Perl keep track of column names ending in “_id”
When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first
When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first Remember counting columns per table? Here we advance to the next page, if the table doesn’t fit on the current page.
When to Choose SQL, PL/SQL, or Perl then repeat this process for columns that do not end in “_id”
When to Choose SQL, PL/SQL, or Perl if not enough room for smallest possible table, go to next page
When to Choose SQL, PL/SQL, or Perl clean up when done
The Batch PC
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object]
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
Quick Process Review
cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters  in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
The Batch PC ,[object Object],[object Object]
The Batch PC start off with comments, including instructions on when the script can be started safely to avoid duplication of report printing
The Batch PC set up paths and filenames on the Unix box and the batch PC, get the database password from a file
The Batch PC determine if it’s time for the script to run
The Batch PC Encapsulating the ftp process in a WinBatch script file works well. Use the DOS ftp program supplied with Windows.
The Batch PC wait a minute for ftp to complete
The Batch PC make sure file exists, then launch Word with it
The Batch PC send formatting keystrokes to Word
The Batch PC Get the printer pull-down menu, select the desired printer, and print. Wait a minute for printing to complete before closing Word.
The Batch PC The rest of the code closes loops and makes the script wait until the next run time occurs.
Example from another script illustrating how to trigger on day of the week. This script runs early in the morning, six days a week.
The Batch PC ,[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object]
The Batch PC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Thanks for listening Questions? Email: zimmer@wmich.edu Phone: 616.387.3885
Better Call Number Sorting Roll your own!
What Voyager gives us…
We can achieve better results…  this is now our input correctly sorted
Better Call Number Sorting ,[object Object]
Better Call Number Sorting ,[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object]
Better Call Number Sorting ,[object Object],[object Object],[object Object]
Thanks for listening. Contact me if you want to receive the CallNumber Perl module. Questions? Email: zimmer@wmich.edu Phone: 616.387.3885

Contenu connexe

Tendances

Tendances (17)

Oracle sql & plsql
Oracle sql & plsqlOracle sql & plsql
Oracle sql & plsql
 
Oracle data pump
Oracle data pumpOracle data pump
Oracle data pump
 
Apache TomEE - Tomcat with a kick
Apache TomEE  - Tomcat with a kickApache TomEE  - Tomcat with a kick
Apache TomEE - Tomcat with a kick
 
Oracle: PLSQL
Oracle: PLSQLOracle: PLSQL
Oracle: PLSQL
 
Plsql
PlsqlPlsql
Plsql
 
nir
nirnir
nir
 
ORACLE PL SQL FOR BEGINNERS
ORACLE PL SQL FOR BEGINNERSORACLE PL SQL FOR BEGINNERS
ORACLE PL SQL FOR BEGINNERS
 
AtoM's Command Line Tasks - An Introduction
AtoM's Command Line Tasks - An IntroductionAtoM's Command Line Tasks - An Introduction
AtoM's Command Line Tasks - An Introduction
 
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single nodeOracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
 
Phalcon 2 - PHP Brazil Conference
Phalcon 2 - PHP Brazil ConferencePhalcon 2 - PHP Brazil Conference
Phalcon 2 - PHP Brazil Conference
 
Peoplesoft installation steps
Peoplesoft installation stepsPeoplesoft installation steps
Peoplesoft installation steps
 
Data pump-export-examples
Data pump-export-examplesData pump-export-examples
Data pump-export-examples
 
PL/SQL Fundamentals I
PL/SQL Fundamentals IPL/SQL Fundamentals I
PL/SQL Fundamentals I
 
Deep Dive: More Oracle Data Pump Performance Tips and Tricks
Deep Dive: More Oracle Data Pump Performance Tips and TricksDeep Dive: More Oracle Data Pump Performance Tips and Tricks
Deep Dive: More Oracle Data Pump Performance Tips and Tricks
 
PLSQL Tutorial
PLSQL TutorialPLSQL Tutorial
PLSQL Tutorial
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
 

En vedette

Another Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and PerlAnother Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and PerlRoy Zimmer
 
Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)Roy Zimmer
 
My angelito's total makeover
My angelito's total makeoverMy angelito's total makeover
My angelito's total makeoverAritazul
 
Marcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping UpMarcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping UpRoy Zimmer
 
A Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown UtilitiesA Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown UtilitiesRoy Zimmer
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemMark L.
 
The Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of EverythingThe Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of EverythingJamesRedford
 
You Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager NeedsYou Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager NeedsRoy Zimmer
 
Voyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the IntroductionsVoyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the IntroductionsRoy Zimmer
 
Ray Owens 04.12.11
Ray Owens 04.12.11Ray Owens 04.12.11
Ray Owens 04.12.11Ccasati
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemMark L.
 
Double page stages
Double page stagesDouble page stages
Double page stagesMitchElsey
 
Orientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and ModeratorsOrientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and ModeratorsRoy Zimmer
 

En vedette (13)

Another Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and PerlAnother Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
Another Way to Attack the BLOB: Server-side Access via PL/SQL and Perl
 
Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)Plunging Into Perl While Avoiding the Deep End (mostly)
Plunging Into Perl While Avoiding the Deep End (mostly)
 
My angelito's total makeover
My angelito's total makeoverMy angelito's total makeover
My angelito's total makeover
 
Marcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping UpMarcive Documents: Catching Up and Keeping Up
Marcive Documents: Catching Up and Keeping Up
 
A Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown UtilitiesA Strand of Perls: Some Home Grown Utilities
A Strand of Perls: Some Home Grown Utilities
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar System
 
The Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of EverythingThe Physics of God and the Quantum Gravity Theory of Everything
The Physics of God and the Quantum Gravity Theory of Everything
 
You Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager NeedsYou Can Do It! Start Using Perl to Handle Your Voyager Needs
You Can Do It! Start Using Perl to Handle Your Voyager Needs
 
Voyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the IntroductionsVoyager Meets MeLCat: MC'ing the Introductions
Voyager Meets MeLCat: MC'ing the Introductions
 
Ray Owens 04.12.11
Ray Owens 04.12.11Ray Owens 04.12.11
Ray Owens 04.12.11
 
The Outer Planets Of Our Solar System
The Outer Planets Of Our Solar SystemThe Outer Planets Of Our Solar System
The Outer Planets Of Our Solar System
 
Double page stages
Double page stagesDouble page stages
Double page stages
 
Orientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and ModeratorsOrientation Session for (New) Presenters and Moderators
Orientation Session for (New) Presenters and Moderators
 

Similaire à Batchhow

PLSQL Developer tips and tricks
PLSQL Developer tips and tricksPLSQL Developer tips and tricks
PLSQL Developer tips and tricksPatrick Barel
 
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeBoost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeMarco Gralike
 
Oracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxOracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxVenu Palakolanu
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performancebrettallison
 
From Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache AirflowFrom Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache AirflowDatabricks
 
Advanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL ServerAdvanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL ServerConfio Software
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop Sandesh Rao
 
XFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereXFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereMarco Gralike
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherMohan Dutt
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questionsNaveen P
 
SPARQLing Services
SPARQLing ServicesSPARQLing Services
SPARQLing ServicesLeigh Dodds
 
R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01zeesniper
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018Jeff Smith
 
03 Biz Talk 2010 Hands On Day Adapter Pack
03 Biz Talk 2010 Hands On Day  Adapter Pack03 Biz Talk 2010 Hands On Day  Adapter Pack
03 Biz Talk 2010 Hands On Day Adapter PackNikolai Blackie
 
SQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseSQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseJeff Smith
 

Similaire à Batchhow (20)

PLSQL Developer tips and tricks
PLSQL Developer tips and tricksPLSQL Developer tips and tricks
PLSQL Developer tips and tricks
 
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeBoost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
 
Pl sql
Pl sqlPl sql
Pl sql
 
Oracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxOracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linux
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performance
 
From Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache AirflowFrom Idea to Model: Productionizing Data Pipelines with Apache Airflow
From Idea to Model: Productionizing Data Pipelines with Apache Airflow
 
Advanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL ServerAdvanced Index, Partitioning and Compression Strategies for SQL Server
Advanced Index, Partitioning and Compression Strategies for SQL Server
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop
 
XFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereXFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in there
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI Publisher
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questions
 
SPARQLing Services
SPARQLing ServicesSPARQLing Services
SPARQLing Services
 
R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01R12 d49656 gc10-apps dba 01
R12 d49656 gc10-apps dba 01
 
Google cloud Dataflow & Apache Flink
Google cloud Dataflow & Apache FlinkGoogle cloud Dataflow & Apache Flink
Google cloud Dataflow & Apache Flink
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 
03 Biz Talk 2010 Hands On Day Adapter Pack
03 Biz Talk 2010 Hands On Day  Adapter Pack03 Biz Talk 2010 Hands On Day  Adapter Pack
03 Biz Talk 2010 Hands On Day Adapter Pack
 
Erik_van_Roon.pdf
Erik_van_Roon.pdfErik_van_Roon.pdf
Erik_van_Roon.pdf
 
SQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle DatabaseSQLcl overview - A new Command Line Interface for Oracle Database
SQLcl overview - A new Command Line Interface for Oracle Database
 

Dernier

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Dernier (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Batchhow

  • 1. Cross-platform Batch Reports Waldo Library Western Michigan University
  • 2.
  • 3. Bonus!!!!! Source code for BLOB access and a table+column schema listing included in the handout.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Why We Did This
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. Cross-Platform Batch Reports Overview of Process (Handout page 4) Unix
  • 17. cron Cross-Platform Batch Reports Overview of Process Unix
  • 18. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file
  • 19. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script
  • 20. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl
  • 21. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running
  • 22. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC
  • 23. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch
  • 24. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe
  • 25. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report
  • 26. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script
  • 27. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN
  • 28. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location
  • 29. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37. When to Choose SQL, PL/SQL, or Perl identify what the report generates
  • 38. When to Choose SQL, PL/SQL, or Perl include Word format settings
  • 39. When to Choose SQL, PL/SQL, or Perl define output columns
  • 40. When to Choose SQL, PL/SQL, or Perl these two columns are for sorting only
  • 41. When to Choose SQL, PL/SQL, or Perl The call to FISCYRSETUP creates a temporary table, for the duration of this report, that contains the name and start date for the current and previous year. This is used in a number of reports to automatically reference fiscal year data.
  • 42. When to Choose SQL, PL/SQL, or Perl Set up title and some report parameters. Want output in a file.
  • 43. When to Choose SQL, PL/SQL, or Perl Run the query to create the report. Clean up when done.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53. When to Choose SQL, PL/SQL, or Perl start off with some comments… output limitation…
  • 54. When to Choose SQL, PL/SQL, or Perl important reminder
  • 55. When to Choose SQL, PL/SQL, or Perl note the order by
  • 56. When to Choose SQL, PL/SQL, or Perl variables must be declared
  • 57. When to Choose SQL, PL/SQL, or Perl fields from the table
  • 58. When to Choose SQL, PL/SQL, or Perl you have control of looping through results
  • 59. When to Choose SQL, PL/SQL, or Perl What is a BLOB ? It stands for B inary L arge Ob ject. More simply put, it is a collection of bytes that can contain both printable and unprintable characters. This is how MARC data is stored under Voyager.
  • 60. When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57 Seqnum: 1 Recseg: BLOB Part A BibID: 57 Seqnum: 2 Recseg: BLOB Part B
  • 61. When to Choose SQL, PL/SQL, or Perl The BLOB can be stored in one or more sections: BibID: 57 Seqnum: 1 Recseg: BLOB Part A BibID: 57 Seqnum: 2 Recseg: BLOB Part B The BLOB is put together in reverse order, because we can depend on Seqnum #1 being the last one that way.
  • 62. When to Choose SQL, PL/SQL, or Perl get data from the header, then get each tag’s data as we loop through the directory structure
  • 63. When to Choose SQL, PL/SQL, or Perl do some formatting...
  • 64. When to Choose SQL, PL/SQL, or Perl print formatted tag data… finish looping and end the program
  • 65. When to Choose SQL, PL/SQL, or Perl Without the closing “ / ”, your PL/SQL code will NOT run!
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72. When to Choose SQL, PL/SQL, or Perl start off with some comments
  • 73. When to Choose SQL, PL/SQL, or Perl You’ll need to have DBI and DBD for Oracle set up on your Unix box.
  • 74. When to Choose SQL, PL/SQL, or Perl set up some variables
  • 75. When to Choose SQL, PL/SQL, or Perl need to be able to talk to the database
  • 76. When to Choose SQL, PL/SQL, or Perl Get all the table names. In my experience, I was unable to use the reserved word “ distinct ” in the query. Thus the extract code to dedupe the results.
  • 77. When to Choose SQL, PL/SQL, or Perl need to know how many columns per table to aid in output formatting
  • 78. When to Choose SQL, PL/SQL, or Perl set up and initiate output
  • 79. When to Choose SQL, PL/SQL, or Perl get the report’s data
  • 80. When to Choose SQL, PL/SQL, or Perl keep track of column names ending in “_id”
  • 81. When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first
  • 82. When to Choose SQL, PL/SQL, or Perl go through array, output columns ending in “_id” first Remember counting columns per table? Here we advance to the next page, if the table doesn’t fit on the current page.
  • 83. When to Choose SQL, PL/SQL, or Perl then repeat this process for columns that do not end in “_id”
  • 84. When to Choose SQL, PL/SQL, or Perl if not enough room for smallest possible table, go to next page
  • 85. When to Choose SQL, PL/SQL, or Perl clean up when done
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 103. cron Cross-Platform Batch Reports Overview of Process Unix Time/date parameters in one crontab file script SQL, PL/SQL, Perl report One cron process running Batch PC WinBatch script or .exe use ftp to get the report pull it into Word format the report time/date parameters stored in each script copy report to destination on LAN print report to location Library Administration Library Systems Media Resources Mono Acquisitions Serials
  • 104.
  • 105. The Batch PC start off with comments, including instructions on when the script can be started safely to avoid duplication of report printing
  • 106. The Batch PC set up paths and filenames on the Unix box and the batch PC, get the database password from a file
  • 107. The Batch PC determine if it’s time for the script to run
  • 108. The Batch PC Encapsulating the ftp process in a WinBatch script file works well. Use the DOS ftp program supplied with Windows.
  • 109. The Batch PC wait a minute for ftp to complete
  • 110. The Batch PC make sure file exists, then launch Word with it
  • 111. The Batch PC send formatting keystrokes to Word
  • 112. The Batch PC Get the printer pull-down menu, select the desired printer, and print. Wait a minute for printing to complete before closing Word.
  • 113. The Batch PC The rest of the code closes loops and makes the script wait until the next run time occurs.
  • 114. Example from another script illustrating how to trigger on day of the week. This script runs early in the morning, six days a week.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119. Thanks for listening Questions? Email: zimmer@wmich.edu Phone: 616.387.3885
  • 120. Better Call Number Sorting Roll your own!
  • 122. We can achieve better results… this is now our input correctly sorted
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129. Thanks for listening. Contact me if you want to receive the CallNumber Perl module. Questions? Email: zimmer@wmich.edu Phone: 616.387.3885