Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Hexadecimal value for pipe symbol in Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Wed Nov 19, 2008 1:41 am    Post subject: Hexadecimal value for pipe symbol in Cobol
Reply with quote

Hi, I just want to check if we have a hexadecimal value for pipe symbol in Cobol? and whether cobol can read a pipe delimited file? Any thoughts
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Nov 19, 2008 1:58 am    Post subject:
Reply with quote

When did COBOL get its own character set? I thought it used EBCDIC on the mainframe.

The COBOL Language Reference and Application Programming Guide do not have any references to 'pipe', which is a pretty good clue to your question's answer.
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Wed Nov 19, 2008 2:00 am    Post subject: Reply to: Cobol question
Reply with quote

I do know the '05' is the hexadecimal value for the tab character. I was just checking if Pipe also had one.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Nov 19, 2008 2:15 am    Post subject:
Reply with quote

The vbar is hex '4F' in the EBCDIC collating sequence.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Nov 19, 2008 3:13 am    Post subject:
Reply with quote

COBOL can read files "delimited" by almost anything, but it is up to the programmer to code what to do with it after it is read. The question I have about this is where is the file coming from. If this file is being created in ASCII on a PC and then uploaded to the MF, you should test your method of converting from ASCII to EBCDIC to see how this character is converted. The easiest type of field to process in COBOL is fixed length fields. Would the "pipe delimited file" have variable length fields?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Nov 19, 2008 4:19 am    Post subject:
Reply with quote

X'4F' is a vertical bar '|', and what is referred to as a pipe or broken vertical bar is X'6A'.
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us