SlideShare a Scribd company logo
1 of 3
Download to read offline
1 – David Young
Example MVS Console Interface
The program below is written in MVS Assembler.
It tests a call to the FTP2 program, which is possible because all of its parameters were in the SYSIN
DDNAME in the JCL.
If a bad return code is received from FTP2, then the server was down. Console Operators will be given a choice
of CONTinue anyway, ABEND, or WAIT (and retrying).
Continuing will zero out the return code to allow subsequent scheduled jobs in the batch system to continue
processing. The Wait & Retry is a good way to avoid having to page the Oncall Programmer, while also not
needing to continually restart a job.
TESTFTP CSECT
TESTFTP AMODE 24
TESTFTP RMODE 24
*
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12 BASE REGISTER
R13 EQU 13
R14 EQU 14
R15 EQU 15
LENG72 EQU 72
*---------------------------------------------------------------------*
* DAVID YOUNG THIS WILL TEST THE FTP2 INTERFACE
*---------------------------------------------------------------------*
BEGIN STM R14,R12,12(R13) STORE R14 THRU R12 INTO R13
BALR R12,R0
USING *,R12 USE 12 AS THE BASE REGISTER
ST R13,SAVEAREA+4 STORE R13 CONTENTS AT SAVEAREA+4
LA R13,SAVEAREA LOAD SAVEAREA ADDRESS INTO REG 13
ST R1,PASSR1 KEEP POINTER TO SYSIN
*
MAIN L R1,PASSR1 PASS SYSIN THROUGH THIS PROGRAM
LINK EP=FTP2 DYNAMICALLY
LTR R15,R15 TEST RETURN CODE
BZ EXITPRT IF R15 IS 0, GOTO EXIT
*
2 – David Young
ERROR_PROC DS 0H
SR R6,R6 CLEAR COUNTER REGISTER
LA R5,MSG1 POINT TO ARRAY OF MESSAGES
ERROR_LOOP DS 0H
MVC WTOMSG+8(70),0(R5) MOVE A MESSAGE TO WTO AREA
BAS R10,WTOMSG PERFORM WTOMSG ROUTINE
LA R5,70(R5) INCREMENT TO NEXT ARRAY ENTRY
A R6,=F'1' ADD 1 TO # MSGS PROCESSED
C R6,=F'7' HAVE WE REACHED 7 MSGS?
BL ERROR_LOOP NO, CONTINUE LOOP
ISSUE_WTOR DS 0H
*/ ISSUE WTOR TO GET OPERATOR'S FEEDBACK /*
XC ECBADDR,ECBADDR
WTOR TEXT=(QSTMSG,REPLYAREA,LENG72,ECBADDR), X
CONSNAME=DESTCON, X
RPLYISUR=IDSAREA
WAIT ECB=ECBADDR
*
SR R4,R4 CLEAR COUNTER REGISTER
LA R5,REPLYAREA POINT TO REPLY AREA
SCAN_LOOP DS 0H
CLC ABEND_CONST(5),0(R5) 'ABEND' FOUND?
BE ABEND_EXIT THEN GOTO ABEND_EXIT
CLC CONT_CONST(4),0(R5) 'CONT' FOUND?
BE CONT_EXIT THEN GOTO CONT_EXIT
CLC WAIT_CONST(4),0(R5) 'WAIT' FOUND?
BE WAIT_EXIT THEN GOTO WAIT_EXIT
LA R5,1(R5) MOVE TO NEXT CHARACTER
A R4,=F'1' ADD 1 TO COUNTER
C R4,=F'60' IS COUNTER = 60?
BL SCAN_LOOP IF NOT, CONTINUE LOOP
B CONT_EXIT IF NO VALID CMD FOUND
* THEN GOTO CONT_EXIT
WTOMSG WTO ' +
',ROUTCDE=11,DESC=7
BR R10
*
CONT_EXIT DS 0H
SR R15,R15
EXITPRT DS 0H CLEAR R15
L R13,SAVEAREA+4 PUT PREV SAVEAREA IN REGISTER 13
L R14,12(R13) LOAD REG 14 WITH DISP 12 ADDR R13
LM R0,R12,20(R13) RESTORE R0 TO R12 FROM DISP 20 ON
SR R15,R15 CLEAR RETURN CODE
BSM 0,R14 BRANCH TO RETURN ADDR , IN R14
*
ABEND_EXIT DS 0H
* WTO 'ABEND EXIT',ROUTCDE=11,DESC=7
3 – David Young
L R1,=X'000003E7' ABEND CODE IS U999
SVC 13 ISSUE USER ABEND SVC
L R13,SAVEAREA+4 PUT PREV SAVEAREA IN REGISTER 13
L R14,12(R13) LOAD REG 14 WITH DISP 12 ADDR R13
LM R0,R12,20(R13) RESTORE R0 TO R12 FROM DISP 20 ON
BSM 0,R14
*
WAIT_EXIT DS 0H
* WTO 'WAIT EXIT',ROUTCDE=11,DESC=7
STIMER WAIT,DINTVL=WAIT_INTV WAIT,
B MAIN THEN TRY AGAIN
* (GOTO MAIN LOOP)
DS 0F
SAVEAREA DS 18F REGISTER SAVE AREA
PASSR1 DS F REG 1 SAVE AREA (SYSIN)
ECBADDR DS F ECB FOR WTOR
WAIT_INTV DC X'F0F0F0F0F1F0F0C0' TIME INTERVAL FOR STIMER WAIT
ABEND_CONST DC CL5'ABEND' CONSTANT FOR 'ABEND'
CONT_CONST DC CL4'CONT' 'CONT'INUE
WAIT_CONST DC CL4'WAIT' 'WAIT'
*
DESTCON DC CL8'ALTCON ' ALTERNATE CONSOLE IS DESTINATION
REPLYAREA DC CL72' ' CONSOLE REPLY AREA
QSTMSG DC XL2'0050' LENGTH OF MSG FOR CONSOLE
QMSG DC C'TESTFTP - REPLY '
DC XL1'7D' X'7D' = SINGLE QUOTE
DC C'ABEND'
DC XL1'7D'
DC C', '
DC XL1'7D'
DC C'CONT'
DC XL1'7D'
DC C' OR '
DC XL1'7D'
DC C'WAIT'
DC XL1'7D'
DC CL40' '
IDSAREA DS CL12 CONSOLE ID INFO RETURNED HERE
*MESSAGE AREA*
MSG1 DC CL70'---FTP2 - ERROR OCCURRED. RECEIVING SERVER NOT ACTIVE '
MSG2 DC CL70'---FTP2 - PLEASE NOTIFY IT ONCALL TO ACTIVATE SERVER '
MSG3 DC CL70'---FTP2 - AND SELECT ONE OF THE FOLLOWING OPTIONS: '
MSG4 DC CL70'---FTP2 - WAIT => +RECOMMENDED+ WAIT AND RETRY '
MSG5 DC CL70'---FTP2 - CONT => CONTINUE JOB PROCESSING '
MSG6 DC CL70'---FTP2 - ABEND => JOB WILL ABEND +LAST RESORT+ '
MSG7 DC CL70'---FTP2 ----------------------------------------------'
END

