PDA

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



Guest.Visitor
01-01-1995, 02:00 AM
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

Guest.Visitor
11-30-2000, 07:25 AM
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