View previous topic :: View next topic
|
Author |
Message |
rajeevdas03 Warnings : 1 New User
Joined: 21 Jan 2006 Posts: 19 Location: Mumbai
|
|
|
|
Hi,
10 ABC PIC X(8).
10 def PIC S9(9) USAGE COMP.
10 lmn PIC S9(9) USAGE COMP.
10 xyz PIC X(26).
I have my file layout in this format.
i want to present this data in notepad in comma editable format.
I am having a problem to this in editable format. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You won't be able to convert binary fields to ASCII, and you won't be able to edit binary fields in wordpad, and if you want commas you'll need commas. Make the COMP fields "NUMERIC EDITED" with a sign. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Read the file you have and reformat to DISPLAY numbers (instead of COMP) and inert commas beween the fields.
You could use your sort product or the COBOL STRING to do this.
When the file is downloaded, it will have been properly converted to ASCII and ready to use. |
|
Back to top |
|
|
rajeevdas03 Warnings : 1 New User
Joined: 21 Jan 2006 Posts: 19 Location: Mumbai
|
|
|
|
dick scherrer wrote: |
Hello,
Read the file you have and reformat to DISPLAY numbers (instead of COMP) and inert commas beween the fields.
You could use your sort product or the COBOL STRING to do this.
When the file is downloaded, it will have been properly converted to ASCII and ready to use. |
Thanks, can you please tell me how we can do it thru Sort card. |
|
Back to top |
|
|
rajeevdas03 Warnings : 1 New User
Joined: 21 Jan 2006 Posts: 19 Location: Mumbai
|
|
|
|
Thanks for reply,
can you please help me how to do it thru sort catrd, I am getting error in sorting, please tell me the syntax of how to convert the field. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Post the JCL and sort control statements, the messages generated (including the message ids), the definition of the input data, and some example of the output you want. |
|
Back to top |
|
|
|