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
 

 

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: 7992
Location: Bellevue, IA

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: 7992
Location: Bellevue, IA

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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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