Post by ***@gmail.com [hercules-390]
Hi, i created a program in cobol with internal sort with input procedure
and outro procedure, but when a decalre a jcl i dont know how must i
declare the 'sortfile', i tried with sequecne file without file but
alwaus have e aswer, problem with sort file allocation.
The "SORTFILE" is completely up to your program, and there may not be
one depending on your output procedure. If you're talking about work
files, then the answer depends on the version of SORT you are using.
For the SORT that comes with MVT and MVS (e.g., the tk3 and tk4-
distributions, I use:
//SORTWK01 DD UNIT=2314,SPACE=(CYL,190),VOL=SER=SORT01
//SORTWK02 DD UNIT=2314,SPACE=(CYL,190),VOL=SER=SORT02
//SORTWK03 DD UNIT=2314,SPACE=(CYL,190),VOL=SER=SORT03
//SORTWK04 DD UNIT=2314,SPACE=(CYL,190),VOL=SER=SORT04
//SORTWK05 DD UNIT=2314,SPACE=(CYL,190),VOL=SER=SORT05
//SORTWK06 DD UNIT=2314,SPACE=(CYL,190),VOL=SER=SORT06
Depending on your work disks, a space of 199 should work also. I have
these disks marked private, and they are used for one sort at a time.
If you are using a newer SORT, say OS/390 or z/OS, your work files could
look like //SORTWKnn DD DISP=OLD,UNIT=nnnnn,VOL=SER=nnnnnn
Depending on your options, the newer sorts may allocate work space
This email has been checked for viruses by AVG.