Issue unpacking fields

Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Issue unpacking fields

Postby bendiesel » Sat Apr 11, 2020 2:05 am

Hi All-

I am trying to copy an existing dataset and unpack any packed fields. I ran into an issue where some of fields that where defined as packed were simply left as BLANKs, so I would like to print them out as BLANK vs the packed interpretation. When I tried the attached code (which is a simplified representation of what Im working with), it evaluates the first clause, but it does appear to evaluate the second clause where the overlay happens. Any suggestions?

I've toyed around with the selection logic, even duplicating the top clause into the bottom clause, but Im not able to get both clauses to evaluate - just the top.

Be kind here.. Im very inexperienced with SORT :)

Thanks in advance,

//SYSIN    DD *                        
  OPTION COPY                          
                OVERLAY=(16:C'   '),                                  
Posts: 1
Joined: Mon Feb 18, 2013 11:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Newbie Sort Question..

Postby sergeyken » Sun Apr 12, 2020 12:05 am

You try to unpack your PD field in your first IFTHEN - before it is verified against correct NUM format in your second IFTHEN.

The problem is not in your SORT experience; the problem is in your (mis)understanding of the program logic, whatever language/utility/tool you try to use.
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
Posts: 289
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 5 times
Been thanked: 26 times

Return to Syncsort/Synctool


  • Related topics
    Last post