IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTPing COMP and COMP3 fields


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Fri Mar 07, 2008 10:23 am
Reply with quote

I'm FTPing a file from mainframe to another server, the file contains Comp3 and comp data. If I FTP this file, will I get into any problems in while reading the data.

Venkatesh
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Mar 07, 2008 10:32 am
Reply with quote

venktv wrote:
Hi All,

I am FTPing a file from mainframe to NT server, the file contains Comp3 and comp data, if I FTP this file, will I get into any problems in NT server while reading the data.

Please reply..

Thanks in advance
Venkatesh


YES, FTP does a character by character translation of the data. You can only FTP character data or BINARY with no translation. COMP and COMP-3 should be formatted as characters with separate sign.
Back to top
View user's profile Send private message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Fri Mar 07, 2008 11:23 am
Reply with quote

Hi Craq.

Thanks very much for the reply, in my record layout I have these fields.
10 ARY-IP-CODE PIC S9(09) COMP.
10 ARY-MNL-CODE PIC S9(09) COMP.
10 ARY-SYSID PIC S9(17) COMP-3.

I am planning to create another layout with below variable types and move th values from above variables to the new variables and write it into file and FTP that file...

Could you please suggest me the PIC cluase for these varaibles.

Thanks and Regards
Venkatesh
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Mar 07, 2008 12:59 pm
Reply with quote

Declara equivalent PIC with AlphaNumeric or Numeric data item for the COMP and COMP-3.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
Search our Forums:

Back to Top