SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle data pump
Oracle data pumpOracle data pump
Oracle data pump
marcxav72
 

Was ist angesagt? (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
 

Andere mochten auch

My angelito's total makeover
My angelito's total makeoverMy angelito's total makeover
My angelito's total makeover
Aritazul
 
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
Mark L.
 
Ray Owens 04.12.11
Ray Owens 04.12.11Ray Owens 04.12.11
Ray Owens 04.12.11
Ccasati
 
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
Mark L.
 
Double page stages
Double page stagesDouble page stages
Double page stages
MitchElsey
 

Andere mochten auch (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
 

Ähnlich wie Batchhow

PLSQL Developer tips and tricks
PLSQL Developer tips and tricksPLSQL Developer tips and tricks
PLSQL Developer tips and tricks
Patrick 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 Gralike
Marco Gralike
 
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
venkatakrishnan k
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

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