Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTPing COMP and COMP3 fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: FTPing COMP and COMP3 fields
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    Post subject: Re: FTPing COMP and COMP3 fields
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us