akumaras
New User
Joined: 06 Jul 2012 Posts: 10 Location: india
|
|
|
|
Hi,
I got a requirement to add current date to the file name and the same should be x com to another server from mainframe. Please see the below JCL
//STEP03 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=FILE.LFILE,DISP=SHR
//SORTOUT DD DSN=FILE.LFILE1,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,41,42:DATE1-1,50:C'.CSV')
/*
//XCOM01 EXEC ZZXCOM01
//SYSIN DD *
DEST=#PHA0018
LFILE= FILE.LFILE
FILE=FILE.LFILE1
FILETYPE=FILE
FILEOPT=REPLACE
TYPE=SEND
HOLD=NO
FILE.LFILE1 will have the destination server path and file name that will be placed with the todays date. Problem here is i am not mentioning the destination path in JCL so due to this xcom is working successfully but the file is not placed in the server. So could you please help me to resolve this? |
|