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

COBOL NON PRINTABLE CHARACTERS


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Oct 07, 2010 6:58 pm
Reply with quote

Ron,

I believe the Assembler expansion for an INSPECT CONVERTING using WS fields in the FROM and TO, as opposed to literals in the FROM and TO, will cause a CALL/BALR to a COBOL run-time module.

I've found that when using literals and the target of the translation has a length of not greater than 768 and is not using reference modification, the compiler will generate three in-line "TR" instructions. Otherwise, a run-time module is called <sigh>.

For whatever reason (and I think this should be amended), the maximum literal length is 160, which is an odd maximum.

Bill
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Fri Oct 08, 2010 12:13 am
Reply with quote

Inquiring minds want/need to know --- so I compiled a little test. You are correct, Bill - it appears that if the conversion tables are 256-bytes each (as in the code I provided), then a call is made to run-time subroutine IGZCIN1. I tried it both as a 967-byte source field, and as four smaller defined sub-fields - in each case calls were made to the subroutine (one for each defined field/sub-field, so it's presumably more efficient to convert one 967-byte field than four smaller fields).
Code:
L     2,92(0,9)               TGTFIXD+92   
L     15,68(0,2)              V(IGZCIN1 )   
LA    1,149(0,10)             PGMLIT AT +145
BALR  14,15                                 
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top