View previous topic :: View next topic
|
Author |
Message |
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
Hi All,
Just I want to know the equivalent DISPLAY type PIC clause for these following picture clauses
10 SYSID PIC S9(17) COMP-3.
10 CODE PIC S9(09) COMP.
venkat |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you "DISPLAY" them, they will display. . . .
Probably not the answer you were looking for, but all i'll try withnwhat you posted.
If you post some sample input and the output you want, someone will have a more usable suggestion. |
|
Back to top |
|
|
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
Hi Dick,
Thanks for the reply, the reason for converting is differnt, I am FTPing a file from mainframe to NT server, the FTP file contains two fields with above PIC clause, so I am thikning whether the data will be in correct format or not when we receive the file in NT server, please let me know if u have answer for this..
Thannks in advance
Venkat |
|
Back to top |
|
|
hmurali Warnings : 1 New User
Joined: 08 Mar 2005 Posts: 17
|
|
|
|
Hi Venkat,
to the best of my knowledge, we have FTP comp data and there will be no display issues. if we try to ftp comp3, it would be displayed correctly. |
|
Back to top |
|
|
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
Hi Murali,
Thanks for the reply, if that is true, it will be great...but if anyone has any concerns on this ..pls post here... bez i am in the middle of coding I cant test it now...
Thanks in advance
Venkat |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
When transferring data by FTP the data should be in character format, no binary or packed decimal and with a separate sign. You need to check and find out if the application on the receiving end wants to sign at the beginning or the end of the number. |
|
Back to top |
|
|
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
Thanks Craq.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
no binary or packed decimal |
Very important.
The easiest way i've found to get usable values on the target system is to simply MOVE the comp/packed fields to edited fields before sending the ftp (i.e. code-fld pic 999999999-.).
Also, i'd suggest changing the name of the field CODE to some other name. |
|
Back to top |
|
|
venktv
New User
Joined: 29 Mar 2006 Posts: 59 Location: Montreal
|
|
|
|
Thanks Dick, will do that..
With regards
Venkat |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
If your PIC is 999999999+, won't that put a + or - at the end, rather than a blank or -?
That might look better for eyeball testing. |
|
Back to top |
|
|
|