CN110381106A - A kind of job processing method and device - Google Patents

A kind of job processing method and device Download PDF

Info

Publication number
CN110381106A
CN110381106A CN201910384460.1A CN201910384460A CN110381106A CN 110381106 A CN110381106 A CN 110381106A CN 201910384460 A CN201910384460 A CN 201910384460A CN 110381106 A CN110381106 A CN 110381106A
Authority
CN
China
Prior art keywords
jes2
ftp server
virtual interface
sent
destination host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910384460.1A
Other languages
Chinese (zh)
Inventor
范啸风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201910384460.1A priority Critical patent/CN110381106A/en
Publication of CN110381106A publication Critical patent/CN110381106A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application provides a kind of job processing method and device, this method comprises: request is submitted in the operation in response to user, the ftp server of destination host receives the operation that the end PC is sent;The operation is passed through the JES2 system that the virtual interface constructed in advance is sent to the destination host by the ftp server, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;The ftp server receives the job execution result that the JES2 system is returned by the virtual interface;In response to the result queries request of the user, the job execution result is sent to the end PC and is shown by the ftp server.In the embodiment of the present application, the ftp server of destination host sends the operation at the end PC to JES2 system and the job execution result of JES2 system is sent to the end PC, improves the efficiency of operation submission and the flexibility of operation supervision.

Description

