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

SYNCSORT :: RE: How to pick only YYMMDD from DATE1P (Hex) format?

$
0
0
Author: sergeyken
Posted: Thu Mar 23, 2017 11:34 pm (GMT 5.5)

Arun Raj wrote:
Quote:
SYNCSORT syntax doesn't allow to perform MUL operation
AFAIK even DFSORT does not allow applying MUL directly on DATE1P either.

From the last post made by the OP, looks like he is trying to get rid of the cc - part. So there is NO need of MULtiplication if I understand correctly.
Appending DATE1P can be included in the OUTFIL itself instead of adding an INREC.

He needs the result of DATE1P shifted half-a-byte left:
X'0yymmddC' ==> X'yymmdd--'
and next use only 6 dec digits = 3 full bytes of it:
X'yymmdd'

That's why something like MUL,+10 is needed. No simple way to move data half-a-byte in SORT operations...
_________________
Tyrannosaurus-REXX


Viewing all articles
Browse latest Browse all 8500

Trending Articles