As we can issue site command in ftp mode,
after that we can submit JCL file to JES and run it,
the JCL file can be located in local folder or z/OS dataset.
A. ftp mode:
1. Submit local JCL file to JES:
start command console:WIN->run->cmd
change dir to JCL file's folder:
>cd dir
issue ftp command in command console:
>ftp ip_address
login with user name and password: user user_name password
issue site command:
>site filetype=jes
You will see:
SITE command was accepted
then issue put command to submit JCL to JES:
>put JCL_File_Name
then you can use dir to browse:
>dir
You will see:
ftp> dir
200 Port request OK.
125 List started OK
JOB_NAME JOB_Number OUTPUT X Spool Files
250 List completed successfully.
After job finished, status changed to OUTPUT,
you can use get command to get spool file to local drive:
>get Job_Number
2. Submit JCL file stored in z/OS dataset to JES:
After issue site command in ftp mode, issue get command like this:
>get 'dataset_name(member)' spool_file_name
get command will retrive spool file automaticlly when job finished,
spool_file_name is the file which will get to local folder.
You also can issue get command to retrive one of spool file:
>get JOB_Number.file_number: get J1234567.1
J1234567 is the job number, it will get the first spool file in job J1234567
3. Configuration:
after login and issue site command, issue this:
>quote site status
You will see all the settings.

B. shell script mode:
1. We can write a shell to issue all the command we needed at the same time automaticlly.
Suppose ftpjw is the shell name, we can store ip_address, user name and password in it,
for security reason, we'd better compile shell scirpt to an executable file, then nobody
can get something sensitive information like user_name and password etc.
issue this command:
>ftpjw put JCL_File_Name
it will submit the JCL_File_Name in current dir to JES.
issue this command:
>ftpjw dir
it will print out the jobs, this based on user's settings, like owner, jobname prefix.
issue this command:
>ftpjw get J1234567
it will get all JOB_Number's spool file into local folder.
issue this command:
>ftpjw get J1234567.2
it will get JOB_Number's 2nd spool file into local folder as the same name for parameter 3 of script.
Due to shell scirpt's reason, we can't submit JCL located in z/OS dataset.
Script will stop running and won't waiting job finish, we can use expect command to accomplish.

分享到:
相关推荐
JCL,全称为Job Control Language,是IBM大型主机系统中用于控制作业流程的脚本语言。它是IBM Mainframe操作系统的核心组成部分,主要用于定义和调度在主机上运行的作业。本篇文章将详细讲解一个基础的JCL样本,以...
【标题】:“mainframe 大型机 JCL语言与实用程序教程” 【描述】:这是一本关于mainframe大型机的JCL(Job Control Language)语言及其实用程序的中文经典教程,旨在帮助读者深入理解和掌握在IBM大型机系统中如何...
**大型机-JCL中文教程** 在信息技术领域,大型机(Mainframe)因其高效稳定的特点,仍然在金融、保险、电信等行业扮演着重要角色。而JCL(Job Control Language)则是控制大型机上作业运行的关键语言。本教程将带你...
Avanade作为连续11年荣获微软联盟年度合作伙伴的数字创新者,专注于IT现代化和数字化转型,其深厚的技术实力和经验将为迁徙过程提供有力支持。而Accenture则凭借其在咨询、技术、数字和外包领域的专长,以及对金融...
本教程将深入讲解JCL的基础概念、语法和实际应用,帮助你理解和掌握如何在IBM Mainframe环境中有效地利用JCL。 ### 1. JCL概述 JCL,全称为Job Control Language,是一种特殊的编程语言,用于定义和控制在IBM ...
JCL(Job Control Language)是一种在IBM大型机系统上使用的编程语言,它用于控制作业的流程和调度。JCL被广泛用于各种计算环境,特别是在MVS(多任务多用户操作系统)、OS/390和z/OS操作系统上。学习JCL可以让用户...
DD 语句是 JCL(Job Control Language)中的一种关键指令,用于定义作业中的输入/输出数据集。在 Mainframe 环境中,DD 语句的参数配置至关重要,因为它直接影响到作业的执行和数据处理。以下是 DD 语句中常见的几个...
标题 "PyPI 官网下载 | mainframe-bot-api-1.0.0.tar.gz" 提供了关于一个Python软件包的重要信息。PyPI(Python Package Index)是Python开发者用来发布和发现第三方Python库的主要平台。这里提到的"mainframe-bot-...
【JCL概述】 JCL(Job Control Language)是IBM大型机系统中用于控制批处理作业的语言。在大型机环境中,批处理是常见的计算机系统使用方式,即把一系列工作组织成一个个独立的作业进行处理。每个作业由JCL来定义,...
在IT行业中,Mainframe系统是大型企业核心业务处理的关键平台,尤其是IBM Z系列操作系统。了解和熟练掌握Mainframe命令对于任何涉及这一领域的IT专业人员至关重要。本文将详细阐述一些常用的主要Mainframe命令,包括...
作业控制语言JCL(Job Control Language)是在大型服务器系统中,尤其是IBM的Mainframe系统中,用户用来管理和控制作业流程的指令集。JCL不是一种编程语言,而是用户与操作系统交互的方式,它定义了作业的执行环境、...
### 基本JCL集合知识点详解 #### 标题:基本JCL集合 - **JCL**(Job Control Language)是一种用于控制大型机(Mainframe)上作业执行的脚本语言。 - **Basic JCL Collection**:面向主框架管理员或程序员的基础...
**JCL语言与实用程序** JCL(Job Control Language)是IBM大型机系统,如Mainframe,中的作业控制语言,用于定义和调度在系统上执行的任务。它是一种文本脚本语言,负责描述作业流程,包括数据处理、输入/输出操作...
JCL(Job Control Language)则是IBM Mainframe操作系统MVS(Multiple Virtual Storage)上的作业控制语言,用于编写和控制在Mainframe上执行的作业流程。 在描述中提到的"Create a KSDS VSAM dataset"是指创建一个...
JCL语言基础教程是Mainframe的基础教程之一,旨在帮助开发者理解JCL语言的基础知识和语法规则。 JCL语言的基本语句包括三种:作业语句(JOB)、执行语句(EXEC)和数据定义语句(DD)。作业语句用于标识一个作业的...
Welcome to mainframe computing! We begin this text with an overview of the mainframe computer ...and the unique manner in which this work is processed by a widely used mainframe operating system—z/OS.
【Mainframe Q&A】主要涵盖了在大型机领域中的一些核心技术和工具,包括CICS、COBOL、JCL、VASM以及DB2。这些技术在企业级应用中扮演着重要角色,尤其在金融、保险、航空等行业的核心系统中。 **COBOL与COBOL II** ...
JCL(Job Control Language)是IBM Mainframe操作系统MVS(Multiple Virtual Storage,现在通常称为z/OS)中用于控制作业流程的语言。它是一系列指令,用于定义和调度在大型机上执行的任务,包括数据处理、批处理...
【日立大机JCL手册_影印版】是一份重要的技术参考资料,主要针对日立公司的大型主机系统,尤其关注其Job Control Language(JCL)。JCL是IBM大型机操作系统,如MVS、IMS等环境下的作业控制语言,用于描述和控制在...
在IBM大型机环境中,Job Control Language (JCL) 是一种用于控制和调度系统资源的脚本语言。在面试中,了解JCL的相关概念和技术对于应聘者来说至关重要,尤其是在涉及IBM Mainframe系统的职位。以下是几个经典的JCL...