More Related Content

What's hot

Temperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 MicrocontrollerTemperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 MicrocontrollerMafaz Ahmed
 
coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino Nanda Fauzi P
 
Day4 順序控制的循序邏輯實現
Day4 順序控制的循序邏輯實現Day4 順序控制的循序邏輯實現
Day4 順序控制的循序邏輯實現Ron Liu
 
OpenPOWER Webinar : Power pc assembly language convention and programming
OpenPOWER Webinar : Power pc assembly language convention and programmingOpenPOWER Webinar : Power pc assembly language convention and programming
OpenPOWER Webinar : Power pc assembly language convention and programmingGanesan Narayanasamy
 
Auto teco for assembly zpcateco
Auto teco for assembly   zpcatecoAuto teco for assembly   zpcateco
Auto teco for assembly zpcatecoLokesh Modem
 
Keypad and dc motor
Keypad and dc motor Keypad and dc motor
Keypad and dc motor vijaydeepakg
 
Microcontroller (8051) general and simple alp n cprograms
Microcontroller (8051) general and simple alp n cprogramsMicrocontroller (8051) general and simple alp n cprograms
Microcontroller (8051) general and simple alp n cprogramsVedavyas PBurli
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prognikhil dixit
 
VHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESVHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESkarthik kadava
 
Termòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter KitTermòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter KitLaia P
 
Atmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileAtmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileABHISHEK MAURYA
 

What's hot (20)

Temperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 MicrocontrollerTemperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 Microcontroller
 
GCC LTO
GCC LTOGCC LTO
GCC LTO
 
coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino
 
