JCL Sort in JobMainframe
Posted: Tue Mar 16, 2004 4:46 pm
Hi Forum,
I running a job that obtain the max of a field, i use an Agregator, are three numeric fields (integers, total length is 12)
I define the 2 fields agrouped and the third is the max, my question is ...
If this is the jcl template for the sort definition ...
//*******************************************************************
//**** OS390_SORT
//*******************************************************************
//*******************************************************************
//%sortid.IN DD DSN=&&%sortid.IN,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(%primamt,%secamt),RLSE),
// DCB=(LRECL=%sortreclen,BLKSIZE=%blocksize,RECFM=FB)
//%sortid.OUT DD DSN=&&%sortid.OUT,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(%primamt,%secamt),RLSE),
// DCB=(LRECL=%sortreclen,BLKSIZE=%blocksize,RECFM=FB)
Why the length in the jcl is (check the length in bold)
//S001IN DD DSN=&&S001IN,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(200,100),RLSE),
// DCB=(LRECL=16,BLKSIZE=480,RECFM=FB)
//S001OUT DD DSN=&&S001OUT,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(200,100),RLSE),
// DCB=(LRECL=16,BLKSIZE=480,RECFM=FB)
What is the change in the jcl template to be ok????
I running a job that obtain the max of a field, i use an Agregator, are three numeric fields (integers, total length is 12)
I define the 2 fields agrouped and the third is the max, my question is ...
If this is the jcl template for the sort definition ...
//*******************************************************************
//**** OS390_SORT
//*******************************************************************
//*******************************************************************
//%sortid.IN DD DSN=&&%sortid.IN,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(%primamt,%secamt),RLSE),
// DCB=(LRECL=%sortreclen,BLKSIZE=%blocksize,RECFM=FB)
//%sortid.OUT DD DSN=&&%sortid.OUT,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(%primamt,%secamt),RLSE),
// DCB=(LRECL=%sortreclen,BLKSIZE=%blocksize,RECFM=FB)
Why the length in the jcl is (check the length in bold)
//S001IN DD DSN=&&S001IN,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(200,100),RLSE),
// DCB=(LRECL=16,BLKSIZE=480,RECFM=FB)
//S001OUT DD DSN=&&S001OUT,
// DISP=(NEW,DELETE,DELETE),
// UNIT=SYSDA,VOL=(,,,20),
// SPACE=(CYL,(200,100),RLSE),
// DCB=(LRECL=16,BLKSIZE=480,RECFM=FB)
What is the change in the jcl template to be ok????