MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ALTSEQ usage in SYNCSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
patnekar
Beginner


Joined: 27 Jan 2003
Posts: 41
Topics: 16

PostPosted: Tue Nov 18, 2003 11:43 am    Post subject: ALTSEQ usage in SYNCSORT Reply with quote

Hi,
I tried using the method mentioned in the "Change all zeros in your records to spaces" Smart DFSORT Trick at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

However looks like, SYNCSORT does not support TRANS=ALTSEQ. Could someone please tell me the alternate syntax??

Thanks,
Puru
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Tue Nov 18, 2003 11:54 am    Post subject: Reply with quote

patnekar,

If you have syncsort z/OS then it supports the feature ALTSEQ. I guess you have an older version of syncsort. If you have file-aid at your shop then you can use to replace all low-values to spaces.

I just want to remind you that this topic has been discussed earlier and please search before posting the question. check this topic which exactly discusses your problem.

http://www.mvsforums.com/helpboards/viewtopic.php?t=314

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
patnekar
Beginner


Joined: 27 Jan 2003
Posts: 41
Topics: 16

PostPosted: Tue Nov 18, 2003 12:06 pm    Post subject: Reply with quote

Kolusu,
Thanks for the reply and sorry for not having searched fully. I do not have file-aid in my shop, so is there anyway I can do this using SYNCSORT, or do I have to write a COBOL pgm to do the same??

Thanks,
Puru
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Tue Nov 18, 2003 12:27 pm    Post subject: Reply with quote

Patnekar,

well there is a way to change all the low-values to spaces. But this would involve coding a change command for each and every position in your file.Assuming that your input file is 80 bytes Lrecl and FB format, the following JCL will give you the desired results.

Code:

