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
 
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: 2504
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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 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

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