1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
//S0010 EXEC PGM=IEHLIST
//SYSPRINT DD DSN=&&OUT1,DISP=(NEW,PASS),
// SPACE=(TRK,(15,15),RLSE),LRECL=121,RECFM=FBA,BLKSIZE=0
//VOL DD UNIT=3390,VOL=SER=volser,DISP=SHR
//SYSIN DD *
LISTPDS DSNAME=Mon.PDS.Origine,VOL=3390=volser
//*-------------------------------------------------------------------
//S0020 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=&&OUT1,DISP=(OLD,DELETE)
//SORTOUT DD DSN=&SYSUID..WORK.TEMP1,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,5),RLSE),LRECL=80,RECFM=FB,BLKSIZE=0
//SYSIN DD *
SORT FIELDS=COPY
OMIT COND=((22,1,CH,LT,C'0'),OR,(15,1,CH,EQ,C' ')) - NON TTR / MBR <4
OUTFIL IFTHEN=(WHEN=(16,1,CH,EQ,C' '), LONG. MBR = 4
BUILD=(C' S M=((',12,4,C',BAL',15,1,C',R))',80:C' ')),
IFTHEN=(WHEN=(17,1,CH,EQ,C' '), LONG. MBR = 5
BUILD=(C' S M=((',12,5,C',BAL',15,2,C',R))',80:C' ')),
IFTHEN=(WHEN=(18,1,CH,EQ,C' '), LONG. MBR = 6
BUILD=(C' S M=((',12,6,C',BAL',15,3,C',R))',80:C' ')),
IFTHEN=(WHEN=(19,1,CH,EQ,C' '), LONG. MBR = 7
BUILD=(C' S M=((',12,7,C',BAL',15,4,C',R))',80:C' ')),
IFTHEN=(WHEN=NONE, LONG. MBR = 8
BUILD=(C' S M=((',12,8,C',BAL',15,5,C',R))',80:C' '))
//* GENERATION D'UN SELECT MEMBER=((OLDMEMBR,NEWMEMBR,R)) |
Partager