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
 
Want to move data dynamically

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

New User


Joined: 20 Oct 2004
Posts: 59

PostPosted: Mon Oct 09, 2006 1:50 pm    Post subject: Want to move data dynamically
Reply with quote

Hi all,
I have the following requirement :

- I have an input COMMAREA of say 32K used by more than pgm
- At present, the program inspects it for some values and moves this commarea to working storage variable (declared as 32K)

Now, i don't want to declare the WS variable of 32K in pgm and depending on what length is passed i want to declare my variable.

Also each pgm uses specefic length of Commarea i.e.
Pgm1 uses say only first 1000 bytes of Commarea
Pgm2 uses say only first 1750 bytes of Commarea
and so on......

But i don't want to calculate the length of bytes for each pgm before COMMAREA move.

Rather than that i want to use only that data length which is being passed from COMMAREA as this 'll save CPU time by not dng INSPECT till end of 32K bytes.

Say COMMAREA passed only 100 bytes to pgm A(WS declared as 5k), now my pgm should not inspect all the 32K bytes.

Can anyone help me on this.
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Mon Oct 09, 2006 3:52 pm    Post subject: Re: Want to move data dynamically
Reply with quote

Hi !

I think, you could test the length of the receiving ComArea.
I allways do that in my Asm-Cics-Pgms.

CLC EIBCALEN,=H'0' Test COMMAREA zero
BE ZZ10 Yes, no XCTL/LINK from another Pgm

Regard's UmeySan
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

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