80:X (in general nnnn:X) is used to fill empty spaces (blanks) till column 80 (or nnnn) from the current position. If you omit this parameter and if you do not provide DCB-LRECL in JCL, your output file length is ends after the last field that you provide in INREC/OUTREC/OUTFIL OUTREC/HEADER/TRAILER statements.
PS: The JCL shown above does not contain a DCB parameter for SORTOUT. Do not make any changes to the JCL. Try running the JCL and see the LRECL of OUTPUT file and try with 80:X and see the difference.
NOTE
Actually, the 80:X doesn't do anything in this case. The output record length is set from the length of the data records, NOT from the length of the HEADER records. In this case, the length of the data records is 80 = the length of the input records.
80:X would be necessary if an OUTREC parameter created shorter records and you wanted them padded out with blanks to 80 bytes.
works fine with DFSORT as long as you have one or more blanks before OUTREC.
-----
Note that Method 1 and Method 2 posted by Suganthy put the date and time in the same record in the form:
mm/dd/yyhh:mm:ss
The method shown by iknow puts the date and time in two separate records (because of the /).
-----
You can use other parameters to get the date and time in different forms.
See the following "Ask Professor Sort" item for more information:
I add the statment after outrec..So, after i submit, i got msg in SYSOUT tell me that NO SORT OR MERGE CONTROL STATEMENT..Below is the msg after submit my JCL..
Inside JESMSGLG
Quote:
10.11.14 JOB09726 IEF403I SYS1001F - STARTED - TIME=10.11.14
10.11.14 JOB09726 - --TIMINGS (M
10.11.14 JOB09726 -JOBNAME STEPNAME PROCSTEP RC EXCP CONN TCB SRB
10.11.14 JOB09726 -SYS1001F S1 16 20 3 .00 .00
10.11.14 JOB09726 IEF404I SYS1001F - ENDED - TIME=10.11.14
10.11.14 JOB09726 -SYS1001F ENDED. NAME- TOTAL TCB CPU TIM
10.11.14 JOB09726 $HASP395 SYS1001F ENDED
------ JES2 JOB STATISTICS ------
26 JAN 2006 JOB EXECUTION DATE
15 CARDS READ
55 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
3 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME
OUTREC FIELDS=(DATE,TIME)
$
ICE007A 1 SYNTAX ERROR
ICE010A 0 NO SORT OR MERGE CONTROL STATEMENT
ICE052I 3 END OF DFSORT
Beside, i also try to put the //SYSOUT DD SYSOUT=* before outrec.. But i got same msg like above..
Can you help to find the mistake?
Superk
I also tried you method, but i got the msg as below..
Quote:
CSV003I REQUESTED MODULE EZACFSM1 NOT FOUND
CSV028I ABEND806-04 JOBNAME=PEP1001F STEPNAME=S2
IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=806 REASON CODE=00000004
TIME=10.22.57 SEQ=12159 CPU=0000 ASID=0048
PSW AT TIME OF ERROR 070C1000 812E73DE ILC 2 INTC 0
NO ACTIVE MODULE FOUND
NAME=UNKNOWN
I think in my OS390, there is no EZACFSM1 facility.Am i correct superk?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
I just noticed the following in your messages:
Code:
5740-SM1 REL 13.0
That shows you are using DFSORT R13. DFSORT R13 is very old and is, in fact, out of service. You need one of the supported releases, Release 14 or z/OS DFSORT V1R5, in order to use the DATE and TIME parameters.
Ask your System Programmers to install one of these supported releases.
Oh i see..
actually i am a one of system programmer in my companie. But i ask my friends (system programmer also), he also dont know how to install Release 14..
Can you guide me how to get the version Release 14?.
Or is there any other way to fetch system date using REL 13.0?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
I'm not a system programmer, so I can't tell you how to install products. I thought that's what system programmers did. If you have a valid license for DFSORT, then you should be able to install the appropriate supported release for the z/OS release you're running on (DFSORT R14 for z/OS V1R4 and below or z/OS DFSORT V1R5 for z/OS V1R5 and above). Ask whoever installs products on your system how to do it.