Day4 順序控制的循序邏輯實現
Day4 順序控制的循序邏輯實現Day4 順序控制的循序邏輯實現
Day4 順序控制的循序邏輯實現
 
Rx Tx Microii
Rx Tx MicroiiRx Tx Microii
Rx Tx Microii
 
LTO plugin
LTO pluginLTO plugin
LTO plugin
 
REPORT
REPORTREPORT
REPORT
 
Bolascriollas
BolascriollasBolascriollas
Bolascriollas
 
MFC Letter
MFC LetterMFC Letter
MFC Letter
 
OpenPOWER Webinar : Power pc assembly language convention and programming
OpenPOWER Webinar : Power pc assembly language convention and programmingOpenPOWER Webinar : Power pc assembly language convention and programming
OpenPOWER Webinar : Power pc assembly language convention and programming
 
El estandar fisico rs232 c
El estandar fisico rs232 cEl estandar fisico rs232 c
El estandar fisico rs232 c
 
Auto teco for assembly zpcateco
Auto teco for assembly   zpcatecoAuto teco for assembly   zpcateco
Auto teco for assembly zpcateco
 
Keypad and dc motor
Keypad and dc motor Keypad and dc motor
Keypad and dc motor
 
Microcontroller (8051) general and simple alp n cprograms
Microcontroller (8051) general and simple alp n cprogramsMicrocontroller (8051) general and simple alp n cprograms
Microcontroller (8051) general and simple alp n cprograms
 
Vhdl programs
Vhdl programsVhdl programs
Vhdl programs
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prog
 
Metal detecting robot sketch
Metal detecting robot sketchMetal detecting robot sketch
Metal detecting robot sketch
 
VHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESVHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLES
 
Termòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter KitTermòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter Kit
 
Atmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileAtmega lcd programing_with_header_file
Atmega lcd programing_with_header_file
 

Similar to Example MVS Console Interface

Solutionmanual8051microcontrollerbymazidi
Solutionmanual8051microcontrollerbymazidi Solutionmanual8051microcontrollerbymazidi
Solutionmanual8051microcontrollerbymazidi Ahsan Mehmood
 
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02SURYA DEEPAK
 
Automatic light project
Automatic light projectAutomatic light project
Automatic light projectkspece0928
 
ATmega324-Chap4-Assembly-Programming.pdf
ATmega324-Chap4-Assembly-Programming.pdfATmega324-Chap4-Assembly-Programming.pdf
ATmega324-Chap4-Assembly-Programming.pdfKhnhNguyn375016
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiMuhammad Abdullah
 
ARM Architecture Instruction Set
ARM Architecture Instruction SetARM Architecture Instruction Set
ARM Architecture Instruction SetDwight Sabio
 
STM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicosSTM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicosps6005tec
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfSIGMATAX1
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051) vijaydeepakg
 
15CS44 MP & MC module 5
15CS44 MP & MC  module 515CS44 MP & MC  module 5
15CS44 MP & MC module 5RLJIT
 
Lathe Spindle Sensor
Lathe Spindle SensorLathe Spindle Sensor
Lathe Spindle SensorJoeCritt
 

Similar to Example MVS Console Interface (20)

Solutionmanual8051microcontrollerbymazidi
Solutionmanual8051microcontrollerbymazidi Solutionmanual8051microcontrollerbymazidi
Solutionmanual8051microcontrollerbymazidi
 
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
Solutionmanual8051microcontrollerbymazidi 131215070701-phpapp02
 
LCD_Example.pptx
LCD_Example.pptxLCD_Example.pptx
LCD_Example.pptx
 
Automatic light project
Automatic light projectAutomatic light project
Automatic light project
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
 
Robotics lec7
Robotics lec7Robotics lec7
Robotics lec7
 
OptimizingARM
OptimizingARMOptimizingARM
OptimizingARM
 
ATmega324-Chap4-Assembly-Programming.pdf
ATmega324-Chap4-Assembly-Programming.pdfATmega324-Chap4-Assembly-Programming.pdf
ATmega324-Chap4-Assembly-Programming.pdf
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
 
ARM Architecture Instruction Set
ARM Architecture Instruction SetARM Architecture Instruction Set
ARM Architecture Instruction Set
 
STM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicosSTM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicos
 
An Example MIPS
An Example  MIPSAn Example  MIPS
An Example MIPS
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdf
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051)
 
Rota 2
Rota 2Rota 2
Rota 2
 
