My requirement is to get record count alone in a flat file..
When i am using TRAILER2= Count, it giving count as right justified..
Please see the code
//SORTIN DD *
123
FDS
DER
234
/*
//**
//CUNTFILE DD DSN=OUTPUT-FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(5,5),RLSE),
// DCB=(RECFM=FB,LRECL=010,BLKSIZE=0)
//**
//SYSIN DD *
**
SORT FIELDS=COPY
**
OUTFIL FNAMES=CUNTFILE,REMOVECC,NODETAIL,
** TRAILER1=(1:COUNT=(M10,LENGTH=10))
/*
//**
123
FDS
DER
234
/*
//**
//CUNTFILE DD DSN=OUTPUT-FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(5,5),RLSE),
// DCB=(RECFM=FB,LRECL=010,BLKSIZE=0)
//**
//SYSIN DD *
**
SORT FIELDS=COPY
**
OUTFIL FNAMES=CUNTFILE,REMOVECC,NODETAIL,
** TRAILER1=(1:COUNT=(M10,LENGTH=10))
/*
//**
Output getting:
Required Output:
Please help me ....
ThanX in advance...!