View previous topic :: View next topic
|
Author |
Message |
beruoist
New User
Joined: 14 Nov 2007 Posts: 70 Location: mumbai
|
|
|
|
Hi
I need to edit an dataset,below is the scenario.
1) Dataset is having a number of data...each row of dataset starts with '{' and ends with '}'
Now my requirement is to change the ending from '}' to
} + new line (X'0D25') + $
how can i achieve it...how can i do it with change command.
I tried with below command but it is giving me error.
C X'60D0' X'60D00D255B' ALL
that is
change '{' to } + new line (X'0D25') + $ all |
|
Back to top |
|
|
beruoist
New User
Joined: 14 Nov 2007 Posts: 70 Location: mumbai
|
|
|
|
beruoist wrote: |
Hi
I need to edit an dataset,below is the scenario.
1) Dataset is having a number of data...each row of dataset starts with '{' and ends with '-}'
Now my requirement is to change the ending from '-}' to
-} + new line (X'0D25') + $
how can i achieve it...how can i do it with change command.
I tried with below command but it is giving me error.
C X'60D0' X'60D00D255B' ALL
that is
change '-}' to } + new line (X'0D25') + $ all |
SORRY TYPO CORRECTION
beruoist wrote: |
Hi
I need to edit an dataset,below is the scenario.
1) Dataset is having a number of data...each row of dataset starts with '{' and ends with '-}'
Now my requirement is to change the ending from '-}' to
-} + new line (X'0D25') + $
how can i achieve it...how can i do it with change command.
I tried with below command but it is giving me error.
C X'60D0' X'60D00D255B' ALL
that is
change '-}' to } + new line (X'0D25') + $ all |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
... but it is giving me error. |
how sad
You have two friends ...
PF1
and the manual
ask them and You might get better answers
...did something ...got an error
is probably the worst way to ask
you must give people something to work on, You didn' t |
|
Back to top |
|
|
beruoist
New User
Joined: 14 Nov 2007 Posts: 70 Location: mumbai
|
|
|
|
enrico-sorichetti wrote: |
Quote: |
... but it is giving me error. |
how sad
You have two friends ...
PF1
and the manual
ask them and You might get better answers
...did something ...got an error
is probably the worst way to ask
you must give people something to work on, You didn' t |
i checked it with the help option only..
the way i am using it is the correct but still it is giving error...That is why i posted the query.
C X'60D0' X'60D00D255B' ALL
Please tell me what is missing here |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I think that Enrico was asking for more detail on the error that is occurring.
You have explained that it does not work, but that is it. Not sure when psychic day is this week, but until then we have no information available other than what you tell us. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You still did not understand my reply?
I did something I got an error will not take You/us anywhere
Quote: |
... the way i am using it is the correct but still it is giving error...
|
I would trust the program, more than Your judgement
any decent ISPF based application logic flow for a command is...
( that's the way ISPF itself behaves )
after any action display in the upper right corner a short message
stating that "an error occurred"/the program was not able to do the action requested"/"the requested action completed succesfully"
hitting/stoking/pressing PF1 should display a message box or a two lines
message with a message identifier and a long text more explicative
with the message identifier look at the manual for a still longer description
and usually the action to take or what not do in order to override the issue
again with the scrce info provided the only replies You will get
will be of the tone of my first reply
help people willing to help you |
|
Back to top |
|
|
beruoist
New User
Joined: 14 Nov 2007 Posts: 70 Location: mumbai
|
|
|
|
enrico-sorichetti wrote: |
You still did not understand my reply?
I did something I got an error ill not take You/us anywhere
Quote: |
... the way i am using it is the correct but still it is giving error...
|
I would rather trust the program, rather than Your judgement
any decent ISPF based application logic flow is...
after an erroneous action display in the upper right corner e short message
stating that You got an error/the program was not able to do the action requested
hitting/stoking/pressing PF1 should display a message box or a two lines
message with a message identifier and a long text more explicative
with the message identifier look at the manual for a still longer description
and usually the action to take or what not do in order to override the issue
again with the scrce info provided the only replies You will get
will be of the tone of my first reply
help people willing to help you |
Yes correct the error is coming because there are too many records in the FILE..the error says
Code: |
CHARS X'60D0' could not be changed to X'60D00D255B' 24634 times. |
I will better write an Natural program to do this.It will be easier for me.Thanks guys for ur time.
Cheers
Beruoist |
|
Back to top |
|
|
|