MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lowercase FTP parms converting to uppercase in REXX program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
jim haire
Beginner


Joined: 30 Dec 2002
Posts: 140
Topics: 40

PostPosted: Wed Feb 14, 2018 8:59 am    Post subject: Lowercase FTP parms converting to uppercase in REXX program Reply with quote

A REXX program is using QUEUE statements in an attempt to build JCL to FTP a dataset from a mainframe to a folder on a server. One of the statements reads as follows:

QUEUE "//STEP130 EXEC PGM=FTP,PARM='-w 1440 -x -r tls (EXIT' "

The parameters which are in lowercase such as -w , -x, etc. are being converted to uppercase. (Note: The SUBMIT is being performed within the REXX program).

Can someone provide an idea of how to prevent these parameters from being converted to upper case?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Feb 14, 2018 10:32 am    Post subject: Reply with quote

If you PULL these statements off the queue then use PARSE PULL to retain case asis.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12359
Topics: 75
Location: San Jose

PostPosted: Wed Feb 14, 2018 11:19 am    Post subject: Reply with quote

jim haire,


Try this

Code:

/* Rexx */                                                     
queue "//SUBJOBR   JOB  ,'Test Job',CLASS=A,"                   
queue "//          MSGCLASS=H,MSGLEVEL=(1,1),NOTIFY=&SYSUID"   
queue "//STEP130 EXEC PGM=FTP,PARM='-w 1440 -x -r tls (EXIT' " 
queue ""                                                       
"ALLOC F(JOBOUT) SYSOUT(A) WRITE(INTRDR)"                       
"EXECIO" queued() "DISKW JOBOUT (FINIS"   
"free F(JOBOUT)"                     
Return                                                         

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jim haire
Beginner


Joined: 30 Dec 2002
Posts: 140
Topics: 40

PostPosted: Wed Feb 14, 2018 1:19 pm    Post subject: Reply with quote

Thanks for the responses. I asked this question for someone else who is attempting to do this and have asked him to let me know of the outcome.

I am not sure if they allow submitting jobs via the External Reader in this shop, but have presented that as an alternative should Nic's solution not give him the correct results.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group