COBOL Change command
Moderators: dbzTHEdinosauer, Moderator Group
-
- Member
- Posts: 16
- Joined: Sun Dec 27, 2009 12:37 pm
COBOL Change command
Hi all..
When we give the following statement in the command line
C ALL '##' $$'
it changes all the ## characters to $$ and also indicates the changed line by a label in the line no cols.
My question is how to skip from one changed line to the other...
Instead of scrolling through the total code is there any PF key functionality ?
When we give the following statement in the command line
C ALL '##' $$'
it changes all the ## characters to $$ and also indicates the changed line by a label in the line no cols.
My question is how to skip from one changed line to the other...
Instead of scrolling through the total code is there any PF key functionality ?
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Member
- Posts: 16
- Joined: Sun Dec 27, 2009 12:37 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Member
- Posts: 16
- Joined: Sun Dec 27, 2009 12:37 pm
Thanks for the explanation...
When I give X all command it ade the lines non displayable..
- - - - - - - - - - - - - - - - - - - 2 Line(s) not Displayed
But later when I gave the C ALL PRG ARG..it has changed the string and is displaying the total code as it shows when we give a change command in direct code without giving the X ALL command.
Suggest me in brief where I am wrong.
Thanks
When I give X all command it ade the lines non displayable..
- - - - - - - - - - - - - - - - - - - 2 Line(s) not Displayed
But later when I gave the C ALL PRG ARG..it has changed the string and is displaying the total code as it shows when we give a change command in direct code without giving the X ALL command.
Suggest me in brief where I am wrong.
Thanks
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
Hey Nagesh,
what Dick said is correct. you have two ways.
1) Either you could do X ALL; C ALL '##' '$$'; C ALL PRG ARG
The above command will hide all the lines of the code and does two changes a) change ## to $$ where it encounters and b) change PRG from ARG
--- Once all the changes are done you can do RES command to view the entire code
2) Another way...... use &C PRG ARG and press enter
now this command will search and replace the first encountered string.
Then u can control the search and replace command with f5 and f6 buttons.
F5- Search next string
F6- replace string
I hope this is helpful to you.
what Dick said is correct. you have two ways.
1) Either you could do X ALL; C ALL '##' '$$'; C ALL PRG ARG
The above command will hide all the lines of the code and does two changes a) change ## to $$ where it encounters and b) change PRG from ARG
--- Once all the changes are done you can do RES command to view the entire code
2) Another way...... use &C PRG ARG and press enter
now this command will search and replace the first encountered string.
Then u can control the search and replace command with f5 and f6 buttons.
F5- Search next string
F6- replace string
I hope this is helpful to you.
Regards,
Raj.
vrajx
Raj.
vrajx
-
- Member
- Posts: 16
- Joined: Sun Dec 27, 2009 12:37 pm
-
- Member
- Posts: 16
- Joined: Sun Dec 27, 2009 12:37 pm
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page