A kind of job processing method and device
Technical field
This application involves financial communication technical field, in particular to a kind of job processing method and device.
Background technique
The end PC to the host of large-scale financial system submit batch jobs when, general method be all by administrative staff from The end PC logs on to the host of financial system, utilizes the TSO (Time in the operating system OS (Operation System) of host Sharing Options) in the running environment that provides of module and operational order host batch jobs submitted, and transfer to host In JES2 (Job Entry Subsystem 2) system execute and batch jobs and store implementing result.However, in existing work In industry treatment process, the implementing result of batch jobs must be after administrative staff log in host, by host operating system Operational order can just be checked, on the one hand, the batch jobs at the end PC can not be submitted to host by administrative staff, on the other hand, management Personnel also can not check the implementing result of batch jobs in host at the end PC.
In view of the above-mentioned problems, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the present application provides a kind of job processing method and device, by constructing the FTP clothes for host in advance The operation at the end PC is passed through void by the virtual interface of the JES2 data among systems of business device and host transmission, the ftp server of host The JES2 system that quasi- interface is sent to host is executed, and after job execution, the JES2 system of host passes through operation Virtual interface returns to the ftp server of host, and the job execution that the ftp server of the end PC receiving host is sent is as a result, with solution Certainly the end PC can not obtain job execution result in host and lead to operation without the submission operation of normal direction host and the end PC in the prior art The technical problem that monitoring cost is excessively high, monitoring efficiency is low.
On the one hand, a kind of job processing method is provided, comprising:
Request is submitted in operation in response to user, and the ftp server of destination host receives the operation that the end PC is sent;
The operation is passed through the JES2 that the virtual interface constructed in advance is sent to the destination host by the ftp server System, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
The ftp server receives the job execution result that the JES2 system is returned by the virtual interface;
In response to the result queries request of the user, the job execution result is sent to institute by the ftp server The end PC is stated to be shown.
In one embodiment, the operation is sent to institute by the virtual interface constructed in advance by the ftp server State the JES2 system of destination host, comprising:
The operation is passed through the JES2 that the virtual interface constructed in advance is sent to the destination host by the ftp server READER component in system, wherein the READER component is used to receive the operation and triggers the processing stream of the operation Journey.
In one embodiment, the ftp server receives the work that the JES2 system is returned by the virtual interface Industry implementing result, comprising:
The ftp server receives in the JES2 system that the JES2 system is returned by the virtual interface Job execution result in SPOOL component, wherein the SPOOL component is for storing the job execution result.
In one embodiment, the virtual interface constructs as follows:
Configure the system parameter of the ftp server;
Write the interface routine of the JES2 system;
The virtual interface is formed according to the system parameter of configuration and the interface routine write.
In one embodiment, the system parameter of the ftp server is configured, comprising:
The communication type parameter being arranged in the system parameter of the ftp server is JES2;
The text size parameter being arranged in the system parameter of the ftp server is 80 and text type parameter is FIXED.
In one embodiment, the interface routine of the JES2 system is write, comprising:
Write memory requisition procedure, wherein the memory requisition procedure is used for as the data structure in the JES2 system Apply for memory, wherein the data structure includes at least one of: SSOB, SSIB and SSNU;
Write parameter write-in program, wherein the parameter write-in program is used to fill in parameter into the data structure, In, the parameter filled in includes at least one of: the storage address of the pending operation in the JES2 system, job execution knot The storage address of fruit.
On the other hand, a kind of job processing method is provided, comprising:
The ftp server that the JES2 system of destination host receives destination host passes through what the virtual interface constructed in advance was sent Operation, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
After operation described in successful execution, job execution result is sent to by the JES2 system by the virtual interface The ftp server.
In one embodiment, the JES2 system of destination host receives the ftp server of destination host by constructing in advance Virtual interface send operation, further includes:
The operation received is reached in READER component and triggers the process flow of the operation.
In one embodiment, job execution result is sent to described by the JES2 system by the virtual interface Ftp server, comprising:
After operation described in successful execution, the JES2 system stores job execution result to the JES2 system In SPOOL component;
The job execution result is sent to from the SPOOL component by the virtual interface by the JES2 system The ftp server.
On the other hand, a kind of job processing apparatus is provided, in the ftp server of destination host, comprising:
First receiving unit, for receiving the operation of the end PC transmission;
First transmission unit is sent to the destination host for the operation to be passed through the virtual interface constructed in advance JES2 system, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
Second receiving unit, the job execution result returned for receiving the JES2 system by the virtual interface;
The job execution result is sent to institute for the result queries request in response to user by the second transmission unit The end PC is stated to be shown.
On the other hand, a kind of job processing apparatus is provided, in the JES2 system of destination host, comprising:
Third receiving unit, the ftp server for receiving destination host pass through what the virtual interface constructed in advance was sent Operation, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
Third transmission unit, for after operation described in successful execution, job execution result to be passed through the virtual interface It is sent to the ftp server.
Another aspect provides a kind of ftp server positioned at destination host, including display screen, actuator and storage The step of memory of actuator executable instruction, the actuator realizes following method when executing described instruction:
Request is submitted in operation in response to user, and the ftp server of destination host receives the operation that the end PC is sent;
The operation is passed through the JES2 that the virtual interface constructed in advance is sent to the destination host by the ftp server System, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
The ftp server receives the job execution result that the JES2 system is returned by the virtual interface;
In response to the result queries request of the user, the job execution result is sent to institute by the ftp server The end PC is stated to be shown.
Another aspect provides a kind of JES2 system positioned at destination host, is stored thereon with computer instruction, the finger Order is performed the step of realizing following method:
The ftp server that the JES2 system of destination host receives destination host passes through what the virtual interface constructed in advance was sent Operation, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
After operation described in successful execution, job execution result is sent to by the JES2 system by the virtual interface The ftp server.
In embodiments herein, by the JES2 system for constructing ftp server and the host for host in advance Between data transmission virtual interface, allow the ftp server of host by the virtual interface to JES2 system send PC The operation at end, and the ftp server of host is allowed to receive the job execution that JES2 system returns by the virtual interface As a result it and by the job execution result is sent to the end PC, realizing the end PC directly can submit operation simultaneously to the JES2 system of host Receive JES2 system job execution as a result, reached improve operation submissions efficiency and job execution result supervise it is flexible The technical effect of property.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, not Constitute the restriction to the application.In the accompanying drawings:
Fig. 1 is one of the embodiment of the present application job processing method flow chart;
Fig. 2 is the flow chart that operation is submitted at the end one of the embodiment of the present application PC to host JES2 system;
Fig. 3 is the correlation and parameter column of one of the embodiment of the present application SSOB, SSIB and SSNU data structure Bitmap;
Fig. 4 is one of the embodiment of the present application operation processing side structure drawing of device.
Specific embodiment
It is right below with reference to embodiment and attached drawing for the purposes, technical schemes and advantages of the application are more clearly understood The application is described in further details.Here, the exemplary embodiment and its explanation of the application be for explaining the application, but simultaneously Not as the restriction to the application.
Mainframe is a kind of machine with high security and high reliability in computer, such as the large size of IBM Corporation Mainframe is all used for the processing of core data and the preservation of core data in bank, finance, securities broker company by host.With silver Behavior example has exercise subsystem JES2 (Job Entry Subsystem 2) in IBM mainframe, and JES2 system can be right Batch jobs such as are inputted, are dispatched, are executed, exported and are deleted at the functions, wherein operation is that host operating system is executed The citation form of preceding task, in particular to the processing including report, back-end data are analyzed, historical data shifts, historical data is clear The relevant execution tasks of bankings such as reason.
Traditional method for submitting operation to the JES2 system of mainframe is usually that administrative staff pass through special client End logs in mainframe, the operation in host is sent to TSO module by the operational order in mainframe, TSO module is again The operation that will acquire is committed to JES2 system and is executed, and JES2 system saves the implementing result of operation, administrative staff Log on to the executive condition that the operation having been filed on is checked in host system, and the human-computer interaction page of host system is not very friendly It is good.But the operation in the end PC can not be both submitted in host by administrative staff, it also can not be by the executive condition of operation in host The end PC is got to be shown, checked, traditional method increase submit operation, monitor operation execution situation human cost and Time cost, the flexibility for reducing and submitting operation, supervise operation execution situation.
Based on the above situation, the embodiment of the present application provides a kind of job processing method, as shown in Figure 1, the above method can be with Include the following steps (step S101~step S104):
Request is submitted in step S101, the operation in response to user, and the ftp server of destination host receives the work that the end PC is sent Industry.
In FTP (File Transfer Protocol, the file biography that user passes through the destination host in the end PC or the end X86 Defeated agreement) after client logs on to the ftp server of the destination host, which can be in the ftp server of the destination host Command window in input operation submit instruction, such as: PUT instruction, the ftp server of the destination host receive the user hair After the operation submission request for submitting instruction comprising operation risen, the operation to be committed that the end PC is sent is received, wherein destination host It can be IBM mainframe, be also possible to UNISYS mainframe.
The operation is passed through the virtual interface constructed in advance and is sent to the target by step S102, the ftp server The JES2 system of host, wherein the virtual interface is used to carry out data biography between the ftp server and the JES2 system It is defeated.
After the operation for receiving the transmission of the end PC, the ftp server of destination host can pass through the operation received pre- The virtual interface first constructed is sent in the JES2 system of the destination host, which can be used for the FTP of destination host Bidirectional data transfers between server and the JES2 system of the destination host.
Wherein, operation is sent to the JES2 system of destination host by the ftp server of destination host by virtual interface Process can specifically include: the operation is passed through the virtual interface constructed in advance and is sent to the destination host by ftp server JES2 system in READER component, wherein the READER component is for receiving the operation and trigger the operation Process flow.Specifically, READER component is a kind of inside reader of JES2 system, JES2 is reached for reading in external module The work data of system can keep in work data and open operation core processing stream after receiving incoming work data The function of journey.
As shown in Fig. 2, operation is sent in the JES2 system of destination host by ftp server by virtual interface READER component, on the one hand, the READER component receives the operation that ftp server is sent, and on the other hand, which exists The other components of JES2 system are triggered to the process flow of the operation after receiving the operation of ftp server transmission, wherein processing stream Journey may include input, parsing, execute and export.
Step S103, the ftp server receive the job execution that the JES2 system is returned by the virtual interface As a result.
After the execution that JES2 system fulfils assignment, ftp server receives what the JES2 system was returned by virtual interface Job execution result, wherein job execution result can be TXT resulting text file, be also possible to EXCEL results list text Part, the application is to this and without limitation.
Wherein, the process that ftp server receives the job execution result that JES2 system is returned by virtual interface specifically may be used To include: that ftp server receives SPOOL group in the JES2 system that the JES2 system is returned by the virtual interface Job execution result in part, wherein the SPOOL component is for storing the job execution result.Specifically, SPOOL group Part is a kind of buffer memory with caching mechanism, for reducing the transmission of the data between JES2 system program and external equipment Delay to be called realize can be waited to export the operation of external module after the operation output for receiving JES2 system.
As shown in Fig. 2, JES2 system is stored in the JES2 system after successful execution operation, by job execution result In SPOOL component, at the end of operation is carrying out not yet, the pilot process data of operation can also be stored in the JES2 system In the SPOOL component of system, wherein pilot process data can include but is not limited at least one of: the task number of operation is made Queue number, the state of operation, the intermediate output data of operation of industry.In the case where successful execution operation, ftp server can be with Receive the job execution result in the SPOOL component that the JES2 system is returned by virtual interface.
Wherein, virtual interface can be constructed (step S1~step S3) in accordance with the following steps:
Step S1 configures the system parameter of the ftp server.
In order to enable to the ftp server and destination host after the operation that ftp server receives the transmission of the end PC JES2 system establishes the communication instructed based on FTP, and user can carry out in " FTPDATA " system parameter of the ftp server Configuration.
Specifically, the process of the system parameter of configuration ftp server may include steps of (step S11~step S12):
Step S11, the communication type parameter being arranged in the system parameter of the ftp server are JES2.
For example, the communication type parameter " SITE FILE TYPE " in " FTPDATA " file of ftp server can be set It is set to " SITE FILE TYPE=JES2 ", which is established with JES2 system and is led to based on what FTP was instructed Letter.
For example, after the communication type parameter setting success in " FTPDATA " file of ftp server, Yong Huke The JCL text of the end PC or ftp client is sent into JES2 system to instruct in the command window of ftp server by PUT In READER component, submitted as an effective operation, it can also can be by JES2 system by GET or MGET order In SPOOL component in job execution resulting text following can reach the end PC or ftp client, DIR order can also be passed through Job execution state in queue each in JES2 system is shown at the end PC or ftp client, can also be ordered by DEL The execution for cancelling an operation is enabled, the implementing result of an operation can also be deleted.
Step S12, the text size parameter being arranged in the system parameter of the ftp server are 80 and text type parameter For FIXED.
For example, the text size parameter " SITE JESLRECL " in " FTPDATA " file of ftp server can be set It is set to " SITE JESLRECL=80 " and text type parameter " SITE JESRECFM " is set as " SITE JESRECFM= FIXED ", so that the data text of the received operation of ftp server and job execution result meets JES2 system requirements The fixation fixed-length file that character length is 80.
In order to the job execution result or operation centre mistake for enabling the virtual interface to return to JES2 system The data text of journey is screened according to the supervision demand of user, and user can also be to the other parameters in " FTPDATA " file It is configured, such as: ftp server only obtains the data text of whole operations in JES2 system, ftp server only obtains and refers to Determine the job execution result of job title or the data text of operation pilot process, ftp server obtain state only to have executed At operation implementing result data text, ftp server only obtain execution state be queue in operation pilot process number According to text, user can be configured according to following concrete type parameter.
SITE JESOWNER=USERID | *
SITE JOBNAME=USERID | *
SITE JESSTATUS=ALL | INPUT | ACTIVE | OUTPUT
Step S2 writes the interface routine of the JES2 system.
The operating system itself of destination host provides the interface (SSI:Subsystem of a series of JES2 system Interface) program advises the macro IEFSSREQ that operating system provides according to specified function code and interface by interface routine Lattice are called, so that JES2 system can be instructed according to the FTP of user realizes corresponding operation, wherein interface routine It is that assembler language is write.
According to the interface routine of the Standard compilation JES2 system of operating system nucleus data structure, user can be taken FTP The operation that business device obtains is stored under the designated data structure of JES2 system.Wherein SSOB (Subsystem Options Block)、SSIB(Subsystem Identification Block)、SSNU(JES Notify User Msg Service SSOB Extension) these three data structures contain and JES2 system interface SSI (Synchronous Serial Interface) the whole parameters communicated, before calling JES2 system interface, user must specifically want according to corresponding function code The memory field for generating SSOB, SSIB, SSNU respectively is sought, and inserts relevant parameter.Wherein, tri- numbers of SSOB, SSIB and SSNU It is as shown in Figure 3 according to the correlation and the parameter field that must fill out of structure.
Specifically, the process for writing the JES2 system interface program may include steps of (step S21~step S22):
Step S21 writes memory requisition procedure, wherein the memory requisition procedure is used for as in the JES2 system Data structure application memory, wherein the data structure can include but is not limited at least one of: SSOB, SSIB and SSNU。
During writing interface routine, user can write corresponding SSOB, SSIB and SSNU data of JES2 system The memory requisition procedure of structure allows the data structures such as SSOB, SSIB and SSNU to store dynamic pending operation Storage address, the storage address of job execution result and other relevant parameters for completing JES2 system calling.
Step S22 writes parameter write-in program, wherein the parameter write-in program into the data structure for filling out Write parameters, wherein the parameter filled in can include but is not limited at least one of: the pending operation in the JES2 system Storage address, the storage address of job execution result.
By assembler language by the storage address of dynamic pending operation and the storage address of job execution result Be filled up in the correspondence parameter that storage address is static SSOB, SSIB and SSNU data structure, and fill in SSOB, SSIB with And the necessary parameter of other in SSNU data structure.After the interface routine that triggering operation writes, the bottom of JES2 system is macro IEFSSREQ with can obtaining the storage of operation to be committed from SSOB, SSIB and SSNU data structure in interface routine The storage address of location and job execution result, the operation to be committed that the operation to be committed in ftp server is sent to In storage address, and the job execution result in the storage address of job execution result is sent to ftp server, to realize Data transmission between ftp server and JES2 system.
Specifically, writing the source code of the interface routine of completion can be such that
Wherein, the register R1 in interface routine places address when JES2 system is called in SSOB, register R11 storage Return address, register are called in the address CTXT, the address of saving scene before register R13 storage is called, register R14 storage R15 stores SSI and calls return code;Other registers are used in program as work register.
It configures the system parameter (step S1) of the ftp server and writes the interface routine (step of the JES2 system S2) there is no the differentiations of time order and function for the two steps, and step S1 and step S2 are independent two steps, specifically, can be with It is that step S1 is first operated, is operated after step S2, is also possible to step S2 and first operates, operated after step S1.In step S1 and step After S2 is operated successfully, then carry out the operation of step S3.
Step S3 forms the virtual interface according to the system parameter of configuration and the interface routine write.
By the interface journey for modifying the system parameter of the ftp server of destination host, the JES2 system for writing destination host Sequence establishes the virtual interface between a ftp server and JES2 system, which can will be in JES2 system The simulation of READER component becomes the homework uploading catalogue of a ftp server, uploads one by PUT instruction at the end PC or the end X86 A operation for meeting READER Element format requirement, which can enter READER component by the virtual interface, this In the case of, show that the end PC or the end X86 have succeeded and submits an operation to host.The virtual interface can also will be in JES2 system The simulation of SPOOL component become the download directory of a ftp server, can be by GET instruction by operation at the end PC or the end X86 Implementing result or implementation procedure data are transferred to the above-mentioned end PC or the end X86.
Step S104 is requested in response to the result queries of the user, and the ftp server is by the job execution result The end PC is sent to be shown.
User can in the window of ftp server input results inquiry instruction, such as: GET instruction, ftp server exist After obtaining the result queries request that the Client-initiated includes result queries instruction, the job execution result received is sent to The end PC or the end X86, and job execution result is visualized at the end PC or the end X86, in order to user carry out observation and Supervision.
The embodiment of the present application also provides another job processing method, the above method may include steps of (step S201~step S202):
Step S201, the ftp server that the JES2 system of destination host receives destination host are virtual by constructing in advance The operation that interface is sent, wherein the virtual interface is used to carry out data biography between the ftp server and the JES2 system It is defeated.
Request is submitted in operation in response to user, and the JES2 system of destination host can receive the FTP clothes of the destination host The operation that business device is sent by virtual interface, wherein the format of operation meets the call format of READER component in JES2 system.
Specifically, the JES2 system in destination host receives the ftp server of the destination host and passes through the void that constructs in advance After the operation that quasi- interface is sent, further includes:
The operation received is reached in READER component and triggers the process flow of the operation.
Step S202, after operation described in successful execution, the JES2 system passes through job execution result described virtual Interface is sent to the ftp server.
Specifically, job execution result is sent to the ftp server by the virtual interface by the JES2 system Include the following steps (step S1~step S2):
Step S1, after operation described in successful execution, the JES2 system stores job execution result to the JES2 In the SPOOL component of system.
After the execution process flow operation of operation, the job execution result of the operation can be stored in by JES2 system In SPOOL component, in the implementation procedure of operation, JES2 system can also holding step each in the implementation procedure of the operation Row intermediate data storage is in SPOOL component.
Step S2, the JES2 system virtually connect the job execution result from the SPOOL component by described Mouth is sent to the ftp server.
In response to the implementing result inquiry request of user, JES2 system can be by job execution result from SPOOL component Ftp server is sent to by virtual interface, or in response to the execution status query request of user, the JES2 system is by operation It executes intermediate data and is sent to the ftp server.
Operation is submitted to host by ftp server below with reference to an end PC and obtains job execution result in host The above method is described in detail in specific embodiment, it is important to note, however, that the specific embodiment is merely to more preferable Ground illustrates the application, does not constitute an undue limitation on the present application.
By taking bank as an example, mainframe is because of high reliability, high availability, high service advantage, most of cores of bank Heart business is all handled by mainframe, but the operation system due to the operating system of mainframe compared to the end PC or the end X86 System wants the more of complexity, and interface is very unfriendly, and mainframe is also executing a large amount of job task at night, is based on from client's industry Be engaged in the operation submission of relevant core data and the security consideration of job execution result, administrative staff can only pass through log in it is large-scale Host submits operation and checks operation execution situation, and bank needs to put into a large amount of in terms of submitting operation and supervision operation Man power and material, lead to increase many human costs and time cost, and operation submission and operation supervision lack flexibility, Efficiency is relatively low.
To solve the above-mentioned problems, the embodiment of the present application provides a kind of end PC and is submitted by ftp server to host and made Industry and the method for obtaining job execution result in host, specific steps are as follows:
Storage has operation to be committed first in the end PC, which is specifically JCL.TXT file, wherein JCL.TXT file Particular content it is as follows:
//FTPTOJESJOB000, CLASS=A, MSGCLASS=X, NOTIFY=&SYSUID, MSGLEVEL=(1,1)
//HOLD OUTPUT JESDS=ALL, DEFAULT=Y, OUTDISP=(HOLD, HOLD)
//IEFBR14 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//DUMMY DD DUMMY
//*
The end PC is instructed to the process that host submits operation and obtains job execution result by FTP and be may include steps of (step S1~step S4):
Step S1, after user logs in ftp server from the end PC, input instruction " QUOTE SITE FILE=JES " is opened The interface of the JES2 system of host.
Step S2, user input instruction " PUT JCL.TXT " in the command window at the end PC, mention to the JES2 system of host It hands in homework, after operation is submitted successfully, is shown in the end PC and submit job result as follows:
125 Sending Job to JES internal reader FIXrecfm 80
250-It is known to JES as JOB05318
250 Transfer completed successfully.
Wherein, " Transfer completed successfully " indicates that operation is submitted successfully, and " JOB05318 " is to mention The job number of the operation of friendship.
Step S3: user inputs the case where instruction DIR checks each operation in JES2 system in the command window at the end PC (form that each operation is queue), as follows in the content that the end PC is shown:
By display content it is found that the job number that operation FTPTOJES is distributed is JBO05318.The operation submitted at present exists In OUTPUT queue on CLASS A, the return code of operation is 000, and implementing result is normal.Have 3 in the SPOOL in JES2 system A output file, in such a case, it is possible to pass through SDSF (System Display and Search Facility) function Check that output file is followed successively by JESMSGLG, JESJCL and JESYSMSG.The implementation procedure and result of entire operation and the end PC from The case where TSO is submitted is just the same.
Step S4: after job execution, user can input instruction " GET in the end PC The implementing result data of operation are reached the end PC by JOB05318JOB05318.TXT ", JES2 system, are opened at the end PC " JOB05318.TXT " file, content are that the operation that the end PC is submitted generates in the SPOOL in JES2 system, file content It is last with "!!END OF JES SPOOL FILE!!" mark terminate.Wherein, the particular content of " JOB05318.TXT " file It is as follows:
ftp>get job05318 job05318.txt
200 Port request OK.
125 Sending data set NDPAXXX.FTPTOJES.JOB05318.D0000002.JESMSGLG
250 Transfer completed successfully.
2014 bytes received in 0.1702 seconds(11.56Kbytes/s)
local:job05318.1 remote:job05318
Wherein, the custom logic realization that step S2~step S4 method operating system bottom interrupts, what the end PC was submitted Operation data transmitting is divided into two major classes completion, one kind be by systematic parameter configuration by operating system each module at runtime Transmitting, another kind of is that operating system inside related data structures are obtained by the assembler write in memory and in register Address, and transmitted by program, to realize the function of data transmission of the virtual interface for ftp server and JES2 system Energy.
Conceived based on same application, additionally provides a kind of job processing apparatus in the embodiment of the present application, such as following implementation Described in example.Since a kind of principle that job processing apparatus solves the problems, such as is similar to a kind of job processing method, a kind of operation The implementation of processing unit may refer to a kind of implementation of job processing method, and overlaps will not be repeated.It is used below, art The combination of the software and/or hardware of predetermined function may be implemented in language " unit " or " module ".Although described by following embodiment Device preferably realize that but the combined realization of hardware or software and hardware is also that may and be contemplated with software 's.Fig. 4 is a kind of structural block diagram of the job processing apparatus of the embodiment of the present application, in the ftp server of destination host, such as Shown in Fig. 4, comprising: the first receiving unit 401, the first transmission unit 402, the second receiving unit 403, the second transmission unit 404, The structure is illustrated below.
First receiving unit 401, for receiving the operation of the end PC transmission.
First transmission unit 402 is sent to the target master for the operation to be passed through the virtual interface constructed in advance The JES2 system of machine, wherein the virtual interface is used to carry out data biography between the ftp server and the JES2 system It is defeated.
Second receiving unit 403, the job execution knot returned for receiving the JES2 system by the virtual interface Fruit.
The job execution result is sent to by the second transmission unit 404 for the result queries request in response to user The end PC is shown.
In one embodiment, above-mentioned first transmission unit 402 may include:
The operation is passed through the virtual interface constructed in advance for the ftp server and is sent to by the first sending module READER component in the JES2 system of the destination host, wherein the READER component is for receiving the operation and touching The process flow for sending out operation described.
In one embodiment, above-mentioned second receiving unit 403 may include:
Second receiving module receives what the JES2 system was returned by the virtual interface for the ftp server The job execution result in SPOOL component in the JES2 system, wherein the SPOOL component is for storing the operation Implementing result.
In one embodiment, the process of building virtual interface may include: in advance
Configure the system parameter of the ftp server;Write the interface routine of the JES2 system;According to configuration System parameter and the interface routine write form the virtual interface.
In one embodiment, the system parameter for configuring ftp server may include:
The communication type parameter being arranged in the system parameter of the ftp server is JES2;The ftp server is set Text size parameter in system parameter is 80 and text type parameter is FIXED.
In one embodiment, the interface routine for writing JES2 system may include:
Write memory requisition procedure, wherein the memory requisition procedure is used for as the data structure in the JES2 system Apply for memory, wherein the data structure includes at least one of: SSOB, SSIB and SSNU;Write parameter write-in journey Sequence, wherein the parameter write-in program is for filling in parameter into the data structure, wherein the parameter filled in includes following At least one: storage address, the storage address of job execution result of the pending operation in the JES2 system.
Corresponding to the embodiment of the above method, the application implementation additionally provides a kind of job processing apparatus, is located at target master In the JES2 system of machine, comprising:
Third receiving unit, the ftp server for receiving destination host pass through what the virtual interface constructed in advance was sent Operation, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
Third transmission unit, for after operation described in successful execution, job execution result to be passed through the virtual interface It is sent to the ftp server.
In one embodiment, above-mentioned third transmission unit may include:
Memory module, for after operation described in successful execution, the JES2 system to store job execution result to institute It states in the SPOOL component of JES2 system;Third sending module, for the JES2 system by the job execution result from described The ftp server is sent to by the virtual interface in SPOOL component.
In the embodiment of the present application, the ftp server of destination host obtains the operation that the end PC is submitted, and by constructing in advance Virtual interface to the JES2 system of destination host send operation, also JES2 system is held by the operation that the virtual interface returns Row result is sent to the end PC, reduces the time cost and human cost of operation submission and operation supervision, improves operation and mention The flexibility of efficiency and job execution the result supervision of friendship.
Embodiment further provides the electronic equipment that a kind of operation is handled, the electronic equipments can specifically include by the application Input equipment, processor, memory.The electronic equipment can be used for executing following steps:
Request is submitted in operation in response to user, and the ftp server of destination host receives the operation that the end PC is sent;
The operation is passed through the JES2 that the virtual interface constructed in advance is sent to the destination host by the ftp server System, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
The ftp server receives the job execution result that the JES2 system is returned by the virtual interface;
In response to the result queries request of the user, the job execution result is sent to institute by the ftp server The end PC is stated to be shown.
In the present embodiment, the input equipment, which specifically can be, carries out information exchange between user and computer system One of main device.The input equipment may include keyboard, mouse, camera, scanner, light pen, writing input board, language Sound input unit etc.;Input equipment is used to initial data be input in computer with the programs for handling these numbers.The input Equipment, which can also obtain, receives the data that other modules, unit, equipment transmit.The processor can be by any appropriate Mode is realized.For example, processor can take such as microprocessor or processor and storage that can be executed by (micro-) processor Computer readable program code (such as software or firmware) computer-readable medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller (PLC) and insertion microcontroller Form etc..The storage implement body can be in modern information technologies for protecting stored memory device.The storage Device may include many levels, in digital display circuit, as long as can save binary data can be memory;In integrated electricity The circuit with store function of Lu Zhong, a not no physical form are also memory, such as RAM, FIFO;In systems, have There is the storage equipment of physical form to be also memory, such as memory bar, TF card.
In the present embodiment, the function and effect of electronic equipment specific implementation, can compare with other embodiment It explains, details are not described herein.
A kind of computer storage medium of operation processing is additionally provided in the application embodiment, the computer storage is situated between Matter is stored with computer program instructions, is performed realization in the computer program instructions: the operation in response to user is submitted Request, the ftp server of destination host receive the operation that the end PC is sent;The operation is passed through preparatory structure by the ftp server The virtual interface built is sent to the JES2 system of the destination host, wherein the virtual interface for the ftp server with Carry out data transmission between the JES2 system;The ftp server receives the JES2 system and is returned by the virtual interface The job execution result returned;In response to the result queries request of the user, the ftp server is by the job execution result The end PC is sent to be shown.
In the present embodiment, above-mentioned storage medium includes but is not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), caching (Cache), hard disk (Hard Disk Drive, HDD) or storage card (Memory Card).The memory can be used for storing computer program instructions.Network is logical Letter unit can be according to standard setting as defined in communication protocol, for carrying out the interface of network connection communication.
In the present embodiment, the function and effect of the program instruction specific implementation of computer storage medium storage, can To compare explanation with other embodiment, details are not described herein.
Obviously, those skilled in the art should be understood that each module of above-mentioned the embodiment of the present application or each step can be with It is realized with general computing device, they can be concentrated on a single computing device, or be distributed in multiple computing devices On composed network, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it Store and be performed by computing device in the storage device, and in some cases, can be held with the sequence for being different from herein The shown or described step of row, perhaps they are fabricated to each integrated circuit modules or will be multiple in them Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present application be not limited to it is any specific hard Part and software combine.
It should be understood that above description is to illustrate rather than to be limited.By reading above-mentioned retouch It states, many embodiments and many applications except provided example all will be aobvious and easy for a person skilled in the art See.Therefore, scope of the present application should not be determined referring to foregoing description, but should referring to preceding claims and this The full scope of the equivalent that a little claims are possessed determines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, the embodiment of the present application can have various modifications and variations.Within the spirit and principles of this application, made It is any revise, equivalent replacement, improvement etc., should be included within the scope of protection of this application.

