Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
VARCHAR equivalent cobol variable - file declaratrion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
karthick Ramesh

New User


Joined: 19 Mar 2008
Posts: 11
Location: India

PostPosted: Tue Oct 14, 2008 9:57 am    Post subject: VARCHAR equivalent cobol variable - file declaratrion
Reply with quote

HI,
Im reading a value from the table, in which a column is declared as VARCHAR,i read the column and put it in a host var,
so im trying to move the data part of the host var to the File variable. After the execution of the program when i open the file with the copybook layout i could find the value in Hex format. Could any one tell me how to get value in Alphanumeric format?

Host variable:
03 Name
49 Name-data pic X(32)
49 Name-len pic s9(4) comp.

file Copy book
03 ww-file-name pic x(32)

Move Name-data to ww-file-name.

When i open the file the value in Hex.. i need in Alpha format
could some one help on this.
Back to top
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 9200
Location: 221 B Baker St

PostPosted: Tue Oct 14, 2008 11:24 am    Post subject:
Reply with quote

Hello,

Quote:
After the execution of the program when i open the file with the copybook layout i could find the value in Hex format. Could any one tell me how to get value in Alphanumeric format?
You need to post some content from the output file. Your meaning of "hex format" versus "alphanumeric format" is not understood. When you show the data, use copy/paste and the "Code" tag. Do not try to post a screen shot. They are just clutter and are deleted.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1