Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: RE: Can you write 2 recs on SORTOUT when SORTIN has only 1 rec

$
0
0
Author: Bill Woodger
Subject: Reply to: Can you write 2 recs on SORTOUT when SORTIN has only 1 rec
Posted: Thu Feb 23, 2017 1:18 am (GMT 5.5)

Don't try to call your symbols JP1 and JP2, as those are in-built symbols with special meaning (to allow for up to 10 values from a PARM statement to DFSORT).

The SYMNAMES data set must contain fixed-length records of 80 bytes.

To generate two outputs from one input, you need to do as Arun has suggested, and use the slash operator, which is only present in BUILD in OUTFIL.
Code:

BUILD=(1,80,/,81,80)


That would output two records, from one 160-byte record.

Since you have data on the current record you want to test, you could OVERLAY the first output at 81:, the second output at 161: (with 240:X to pad with blanks) and then BUILD with 81,80,/,161,80.


Viewing all articles
Browse latest Browse all 8500

Trending Articles