View previous topic :: View next topic
|
Author |
Message |
k.nitin
New User
Joined: 02 Apr 2007 Posts: 4 Location: chennai
|
|
|
|
Hi everyone
can any one of u help me !!!!!
I want to sort the data into an output file from input file which is having hexa decimal values in to noramal binary format.
awaiting for ur reply |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Please give examples of what the input looks like (hexa decimal values) and what you want the output to look like (noramal binary format). |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
Back to top |
|
|
k.nitin
New User
Joined: 02 Apr 2007 Posts: 4 Location: chennai
|
|
|
|
examples:
000001 AMX 2007-05-25 ? ? N
000002 NMX 2006-05-15MKL ? %NJ1A * r?
000003 NMX 2006-06-02MKL ? NJ1A * r?
000004 NMX 2006-06-27MBL ? NJ1A * r?
000005 NMX 2006-10-19MBL ? ? NJ1A * r?
000006 NMX 2006-05-15MKL ? %NJ1A * r?
000007 NMX 2006-06-02MKL ? NJ1A * r?
000008 NMX 2006-06-27MBL ? NJ1A * r?
000009 NMX 2006-10-19MBL ? ? NJ1A * r?
000010 NMX 2006-05-15MKL ? %NJ1A * r?
000011 NMX 2006-06-02MKL ? NJ1A * r?
000012 NMX 2006-06-27MBL ? NJ1A * r?
000013 NMX 2006-10-19MBL ? ? NJ1A * r?
000014 NMX <2006-05-15MKL ? %NJ1A * r?
copybook:
01 DCLTXGR0FIX.
10 FIX-RO-NO PIC S9(5)V USAGE COMP-3.
10 FIX-FLOOR-CD PIC S9(2)V USAGE COMP-3.
10 FIX-AISLE PIC X(2).
10 FIX-AISLE-SIDE PIC X(1).
10 FIX-MODULE-NO PIC S9(2)V USAGE COMP-3.
10 FIX-MOD-EFFV-DT PIC X(10).
10 FIX-MODULE-TYPE PIC X(3).
10 FIX-BASE-SHELF-WIDTH PIC S9(4)V USAGE COMP-3.
10 FIX-BASE-SHELF-DEPTH PIC S9(4)V USAGE COMP-3.
10 FIX-SPINE-HEIGHT PIC S9(4)V USAGE COMP-3.
10 FIX-SHELF-QTY PIC S9(2)V USAGE COMP-3.
10 FIX-PROM-IND PIC X(1).
10 FIX-MGRP-CD PIC X(3).
10 FIX-MOD-SEQ-NO PIC S9(4) USAGE COMP.
10 FIX-WORTHED-MOD-VAL PIC S9(1)V9(2) USAGE COMP-3.
10 FIX-WORTHED-WIDTH PIC S9(4)V USAGE COMP-3.
I have given u the copybook and the input data
i want the data FIX-BASE-SHELF-WIDTH PIC S9(4)V USAGE COMP-3.
10 FIX-BASE-SHELF-DEPTH PIC S9(4)V USAGE COMP-3.
10 FIX-SPINE-HEIGHT PIC S9(4)V USAGE COMP-3.
10 FIX-SHELF-QTY PIC S9(2)V USAGE COMP-3.
10 FIX-PROM-IND PIC X(1).
10 FIX-MGRP-CD PIC X(3).
10 FIX-MOD-SEQ-NO PIC S9(4) USAGE COMP.
10 FIX-WORTHED-MOD-VAL PIC S9(1)V9(2) USAGE COMP-3.
10 FIX-WORTHED-WIDTH PIC S9(4)V USAGE COMP-3.
to get converted from hexa decimal to packed
can any one help me out!! |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
William Thompson wrote: |
Please give examples of what the input looks like (hexa decimal values) and what you want the output to look like (noramal binary format). |
This time try the actual input and output. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
|