//STEP0100 EXEC PGM=SORT                   
//SYSOUT    DD SYSOUT=*                   
//SORTIN    DD DSN=YOUR INPUT DSN,
//             DISP=SHR
//SORTOUT   DD DSN=YOUR OUTPUT DSN,
//             DISP=(NEW,CATLG,DELETE),
//             UNIT=SYSDA,
//             SPACE=(CYL,(X,Y),RLSE)
//SYSIN     DD *                           
  SORT FIELDS=COPY                                         
  OUTFIL OUTREC=(01,1,CHANGE=(1,X'00',X'40'),NOMATCH=(01,1),
                02,1,CHANGE=(1,X'00',X'40'),NOMATCH=(02,1),
                03,1,CHANGE=(1,X'00',X'40'),NOMATCH=(03,1),
                04,1,CHANGE=(1,X'00',X'40'),NOMATCH=(04,1),
                05,1,CHANGE=(1,X'00',X'40'),NOMATCH=(05,1),
                06,1,CHANGE=(1,X'00',X'40'),NOMATCH=(06,1),
                07,1,CHANGE=(1,X'00',X'40'),NOMATCH=(07,1),
                08,1,CHANGE=(1,X'00',X'40'),NOMATCH=(08,1),
                09,1,CHANGE=(1,X'00',X'40'),NOMATCH=(09,1),
                10,1,CHANGE=(1,X'00',X'40'),NOMATCH=(10,1),
                11,1,CHANGE=(1,X'00',X'40'),NOMATCH=(11,1),
                12,1,CHANGE=(1,X'00',X'40'),NOMATCH=(12,1),
                13,1,CHANGE=(1,X'00',X'40'),NOMATCH=(13,1),
                14,1,CHANGE=(1,X'00',X'40'),NOMATCH=(14,1),
                15,1,CHANGE=(1,X'00',X'40'),NOMATCH=(15,1),
                16,1,CHANGE=(1,X'00',X'40'),NOMATCH=(16,1),
                17,1,CHANGE=(1,X'00',X'40'),NOMATCH=(17,1),
                18,1,CHANGE=(1,X'00',X'40'),NOMATCH=(18,1),
                19,1,CHANGE=(1,X'00',X'40'),NOMATCH=(19,1),
                20,1,CHANGE=(1,X'00',X'40'),NOMATCH=(20,1),
                21,1,CHANGE=(1,X'00',X'40'),NOMATCH=(21,1),
                22,1,CHANGE=(1,X'00',X'40'),NOMATCH=(22,1),
                23,1,CHANGE=(1,X'00',X'40'),NOMATCH=(23,1),
                24,1,CHANGE=(1,X'00',X'40'),NOMATCH=(24,1),
                25,1,CHANGE=(1,X'00',X'40'),NOMATCH=(25,1),
                26,1,CHANGE=(1,X'00',X'40'),NOMATCH=(26,1),
                27,1,CHANGE=(1,X'00',X'40'),NOMATCH=(27,1),
                28,1,CHANGE=(1,X'00',X'40'),NOMATCH=(28,1),
                29,1,CHANGE=(1,X'00',X'40'),NOMATCH=(29,1),
                30,1,CHANGE=(1,X'00',X'40'),NOMATCH=(30,1),
                31,1,CHANGE=(1,X'00',X'40'),NOMATCH=(31,1),
                32,1,CHANGE=(1,X'00',X'40'),NOMATCH=(32,1),
                33,1,CHANGE=(1,X'00',X'40'),NOMATCH=(33,1),
                34,1,CHANGE=(1,X'00',X'40'),NOMATCH=(34,1),
                35,1,CHANGE=(1,X'00',X'40'),NOMATCH=(35,1),
                36,1,CHANGE=(1,X'00',X'40'),NOMATCH=(36,1),
                37,1,CHANGE=(1,X'00',X'40'),NOMATCH=(37,1),
                38,1,CHANGE=(1,X'00',X'40'),NOMATCH=(38,1),
                39,1,CHANGE=(1,X'00',X'40'),NOMATCH=(39,1),
                40,1,CHANGE=(1,X'00',X'40'),NOMATCH=(40,1),
                41,1,CHANGE=(1,X'00',X'40'),NOMATCH=(41,1),
                42,1,CHANGE=(1,X'00',X'40'),NOMATCH=(42,1),
                43,1,CHANGE=(1,X'00',X'40'),NOMATCH=(43,1),
                44,1,CHANGE=(1,X'00',X'40'),NOMATCH=(44,1),
                45,1,CHANGE=(1,X'00',X'40'),NOMATCH=(45,1),
                46,1,CHANGE=(1,X'00',X'40'),NOMATCH=(46,1),
                47,1,CHANGE=(1,X'00',X'40'),NOMATCH=(47,1),
                48,1,CHANGE=(1,X'00',X'40'),NOMATCH=(48,1),
                49,1,CHANGE=(1,X'00',X'40'),NOMATCH=(49,1),
                50,1,CHANGE=(1,X'00',X'40'),NOMATCH=(50,1),
                51,1,CHANGE=(1,X'00',X'40'),NOMATCH=(51,1),
                52,1,CHANGE=(1,X'00',X'40'),NOMATCH=(52,1),
                53,1,CHANGE=(1,X'00',X'40'),NOMATCH=(53,1),
                54,1,CHANGE=(1,X'00',X'40'),NOMATCH=(54,1),
                55,1,CHANGE=(1,X'00',X'40'),NOMATCH=(55,1),
                56,1,CHANGE=(1,X'00',X'40'),NOMATCH=(56,1),
                57,1,CHANGE=(1,X'00',X'40'),NOMATCH=(57,1),
                58,1,CHANGE=(1,X'00',X'40'),NOMATCH=(58,1),
                59,1,CHANGE=(1,X'00',X'40'),NOMATCH=(59,1),
                60,1,CHANGE=(1,X'00',X'40'),NOMATCH=(60,1),
                61,1,CHANGE=(1,X'00',X'40'),NOMATCH=(61,1),
                62,1,CHANGE=(1,X'00',X'40'),NOMATCH=(62,1),
                63,1,CHANGE=(1,X'00',X'40'),NOMATCH=(63,1),
                64,1,CHANGE=(1,X'00',X'40'),NOMATCH=(64,1),
                65,1,CHANGE=(1,X'00',X'40'),NOMATCH=(65,1),
                66,1,CHANGE=(1,X'00',X'40'),NOMATCH=(66,1),
                67,1,CHANGE=(1,X'00',X'40'),NOMATCH=(67,1),
                68,1,CHANGE=(1,X'00',X'40'),NOMATCH=(68,1),
                70,1,CHANGE=(1,X'00',X'40'),NOMATCH=(70,1),
                71,1,CHANGE=(1,X'00',X'40'),NOMATCH=(71,1),
                72,1,CHANGE=(1,X'00',X'40'),NOMATCH=(72,1),
                73,1,CHANGE=(1,X'00',X'40'),NOMATCH=(73,1),
                74,1,CHANGE=(1,X'00',X'40'),NOMATCH=(74,1),
                75,1,CHANGE=(1,X'00',X'40'),NOMATCH=(75,1),
                76,1,CHANGE=(1,X'00',X'40'),NOMATCH=(76,1),
                77,1,CHANGE=(1,X'00',X'40'),NOMATCH=(77,1), 
                78,1,CHANGE=(1,X'00',X'40'),NOMATCH=(78,1), 
                79,1,CHANGE=(1,X'00',X'40'),NOMATCH=(79,1), 
                80,1,CHANGE=(1,X'00',X'40'),NOMATCH=(80,1)) 
//*



Hope this helps...

cheers

kolusu

PS: If your input lrecl is bigger than I would suggest writting a cobol pgm with 1 single INSPECT statement and get the desired results.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
patnekar
Beginner


Joined: 27 Jan 2003
Posts: 41
Topics: 16

PostPosted: Tue Nov 18, 2003 12:34 pm    Post subject: Reply with quote

Kolusu,
Thanks a ton for your time.

Thanks,
Puru
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group