Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

RUNRMTCMD from the AS/400 to MVS--What's with the single quotes?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RUNRMTCMD from the AS/400 to MVS--What's with the single quotes?

    Hello everybody, I need to FTP a file from AS/400 to the mainframe and have a job automatically trigger on the mainframe once the dataset (aka file?) is populated. FTP is working great but I cannot get around sending a command to the mainframe with the correct syntax. Mainframe people told me that the syntax to run a command on the mainframe is e.g. SUB 'TRD1.JCLLIB(TEST)' so on the AS/400 it's RUNRMTCMD CMD('SUB ''TRD1.JCLLIB(TEST)''') RMTLOCNAME('192.200.1.66' *IP) RMTUSER(USER) RMTPWD(TEST) By the time this command gets to the mainframe, there are already too many single quotes. Any suggestions on how to fix this? Thanks a lot. Cristina

  • #2
    RUNRMTCMD from the AS/400 to MVS--What's with the single quotes?

    Try this instead: DCL Var(&Quote) Type(*Char) Len(1) Value(X'7D') RUNRMTCMD CMD('SUB ' *CAT &Quote *CAT 'TRD1.JCLLIB(TEST)' *CAT &Quote) Chris

    Comment

    Working...
    X