Submit a Run Task from z/OS to i5/OS

In this RUN TASK statement submitted from z/OS, the CRTSAVF command creates a save file named SAVFILE. The file has the text description CREATED BY PROCESS TEST. The SAVLIB command saves the library TESTDT1 in the save file created in the first command.

STEP1  RUN TASK  (PGM=AS400)
                  SNODE
                  SYSOPTS=\"\
                          \CMD(\
                          \CRTSAVF\
                          \FILE(TEST/SAVEFILE)\
                          \TEXT(‘CREATED BY PROCESS TEST’)
                          \)\
                          \CMD(\
                          \SAVLIB\
                          \LIB(TESTDT1)\
                          \DEV(*SAVF)\
                          \SAVF(TEST/SAVEFILE)\
                          \)\
                          \"\