Hello,
I try to migrate a simple sort Rexx into USS.
/* SIMPLE REXX CLIST TO CALL DFSORT */
"FREE FI(SYSOUT SORTIN SORTOUT SYSIN)"
"ALLOC FI(SYSOUT) DA(*)"
"ALLOC FI(SORTIN) DA('RVSA.RVSWEB.T52337.S782967') REUSE"
"ALLOC FI(SORTOUT) DA('RVSA.RVSWEB.T52337.S782967') REUSE"
"ALLOC FI(SYSIN) DA('AV01HBE.TRANS.PS') SHR REUSE"
ADDRESS LINKMVS ICEMAN
"FREE FI(SYSOUT SORTIN SORTOUT SYSIN)"
This sort is working fine. When I migrate this to USS I tried this one
/* REXX*/
trace i
KDoutput = 'RVSA.RVSWEB.T52337.S782967'
filename = 'AV01HBE.TRANS.PS'
path = '/tmp/av01hbe'
SORTSTRING.1 = ' SORT FIELDS=(25,44,CH,D)'
/* SORTIEREN AUFRUFEN */
/*call bpxwdyn "ALLOC FI(SYSIN) Lrecl(80) recfm(F) new "*/
call bpxwdyn "alloc fi(SYSIN) da("filename") shr msg(2)"
call bpxwdyn "alloc fi(SYSOUT) path('"path"') Pathmode(SIRWXU) Pathdisp(DELETE,DELETE) Pathopts(OWRONLY,OCREAT,OTRUNC)"
call bpxwdyn "alloc fi(SORTIN) da("kdoutput") shr msg(2)"
call bpxwdyn "alloc fi(SORTOUT) da("kdoutput") shr msg(2)"
address mvs "execio * diskw sysin (FINIS STEM SORTSTRING.) "
address syscall "forkexecm (iceman)"
call bpxwdyn "free fi(sysout)"
call bpxwdyn "free fi(sortin)"
call bpxwdyn "free fi(sortout)"
call bpxwdyn "free fi(sysin)"
return
But no sort was done. What is my problem? I only whant to call the ICEMAN.
how can I call mvs programs from a REXX in Unix System Services?
Has the USS an other sort tool?
Regards Hein