ARM inst set part 2
ARM inst set part 2ARM inst set part 2
ARM inst set part 2
 
15CS44 MP & MC module 5
15CS44 MP & MC  module 515CS44 MP & MC  module 5
15CS44 MP & MC module 5
 
Lathe Spindle Sensor
Lathe Spindle SensorLathe Spindle Sensor
Lathe Spindle Sensor
 
Binary to bcd
Binary to bcdBinary to bcd
Binary to bcd
 

Recently uploaded

JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)Max Lee
 
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024Primacy Infotech
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Andrea Goulet
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfICS
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfMehmet Akar
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfSrushith Repakula
 
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdfMicrosoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdfQ-Advise
 
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...OnePlan Solutions
 
Community is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletCommunity is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletAndrea Goulet
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Andreas Granig
 
Malaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptxMalaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptxMok TH
 
What need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java DevelopersWhat need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java DevelopersEmilyJiang23
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)Roberto Bettazzoni
 
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024MulesoftMunichMeetup
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Soroosh Khodami
 
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...CloudMetic
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanNeo4j
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfVictor Lopez
 
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdfStrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdfsteffenkarlsson2
 

Recently uploaded (20)

JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
 
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
Odoo vs Shopify: Why Odoo is Best for Ecommerce Website Builder in 2024
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdf
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdfMicrosoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
 
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
 
Community is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletCommunity is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea Goulet
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
Malaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptxMalaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptx
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 
What need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java DevelopersWhat need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java Developers
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024
 
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
 
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdfStrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
 

