Jcl sortcard



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

Jcl sortcard

Postby rajo1234 » Tue Oct 03, 2017 7:51 pm

Hi,
I have a input file with records as
Input file:
0   VP01153201801021640

MY requirement is to deduct 1 from the end and place in
Output file.
Like:
0   VP01153201801021639


BELOW is my code
Sortin dd dsn=input file,disp=shr
Sortout dd dsn=output file,disp=shr
Sysin dd *
Sort fields=copy
Outrec fields=(1:1,22,23,1,zd,sub,+1,edit=(t))
 

my code looks fine for single last value.
Eg if the last is 6 it changes it 5. But for case as mentioned since 2 digits are involved 40 to 39 ,my code doesnt work.
Please help me.
rajo1234
 
Posts: 4
Joined: Sun Sep 24, 2017 2:02 am
Has thanked: 0 time
Been thanked: 0 time

Re: Jcl sortcard

 

Re: Jcl sortcard

Postby enrico-sorichetti » Tue Oct 03, 2017 8:08 pm

certainly You noticed that there are two sections in the forum
related to SYNCSORT and IBM-DFSORT

tell what sort product You are using
so that a moderator will move the topic to the proper section
- WER*** messages ==> SYNCSORT
- ICE*** messages ==> IBM-DFSORT

hard to believe that You could not find the solution by yourself :o
reread Your <sort> product documentation about the syntax of add/subtract
sort is smart enough that it can handle numbers longer than one digit

but, what about something along the lines of
Outrec fields=(1:1,18,19,5,zd,sub,+1,edit=(ttttt))


check the manual anyway
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2636
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 129 times

Re: Jcl sortcard

Postby rajo1234 » Tue Oct 03, 2017 8:56 pm

Thanks for your feedback.i will post this in syncsort forum
rajo1234
 
Posts: 4
Joined: Sun Sep 24, 2017 2:02 am
Has thanked: 0 time
Been thanked: 0 time


Return to Syncsort/Synctool