//SCP2GET EXEC PGM=IKJEFT01,
// DYNAMNBR=75,
// TIME=100,
// REGION=6M
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTERM DD DUMMY
//SYSUADS DD DSN=SYS1.UADS,DISP=SHR
//SYSLBC DD DSN=SYS1.BRODCAST,DISP=SHR
//STDOUT DD PATH='/home/&SYSUID./scp2get_stdout',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=SIRWXU
//STDERR DD PATH='/home/&SYSUID./scp2get_stderr',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=SIRWXU
//STDENV DD DSN=&SYSUID..SSZ.SAMPLIB(SSHENV),
// DISP=SHR
//SYSTSIN DD *
BPXBATCH PGM /usr/lpp/ssh2/bin/scp2 +
-oallowedauthentications=publickey +
testuser@remote_host:textfile.txt +
/FTADV:F=LINE,C=ISO8859-1,D=IBM-1047/__TEST.TEXTFILE
ALLOCATE FILE(PROUT) DA(*) LRECL(255) RECFM(F) REUSE
ALLOCATE FILE(PRERR) DA(*) LRECL(255) RECFM(F) REUSE
OCOPY INDD(STDOUT) OUTDD(PROUT) TEXT PATHOPTS(OVERRIDE)
OCOPY INDD(STDERR) OUTDD(PRERR) TEXT PATHOPTS(OVERRIDE)
/*
|