Hi
I need to sort a file, replacing the special char to spaces.
i am using
OPTION COPY
INREC FINDREP=(IN=(C'/',C'.',C'..'),
OUT=C' ',STARTPOS=11,ENDPOS=120)
Now i need to replace a hexadecimal value in the same file from 41 to 40. at any position in the file.
How do i do that.
i tried using this
OPTION COPY
INREC FINDREP=(IN=(C'/',C'.',C'..'PD'41'),
OUT=(C' ',PD'40'),STARTPOS=11,ENDPOS=120)
Can someone help please
Need to replcae hexadecimal value in FB format file
Moderators: Frank Yaeger, Moderator Group
- Frank Yaeger
- Moderator
- Posts: 812
- Joined: Sat Feb 18, 2006 5:45 am
- Location: San Jose, CA
- Contact:
It's not at all clear what you mean by
If you mean X'41' and X'40', you can use those values for IN and OUT (note that X'40' = C' ').
Or do you want to do something else? If something else, please explain clearly what you want to do and show the input and output values in hex.
Please show the input and output values in hexadecimal and indicate the positions in which you want to do the find/replace.
What are PD'41' and PD'40' supposed to represent? If you mean packed values of 41 and 40, that would be X'041C' and X'040C' and you could use those hex values for IN and OUT.Now i need to replace a hexadecimal value in the same file from 41 to 40. at any position in the file.
If you mean X'41' and X'40', you can use those values for IN and OUT (note that X'40' = C' ').
Or do you want to do something else? If something else, please explain clearly what you want to do and show the input and output values in hex.
Please show the input and output values in hexadecimal and indicate the positions in which you want to do the find/replace.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
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