I am a newcomer in the Mainframe world. I have a dataset with name SPORT.TRDATA2. The field locations and the column spaces of the data re fixed. This is the data of a company who has shops in different locations and sells footballs. The first column is the shop location and has range 1,15 , the second field is the year 17.4 the third is the month 23,2 and the last column is the sales 26,7
I want to sort for each month the sales. I have written some JCL statements but my problem is that when i go to SDSF i cannot see the output of the job so i am not sure if the JCL that I wrote is correct.
//MYJOB JOB 1
//MYSORT EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=SPORT.TRDATA2
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,15,CH,A)
OPTION ZDPRINT
SUM FIELDS=(26,7,ZD)
/*
//MYSORT EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=SPORT.TRDATA2
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,15,CH,A)
OPTION ZDPRINT
SUM FIELDS=(26,7,ZD)
/*
Is the above correct?? Also how can use icetool to sort this data