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
 

 

Cobol varaible field length is more then 18 !

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

New User


Joined: 15 Sep 2007
Posts: 31
Location: Chennai

PostPosted: Sat Apr 14, 2012 8:13 am    Post subject: Cobol varaible field length is more then 18 !
Reply with quote

Hi Every one !

Unfortunately i got one requirement where i have to divide one field which is more then 18 in length.

i am thinking to devide data in half part.....later this will be merge...to get data length equal to 18 or less then 18.

expected result should be same(whether will dividing in one short or half..half and merging...for final dividation)


Thanks

Prem
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


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

PostPosted: Sat Apr 14, 2012 9:16 am    Post subject: Reply to: Cobol varaible field length is more then 18 !
Reply with quote

Does your compiler support the ARITH(EXTEND) option?

What is your Cobol Version/Release?

If it doesn't support ARITH(EXTEND), then this division is easily accomplished via an Assembler sub-program.

Assembler supports up to 16-Bytes/31-Digits, Packed-Decimal (COMP-3) or you can use the Assembler 64-Bit "Grande" Registers or Aligned-Doublewords along with the "Divide Grande" instruction.

Enterprise PL/I can also do this.

Anyway you look at it, it can be done....
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sat Apr 14, 2012 2:24 pm    Post subject: Reply to: Cobol varaible field length is more then 18 !
Reply with quote

Surely you are not the first at your site to use a wildly big number? Ask someone who's already done it.

If you are, do as Mr Bill indicates, look at the compile options at the start of your output listing from a compile. Early on, you should/may see ARITH(COMPAT). If so, find out from your support people how to compile with ARITH(EXTEND).
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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