Example MVS Console Interface

  • 1. 1 – David Young Example MVS Console Interface The program below is written in MVS Assembler. It tests a call to the FTP2 program, which is possible because all of its parameters were in the SYSIN DDNAME in the JCL. If a bad return code is received from FTP2, then the server was down. Console Operators will be given a choice of CONTinue anyway, ABEND, or WAIT (and retrying). Continuing will zero out the return code to allow subsequent scheduled jobs in the batch system to continue processing. The Wait & Retry is a good way to avoid having to page the Oncall Programmer, while also not needing to continually restart a job. TESTFTP CSECT TESTFTP AMODE 24 TESTFTP RMODE 24 * R0 EQU 0 R1 EQU 1 R2 EQU 2 R3 EQU 3 R4 EQU 4 R5 EQU 5 R6 EQU 6 R7 EQU 7 R8 EQU 8 R9 EQU 9 R10 EQU 10 R11 EQU 11 R12 EQU 12 BASE REGISTER R13 EQU 13 R14 EQU 14 R15 EQU 15 LENG72 EQU 72 *---------------------------------------------------------------------* * DAVID YOUNG THIS WILL TEST THE FTP2 INTERFACE *---------------------------------------------------------------------* BEGIN STM R14,R12,12(R13) STORE R14 THRU R12 INTO R13 BALR R12,R0 USING *,R12 USE 12 AS THE BASE REGISTER ST R13,SAVEAREA+4 STORE R13 CONTENTS AT SAVEAREA+4 LA R13,SAVEAREA LOAD SAVEAREA ADDRESS INTO REG 13 ST R1,PASSR1 KEEP POINTER TO SYSIN * MAIN L R1,PASSR1 PASS SYSIN THROUGH THIS PROGRAM LINK EP=FTP2 DYNAMICALLY LTR R15,R15 TEST RETURN CODE BZ EXITPRT IF R15 IS 0, GOTO EXIT *
  • 2. 2 – David Young ERROR_PROC DS 0H SR R6,R6 CLEAR COUNTER REGISTER LA R5,MSG1 POINT TO ARRAY OF MESSAGES ERROR_LOOP DS 0H MVC WTOMSG+8(70),0(R5) MOVE A MESSAGE TO WTO AREA BAS R10,WTOMSG PERFORM WTOMSG ROUTINE LA R5,70(R5) INCREMENT TO NEXT ARRAY ENTRY A R6,=F'1' ADD 1 TO # MSGS PROCESSED C R6,=F'7' HAVE WE REACHED 7 MSGS? BL ERROR_LOOP NO, CONTINUE LOOP ISSUE_WTOR DS 0H */ ISSUE WTOR TO GET OPERATOR'S FEEDBACK /* XC ECBADDR,ECBADDR WTOR TEXT=(QSTMSG,REPLYAREA,LENG72,ECBADDR), X CONSNAME=DESTCON, X RPLYISUR=IDSAREA WAIT ECB=ECBADDR * SR R4,R4 CLEAR COUNTER REGISTER LA R5,REPLYAREA POINT TO REPLY AREA SCAN_LOOP DS 0H CLC ABEND_CONST(5),0(R5) 'ABEND' FOUND? BE ABEND_EXIT THEN GOTO ABEND_EXIT CLC CONT_CONST(4),0(R5) 'CONT' FOUND? BE CONT_EXIT THEN GOTO CONT_EXIT CLC WAIT_CONST(4),0(R5) 'WAIT' FOUND? BE WAIT_EXIT THEN GOTO WAIT_EXIT LA R5,1(R5) MOVE TO NEXT CHARACTER A R4,=F'1' ADD 1 TO COUNTER C R4,=F'60' IS COUNTER = 60? BL SCAN_LOOP IF NOT, CONTINUE LOOP B CONT_EXIT IF NO VALID CMD FOUND * THEN GOTO CONT_EXIT WTOMSG WTO ' + ',ROUTCDE=11,DESC=7 BR R10 * CONT_EXIT DS 0H SR R15,R15 EXITPRT DS 0H CLEAR R15 L R13,SAVEAREA+4 PUT PREV SAVEAREA IN REGISTER 13 L R14,12(R13) LOAD REG 14 WITH DISP 12 ADDR R13 LM R0,R12,20(R13) RESTORE R0 TO R12 FROM DISP 20 ON SR R15,R15 CLEAR RETURN CODE BSM 0,R14 BRANCH TO RETURN ADDR , IN R14 * ABEND_EXIT DS 0H * WTO 'ABEND EXIT',ROUTCDE=11,DESC=7
  • 3. 3 – David Young L R1,=X'000003E7' ABEND CODE IS U999 SVC 13 ISSUE USER ABEND SVC L R13,SAVEAREA+4 PUT PREV SAVEAREA IN REGISTER 13 L R14,12(R13) LOAD REG 14 WITH DISP 12 ADDR R13 LM R0,R12,20(R13) RESTORE R0 TO R12 FROM DISP 20 ON BSM 0,R14 * WAIT_EXIT DS 0H * WTO 'WAIT EXIT',ROUTCDE=11,DESC=7 STIMER WAIT,DINTVL=WAIT_INTV WAIT, B MAIN THEN TRY AGAIN * (GOTO MAIN LOOP) DS 0F SAVEAREA DS 18F REGISTER SAVE AREA PASSR1 DS F REG 1 SAVE AREA (SYSIN) ECBADDR DS F ECB FOR WTOR WAIT_INTV DC X'F0F0F0F0F1F0F0C0' TIME INTERVAL FOR STIMER WAIT ABEND_CONST DC CL5'ABEND' CONSTANT FOR 'ABEND' CONT_CONST DC CL4'CONT' 'CONT'INUE WAIT_CONST DC CL4'WAIT' 'WAIT' * DESTCON DC CL8'ALTCON ' ALTERNATE CONSOLE IS DESTINATION REPLYAREA DC CL72' ' CONSOLE REPLY AREA QSTMSG DC XL2'0050' LENGTH OF MSG FOR CONSOLE QMSG DC C'TESTFTP - REPLY ' DC XL1'7D' X'7D' = SINGLE QUOTE DC C'ABEND' DC XL1'7D' DC C', ' DC XL1'7D' DC C'CONT' DC XL1'7D' DC C' OR ' DC XL1'7D' DC C'WAIT' DC XL1'7D' DC CL40' ' IDSAREA DS CL12 CONSOLE ID INFO RETURNED HERE *MESSAGE AREA* MSG1 DC CL70'---FTP2 - ERROR OCCURRED. RECEIVING SERVER NOT ACTIVE ' MSG2 DC CL70'---FTP2 - PLEASE NOTIFY IT ONCALL TO ACTIVATE SERVER ' MSG3 DC CL70'---FTP2 - AND SELECT ONE OF THE FOLLOWING OPTIONS: ' MSG4 DC CL70'---FTP2 - WAIT => +RECOMMENDED+ WAIT AND RETRY ' MSG5 DC CL70'---FTP2 - CONT => CONTINUE JOB PROCESSING ' MSG6 DC CL70'---FTP2 - ABEND => JOB WILL ABEND +LAST RESORT+ ' MSG7 DC CL70'---FTP2 ----------------------------------------------' END