Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
specify region while submitting batch job via FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Balaji Canabady

New User


Joined: 07 Dec 2011
Posts: 19
Location: India

PostPosted: Wed Feb 29, 2012 5:00 pm    Post subject: specify region while submitting batch job via FTP
Reply with quote

When submitting a job using FTP, how do one specify in which region to run that job?

I have the following script SCRIPT1.SCR
Quote:

USER
mainframeuserid
mainframepassword
QUOTE SITE FILETYPE=JES
GET 'USERID.ABC.XYZ(MYJOB)'
QUIT
(Jobname is my userid +1 char )

However when I submit the job using FTP, the job runs in the production region instead of the development region and fails ?
Code:
FTP -n -s:script1.scr XX.XX.XXX.XX

where XX.XX.XXX.XX is my host ip.

Can anyone suggest how to submit the job in development region/ testing region ?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Feb 29, 2012 5:20 pm    Post subject: Reply to: specify region while submitting batch job via FTP
Reply with quote

Quote:
Can anyone suggest how to submit the job in development region/ testing region ?



we do not belong to You organization, we do knot know your <setup>, we do not know Your standards ... ... ...
ask Your support

but since today is wednesday ==> psychic day
... You have two/three alternatives
1) FTPING directly to the IP Of the development region
2) change Your job to use a route control statement
3) ask Your support
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Feb 29, 2012 5:23 pm    Post subject:
Reply with quote

Since you are NOT using standard terminology, it is difficult to determine just what your issue is. When you say "production region" and "development region" -- are you talking about different machines? different LPARs on one machine? different CICS regions (which is how the term normally is used -- but makes no sense in conjunction with an FTP task)?

Assuming you are talking about using a development LPAR instead of a production LPAR, you need to talk to your site support group. Each LPAR has its own unique IP address, so if you change the IP address you change where the FTP connects to. And only someone working at your site will know what the IP addresses are for the various LPARs involved.
Back to top
View user's profile Send private message
Balaji Canabady

New User


Joined: 07 Dec 2011
Posts: 19
Location: India

PostPosted: Thu Mar 01, 2012 2:52 am    Post subject:
Reply with quote

Hi Enrico and Robert,
I am sorry for the parlance used in describing my issue.

As you have rightly guessed, I was actually meaning the development LPAR and production LPAR.

Thanks for the different options suggested. I will try them and update the post...
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Mar 01, 2012 3:33 am    Post subject:
Reply with quote

Ummm, I think the GET command runs JCL that is already on the mainframe That means you'd have to change it it up there to change it at all.

On the other hand, the PUT command takes a JCL deck in a text file and submits it to the mainframe. I use that option to change my JCL on the fly.

The advantage of "GET" is that the FTP command WAITS FOR THE JOB TO FINISH and then retrieves the output. The "PUT" command does NOT WAIT.

To get the output from the PUT command, you have to turn around and do a DIR command using the jobid until the job status says "OUTPUT". Then you have to go to that job and GET the output.

You could also FTP the changed job up to a dataset, then do the GET command from that dataset.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us