MFmainframe-rea
WS carddemo · 26f629ef

jcl · 42 lines · sha256 fecb67d223c6b31aapp/jcl/FTPJCL.JCL

1//FTPJCLS JOB 'FTP JCL',CLASS=A,MSGCLASS=H,MSGLEVEL=(1,1), JOB01598
2// REGION=0M,NOTIFY=&SYSUID,TIME=1440
3//*
4//*
5//******************************************************************
6//* Copyright Amazon.com, Inc. or its affiliates.
7//* All Rights Reserved.
8//*
9//* Licensed under the Apache License, Version 2.0 (the "License").
10//* You may not use this file except in compliance with the License.
11//* You may obtain a copy of the License at
12//*
13//* http://www.apache.org/licenses/LICENSE-2.0
14//*
15//* Unless required by applicable law or agreed to in writing,
16//* software distributed under the License is distributed on an
17//* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
18//* either express or implied. See the License for the specific
19//* language governing permissions and limitations under the License
20//******************************************************************
21//*********************************************************************
22//* FTP JOB TO RECEIVE A FILE
23//* MY.FTP.SERVER.COM IS THE FTP SERVER NAME(SUBJECT TO CHANGE FOR SITE)
24//* USER ID - EITHER SCHEDULER ID OR TSO USER ID
25//* PASSWORD OF THE USER
26//* FOLDER TO FTP THE MAINFRAME FILE
27//* PUT COMMAND FOR SENDING MAINFRAME FILE TO TXT
28//* CHANGE THE PUT COMMAND TO GET TO RECEIVE FILE INTO MAINFRAME
29//*********************************************************************
30//STEP1 EXEC PGM=FTP,REGION=2048K
31//* PARM='10.81.148.4 (EXIT TIMEOUT 20'
32//SYSIN DD *
33 172.31.21.124
34 carddemousr
35 ftpdemo1
36 ASCII
37 pwd
38 dir
39 cd /ftpfolder
40 PUT 'AWS.M2.CARDEMO.FTP.TEST' welcome.txt
41 QUIT
42//*