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 

Writing 1 Output based on 2 conditions in Input file.
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jun 07, 2007 3:14 pm    Post subject: Reply with quote

nimb,

I did not go through the entire discussion. I'm just writing based on your last post:

Syncsort v 1.1 does not have the capability to replace a hardcoded text to a variable. You can use a variable text only in NOMATCH condition and not within CHANGE.

I mean to say that you cannot use 41,18 (variable text) within CHANGE. You can replace C' ' by another hardcoded value of 18 bytes long.

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
nimb
Beginner


Joined: 01 Feb 2007
Posts: 8
Topics: 1

PostPosted: Thu Jun 07, 2007 3:22 pm    Post subject: Reply with quote

I thought so too after it gave the error, but I will wait for Kolusu to get another magic to work before giving up.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jun 07, 2007 3:23 pm    Post subject: Reply with quote

Kolusu,

Are you sure
Code:
CHANGE=(18,C' ',41,18),
works with Syncsort 1.1 DR ?

Thanks,
Phantom
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu Jun 07, 2007 3:40 pm    Post subject: Re: Writing 1 Output based on 2 conditions in Input file. Reply with quote

ninb, I ask again,
Quote:
I need only one Output file.
Can we do this using Sort/Icetool in one step.
What's wrong with two steps?
Back to top
View user's profile Send private message
nimb
Beginner


Joined: 01 Feb 2007
Posts: 8
Topics: 1

PostPosted: Thu Jun 07, 2007 3:45 pm    Post subject: Reply with quote

It is a change required in the existing system and if I have to add the step it would be lots of changes in jobs that do not even need this change. So I am trying to achieve it by a change in one control card rather that 100 jobs.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jun 07, 2007 3:52 pm    Post subject: Reply with quote

nimb,

I believe there is a mis-communication between you and CICS_Guy. I believe you are referring to 1 Job step and CICS_Guy is referring to 1 Job step - but 2 Pass (using Synctool).

I'm gonna ask you again - would you be interested in a "1 Step - 2 Pass Solution" ???

Thanks,
Phantom
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu Jun 07, 2007 4:08 pm    Post subject: Reply with quote

nimb wrote:
It is a change required in the existing system and if I have to add the step it would be lots of changes in jobs that do not even need this change. So I am trying to achieve it by a change in one control card rather that 100 jobs.
Sounds like..... Embarassed
The easiest solution would be to upgrade to a somewhat current level of your sort utility.....
Quote:
lots of changes in jobs that do not even need this change
Then don't change them, for crips sake, what kind of environment are you working under?
Back to top
View user's profile Send private message
nimb
Beginner


Joined: 01 Feb 2007
Posts: 8
Topics: 1

PostPosted: Thu Jun 07, 2007 4:15 pm    Post subject: Reply with quote

Phantom, I can try the 1 Step - 2 Pass Solution. Cna you give me details?

I am still hoping Kolusu will come up with something
Back to top
View user's profile Send private message
William Thompson
Beginner


Joined: 15 May 2007
Posts: 5
Topics: 0

PostPosted: Thu Jun 07, 2007 5:09 pm    Post subject: Reply with quote

nimb wrote:
I am still hoping Kolusu will come up with something
Well, without reading a manual, I guess you could throw a virgin or two into the volcano...... Wink
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Jun 08, 2007 3:31 am    Post subject: Reply with quote

Phantom wrote:
Kolusu,

Are you sure
Code:
CHANGE=(18,C' ',41,18),
works with Syncsort 1.1 DR ?

Thanks,
Phantom


Phantom,

I am NOT sure and I don't have a way of testing and it has been a long day for me and I did not have time/patience to read syncsort 1.1 manual

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Jun 08, 2007 3:33 am    Post subject: Reply with quote

Quote:

I am still hoping Kolusu will come up with something

nimb,

I am out of ideas. may be product supporters like alissa might be able to help you.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Fri Jun 08, 2007 9:16 am    Post subject: Reply with quote

Allowing the replacement field in the CHANGE subparameter to be another field from within the input record if the input field equals a search constant was introduced in SyncSort for z/OS 1.2.1.
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Jun 08, 2007 9:20 am    Post subject: Reply with quote

kolusu wrote:
Phantom wrote:
Kolusu,

Are you sure
Code:
CHANGE=(18,C' ',41,18),
works with Syncsort 1.1 DR ?

Thanks,
Phantom


Phantom,

I am NOT sure and I don't have a way of testing and it has been a long day for me and I did not have time/patience to read syncsort 1.1 manual

Kolusu


Well...No issues...I checked it for you... This feature is available only syncsort v 1.2.1 and above. Please see below

Taken from "Syncsort v 1.2.1 - Summary of Changes" document
Quote:

The CHANGE subparameter now allows the replacement field to be another
field from within the input record if the input field equals a search constant.


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

 
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