View previous topic :: View next topic |
Author |
Message |
jim haire Beginner
Joined: 30 Dec 2002 Posts: 140 Topics: 40
|
Posted: Wed Feb 14, 2018 8:59 am Post subject: Lowercase FTP parms converting to uppercase in REXX program |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Feb 14, 2018 10:32 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Wed Feb 14, 2018 11:19 am Post subject: |
|
|
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 |
|
|
jim haire Beginner
Joined: 30 Dec 2002 Posts: 140 Topics: 40
|
Posted: Wed Feb 14, 2018 1:19 pm Post subject: |
|
|
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 |
|
|
|
|