Claims (13)

1. a kind of job processing method characterized by comprising
Request is submitted in operation in response to user, and the ftp server of destination host receives the operation that the end PC is sent;
The operation is passed through the JES2 system that the virtual interface constructed in advance is sent to the destination host by the ftp server System, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
The ftp server receives the job execution result that the JES2 system is returned by the virtual interface;
In response to the result queries request of the user, the job execution result is sent to the PC by the ftp server End is shown.
2. the method according to claim 1, wherein the ftp server is by the operation by constructing in advance Virtual interface be sent to the JES2 system of the destination host, comprising:
The operation is passed through the JES2 system that the virtual interface constructed in advance is sent to the destination host by the ftp server In READER component, wherein the READER component is used to receive the operation and triggers the process flow of the operation.
3. the method according to claim 1, wherein the ftp server, which receives the JES2 system, passes through institute State the job execution result of virtual interface return, comprising:
The ftp server receives the SPOOL in the JES2 system that the JES2 system is returned by the virtual interface Job execution result in component, wherein the SPOOL component is for storing the job execution result.
4. the method according to claim 1, wherein the virtual interface constructs as follows:
Configure the system parameter of the ftp server;
Write the interface routine of the JES2 system;
The virtual interface is formed according to the system parameter of configuration and the interface routine write.
5. according to the method described in claim 4, it is characterized in that, configuring the system parameter of the ftp server, comprising:
The communication type parameter being arranged in the system parameter of the ftp server is JES2;
The text size parameter being arranged in the system parameter of the ftp server is 80 and text type parameter is FIXED.
6. according to the method described in claim 4, it is characterized in that, writing the interface routine of the JES2 system, comprising:
Write memory requisition procedure, wherein the memory requisition procedure is used for as the data structure application in the JES2 system Memory, wherein the data structure includes at least one of: SSOB, SSIB and SSNU;
Write parameter write-in program, wherein the parameter write-in program is for filling in parameter into the data structure, wherein The parameter filled in includes at least one of: storage address, the job execution result of the pending operation in the JES2 system Storage address.
7. a kind of job processing method characterized by comprising
The ftp server that the JES2 system of destination host receives destination host passes through the work that the virtual interface constructed in advance is sent Industry, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
After operation described in successful execution, job execution result is sent to described by the JES2 system by the virtual interface Ftp server.
8. the method according to the description of claim 7 is characterized in that the JES2 system of destination host receives the FTP of destination host Server passes through the operation that the virtual interface constructed in advance is sent, further includes:
The operation received is reached in READER component and triggers the process flow of the operation.
9. the method according to the description of claim 7 is characterized in that the JES2 system will after operation described in successful execution Job execution result is sent to the ftp server by the virtual interface, comprising:
After operation described in successful execution, the JES2 system stores job execution result to the SPOOL of the JES2 system In component;
The job execution result is sent to from the SPOOL component by the virtual interface described by the JES2 system Ftp server.
10. a kind of job processing apparatus, in the ftp server of destination host characterized by comprising
First receiving unit, for receiving the operation of the end PC transmission;
First transmission unit, for the operation to be passed through the JES2 that the virtual interface constructed in advance is sent to the destination host System, wherein the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
Second receiving unit, the job execution result returned for receiving the JES2 system by the virtual interface;
The job execution result is sent to the PC for the result queries request in response to user by the second transmission unit End is shown.
11. a kind of job processing apparatus, in the JES2 system of destination host characterized by comprising
Third receiving unit, the ftp server for receiving destination host pass through the operation that the virtual interface constructed in advance is sent, Wherein, the virtual interface between the ftp server and the JES2 system for carrying out data transmission;
Third transmission unit, for after operation described in successful execution, job execution result to be sent by the virtual interface To the ftp server.
12. a kind of ftp server positioned at destination host, including display screen, actuator and storage actuator executable instruction Memory, the step of actuator realizes any one of claims 1 to 6 the method when executing described instruction.
13. a kind of JES2 system positioned at destination host, is stored thereon with computer instruction, described instruction is performed realization power Benefit requires the step of any one of 7 to 9 the method.
CN201910384460.1A 2019-05-09 2019-05-09 A kind of job processing method and device Pending CN110381106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910384460.1A CN110381106A (en) 2019-05-09 2019-05-09 A kind of job processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910384460.1A CN110381106A (en) 2019-05-09 2019-05-09 A kind of job processing method and device

