View previous topic :: View next topic
|
Author |
Message |
raj_gdg
New User
Joined: 19 Jul 2007 Posts: 5 Location: bangalore
|
|
|
|
Hi.
I have file layout as below
field: start length datatype
Code: |
RE-REC-ALL 0001 2025 A
RE-COMMON-PART01 0001 18 A
RE-POLBRQ-UFRSTA 0001 2 A
RE-POLTYQ-UFRSTA 0003 3 A
RE-POLNOQ-UFRSTA 0006 7 N
RE-POLLOQ-UFRSTA 0013 3 N
RE-POLRIQ-UFRSTA 0016 3 N
RE-COMMON-PART03 0022 8 A
RE-RSK-POLPMR 0022 3 A
|
In the above file ,i have to identify the reapting starting fields and in the o/p file i should have first repeating field as identified as 'GR'
I want the output as
Code: |
REC-ALL 0001 2025 A
COMMON-PART01 0001 18 A GR
POLBRQ 0001 2 A
POLTYQ 0003 3 A
POLNOQ 0006 7 N
POLLOQ 0013 3 N
POLRIQ 0016 3 N
COMMON-PART03 0022 8 A GR
RE-RSK-POLPMR 0022 3 A |
ANY HELP ON THIS WILL BE APPRECIATED.
REGARDS
RAJ |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Is that "GR" valid for EZT? |
|
Back to top |
|
|
raj_gdg
New User
Joined: 19 Jul 2007 Posts: 5 Location: bangalore
|
|
|
|
William Thompson wrote: |
Is that "GR" valid for EZT? |
NO. GR IS NOT VALID FOR EZT.
I AM TRYING TO IDENTIFY GORUP RECORDS IN THAT FILE LAYOUT.
FYI::I AM NOT USING THIS AS COPYBOOKS LAYOUT. I AM TRYING TO CONVERT EZT INTO COBOL FORMAT. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
First, please learn what the "Caps Lock" is used for.
Second, are GROP and GORUP synonyms for GROUP?
Third, what else do you need, you have identified the group names? |
|
Back to top |
|
|
raj_gdg
New User
Joined: 19 Jul 2007 Posts: 5 Location: bangalore
|
|
|
|
William Thompson wrote: |
First, please learn what the "Caps Lock" is used for.
Second, are GROP and GORUP synonyms for GROUP?
Third, what else do you need, you have identified the group names? |
THANKS FOR YOUR COMMENTS.
READ GROP AS GROUP
I JUST WANT TO KNOW IS THERE ANY WAY THAT I CAN THE O/P AS SHOWN.?? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
raj_gdg wrote: |
THANKS FOR YOUR COMMENTS.
READ GROP AS GROUP
I JUST WANT TO KNOW IS THERE ANY WAY THAT I CAN THE O/P AS SHOWN.?? |
Thanks for readind (some) of my comments.....
You can get the output, what "tools" do you want to use to get the output? |
|
Back to top |
|
|
raj_gdg
New User
Joined: 19 Jul 2007 Posts: 5 Location: bangalore
|
|
|
|
William Thompson wrote: |
raj_gdg wrote: |
THANKS FOR YOUR COMMENTS.
READ GROP AS GROUP
I JUST WANT TO KNOW IS THERE ANY WAY THAT I CAN THE O/P AS SHOWN.?? |
Thanks for readind (some) of my comments.....
You can get the output, what "tools" do you want to use to get the output? |
I am looking for any ezt or cobol program which can solve this problem. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
I don't think any exist, but you might be able to write your own..... |
|
Back to top |
|
|
|