SlideShare a Scribd company logo
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 Microcontroller
Mafaz Ahmed
 
GCC LTO
GCC LTOGCC 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
Nanda Fauzi P
 
Day4 順序控制的循序邏輯實現
Day4 順序控制的循序邏輯實現Day4 順序控制的循序邏輯實現
Day4 順序控制的循序邏輯實現Ron Liu
 
Rx Tx Microii
Rx Tx MicroiiRx Tx Microii
Rx Tx Microii
Luis Zurita
 
LTO plugin
LTO pluginLTO plugin
LTO plugin
Wang Hsiangkai
 
MFC Letter
MFC LetterMFC 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
Ganesan Narayanasamy
 
El estandar fisico rs232 c
El estandar fisico rs232 cEl estandar fisico rs232 c
El estandar fisico rs232 c
Luis Alberto Sanchez Quispe
 
Auto teco for assembly zpcateco
Auto teco for assembly   zpcatecoAuto teco for assembly   zpcateco
Auto teco for assembly zpcateco
Lokesh 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 cprograms
Vedavyas PBurli
 
Vhdl programs
Vhdl programsVhdl programs
Vhdl programs
Kirthika Natarajan
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prog
nikhil dixit
 
Metal detecting robot sketch
Metal detecting robot sketchMetal detecting robot sketch
Metal detecting robot sketch
Akhil Unnikrishnan
 
VHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLESVHDL PROGRAMS FEW EXAMPLES
VHDL PROGRAMS FEW EXAMPLES
karthik kadava
 
Termòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter KitTermòmetre The Arduino Starter Kit
Termòmetre The Arduino Starter Kit
Laia P
 
Atmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileAtmega lcd programing_with_header_file
Atmega lcd programing_with_header_file
ABHISHEK 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-phpapp02
SURYA DEEPAK
 
LCD_Example.pptx
LCD_Example.pptxLCD_Example.pptx
LCD_Example.pptx
julioalexanderaguila
 
Automatic light project
Automatic light projectAutomatic light project
Automatic light projectkspece0928
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
Karthik Vivek
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
Karthik Vivek
 
Robotics lec7
Robotics lec7Robotics lec7
Robotics lec7
Mahmoud Hussein
 
ATmega324-Chap4-Assembly-Programming.pdf
ATmega324-Chap4-Assembly-Programming.pdfATmega324-Chap4-Assembly-Programming.pdf
ATmega324-Chap4-Assembly-Programming.pdf
KhnhNguyn375016
 
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 Set
Dwight 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 basicos
ps6005tec
 
An Example MIPS
An Example  MIPSAn Example  MIPS
An Example MIPS
Sandra Long
 
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
SIGMATAX1
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051) vijaydeepakg
 
Rota 2
Rota 2Rota 2
Rota 2
zeu1507
 
ARM inst set part 2
ARM inst set part 2ARM inst set part 2
ARM inst set part 2
Karthik Vivek
 
15CS44 MP & MC module 5
15CS44 MP & MC  module 515CS44 MP & MC  module 5
15CS44 MP & MC module 5
RLJIT
 
Lathe Spindle Sensor
Lathe Spindle SensorLathe Spindle Sensor
Lathe Spindle Sensor
JoeCritt
 
Binary to bcd
Binary to bcdBinary to bcd
Binary to bcd
ASHOKKUMAR3510
 

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

Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 

Recently uploaded (20)

Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 

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