Publications (1)

Publication Number Publication Date
CN110381106A true CN110381106A (en) 2019-10-25

Family

ID=68248665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910384460.1A Pending CN110381106A (en) 2019-05-09 2019-05-09 A kind of job processing method and device

Country Status (1)

Country Link
CN (1) CN110381106A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838625A (en) * 2014-02-27 2014-06-04 中国工商银行股份有限公司 Data interaction method and system
CN104077362A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Online mass data processing system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838625A (en) * 2014-02-27 2014-06-04 中国工商银行股份有限公司 Data interaction method and system
CN104077362A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Online mass data processing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
范啸风等: "OS/390中JES2与FTP接口的应用", 《中国金融电脑》 *

Similar Documents

Publication Publication Date Title
Zhang et al. The demikernel datapath os architecture for microsecond-scale datacenter systems
US20200233833A1 (en) Group-based data replication in multi-tenant storage systems
CN106133683B (en) Architecture mode configuration in computing system
TWI239187B (en) System and method for managing and validating remote keys which correspond to outstanding data transactions
JP4678623B2 (en) Memory barrier element (Primitive) in an asymmetric heterogeneous multiprocessor environment (asymmetric heterogeneous multiprocessor environment)
US7155550B2 (en) Program-executing apparatus and portable information processing apparatus
Dorier et al. Damaris: Addressing performance variability in data management for post-petascale simulations
EP3889805A1 (en) Method, apparatus, and storage medium for parsing document
Riesen et al. Designing and implementing lightweight kernels for capability computing
US10802766B2 (en) Database with NVDIMM as persistent storage
CN101661398A (en) Technique of booting a stateless client
US10025533B2 (en) Logical block addresses used for executing host commands
CN108287764A (en) Distributed task dispatching method and its system, storage medium, electronic equipment
US20120060018A1 (en) Collective Operations in a File System Based Execution Model
CN107256134B (en) Method and device for virtualizing POS terminal as computer printer and POS terminal
KR20170034424A (en) Memory write management in a computer system
JP2019174941A (en) Storage device, computer system and operating method for storage device
CN111259205B (en) Graph database traversal method, device, equipment and storage medium
US8280197B1 (en) Managed background loading of image resources in resource-constrained devices
US10289424B2 (en) System and method for loading and populating system inventory data in an event driven model
Simmendinger et al. The GASPI API: A failure tolerant PGAS API for asynchronous dataflow on heterogeneous architectures
CN102576309A (en) Communication between partitions in a logically partitioned system by bypassing the network stack when communicating between applications executed on the same data processing system
CN110532106A (en) The means of communication, device, equipment and storage medium between process
CN111930427A (en) Instruction transmitting method, instruction transmitting device, electronic equipment and storage medium
JP2006146679A (en) Control method for information processor, information processor and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191025

RJ01 Rejection of invention patent application after publication