JGi604607

JOBF question

Discussion created by JGi604607 on Mar 20, 2015
Latest reply on Mar 26, 2015 by JGi604607
So I finally have a script that does whatever I wanted (halfway). I have a JOBF that transfers files from one server to another, and I have a JOBS with the following script.
:DEFINE &STRING#, STRING
:DEFINE &FILE#, STRING
:set &HND# = PREP_PROCESS_VAR(VARA.FILELIST.MRA)
:PROCESS &HND#
:  SET &FILE# = GET_PROCESS_LINE(&HND#,1)
:  SET &STRING# = MID("&FILE#", 2,4)
:  PRINT &STRING#
:ENDPROCESS

Now I just need to put the two together, but I don't know how. This is what I am trying to accomplish: I want to move files from one server to another, then while at it, have the file names (ex p123456) changed to (ex 1234).  The vara in the above script lists all the files in the server, then after the process, it changes the file name to 1234. The results (1234) show up on the "last report" but I want it to change the names in the "to" server when/after the files are transferred.

Please help.

Outcomes