September 22, 2006, 05:12 PM
GlendaI have already tried that. It's the wackiest thing I've seen in a while. I've tried just about every combination I can think of.
September 22, 2006, 05:49 PM
TexasStingrayWhat is your environment? Is this a extrace from a mainframe?
September 25, 2006, 08:57 AM
Tony AGlenda,
The formats that TexasStingray has given should do the trick -
APP FI Glenda DISK Glenda.MAS
-RUN
-WRITE Glenda
-WRITE Glenda FILE=Glenda,SUFFIX=FIX
-WRITE Glenda SEGNAME=SEG1
-WRITE Glenda FIELD=WHATFMT,,P13.2,Z11,$
-RUN
APP FI Glenda DISK Glenda.FTM
-RUN
-WRITE Glenda 0000000194D
-WRITE Glenda 0000007993F
-WRITE Glenda 0000008133H
-WRITE Glenda 0000001490G
-WRITE Glenda 0000000124D
-WRITE Glenda 0000008009D
-WRITE Glenda 0000025946C
-WRITE Glenda 0000000110{
-RUN
TABLE FILE Glenda
PRINT *
END
-RUN
Will result in the output of
WHATFMT
19.44
799.36
813.38
149.07
12.44
800.94
2594.63
11.00
Unless the data values you have given in your post are hexadecimal values and not alpha (11 chars)?
T
September 25, 2006, 02:46 PM
GlendaThis is an extract from the mainframe. According to the programmer responsible for the file, it is defined as alpha.
My enviroment is UNIX.
September 25, 2006, 03:29 PM
Tony AHi Glenda,
If the format is alpha and they are 11 chars in length then the suggestion from TexasStingray is the one you need. I suppose another possibility is that the column positioning is misaligned? e.g. counting the previous columns character positions gives 112 but the data starts at 113?
The platform should be inconsequential if the format is fixed.
T
September 28, 2006, 10:10 AM
TexasStingrayPackdata on Mainframe vs Packdata on Unix are to different things. Sorry I do not have any suggestions for you.
Scott
September 28, 2006, 10:22 AM
GlendaI have found out that if any of the fields in a file to be moved from the mainframe to ASCII have any of the following 3 types of data, it must be run through NetConvert before FTP'ing in order for the values to come across correctly.
1. Packed - PIC 9(9) comp-3.
2. Binary - PIC 9(9) comp.
3. Signed zoned decimal - PIC S9(9). (if a zoned decimal field is not signed (ie, PIC 9(9)) then it does NOT need NetConvert)
My problem was not with the MFD after all. Thanks for all your input.
Glenda
In FOCUS Since 1990
Production 8.2 Windows